we would like to write a class that checks each page to see if it contains anHTMLDataTable. In that class we would like to get the tables id and set the row value to Max value when a button is clicked.
These pages can have multiple datatables that have different names AND they also have multiple jsp includes on them that have datatables.
we have used a phase listener at RENDER_RESPONSE (before&after) and only get 2 components then an index out of bounds error when FacesContext.getCurrentInstance().getViewRoot().getChildren().get(i) is used in a for loop.
can someone help us with this???
Surround yourself with learners...They will educate you!
Side note: in the first call the UIViewRoot is empty (even after the Render Response!) and therefore the PhaseListener cannot accomplish his task. During the calls/refreshes/actions/whatever afterwards the PhaseListener does his task. I'm still unsure why this is the case. [ October 19, 2006: Message edited by: Bauke Scholtz ]