Skip to content

Instantly share code, notes, and snippets.

@bleathem
Created February 16, 2012 17:56
Show Gist options
  • Select an option

  • Save bleathem/1846732 to your computer and use it in GitHub Desktop.

Select an option

Save bleathem/1846732 to your computer and use it in GitHub Desktop.
<h:form>
<cody:decorate label="input1">
<h:inputText id="input1" value="#{myBean.value}" required="true" requiredMessage="Username is Required" styleClass="input" size="30" />
</cody:decorate>
<cody:decorate label="input2">
<h:inputText id="input2" value="#{myBean.value1}" required="true" requiredMessage="Password is Required" styleClass="input" size="30" />
</cody:decorate>
<div class="mine-basic">
<h:outputLabel for="mine" value="My Label"/>
<h:inputText id="mine" value="#{myBean.value2}" required="true" requiredMessage="Password is Required" styleClass="input" size="30" />
<h:message for="mine" />
</div>
<div class="rich-basic">
<h:outputLabel for="rich" value="My Label"/>
<h:inputText id="rich" value="#{myBean.value3}" required="true" requiredMessage="Password is Required" styleClass="input" size="30" />
<rich:message for="rich" />
</div>
<h:commandButton value="submit" />
</h:form>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment