[jboss-user] [JBoss Seam] - Re: s:convertEnum usage

hstang do-not-reply at jboss.com
Thu May 17 12:45:12 EDT 2007


Example from seam-pay (in cvs)

  | <h:selectOneRadio id="radioList" 
  |                   layout="lineDirection"
  |                   value="#{newPayment.paymentFrequency}">
  |     <s:convertEnum />
  |     <s:enumItem enumValue="ONCE"         label="Only Once" />
  |     <s:enumItem enumValue="EVERY_MINUTE" label="Every Minute (testing)" />
  |     <s:enumItem enumValue="HOURLY"       label="Every Hour (testing)" />
  |     <s:enumItem enumValue="DAILY"        label="Every Day" />
  |     <s:enumItem enumValue="WEEKLY"       label="Every Week" />
  |     <ui:remove>
  |         <f:selectItems value="#{newPayment.frequencies}" />
  |     </ui:remove>
  | </h:selectOneRadio>
  | 

and example from seam-ui


  | <h:selectOneMenu value="#{person.honorific}">
  |   <s:selectItems value="#{honorifics}" var="honorific" label="#{honorific.label}" noSelectionLabel="Please select" />
  |   <s:convertEnum />
  | </h:selectOneMenu>
  | 

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

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4046554



More information about the jboss-user mailing list