Dialog Positioning 3.0 M3

UI Components for JSF
Post Reply
lionel
Posts: 3
Joined: 03 Aug 2011, 02:43

03 Aug 2011, 02:50

I'm having a bit of trouble with the dialog positioning.

Every dialog I use including the ajax loading dialog is not centred on the screen. The dialogs in the labs work as expected so I'm a bit confused. The Ajax loading dialog is my simplest example. It always appears on the right side of the screen and each invocation it moves a little bit more to the right.

Code: Select all

<p:ajaxStatus onstart="statusDialog.show();" onsuccess="statusDialog.hide();"/>

<p:dialog modal="true" widgetVar="statusDialog" header="Status"
    draggable="false" closable="false">
	<p:graphicImage value="#{request.contextPath}/images/ajaxloading.gif" />
</p:dialog>
Any ideas what could be causing this?

Edit: BTW I did try explicitly setting the position="center" and position="100,100" but it had no effect.

lionel
Posts: 3
Joined: 03 Aug 2011, 02:43

24 Aug 2011, 23:32

I think my code was right and there is an issue with how primefaces 3.0-M3 behaves on MyFaces. I changed my app to Mojarra from MyFaces and this issue and another issue I had with selection on a datatable disappeared.

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 44 guests