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

pete.muir@jboss.org do-not-reply at jboss.com
Sat Jul 14 16:34:01 EDT 2007


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



More information about the jboss-user mailing list