amp@java

            BlogJava :: 首頁 :: 新隨筆 :: 聯系 :: 聚合  :: 管理 ::
            99 隨筆 :: 0 文章 :: 228 評論 :: 0 Trackbacks
          from http://forum.java.sun.com/thread.jspa?threadID=628910&messageID=3618808
          hello,

          first time i want to excuse my english language ( i love spanish :P );

          i pass a whole morning to found the solution: How to go to page 1 in a DataScroller ( tomahawk component ) when we execute a filter ??

          we need to binding the component instance in the backing bean ( manage bean )

          JSP PAGE :
          <t:dataScroller .... .... binding="MB.scroll" />

          MANAGE BEAN:
          private HTMLDataScroller scroll = null;

          ....
          ....
          getScroll....
          setScroll...

          ok, now we have the same instance of an object in "front" and "back".
          in my case, when a execute a filter i call the method executeFilter()

          public void executeFilter(){
          ...
          ...
          // this is the function for returning to page 1 in a dataScroller
          scroll.getUIDate.setFirst(0)
          ...
          ...
          }

          I Hope that can help every JSF crazy programmer :P

          bye...
          posted on 2006-06-14 09:37 amp@java 閱讀(2316) 評論(0)  編輯  收藏 所屬分類: JSF
          主站蜘蛛池模板: 油尖旺区| 武川县| 旌德县| 陇西县| 郁南县| 方正县| 榕江县| 舞阳县| 新龙县| 米泉市| 永仁县| 锡林浩特市| 岳西县| 牡丹江市| 攀枝花市| 光山县| 四川省| 泽普县| 奉贤区| 康马县| 合山市| 大庆市| 和龙市| 广东省| 宁海县| 祁阳县| 嵊泗县| 太仆寺旗| 嵩明县| 奈曼旗| 宣汉县| 高碑店市| 蓬溪县| 惠安县| 大港区| 奈曼旗| 左贡县| 湖北省| 陆川县| 偏关县| 济源市|