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 阅读(2300) 评论(0)  编辑  收藏 所属分类: JSF

只有注册用户登录后才能发表评论。


网站导航: