[
http://jira.jboss.com/jira/browse/JBSEAM-1287?page=all ]
Gavin King closed JBSEAM-1287.
------------------------------
Fix Version/s: 1.3.0.BETA1
Resolution: Done
Assignee: Gavin King
OK, suppose we have:
<h:dataTable value="#{customerQuery.dataModel}" var="customer">
...
</h:dataTable>
Did you try using:
@In("#{customerQuery.dataModel.rowData}")
Customer customer;
Or, in CVS, you can try the following:
@In("#{customerQuery.dataModelSelection}")
Customer customer;
Does that work for you?
Enable support for DataModelSelection when used with entiy-query
----------------------------------------------------------------
Key: JBSEAM-1287
URL:
http://jira.jboss.com/jira/browse/JBSEAM-1287
Project: JBoss Seam
Issue Type: Feature Request
Components: Framework
Reporter: Brian Smith
Assigned To: Gavin King
Fix For: 1.3.0.BETA1
It would be nice to be able to match up a DataModelSelection with a DataModel that is
provided by an entity-query. As of now a deployment error is thrown.
Use Case: If a data table is driven by an entity-query, the only way currently to select
a row is by passing the var using the Extended EL Seam provides. The extended EL is not
compatible with some component libraries (Trinidad) and it is very ugly to go through
component bindings to get the current value of the selected row. It would be nice to hook
a DataModelSelection to the entity-query.
Something like this
-components.xml-
<framework:entity-query name="allUsers"
ejbql="select u from User u"/>
-facelets page-
[code]
<tr:table id="user_table" value="#{allUsers}"
var="user">
<tr:column id="user_column">
<f:facet name="header">
<tr:outputText id="user_header"
value="Customer"/>
</f:facet>
<tr:commandLink id="user_link"
text="#{useruserName}" actionListener="#{attachUser.done}"/>
</tr:column>
</tr:table>[
/code]
-Seam Bean-
@DataModelSelection("allUsers")
List <User> userList;
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira