Re: argument type mismatch when setting property with updateActionListener

2007-05-31 Thread gazlm
gating. > > public Number getPageNumber() { return new Integer(getPageNum()); } > public void setPageNumber(Number number) { setPageNum(number.intValue()); > } > > > On 5/31/07, gazlm <[EMAIL PROTECTED]> wrote: >> >> Cheers, Mike, that eases my confus

Re: argument type mismatch when setting property with updateActionListener

2007-05-31 Thread gazlm
p appreciated. Cheers, Mike Kienenberger wrote: > >> Is it expected behaviour for an EL arithmetic expression to always return >> a >> Long? > > Yes. Or a Double if the value cannot be represented as a Long. > > > > On 5/31/07, gazlm <[EMAIL PR

argument type mismatch when setting property with updateActionListener

2007-05-31 Thread gazlm
I have a problem with type conversions when using updateActionListener to set an int property in a backing bean... I'm using a bean which has properties pageNum and numPages, and I have command links that refresh the page, with an updateActionListener changing the value of the pageNum property.