HTML and CSS Reference
In-Depth Information
<h:selectOneMenu value="#{example.outputTag}">
<f:selectItem itemValue="p" itemLabel="Paragraph" />
<f:selectItem itemValue="ul" itemLabel="Unordered List" />
</h:selectOneMenu>
<h:inputText value="#{example.count}">
<f:convertNumber integerOnly="true" />
</h:inputText>
<h:inputText value="#{example.minWords}">
<f:convertNumber integerOnly="true" />
</h:inputText>
<h:inputText value="#{example.maxWords}">
<f:convertNumber integerOnly="true" />
</h:inputText>
<h:commandButton value="Generate">
<f:ajax render=":rt1" execute="@form" />
</h:commandButton>
</h:panelGrid>
</h:form>
<rt:randomtext id="rt1"
textType="#{example.textType}"
outputTag="#{example.outputTag}"
count="#{example.count}"
minWords="#{example.minWords}"
maxWords="#{example.maxWords}" />
</h:body>
</html>
Example outputs when clicking the Generate button can be seen in Figure 6-7 and Figure 6-8 .
Search WWH ::




Custom Search