Wizard and Watermark for required field

UI Components for JSF
Post Reply
jmcollin92
Posts: 145
Joined: 05 Nov 2009, 22:32

16 Mar 2010, 20:18

Hello,

I have a Wizard containing an InputText with Watermark. Like this :

Code: Select all

<h:inputText id="param1" value="#{wizardTestWizardTestForm.param1}" label="#{messages['param1']}:" required="true">
				<p:watermark value="#{messages['param1']}"/>
            </h:inputText>
And when the user ommits the value the required message is not fired.
When suppressing the watermark all is becomming normal.

I know for normal forms we should call : PrimeFaces.cleanWatermarks(); but where to call this in a Wizard step ?

Thank's for your answer.
----
Primefaces 2.0.1-SNAPSHOT
JBoss 6.0.0-M2
Mojorra 2.0.2
---

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

17 Mar 2010, 14:45

We are planning to add javascript event handlers like onnext and onprev to intervene the flow process on client side just like server side flowlisteners.

See: http://code.google.com/p/primefaces/iss ... ail?id=631

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 19 guests