[JBoss Seam] - Re: Need help updating multi-table dataTable - injecting lis
by dhinojosa
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
18Â years, 8Â months
[JBoss Seam] - Re: 2.0.0 CR2 is out
by pete.muirï¼ jboss.org
"ASavitsky" wrote : 1. Jboss-EL is still CR1 - have there been any changes to it as part of CR2?
Yes, this should have been updated. We plan to establish a separate versioning scheme for JBoss EL soon.
anonymous wrote : 2. Source JARs have incorrect naming - there's an extra dash in there that makes them unrecognizable to Maven("jboss-seam-2.0.0.CR2--sources.jar" vs expected "jboss-seam-2.0.0.CR2-sources.jar")
Oops, fixed in CVS for the next release.
anonymous wrote : 3. Seam UI declares a hard dependency on JSP-API, which makes absolutely no sense if Facelets are used. Shouldn't that one be declared as "provided", just like JSF RI does it?
I've declared it optional as it's just that :)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4092179#4092179
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4092179
18Â years, 8Â months
[JBoss Seam] - Re: Need help updating multi-table dataTable - injecting lis
by asookazian
OK. so I ran the use case again. modified three input fields. clicked the submit button on the JSF.
In the debugger, I have a stop at the first line of the SFSB's submit() method (which is called by submit click in JSF).
The values in the variables tab were appropriately changed to reflect what I had typed in the JSF form.
So I guess I don't have to explicitly inject them with an @In annotation. How is it available, by the way? Via the following code?:
| @DataModel
| private List<Customers> customers;
|
Now when it exec's the em.persist(customers) call in the submit() method, I get the following exception:
| Caused by: java.lang.IllegalArgumentException: Unknown entity: java.util.ArrayList
|
So that means I can't do the update in one em.persist() call? I need to pull out the two entities from the customers List and go from there I guess...
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4092175#4092175
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4092175
18Â years, 8Â months