[prev in list] [next in list] [prev in thread] [next in thread] 

List:       myfaces-user
Subject:    Re: inputSuggestAjax ignoring maxSuggestedItems
From:       "=?ISO-8859-1?Q?Gerald_M=FCllan?=" <gerald.muellan () gmail ! com>
Date:       2007-10-31 10:55:42
Message-ID: 311295120710310355q801ec95gfa05c615e10c97b2 () mail ! gmail ! com
[Download RAW message or body]

Hi,

have a look at the next nightly build, it should work now.

cheers - Gerald

On 10/22/07, BinaryMechanic <binarymechanic@yahoo.co.uk> wrote:
> Hi,
>
> I'm trying to use the inputSuggestAjax control in sandbox snapshot 1.1.7.
> The control is working fine, except that it's ignoring the maxSuggestedItems
> value I'm specifying (1300), and returning the default 200 instead. Here's
> the code :
>
> <s:inputSuggestAjax id="listtest" maxSuggestedItems="1300"
> suggestedItemsMethod="#{searchParamVO.getTestISList}"
> value="#{searchParamVO.testIS}"/>
>
> The getTestISList method is receiving the value 1300 correctly, but my
> return list is still being truncated to the first 200.
>
> I've probably missed something obvious, but InputSuggestAjaxRenderer.java
> seems to break out of the write loop when suggestedCount  >
> DEFAULT_MAX_SUGGESTED_ITEMS, and ignores that I've specified a higher value
> on the control?
>
> Any help would be greatly appreciated. I haven't tried building myfaces
> before, but I guess as a workaround I could increase
> DEFAULT_MAX_SUGGESTED_ITEMS - 200 as a default cutoff seems
> a little low. Although I'm sure people will disagree with sending back 1300,
> I chose the myfaces version of an inputsuggest so users can drop down the
> complete list before typing and ajax kicks in to reduce the list if they
> prefer.
>
> Cheers
>
>  ________________________________
>  For ideas on reducing your carbon footprint visit Yahoo! For Good this
> month.
>
>


-- 
http://www.irian.at

Your JSF powerhouse -
JSF Consulting, Development and
Courses in English and German

Professional Support for Apache MyFaces
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic