[jboss-user] [JBoss Seam] - s:selectDate in datatable

shakenbrain do-not-reply at jboss.com
Sat May 26 12:50:20 EDT 2007


Is it possible to use the s:selectDate component in a datatable?  If so, how does one populate the "for" attribute?

<rich:dataTable id="fundings" value="#{fundings}" var="f">
  |   <rich:column>
  |     <f:facet name="header">
  |       <h:outputText value="#{messages.ReceivedDate}"/>
  |     </f:facet>
  |     <h:inputText id="startDate" value="#{f.receivedDate}" size="10" required="true">
  |       <s:convertDateTime pattern="MM/dd/yyyy"/>
  |     </h:inputText>
  |     <s:selectDate for="???" dateFormat="MM/dd/yyyy" startYear="2007" endYear="2010">
  |       <h:graphicImage url="img/dtpick.gif" style="margin-left:5px;cursor:pointer"/>
  |     </s:selectDate>
  |   </rich:column>
  |   <rich:column>
  |     <f:facet name="header">
  |       <h:outputText value="#{messages.Amount}"/>
  |     </f:facet>
  |     <h:inputText id="amount" value="#{f.amount}" size="8" required="true"/>
  |   </rich:column>
  | </rich:dataTable>

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

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



More information about the jboss-user mailing list