<pre><code>
&lt;h:panelGrid columns="2"&gt;

    &lt;h:outputText value="Password" /&gt;  
    &lt;h:inputSecret id="password1" value='#{backingBean.password1}'&gt;
        &lt;f:validateBean validationGroups="PasswordValidationGroup" /&gt;
    &lt;/h:inputSecret&gt;
    
    &lt;h:outputText value="Password again" /&gt; 
    &lt;h:inputSecret id="password2" value='#{backingBean.password2}'&gt;
        &lt;f:validateBean validationGroups="PasswordValidationGroup" /&gt;
    &lt;/h:inputSecret&gt;
    
&lt;/h