[jboss-user] [JBoss Seam] - Re: Multiple roles and accessing the DataModel

Eekboom do-not-reply at jboss.com
Thu Sep 14 18:49:15 EDT 2006


I think the only way to do this is to create a getter that returns the already wrapped field and then use the "parent" components name , something like

  |    public DataModel getListModel() {
  |     return new ListDataModel(list);
  | 
then #{component1.listModel} and #{component2.listModel} should return the appropriate models.

And yes, there's a bug with selection and index in the same class:
http://jira.jboss.org/jira/browse/JBSEAM-270

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3971760#3971760

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3971760



More information about the jboss-user mailing list