This content has been marked as final.
Show 3 replies
-
1. Re: Multiple datamodel in one bean
pmuir May 30, 2006 12:03 PM (in response to gmichalk)It 'attaches' the DataModelSelection(Index) to the correct DataModel. i.e.
@DataModel List searchResults; @DataModelSelection("searchResults") Object searchResult; @DataModel private List questionnairesChoisis; @DataModelSelection("questionnairesChoisi") private Questionnaire qstChoisi;
Note that value is the default attribute for an annotation so you don't need value= -
2. Re: Multiple datamodel in one bean
iradix May 30, 2006 12:09 PM (in response to gmichalk)The value attribute of the @DataModel is the name that it is outjected as. Each @DataModel should have a @DataModelSelection with the same value which will recieve the selected row. If there is only one DataModel/Selection then the value attribute is not necessary for obvious reasons.
Try:
@DataModelSelection(value="questionnairesChoisis")
private Questionnaire qstChoisi;
@DataModel(value="questionnairesChoisis")
private List questionnairesChoisis; -
3. Re: Multiple datamodel in one bean
gmichalk Jun 1, 2006 9:36 AM (in response to gmichalk)Thanks, it works now
Kind regards,
Gerd