-
1. Re: modal panel problem -
ilya_shaikovsky May 31, 2007 8:10 AM (in response to carlhowarth)It will be usefull to see your page and get info about versions JSF/ RF you've used.
And do not forget to try the latest library version.<ui:define name="body"> <f:verbatim> <a href="javascript:Richfaces.showModalPanel('_panel',{left:'auto', top:'auto'})"> Show Modal Panel </a> </f:verbatim> <rich:modalPanel id="_panel"> <f:facet name="header"> <h:outputText value="test"></h:outputText> </f:facet> <h:form id="mpform"> <a4j:outputPanel ajaxRendered="true"> <h:messages id="error"></h:messages> </a4j:outputPanel> <h:inputText value="#{bean.property}" required="true"></h:inputText> <a4j:commandLink value="click" oncomplete="windowclose();" reRender="test" /> </h:form> </rich:modalPanel> <script type="text/javascript"> //<![CDATA[ function windowclose(){ if (document.getElementById('mpform:error')==null){ Richfaces.hideModalPanel('_panel'); }; }; //]]> </script> <h:form> <h:commandButton action="inputname" value="main"></h:commandButton> </h:form> </ui:define>
For example this code works fine for me. -
2. Re: modal panel problem -
paulo5 Jul 5, 2007 11:04 AM (in response to carlhowarth)I got this problem if I had a clickable row in a rich:dataTable that fired an action listener to register the row clicked and then forwarded to another page to display the detail for that row.
The reason was because I didn't have a tag in my navigation rule in Faces-config.xml
Weirdly, it only produced the javascript error 'ModalPanel is undefined' in IE, not Firefox....
Maybe this will help someone :-) -
3. Re: modal panel problem -
paulo5 Jul 5, 2007 11:05 AM (in response to carlhowarth)Regarding the post above it should say 'redirect' tag
(the chevrons were taken out) -
4. Re: modal panel problem -
paulo5 Jul 5, 2007 11:07 AM (in response to carlhowarth)oh....and also it was an action controller not an action listener :-)
I wish it would let me edit my posts :-) -
5. Re: modal panel problem -
ilya_shaikovsky Jul 6, 2007 6:38 AM (in response to carlhowarth)It would be better to paste simple code example of your use case.