also I changed the query on the code snippet.  What that means is you can 
change your page to:

  | <h:form>            
  |                      
  |                              <h:dataTable value="#{customers}" 
var="customer"
  |                                                              
bgcolor="#F1F1F1" border="10" width="100%" cellpadding="0" cellspacing="0" 
  |                                                              dir="LTR" 
frame="hsides">                
  |                                             <h:column>
  |                                                     <f:facet 
name="header">First Name</f:facet>                     
  |                                                     
  |                                                     <h:outputText 
value="#{customer.firstName}"/>
  |                                             </h:column>
  |                                             
  |                                             <h:column>
  |                                                     <f:facet 
name="header">Last Name</f:facet>
  |                                                     
  |                                                     <h:outputText 
value="#{customer.lastName}"/>
  |                                             </h:column>
  |                                             
  |                                             <h:column>
  |                                                     <f:facet 
name="header">Street Name</f:facet>
  |                                                     <h:outputText 
value="#{customer.streetName}"/>
  |                                             </h:column>
  |                                             
  |                                             <h:column>
  |                                                     <f:facet 
name="header">CC #</f:facet>                   
  |                                                     
  |                                                     <h:inputText 
value="#{customer.creditCard.creditcardnumber}"/>
  |                                             </h:column>
  |                                             
  |                                             <h:column>
  |                                                     <f:facet 
name="header">Company Name</f:facet>
  |                                                     
  |                                                     <h:inputText 
value="#{customer.creditCard.companyname}"/>
  |                                             </h:column>
  |                                             
  |                                             
  |                                     </h:dataTable>
  |                                     
  |                                     <h:commandButton value="submit" 
action="#{customerAction.update}"/> 
  |     </h:form>       
  | 
  | 
  | 

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4092181
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to