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 閱讀(2311) 評論(0)  編輯  收藏 所屬分類: JSF
          主站蜘蛛池模板: 霍林郭勒市| 沂源县| 运城市| 沁源县| 格尔木市| 宝应县| 齐齐哈尔市| 台中市| 甘谷县| 额敏县| 凤凰县| 凤翔县| 苗栗市| 遂平县| 北宁市| 普兰县| 邹平县| 石林| 洛宁县| 汤原县| 南江县| 隆化县| 安溪县| 定结县| 黑河市| 淮安市| 乐昌市| 金堂县| 徐水县| 常州市| 金华市| 临清市| 原阳县| 烟台市| 周口市| 高淳县| 清苑县| 通江县| 莱阳市| 南和县| 随州市|