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
          主站蜘蛛池模板: 河曲县| 宽甸| 东丰县| 彝良县| 绥阳县| 台山市| 航空| 德庆县| 汉沽区| 阿拉善左旗| 邵阳县| 兴山县| 永城市| 永安市| 福州市| 广丰县| 海口市| 随州市| 白朗县| 金沙县| 绵竹市| 吴江市| 河北区| 奇台县| 九龙县| 三门峡市| 通化市| 阳新县| 科尔| 河曲县| 喜德县| 车险| 梁山县| 浦北县| 灵武市| 澳门| 龙川县| 榆树市| 明光市| 崇仁县| 崇阳县|