This content has been marked as final.
Show 6 replies
-
1. Re: i can't invoke modal panel by using JSF component
ilya_shaikovsky Jun 29, 2007 1:16 PM (in response to thiagu.m)1) on the button use type="button" or instead of h:commandLink - use h:outputLink
2)about validation on login - look very simple example at http://labs.jboss.com/wiki/ModalPanelValidation -
2. Re: i can't invoke modal panel by using JSF component
thiagu.m Jul 4, 2007 1:30 AM (in response to thiagu.m)Thank u for your replay Mr. ilya_shaikovsky
the second answer is useful to me
but still i have proble in my first qustion, after change my code
i sent my sample code here -
3. Re: i can't invoke modal panel by using JSF component
thiagu.m Jul 4, 2007 1:38 AM (in response to thiagu.m)this is my code
<h:form> <a href="javascript:Richfaces.showModalPanel('mp',{width:450, top:200})">Login</a> //It's work fine <h:commandButton type="button" onClick="javascript:Richfaces.showModalPanel('mp',{width:450, top:200})" value="Login"/> //It's not work proper <h:commandLink onClick="javascript:Richfaces.showModalPanel('mp',{width:450, top:200})" value="Login"/> //It's not work proper <h:outputLink onClick="javascript:Richfaces.showModalPanel('mp',{width:450, top:200})"> <h:outputText value="Login"/> </h:outputLink> //It's not work proper </h:form>
-
4. Re: i can't invoke modal panel by using JSF component
ilya_shaikovsky Jul 4, 2007 8:43 AM (in response to thiagu.m)<a href="javascript:Richfaces.showModalPanel('_panel',{left:'auto', top:'auto'})"> Show Modal Panel </a> <h:commandButton value="Open" type="button" onclick="javascript:Richfaces.showModalPanel('_panel',{left:'auto', top:'auto'})"/> <h:outputLink value="#" onclick="javascript:Richfaces.showModalPanel('_panel',{left:'auto', top:'auto'})">Open</h:outputLink> <rich:modalPanel id="_panel"> <f:verbatim> <a href="javascript:Richfaces.hideModalPanel('_panel')"> Hide Modal Panel 1 </a> </f:verbatim> </rich:modalPanel>
Works as you need for me. -
5. Re: i can't invoke modal panel by using JSF component
ilya_shaikovsky Jul 4, 2007 8:43 AM (in response to thiagu.m)I mean all three controls.
-
6. Re: i can't invoke modal panel by using JSF component
thiagu.m Jul 5, 2007 1:57 AM (in response to thiagu.m)thank u Mr ilya_shaikovsky, your replay is very useful to me.
i made big mistake, i was used 'onClick' instead of 'onclick', when i invoke modal pane. now i am clear about it,
i am not use all of the three component, i am only going to use jsf commandLink , i just ask why it is not work.
Ok Thank u again
By Thiagu