p:dialog is being redered at page load

UI Components for JSF
Post Reply
odelya
Posts: 16
Joined: 01 Jun 2010, 13:11

07 Jun 2010, 10:14

Hi!

I have this dialog:

Code: Select all

<p:dialog header="Enter FirstName" width="300px" widgetVar="dlg" effect="SLIDE">
				<f:facet name="header">
					<h:panelGroup>
						<h:outputText value="Manage Object Roles"></h:outputText>
					</h:panelGroup>
				</f:facet>
				<h:inputHidden id="hiddenObjId"
					value="#{securityManagementBean.selectedObjParam}" required="false"></h:inputHidden></p:dialog>
I see that the dialog is being renered at body loading. i debugged selectObjParam and saw that the compiler reaches it althouhg it shouldn't be displayed.

As well, when javascript dlg.show() is being invoked - it should be re-rendered

Is there a way to go arroung it with out using render and rerender to the dialog?

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

07 Jun 2010, 12:47

Why it shouldn't be rendered anyway? It is a jsf component that is rendered when put on the page. You might configure rendered property for that.

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 39 guests