Listener « Control « JSF Q&A

1. Problem in Value Change Listener

HI, I am having a problem in the Value Change Listener. Some times listener is not activated when we are changing the value. Because, it is retaining the old value. We want ...

2. JSF ajax listener

I'm trying to figure out how to log out a user with an f:ajax call using JSF and a backing managed bean. The problem I'm having is that I can't quite ...

3. The f:ajax listener method in h:selectOneMenu is not executed

The page is generated correctly with appropriate values in managed bean, but ajax events in these two h:selectOneMenus don't works. Listener is not called. An error has to be somewhere within ...

5. JSF 2.0 Custom system events and listeners

Is it possible to define custom jsf system events with corresponding Listeners to respond to custom events

6. How to make checkboxes disabled when other checkbox is checked?

help me please! I am novice. I have 3 components of . If the first selectBooleanCheckbox checked then the second and third components should be disabled. And if the first selectBooleanCheckbox ...

7. Ajax Listener event valueChange seems to be firing onClick instead of onChange

I have a nested list of Questions that I'd like to display. Initially, I'm displaying the Level 1 questions and then subquestions are displayed based on the users answers to ...

8. Value Change Listener events being broadcast to all listeners ???

Hi , I have 5 in a jsp , which are calling 5 different event handling methods in the Backing Bean . When I change the value in any of the Select components ( ONLY FOR THE FIRST TIME ) i find that all the 5 event handling methods are invoked , even those that are not associated with the ...

9. Custom listener problem

Hi After removing Sun RI from my web app I got now an error "Unknown lifecycle: DECORATOR_LIFECYCLE". This is the way I created my lifecycle (for handling exceptions - redirection to error page): package mydomain.faces.lifecycle; import javax.faces.context.FacesContext; import javax.faces.event.PhaseListener; import javax.faces.lifecycle.Lifecycle; public class LifecycleDecorator extends Lifecycle { private static org.apache.log4j.Logger LOG = org.apache.log4j.Logger.getLogger(log.Logger.class); private Lifecycle wrapped; public LifecycleDecorator(Lifecycle wrapped) { this.wrapped ...

10. JSF Phase Listener????

package xxx; import javax.faces.application.FacesMessage;import javax.faces.context.FacesContext; import javax.faces.event.PhaseEvent; import javax.faces.event.PhaseId; import javax.faces.event.PhaseListener; public class MyPhaseListener implements PhaseListener { public void beforePhase(PhaseEvent event) { // custom processing here } public void afterPhase(PhaseEvent event) { FacesContext fc = event.getFacesContext(); fc.addMessage(null, new FacesMessage(FacesMessage.SEVERITY_ERROR, "Hello world", "Hello world from phase listener")); } public PhaseId getPhaseId() { return PhaseId.RESTORE_VIEW; } }

12. Value Change Listener

13. Dynamic Ajax-like event listener

Hi, perhaps this question has been asked several times, I googled but couldn't find the answer. Say I have an element and I want to register a listener that would receive events every time the user enters or deletes characters and a way to dynamically set text into some other widget all of this without the user having to ...

14. Using timers with phase listeners

15. Timeout listener

16. Phase-listener not being called

17. Phase listener question

I am having a problem getting my page beans' "init", "preprocess" and "prerender" methods to fire. My page beans are inherited from "" which do have these methods defined. From what I've found, it appears that my problem is a lack of a "phase-listener" in my faces-config.xml file. How should this be configured? If I put in: I ...

18. Value change listener in select one menu

The scenario is: I have a page consisting of SelectOneMenu and different text fields. Based on the values selected from the select one menu, some of the text fields need to be made mandatory. Using onchange = "submit()" will validate other fields also, which I do not want to do at this time. Hence I have used code as shown below ...

19. Help with some type of listener

20. Problem with valuechange listener

21. JSF 2.0 JS API and listeners

22. valuehchange listener, ajax

23. Please help to create Phase Listener

24. phase listeners

26. f:ajax listener not fired

28. Select listener not getting called

I cannot seem to get my tree to call my select listener method. I have tried several different ways to get my listener method called, but none have been successful. The code snippets of what I have tried are below: or or ...

29. Listeners in JSF