Hi all,

I need also to access and set this var.

Is this possible and can someone give me sample code?

Thanks

 

 

------------------------------------------------------------------------------------

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

 

Reply via email to