-
1. Re: Factory annotation
jazir1979 Apr 23, 2008 1:18 AM (in response to harpritt)Hi,
In the examples I've seen on the docs, @Factory on a void method is only used when annotating the member variable as a @DataModel, never with @Out.
For what you are doing, all of the examples use the pattern where the method returns the value. You've already said that approach works - so why not just use it?
Daniel.
-
2. Re: Factory annotation
harpritt Apr 23, 2008 1:23 AM (in response to harpritt)Datamodel is just an @Out wrapped for clickable rows.
dude .... does Outjection work on Pojo's?
lol... is this a homer moment
-
3. Re: Factory annotation
shane.bryzak Apr 23, 2008 3:07 AM (in response to harpritt)You're assigning to a local variable, not the instance variable:
ArrayList genderList = new ArrayList<String>();
-
4. Re: Factory annotation
harpritt Apr 23, 2008 9:29 AM (in response to harpritt)Arrgggggg flipping hell!!!
Hey Shane! cheers man.... a real homer momment!
Sorry dude... hey Daniel cheer for your pointer as well.
I spent 2.5 hrs trying to work out what i was doing wrong...
Shane Bryzak wrote on Apr 23, 2008 03:07 AM:
You're assigning to a local variable, not the instance variable:
ArrayList genderList = new ArrayList<String>();
Click HELP for text formatting instructions. Then edit this text and check the preview.
-
5. Re: Factory annotation
harpritt Apr 23, 2008 12:04 PM (in response to harpritt)Sorted!
i forgot to add required is false to my Outjected component
Out(required=false )
Does Datamodel do this by default?