-
1. Re: StackOverflowError with <a4j:actionParam> RF 3.3.1
jdsuboy Mar 25, 2009 11:49 AM (in response to julienc)do you have any circular references in your objects?
Objects can get serialized as well as their properties, so if you have an object with a property that has a reference to an object that refers back to your property (phew), then you will get a stack overflow because it will try and serialize your property, which will then serialize the object that refers back to your object, which will then serialize your property, and round and round we go.
I had this same problem with data in my treeNode. It had a property that referred to its containing treeNode and I would get stack overflows. -
2. Re: StackOverflowError with <a4j:actionParam> RF 3.3.1
julienc Mar 25, 2009 12:14 PM (in response to julienc)Yes, with @oneTomany and @manyToone ...
-
3. Re: StackOverflowError with <a4j:actionParam> RF 3.3.1
julienc Mar 25, 2009 12:53 PM (in response to julienc)How do you solve it ? without delete circular references ?
-
4. Re: StackOverflowError with <a4j:actionParam> RF 3.3.1
nbelaevski Mar 25, 2009 12:58 PM (in response to julienc)You can define converter for a4j:actionparam.
-
5. Re: StackOverflowError with <a4j:actionParam> RF 3.3.1
julienc Mar 25, 2009 1:07 PM (in response to julienc)can you more explain plz ? A converter to do what ?
-
6. Re: StackOverflowError with <a4j:actionParam> RF 3.3.1
nbelaevski Mar 25, 2009 1:27 PM (in response to julienc)To convert #{bean.myvalue} to String back and forth. a4j:actionparam encodes value to the client and then receives it as request parameter value.
-
7. Re: StackOverflowError with <a4j:actionParam> RF 3.3.1
julienc Mar 26, 2009 9:02 AM (in response to julienc)Ok thank you.
Finally. i use <A4j:actionParam actionListener="#{bean.mylistener}"> for the actionListener with value="" and assignTO="#{bean.tmp}"
and <f:setPropertyActionListener value="#{value}"
target="#{bean.valueSelected}" />