Hello,
i think the problem is that you used the Object-type Boolean not the
simple-type boolean. For some reason (bug?) it's booleanValue() method
is not called...
I personally never tried using Boolean as persist variables in my pages.
Regards,
Patrick
Hi all
Just trying to clarify my understanding. I had some code that looked like the
following:
@Persist
public abstract Boolean isQuery();
The above code gives me an error, 'no implementation in class', and it took me a
while but I finally figured the problem that the enhanced class was not
identifying the Boolean. It took a while longer for me to realise it was
because I didn't have a valid 'getter'. I had to change the above to:
@Persist
public abstract Boolean getQuery();
Suddenly everything started working!
So, why doesn't the enhanced class identify these boolean style function names.
I thought this was some standard that ALL property functions were fetched using
get* and ALL boolean values fetched using is*.
Question:
1. Should I code all of my booleans using get* in future?
2. How does OGNL now deal with a boolean value returned via a get*? Do I need
to modify my OGNL conditions?
Cheers
mc
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]