You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Yee CN <ye...@streamyx.com> on 2005/11/21 17:22:46 UTC

DataScroller: possible to set pageIndexVar?

Hi,

 

I am trying to reset the pageIndexVar of a dataScroller - something like to
following:

 

FacesContext context = FacesContext.getCurrentInstance();

UIViewRoot view = context.getViewRoot();

 

HtmlInputText input = (HtmlInputText)
view.findComponent("myForm:scroll_1:pageIndexVar");

input.setValue(1);

 

 

It gives the following exception:

java.lang.IllegalArgumentException: Intermediate identifier scroll_1 in
search expression scroll_1:pageIndexVar identifies a UIComponent that is not
a NamingContainer

 

 

Is it possible to do something like this?

 

Many thanks in advance.

Yee