rich:inputNumberSlider and rich:modalPanel
rossma Dec 10, 2008 9:57 AMHi
I am trying to use a rich:inputNumberSlider within a rich:modalPanel. The arrow in the rich:inputNumberSlider doesn't display correctly when the modal panel is shown. It displays in the 0 position even if the value of the rich:inputNumberSlider is set to something else like 50.
The RichFaces version I am using is 3.1.6.GA.
Here is what my jsp page looks like:
<%@page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%> <%@taglib uri="http://java.sun.com/jsf/core" prefix="f"%> <%@taglib uri="http://www.ibm.com/jsf/html_extended" prefix="hx"%> <%@taglib uri="http://java.sun.com/jsf/html" prefix="h"%> <%@ taglib uri="https://ajax4jsf.dev.java.net/ajax" prefix="a4j"%> <%@ taglib uri="http://richfaces.ajax4jsf.org/rich" prefix="rich"%> <html> <head> <title>modal</title> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> </head> <f:view> <body> <rich:modalPanel id="panel" width="350" height="100"> <f:facet name="header"> <h:panelGroup> <h:outputText value="Modal Panel"></h:outputText> </h:panelGroup> </f:facet> <f:facet name="controls"> <h:panelGroup> <h:outputText id="closeOut" style="cursor:pointer" value="Close"></h:outputText> <rich:componentControl for="panel attachTo="closeOut" peration="hide" event="onclick" /> </h:panelGroup> </f:facet> <rich:inputNumberSlider id="modalSlider" value="50" /> </rich:modalPanel> <h:outputLink value="#" id="link"> <h:outputText id="showOut" value="Show Modal" /> <rich:componentControl for="panel" attachTo="link" operation="show" event="onclick" /> </h:outputLink> <rich:inputNumberSlider id="slider" value="50" /> </body> </f:view> </html>
There are two sliders, one inside a modal and the other outside. The one in the modal doesn't display correctly when opened and the one outside of the modal does.
Tested in IE7 and in Firefox 3.0.4. In Firefox the slider does not display correctly just like in IE but if I move my mouse to one of the browsers links than all of a sudden the slider arrow adjusts itself and goes to the position that it should.
I would appreciate your help on this.
thank you,
Ross