This content has been marked as final.
Show 6 replies
-
1. Re: DataModelSelection does not work with PAGE scope
ilya78 Aug 19, 2007 9:35 AM (in response to ilya78)I see in Component.java (injectDataModelSelection method) this code:
if (null!=null) { setFieldValue( bean, null, name, wrapper.getWrappedData(dataModelAnn, dataModel) ); //for PAGE scope datamodels (does not work for properties!) }
so it seems that for PAGE scoped datamodels, there is some code that should be executed and is not... -
2. Re: DataModelSelection does not work with PAGE scope
matt.drees Aug 19, 2007 2:35 PM (in response to ilya78)It looks like that code isn't in cvs anymore; you could try updating and seeing if it works for you.
-
3. Re: DataModelSelection does not work with PAGE scope
pmuir Aug 20, 2007 11:32 AM (in response to ilya78)That code has nothing to do with the datamodelselection (but the datamodel itself). It now does work with properties in CVS.
-
4. Re: DataModelSelection does not work with PAGE scope
ilya78 Aug 23, 2007 11:17 AM (in response to ilya78)I have tested the functionality using a seam-gen'd application using seam 2.0. It still does not work.
I guess it is a bug. -
5. Re: DataModelSelection does not work with PAGE scope
pmuir Aug 28, 2007 9:59 AM (in response to ilya78) -
6. Re: DataModelSelection does not work with PAGE scope
ilya78 Aug 28, 2007 3:06 PM (in response to ilya78)Yes, I have tested myself with h:commandButton, and it works even if the DataModelSelection has no scope specified (and the bean is event scoped).
With s:link it only works if the scope is long running conversation.
Thanks Pete.