myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gerald Müllan" <bierbra...@gmail.com>
Subject Re: inputSuggestAjax - how tu se this stuff?
Date Tue, 23 Jan 2007 13:29:16 GMT
Seems to be a state saving issue, are you using server- or client side
state saving?

The last one didn`t work since a week, so if you switch to current
sandbox and tomahawk svn-head this issue should have gone.

cheers,

Gerald

On 1/23/07, Sorin Silaghi <sorin7486@gmail.com> wrote:
> Hello,
>
>        do you have a solution to this problem ??? ... I really need it...
> thank you ...
>
>
> On 9/29/06, Sławek Sobótka < ssobot@wp.pl> wrote:
> > hi
> >
> > im keep gettin this error mgs when using inpustSuggestAjax:
> >
> > ERROR org.apache.myfaces.lifecycle.PhaseListenerManager -
> Exception in
> > PhaseListener APPLY_REQUEST_VALUES(2) beforePhase.
> > java.lang.NullPointerException: null values not allowed
> >         at
> org.apache.commons.collections.map.AbstractReferenceMap .
> > put(AbstractReferenceMap.java:251)
> >         at org.apache.myfaces.application.jsp.
> >
> JspStateManagerImpl$SerializedViewCollection.add(JspStateManagerImpl.
> > java:717)
> >         at
> org.apache.myfaces.application.jsp.JspStateManagerImpl .
> >
> saveSerializedViewInServletSession(JspStateManagerImpl.java:493)
> > .
> > .
> > .
> >
> > here is my jsp:
> >
> > <f:view>
> > <html><body>
> > <s:inputSuggestAjax id="code"
> > suggestedItemsMethod="#{
> documentSearchBean.getCodesSuggestion}"
> > value="#{documentSearchBean.code}" maxSuggestedItems="10" />
> > </body></html>
> > </f:view>
> >
> > here is my backingbean:
> >
> > public class DocumentSearchBean implements Serializable {
> >         private String code = "";
> >         public List<String> getCodesSuggestion(String prefix, Integer
> > max){
> >                 List<String> result = new ArrayList<String>();
> >                 for (int i = 0; i < max; i++) {
> >                         result.add(prefix + "_" + i);
> >                 }
> >                 return result;
> >         }
> >         public String getCode() {return code;}
> >         public void setCode(String code) { this.code = code;}
> > }
> >
> >
> > what am i do wrong?
> >
> > ----------------------------------------------------
> > Czy naprawdę chciałbyś być na naszym miejscu? Kampania Parkingowa:
> >
> http://klik.wp.pl/?adr=http%3A%2F%2Fadv.reklama.wp.pl%2Fas%2Fd19.html&sid=883
> >
> >
> >
>
>
>
> --
> Don't talk it, Walk it!


-- 
http://www.irian.at

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

Professional Support for Apache MyFaces
Mime
View raw message