Password feedback in wrong location

UI Components for JSF
Post Reply
laurens
Posts: 14
Joined: 21 Jul 2011, 16:19

19 Aug 2011, 16:00

Hello,

I have recently decided to give PrimeFaces 3.0.M2 a try to get around the unsupported carousel in IE. I have encountered a slight, although not in any way breaking, problem of which I am not sure it is my fault or a bug. I have the following dialog inside a layout:

Code: Select all

<p:dialog widgetVar="registrationForm" modal="true" header="Sign up"
                  resizable="false" appendToBody="true"
                  rendered="#{!authenticationController.isAuthenticated()}">
            <h:form>
                <h:panelGrid columns="2">
                    <h:outputText value="First name:" />
                    <p:inputText />
                    <h:outputText value="Last name:" />
                    <p:inputText />
                    <h:outputText value="E-mail:" />
                    <p:inputText />
                    <h:outputText value="Password:" />
                    <p:password />
                    <h:outputText />
                    <p:commandButton value="Sign up" />
                </h:panelGrid>
            </h:form>
        </p:dialog>
Instead of rendering the password feedback dialog next to the control however (which is perfectly centered in the screen), it is rendering it in the upper left-hand corner of the browser:

Image

Does this seem like something I need to fix on my end or is this a bug in the new PrimeFaces release?

Many thanks!
Java EE 6, JSF 2.0, PrimeFaces 3.0.M2, GlassFish Server 3.1 (Mojarra 2.1)

smallya
Posts: 264
Joined: 19 Mar 2010, 19:22
Contact:

19 Aug 2011, 18:53

Given the layout and display on a dialog you might be better served setting the "inline=true" setting for p:password and having display of feedback come just below the input field.

If you want it on the side, you might want to increase the width of the dialog so as to fit the feedback.
Netbeans 7.2| GlassFish 3.2 | PostgreSQL 9.1| MongoDB | Primefaces 3.4.2
_______________________________________________________________
Subraya Mallya
http://tinyhabit.com |http://twitter.com/tinyhabit

laurens
Posts: 14
Joined: 21 Jul 2011, 16:19

24 Aug 2011, 08:52

Hi smallya,

Thanks! The width did indeed not allow the feedback dialog to be displayed properly. I made it wider at that fixed it, although I looks awkard when the feedback dialog is nog visible and I ended up settling for a separate page instead of a dialog for registration.

Cheers!
Java EE 6, JSF 2.0, PrimeFaces 3.0.M2, GlassFish Server 3.1 (Mojarra 2.1)

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

24 Aug 2011, 08:56

Known issue, you need to use inline feedback until this is fixed.

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 53 guests