반응형

 

var rowCnt = dlt_detail.getRowCount();
for(var i=0; i< rowCnt; i++){
    ui_generator.insertChild();
    ui_generator.getChild(i,"txt_test1").setValue(dlt_detail.getCellData(i,"txtText1"));
    
    //css
    //ui_generator(i,"txt_view").setStyle("display","none");
}
    
    
<xf:group id="txt_view">
    <w2:generator style="" id="ui_generator">
        <w2:textbox id="txt_test1"></w2:textbox>
    </w2:generator>
</xf:group>


 

반응형

'개발 > websquare' 카테고리의 다른 글

websqaure grid cell 실수에서 정수형으로  (0) 2023.05.08
websqaure html tag사용방법  (0) 2023.05.08
Websquare 콤보박스 필터  (0) 2023.05.08
websquare tooltip 말풍선  (0) 2023.05.03
Websquare 줄바꿈 처리  (0) 2023.01.06
반응형

 

<w2:dataList baseNode="list" repeatNode="map" id="dlt_reason1" saveRemoveData="true">
    <w2:columnInfo>
        <w2:column id="code" name="code" dataType="text"></w2:column>
        <w2:column id="value" name="value" dataType="text"></w2:column>
    </w2:columnInfo>
</w2:dataList>

<w2:linkedDataList bind="dlt_reason1" id="linked_dlt_reason1">
    <w2:condition type="filter"><![CDATA[
    ]]></w2:condition>
    <w2:condition type="sort"><![CDATA[
    ]]></w2:condition>
</w2:linkedDataList>

<w2:linkedDataList bind="dlt_reason2" id="linked_dlt_reason2">
    <w2:condition type="filter"><![CDATA[
    ]]></w2:condition>
    <w2:condition type="sort"><![CDATA[
    ]]></w2:condition>
</w2:linkedDataList>


<xf:select1 allOption="" appearance="minimal" chooseOption="true" chooseOptionLabel="" direction="auto"
    disabled="false" disabledClass="w2selectbox_disabled" ev:onchange="scwin.co_reason1_onchage" id="co_reason1" style="width:100%" submenuSize="auto">
    <xf:choices>
        <xf:itemset style="" nodeset="data:linked_dlt_reason1">
            <xf:label ref="value"></xf:label>
            <xf:label ref="code"></xf:label>
        </xf:itemset>
    </xf:choices>
</xf:select1>


<xf:select1 allOption="" appearance="minimal" chooseOption="true" chooseOptionLabel="" direction="auto"
    disabled="false" disabledClass="w2selectbox_disabled" ev:onchange="" id="co_reason2" style="width:100%" submenuSize="auto">
    <xf:choices>
        <xf:itemset style="" nodeset="">
            <xf:label ref="value"></xf:label>
            <xf:label ref="code"></xf:label>
        </xf:itemset>
    </xf:choices>
</xf:select1>




scwin.fnReasonFilter = function(celData, tmpParam, rowIndex){
    var col1 = co_reason1.getValue();
    var col2 = dlt_reason2.getCellData(rowIndex, "code");
    if(col1 == col2.substr(0,1)){
        return true;
    }
    return false;
}

scwin.co_reason1_onchange = function(info){
 linked_dlt_reason2.clearFilter();
 linked_dlt_reason2.setColumnFilter({type:"func", colIndex:"code", key:scwin.fnReasonFilter, condition:"and"});
 co_reason2.setNodeSet("data:linked_dlt_reason2", "value", "code");
}
            
    
        
반응형

'개발 > websquare' 카테고리의 다른 글

websqaure html tag사용방법  (0) 2023.05.08
websquare 화면 loop 반복 foreach  (0) 2023.05.08
websquare tooltip 말풍선  (0) 2023.05.03
Websquare 줄바꿈 처리  (0) 2023.01.06
websquare 웹스퀘어 디자인 화면 엑박 오류  (0) 2022.11.03
반응형

<%@page import="org.springframework.web.context.WebApplicationContext"%>
<%@page import="org.springframework.web.support.WebApplicationContextUtils"%>
<%@page import="com.test.biz.service.TestService"%>

WebApplicationContextUtils.getWebApplicationContext(((HttpServletRequest) request).getSession().getServletContext());

//tomcat
//ServletContext servletContext = getServletContext();

//weblogic
ServletContext servletContext = pageContext.getServletContext();

WebApplicationContext wac = WebApplicationContextUtils.getRequiredWebApplicationContext(servletContext);

//서비스호출
TestService testService = (TestService)wac.getBean("testService");
//testService.testList();

반응형
반응형

 


//화면
<style type="text/css"><![CDATA[
    .w2anchor a{white-space:pre-wrap; color:white;}
]]></style>

<xf:group class="" id="contextGroup" style="position:absolute; left:298px; width:100px; top:76px; z-index:100; display:none;">
    <xf:group class="" id="grdBodyContentBox" style="position:absolute; left: 0px; top: 0px; width: 100%">
        <w2:anchor class="" id="gridBody_anchor" label="" style="padding:1px 3px 0; line-height:14px; font-size:12px; border:0; background-color:#5c85d4; color:#fff; width:250px; >
            <xf:label style=""></xf:label>
        </w2:anchor>
    </xf:group>
