big-B Boolean uses get/set
little-b boolean uses is/set

you need one of
public abstract Boolean getQuery()
public abstract Boolean getIsQuery()
public abstract boolean isQuery()

-Steve

Murray Collingwood wrote:
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]

Reply via email to