Render glitch when using <p:confirmDialog>

UI Components for JSF
Post Reply
Sanhi
Posts: 6
Joined: 03 Feb 2010, 16:51

05 Feb 2010, 16:40

Hi,

When using <p:confirmDialog> in a context that is under Partial response update, you'll see a small glitch when the section refreshes. For example:

Code: Select all

	<p:panel id="customerDetails" header="Details" toggleable="true" toggleSpeed="500">
		<p:messages showDetail="true"/>
		<h:panelGrid rendered="#{!editCustomerController.editMode}" columns="2">
			<h:outputText value="* Name:"/>
			<h:outputText value="#{editCustomerController.current.name}"/>
		</h:panelGrid>
		<h:panelGrid rendered="#{editCustomerController.editMode}" columns="2">
			<h:outputText value="* Name:"/>
			<h:inputText value="#{editCustomerController.current.name}" size="50" required="true"/>
		</h:panelGrid>
		<p align="right">
			<p:commandButton update="customerDetails,customerTable" styleClass="button-blue" rendered="#{editCustomerController.canDelete}" value="Delete" actionListener="#{editCustomerController.delete}">
				<p:confirmDialog message="Delete the selected Customer?" severity="warn"/>
			</p:commandButton>
		</p>
	</p:panel>
Above is a construct I rely on heavily throughout my application. The form supports a read-only mode and a edit mode. In Edit mode certain controls, like save and cancel are updated in the Partial Render response. (With the use of the Rendered property). Included in this render response in the <p:confirmDialog> which appears briefly when the response is rendered. Resulting in a jerky panel and jumping controls.

Is this something that is fixable, or should i take a different approach here?

Thanks,

Sander

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 7 guests