Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » JBoss User Help »

[jboss-user] [JBoss Seam] - Re: seam 1.2.1GA - belowField /
 description facet

scott.stark@jboss.org

2007-07-14


The ui example in Seam2 does this with divs and css. Basically, the idea of s:decorate is to allow you to design your own template for this

<s:decorate template="decorateField.xhtml">
|   <ui:define name="label">Age</ui:define>
|   <ui:define name="description">The age list is an array of primitives</ui:define>
|   <h:selectOneMenu value="#{person.age}">
|   <s:selectItems value="#{ages}" var="age" label="#{age}" />
|     <f:converter converterId="ageConverter" />
|   </h:selectOneMenu>
| </s:decorate>

<div class="entry">
|   <s:label styleClass="label #{invalid?'errors':''}">
|     <ui:insert name="label"/>
|     <s:span styleClass="required" rendered="#{required}">*</s:span>
|   </s:label>
|   <span class="input #{invalid?'errors':''}">
|     <s:validateAll>
|        <ui:insert/>
|     </s:validateAll>
|   </span>
|   <div>
|     <s:message styleClass="error errors"/>
|   </div>
|   <div class="description"><ui:insert name="description" /></div>
| </div>

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4064253#4064253

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4064253
_______________________________________________
jboss-user mailing list
jboss-user@(protected)
https://lists.jboss.org/mailman/listinfo/jboss-user
©2008 junlu.com - Jax Systems, LLC, U.S.A.