UIViewRoot « Control « JSF Q&A

1. Resetting UIViewRoot    coderanch.com

2. UIViewRoot findComponent    coderanch.com

Well, i'm learning jsf and i like it very much. but i have a background on php programming, with a lot of css and javascript things going on just to enhance the application's look and feel (i like cool interfaces) definitely programming in jsf is very powerful in so many ways than php, but i like having total control on the ...

4. setLocale on UIViewRoot    coderanch.com

5. Custom UIViewRoot and AjaxViewRoot    coderanch.com

6. UiViewRoot - findComponent dont work    coderanch.com

I want to add a class to the input with validation error, so I have created a class that implements PhaseListener, and in the method BeforePhase I do this public void beforePhase(PhaseEvent event) { FacesContext fc = event.getFacesContext(); UIViewRoot root = fc.getViewRoot(); // Iterate over all client ID's with messages. Iterator clientIdsWithMessages = facesContext.getClientIdsWithMessages(); while (clientIdsWithMessages.hasNext()) { String clientIdWithMessages = clientIdsWithMessages.next(); ...