Hi all,
I want something that is a cross-between the "ajax" mode rich:tooltip (contents rendered from ajax request) and the rich:dropDownMenu.
Basically, I want to be able to generate menu options dynamically, as required. I would also need the "defaultContent" message which is displayed while waiting for the ajax request.
Is this possible using existing components? I tried using a menu inside a tooltip component but the tooltip automatically closes as soon as the mouse moves off the parent component... I then tried the snapshot of richfaces 3.1.3 as the tooltip has a hideDelay option but I get the following stack trace:
java.lang.NullPointerException
at org.richfaces.component.html.HtmlToolTip.restoreState(HtmlToolTip.java:1046)
at javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:1141)
at javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:1157)
at javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:1157)
at javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:1157)
at org.ajax4jsf.application.AjaxStateManager.restoreView(AjaxStateManager.java:246)
at com.sun.faces.application.ViewHandlerImpl.restoreView(ViewHandlerImpl.java:290)
at org.ajax4jsf.application.ViewHandlerWrapper.restoreView(ViewHandlerWrapper.java:116)
at org.ajax4jsf.application.AjaxViewHandler.restoreView(AjaxViewHandler.java:159)
at com.sun.faces.lifecycle.RestoreViewPhase.execute(RestoreViewPhase.java:141)
at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
Any other suggestions?
Cheers
Cameron