'UI ( UX )'에 해당되는 글 6건
- 2016.12.09 [JUI] grid row data
- 2016.06.27 [Websquare] Repeat 사용 시 주의 사항.
- 2016.02.11 [Websquare] Repeat 결과가 표시되지 않을 때.
- 2015.02.09 [Websquare] 숫자 자동 증가
- 2015.01.27 [Websquare] Websquare + Spring 연동 오류
- 2011.11.14 [Websquare] Popup 처리
Websquare 에서 반복(loop) 처리 시 repeat 와 generator 를 사용한다.
데이터도 있는데 화면 출력이 안된다면
꼭!
반복되는 컨포넌트에 ID 값이 부여되어 있는지 확인 한다.
ID 가 없으면 반복처리 하지 못한다.
'UI ( UX ) > Websquare' 카테고리의 다른 글
[Websquare] Repeat 결과가 표시되지 않을 때. (0) | 2016.02.11 |
---|---|
[Websquare] 숫자 자동 증가 (0) | 2015.02.09 |
[Websquare] Websquare + Spring 연동 오류 (0) | 2015.01.27 |
[Websquare] Popup 처리 (0) | 2011.11.14 |
datacollection 의 data 를 사용하여 Repeat 를 개발 후
executeSubmission 을 사용했을 때 화면에 결과가 나타나지 않는다면
콜백스크립트(done) 에 repeat1.refreshRepeat(); 를 해줘야 한다.
괜시리 삽질하지 말자.
Websquare 컴포넌트 중 콜백영역에 refresh 해야 하는것이 몇개 있다.
나중 하나씩 추가해 보자.
Repeat ,
'UI ( UX ) > Websquare' 카테고리의 다른 글
[Websquare] Repeat 사용 시 주의 사항. (0) | 2016.06.27 |
---|---|
[Websquare] 숫자 자동 증가 (0) | 2015.02.09 |
[Websquare] Websquare + Spring 연동 오류 (0) | 2015.01.27 |
[Websquare] Popup 처리 (0) | 2011.11.14 |
Websquare 에서는 jquery 의 animate 가 동작하지 않기 때문에 Javascript 로 만들어 보았다.
obj.setLabel(obj); 이 부분만 javascript document.getElementById( objName ).innerHTML(val) 로
바꾸면 html+javasciprt 에서도 동작한다.
// 숫자 자동증가 ( interval 1/1000 초 )
// ex) autoIncrementVal( obj, val, interval );
// autoIncrementVal( "#indexVal", 95, 20 );
var autoIncrementVal = function(obj, val, interval)
{
var i = 0;
var ai = setInterval(function(){
obj.setLabel(i);
if ( i == val ) {
clearInterval(ai);
}
i++;
}, 20);
}
autoIncrementVal(textbox3, 80);
'UI ( UX ) > Websquare' 카테고리의 다른 글
[Websquare] Repeat 사용 시 주의 사항. (0) | 2016.06.27 |
---|---|
[Websquare] Repeat 결과가 표시되지 않을 때. (0) | 2016.02.11 |
[Websquare] Websquare + Spring 연동 오류 (0) | 2015.01.27 |
[Websquare] Popup 처리 (0) | 2011.11.14 |
~/websquare/websquare.html?w2xPath=/w2/spring/sample_spring2.xml
웹스퀘어 + 스프링 연동 샘플예제 오류
MediaType : json 선택 시 조회 오류
1월 27, 2015 9:09:36 오전 org.apache.catalina.core.StandardWrapperValve invoke
심각: Servlet.service() for servlet [sample] in context with path [] threw exception [Request processing failed; nested exception is java.lang.ClassCastException: org.json.simple.JSONObject cannot be cast to sample.beans.BaseBean] with root cause
java.lang.ClassCastException: org.json.simple.JSONObject cannot be cast to sample.beans.BaseBean
at sample.spring.adapter.CustomWqArgumentResolver.resolveArgument(CustomWqArgumentResolver.java:50)
--- 생략 ---
2) MediaType : xml 시 조회 오류
[request] org.apache.catalina.connector.RequestFacade@5dbef3d2
[beanDef] @websquare.system.adapter.annotation.BEAN_DEF(beans=[root=sample.beans.SelectBean, infoList=sample.beans.InfoBean, codeList=sample.beans.CodeBean])
1월 27, 2015 9:15:24 오전 org.apache.catalina.core.StandardWrapperValve invoke
심각: Servlet.service() for servlet [sample] in context with path [] threw exception [Request processing failed; nested exception is Unexpected character (<) at position 0.] with root cause
Unexpected character (<) at position 0.
--- 생략 ---
위의 오류 시 websquare.xml (환경설정 파일)을 확인 후 수정 해야 한다.
Websquare 에서는 convertType server : map/bean client : xml/json 둘 중 하나만 선택 가능하다.
bean, json 을 사용한다면 request, response 설정을 바꿔야 한다.
수정전 :
<convertType server="map" client="json" />
수정후 :
<convertType server="bean" client="json" />
권장은 map , json 이라고 한다.
'UI ( UX ) > Websquare' 카테고리의 다른 글
[Websquare] Repeat 사용 시 주의 사항. (0) | 2016.06.27 |
---|---|
[Websquare] Repeat 결과가 표시되지 않을 때. (0) | 2016.02.11 |
[Websquare] 숫자 자동 증가 (0) | 2015.02.09 |
[Websquare] Popup 처리 (0) | 2011.11.14 |
WebSquare.uiplugin.popup.createPopup("popup1", "litewindow", "People Profile",
"width:415px;height:535px;top:100px;left:100px;", "false", "true", "/edu/people_profile.xml&id=popup1", "response/people/bookList", "bookList", peopleNode);
WebSquare.uiplugin.popup.openPopup("/edu/people_profile.xml&id=popup1", {
id : "popup1",
type : "window",
/* type popup 객체의 type으로 window, browser 중 하나 browser type의 경우 useIFrame 속성과 상관없이 window.open으로 열립니다.*/
width: "415px",
height: "535px",
//top과 left는 useIframe이 true인 경우 브라우져를 기준 false인 경우 모니터를 기준으로 한다.
top: "200px",
left: "200px",
popupName : "People Profile", //popupName popup 객체의 이름입니다.
modal : true, //modal을 이용해서 뒤 쪽 배경을 동작하지 않도록 만들기 위한 인자 입니다. false이면 뒤쪽의 컴퍼넌트가 사용 가능합니다.
useIFrame : false,
/*
window type의 경우
true : IFrame 을 사용하는 WebSquare popup
false: window.open 을 사용하는 popup
*/
style : "", //popup의 스타일을 지정합니다. 값이 있으면 left top width height는 적용되지 않습니다.
// popup option window.open을 사용하는 경우(useIfrmae false인 경우) popup에 넘어가는 parameter
resizable : false,
status : false,
menubar : false,
scrollbars : false,
title : false,
xml: peopleNode, // popup에 넘길 xmlDocument의 string popup창에서 WebSquare.uiplugin.popup.getPopupParam() api를 사용하여 가져올수 있습니다.
srcData: "response/people/bookList", //popup 객체의 type 이 window 일 때 Parent 에서 넘길 xpath
destData: "bookList" //popup 객체의 type 이 window 일 때 popup 에 설정할 xpath
});
'UI ( UX ) > Websquare' 카테고리의 다른 글
[Websquare] Repeat 사용 시 주의 사항. (0) | 2016.06.27 |
---|---|
[Websquare] Repeat 결과가 표시되지 않을 때. (0) | 2016.02.11 |
[Websquare] 숫자 자동 증가 (0) | 2015.02.09 |
[Websquare] Websquare + Spring 연동 오류 (0) | 2015.01.27 |