This content has been marked as final.
Show 4 replies
-
1. Re: Factory and static
lvdberg May 11, 2011 5:54 PM (in response to edoetsch)Hi,
I don't think it works on a static method. Test this by just removing the static from the method.
Leo
-
2. Re: Factory and static
edoetsch May 12, 2011 10:20 AM (in response to edoetsch)
Leo van den Berg wrote on May 11, 2011 17:54:
Hi,
I don't think it works on a static method. Test this by just removing the static from the method.
LeoThanks for the reply, removing static from the method did not work unfortunately. Is it possibly the conversation scope?
-
3. Re: Factory and static
aareshchanka May 12, 2011 2:06 PM (in response to edoetsch)Select components won't work with arrays, use List.
-
4. Re: Factory and static
edoetsch May 12, 2011 3:34 PM (in response to edoetsch)
Alexandr Areshchanka wrote on May 12, 2011 14:06:
Select components won't work with arrays, use List.I was able to get this to work by moving the @Factory method to another class using SESSION scope. There it looked like:
@Factory("dateLimits") public String[] getDateLimits() { return ContractSearchData.dateLimits; }
Not sure if that was the sole issue. Perhaps the class to which I moved it was instantiated already keeping the problem from occurring.