[jboss-cvs] jboss-seam/doc/reference/en/modules ...
Peter Muir
peter at bleepbleep.org.uk
Thu Mar 15 08:28:28 EDT 2007
User: pmuir
Date: 07/03/15 08:28:28
Modified: doc/reference/en/modules controls.xml
Log:
s:layoutForm
Revision Changes Path
1.27 +80 -0 jboss-seam/doc/reference/en/modules/controls.xml
(In the diff below, changes in quantity of whitespace are not shown.)
Index: controls.xml
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/doc/reference/en/modules/controls.xml,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -b -r1.26 -r1.27
--- controls.xml 15 Mar 2007 06:21:51 -0000 1.26
+++ controls.xml 15 Mar 2007 12:28:28 -0000 1.27
@@ -448,6 +448,86 @@
<row>
<entry valign="top">
<para>
+ <literal><s:layoutForm></literal>
+ </para>
+ </entry>
+ <entry valign="top">
+ <para>
+<emphasis>Description</emphasis>
+</para>
+ <para>
+ A layout component for producing a "standard" form layout.
+ Each child component will be treated as a row, and if the child is a
+ <literal><s:decorate></literal>, additional formatting will be applied:
+ <itemizedlist>
+ <listitem>
+ <para>
+ Label — if a <literal>label</literal> facet is on the
+ <literal><s:decorate></literal> then it's contents will be used
+ as the label for this field. The labels are rendered right-aligned
+ in a column
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Other text — if a <literal>belowLabel</literal> facet or/and a
+ <literal>belowField</literal> facet are present on
+ <literal><s:decorate></literal> then it's contents will be placed
+ below the label or the field
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Required — if <literal>required="true"</literal> is set
+ on the field, then a ∗ will be prepended to the label. It has the
+ <literal>required</literal> css class applied to it.
+ </para>
+ </listitem>
+ </itemizedlist>
+
+ </para>
+ <para>
+<emphasis>Attributes</emphasis>
+</para>
+ <para>
+ None.
+ </para>
+ <para>
+<emphasis>Usage</emphasis>
+</para>
+ <para>
+ <programlisting>
+<![CDATA[<s:layoutForm>
+ <s:decorate>
+ <f:facet name="label">
+ <h:outputText value="Name" />
+ </f:facet>
+ <h:inputText value="#{person.name}" required="true"/>
+ <f:facet name="belowField">
+ <h:outputText styleClass="help"
+ value="Enter your name as it appears
+ on your passport" />
+ </f:facet>
+ </s:decorate>
+</s:layoutForm>]]></programlisting>
+ </para>
+ <para>
+<emphasis>Output</emphasis>
+</para>
+ <mediaobject>
+ <imageobject role="fo">
+ <imagedata fileref="images/layoutForm-example.png"/>
+ </imageobject>
+ <imageobject role="html">
+ <imagedata fileref="../shared/images/layoutForm-example.png"/>
+ </imageobject>
+ </mediaobject>
+ </entry>
+ </row>
+
+ <row>
+ <entry valign="top">
+ <para>
<literal><s:message></literal>
</para>
</entry>
More information about the jboss-cvs-commits
mailing list