Password confirmation is a common case and PrimeFaces has a simple feature to make it easy for page authors.
<h:outputLabel for="pwd1" value="Password 1: *" />
<p:password id="pwd1" value="#{passwordBean.password6}" feedback="false" match="pwd2" label="Password 1" required="true"/>
<h:outputLabel for="pwd2" value="Password 2: *" />
<p:password id="pwd2" value="#{passwordBean.password6}" feedback="false" label="Password 2" required="true"/>
The match attribute does the trick, if the two inputs are not same, a validation exception is thrown;

Perfect!
Cagatay, could you remind, how have you managed to create red borders in cases of validation error? Is this the built-in PF functionality or you used JSF component listeners as you did for labels?
Thanks.
Gooooood!
Anton, red borders came from theme aware .ui-state-error style class which almost all PrimeFaces input components apply to themselves when they are invalid so it is built-in feature of PF.
Brilliant, just cannot wait until 3.0 release
Cagatay, could you take a look into this? http://code.google.com/p/primefaces/issues/detail?id=2697&thanks=2697&ts=1319639016
This is a small patch to maven jsf plugin, which allows it to be used outside PF. I could write the wiki about jsf components generation after this.
Thanks
Awesome! More features to save time!
best work at all.
Thanks for your hard work.
Thanks alot for your efforts. Hopefully you guys are fine after the earthquake.
anyone can give some document for create custom component base on primefaces?
That is really awesome, PrimeFaces keeps getting better and better!!!!
this is very good help for begginers , nice work pf team
continue like this !
great