This content has been marked as final.
Show 3 replies
-
1. Re: ExtendedDataModel and @DataModelSelection
rshan.bob.shanahan.alascorp.com Jan 6, 2009 7:48 PM (in response to rshan.bob.shanahan.alascorp.com)I'd appreciate any clues anyone might have about this.
Thanks.
-
2. Re: ExtendedDataModel and @DataModelSelection
rshan.bob.shanahan.alascorp.com Jan 7, 2009 9:58 PM (in response to rshan.bob.shanahan.alascorp.com)Overriding DataModels works.
@Name("org.jboss.seam.faces.dataModels") @Install(precedence=DEPLOYMENT) @Scope(STATELESS) @BypassInterceptors public class CustomDataModels extends DataModels { @Override public DataModel getDataModel(Object value) { if (value instanceof DataModel) { return (DataModel) value; } else { return super.getDataModel(value); } } }
Odd that this is not supported out of the box.
-
3. Re: ExtendedDataModel and @DataModelSelection
fesb Jan 8, 2009 1:58 PM (in response to rshan.bob.shanahan.alascorp.com)Hi, I already override getDataModel in DataModels. But i have no clue where to put @DataModel and @DataModelSelection using the custom ExtendedDataModel approach. Do you have another conversation component to do that to put those?
@DataModel private PaginateDataModel<Result> results; @DataModelSelection private Result selectedResult;
Because PaginateDataModel is already a conversation bean, where I have
@In EntityManager em;
Please give me some clues