This content has been marked as final.
Show 4 replies
-
1. Re: DataModel and DataModelSelection
wschwendt Sep 3, 2007 9:42 AM (in response to wschwendt)"wschwendt" wrote:
If not, we cannot really leverage the org.jboss.seam.framework package, if DataModel selection should be handled.
as a workaround, of course, the DataModel itself can be injected into an action component with "@In" instead of injecting the DataModelSelection with @DataModelSelection. Then, if we have access to the DataModel, we can get the selected row data and selected index.
Nevertheless, I'd like to know the reason for the requirement that @DataModelSelection can only be used if there is an accompanying @DataModel annotation in the same component. -
2. Re: DataModel and DataModelSelection
matt.drees Sep 3, 2007 10:49 AM (in response to wschwendt)Yeah, I've wanted this too. Often I'll have a search/listing page with delete buttons on each row. But I want to do the delete action in a different backing bean than the search backing bean, which has the @DataModel.
-
3. Re: DataModel and DataModelSelection
wschwendt Sep 3, 2007 12:35 PM (in response to wschwendt)opened a fresh JIRA case
http://jira.jboss.com/jira/browse/JBSEAM-1895 -
4. Re: DataModel and DataModelSelection
pmuir Sep 3, 2007 1:07 PM (in response to wschwendt)N.B. You can do
@In("#{dataModel.rowData}") private Foo selectedFoo;
anywhere in Seam.