This content has been marked as final.
Show 3 replies
-
1. Re: dynamically created modal panel and show it
ilya_shaikovsky Feb 10, 2009 9:53 AM (in response to santon2000)MP call should include form id if you not using rich:component or rich:clientId functions.
-
2. Re: dynamically created modal panel and show it
ilya_shaikovsky Feb 10, 2009 9:54 AM (in response to santon2000)and by the way. Nothing reREndered - so your created panel exist only at component tree on server side but not at DOM on the client.
-
3. Re: dynamically created modal panel and show it
santon2000 Feb 10, 2009 10:19 AM (in response to santon2000)"ilya_shaikovsky" wrote:
MP call should include form id if you not using rich:component or rich:clientId functions.
When press "Show3" - nothing, reRender - nothing,
setting form_name:modal_panel_id - nothing .
Or syntax error in jsp?
Also tested when modal panel attach as children to then viewRoot.
JSP<body> <h:form id="main_form"> <a4j:status startText="In progress..." stopText="Complete"> </a4j:status> <a4j:commandButton value="create" actionListener="#{TEST5RSBean.processCreateEvent}" /> <a4j:commandButton value="create2" actionListener="#{TEST5RSBean.processCreateEvent2}" /> <a4j:commandButton id="b1" value="show" reRender="mp_id"> <rich:componentControl for="main_form:mp_id" attachTo="b1" operation="show" event="onclick"/> </a4j:commandButton> <a4j:commandButton value="show2" reRender="main_form:mp_id" oncomplete="javascript:Richfaces.showModalPanel('main_form:mp_id');"/> <a4j:commandButton value="show3" reRender="mp_id" oncomplete="javascript:rich:component('mp_id').show();"/> </h:form> </body>