[jbossseam-issues] [JBoss JIRA] Commented: (JBSEAM-1895) Allow @DataModelSelection annotation to be used without accompanying @DataModel annotation

Norman Richards (JIRA) jira-events at lists.jboss.org
Sun Sep 16 18:27:10 EDT 2007

    [ http://jira.jboss.com/jira/browse/JBSEAM-1895?page=comments#action_12377054 ] 
Norman Richards commented on JBSEAM-1895:

Pete's suggestion on the forums seemed reasonable.  I'm not against the idea here, but it seems like it might be a good bit of work trying to match up datamodels with datamodelselections.  If some EL magic solves the problem, why not go that route?

> Allow @DataModelSelection annotation to be used without accompanying @DataModel annotation
> ------------------------------------------------------------------------------------------
>                 Key: JBSEAM-1895
>                 URL: http://jira.jboss.com/jira/browse/JBSEAM-1895
>             Project: JBoss Seam
>          Issue Type: Feature Request
>         Environment: CVS based Seam 
>            Reporter: Wolfgang Schwendt
>            Priority: Optional
> At present a @DataModelSelection annotation (and similarly @DataModelSelectionIndex) can ONLY be used in a component when there is also an accompanying @DataModel annotation placed on a field or getter method of the same component.   The method getDataModelSelectionName() of org.jboss.seam.Component enforces this requirement.  However, it would be very useful if the @DataModelSelection annotation could also be used in a component which doesn't expose a DataModel via @DataModel.  It would allow the programmer to handle a data model selection in a different backing bean than the backing bean which exposed the DataModel, or put in other words, separate the data model generation from the selection event handling.
> If there are conceptual reasons against doing this, please document them in the Seam documentation.
> Workaround at present: Rather than using @DataModelSelection, inject the DataModel with "@In" into the component that should process the selection and get access to the selected row and selectionIndex via the injected DataModel.

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


More information about the seam-issues mailing list