</xf:group>

 


//스크립트
scwin.grd_dlt_result_tooltip = function(info,colId){
    if(grd_dlt_result.getColumnID(info.colIndex) == colId){
        var rowIdx = info.rowIndex;
        var colIdx = info.colIndex;
        
        var rowIdx2 = info.rowIndex ;//- grd_dlt_result.getTopRowIndex();
        var left = grd_dlt_result.getPosition("left")+grd_dlt_result.getCellPosition(rowIdx2, colIdx, "left")+grd_dlt_result.getCellSize(rowIdx2, colIdx, "width");
        var top = grd_dlt_result.getPosition("top")+grd_dlt_result.getCellPosition(rowIdx2, colIdx, "top")+grd_dlt_result.getCellSize(rowIdx2, colIdx, "height");
        
        //말풍선 내용 입력
        gridBody_anchor.setValue(dlt_result.getCellData(info.rowIndex, colId));
        
        contextGroup.show();
        contextGroup.setPosition(left,top);
        //contextGroup.setPosition(left,top-70);
    }
}

scwin.grd_dlt_result_onbodymouseover = function(info){
    var colId = grd_dlt_result.getColumnId(info.colIndex);
    if(colId == "testCell"){
        scwin.grd_dlt_result_tooltip(info,colId);
    }
};

scwin.grd_dlt_result_onbodymouseout = function(info){
    contextGroup.hide();
}

 

반응형

'개발 > websquare' 카테고리의 다른 글

websqaure html tag사용방법  (0) 2023.05.08
websquare 화면 loop 반복 foreach  (0) 2023.05.08
Websquare 콤보박스 필터  (0) 2023.05.08
Websquare 줄바꿈 처리  (0) 2023.01.06
websquare 웹스퀘어 디자인 화면 엑박 오류  (0) 2022.11.03
반응형

개발자 도구 > 에뮬레이션 > 문서모드 확인

1. jsp 파일의 head 안에
<meta http-equiv="X-UA-Compatible" content="IE=edge">
추가

2. 메타태그 적용 안되면 인터넷 브라우저의 도구 > 호환성 보기 설정에 도메인이 추가 돼있는지 확인.

3.호환성 보기 설정에 추가가 돼있다면 jsp 파일의 상단에
<%
response.setHeader("X-UA-Compatible","IE=edge");
%>
추가


반응형

'개발 > java' 카테고리의 다른 글

jsp에서 service 가져오기  (0) 2023.05.03
java excel upload 수식 결과 값 가져오기  (0) 2021.06.11
JAVA Type mismatch 캐스트(Cast)오류  (0) 2020.12.09
반응형

label = " 항목&lt;br/&gt;개행" escape="false"

&lt;br/&gt; 과 escape를 추가해준다.


반응형

'개발 > websquare' 카테고리의 다른 글

websqaure html tag사용방법  (0) 2023.05.08
websquare 화면 loop 반복 foreach  (0) 2023.05.08
Websquare 콤보박스 필터  (0) 2023.05.08
websquare tooltip 말풍선  (0) 2023.05.03
websquare 웹스퀘어 디자인 화면 엑박 오류  (0) 2022.11.03
반응형

eclipse -> 프로젝트 오른쪽 마우스 -> properties -> WebSquare ->  Engine Configuratior


.
.
.
</wframe>
<clearMemory value="false/>

<!-- 여기에 css 넣어주기 
stylesheet를 websquare.html의 link로 넣을 경우는 enable속성을 false로 설정. 기본값은 true. earlyImportList : css를 link방식으로 미리 로딩할 목록들. 구분자는 ,이다. 상대경로로 입력할 경우 로딩되는 xml페이지의 경로를 기준으로 삼는다. 
(ex) : <stylesheet value="stylesheet_exe.css" import="link" enable="true" earlyImportList="common/com.css,/theme/skin.css,xmlcom.css"/>
-->
<styleshhet earlyImportList="~~/css/all.css, ~~/css/contents.css, /~~css/responsive.css, /~~toastr.css" enable="true" import="link" value="stylesheet_ext.css"/>
<!--끝 -->
<style>
    <removeDefaultClass value="true"/>
</style>

<engine>
.
.
.


위 방법 안될 경우

eclipse -> 프로젝트 오른쪽 마우스 -> properties -> WebSquare -> Context Root -> Deploy Source의 Borwse.. 클릭 -> 아무것도 선택하지 않고 폴더선택 버튼 클릭 -> Deploy Source에 /src/main/webapp 경로 잡힘 -> 적용 버튼 클릭

반응형

'개발 > eclipse' 카테고리의 다른 글

IBATIS, MYBATIS 결과  (0) 2021.01.06
Maven Repository없을 때 settings.xml 만들기 및 이클립스 설정  (0) 2020.08.06
반응형

<resultMap id="content" type="dataMap">
    <result column="CONTENT" property="content" jdbcType="CLOB" javaType="java.lang.String"/>
</resultMap>
<select id="bbsList" parameterType="map" resultType="dataMap" resultMap="content">
    select bbs_id
          ,subject
          ,content
    from tb_bbs
</select>

반응형

+ Recent posts