You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by Travis Reeder <tr...@gmail.com> on 2005/11/03 19:23:00 UTC

Re: inputSuggestAjax

I'm just wanting to follow up to see if anybody has looked at how to
fix the FINE: No serialized view found in server session! problem?

Travis

On 10/27/05, Mathias Brökelmann <mb...@googlemail.com> wrote:
> use RendererUtils.SEQUENCE_PARAM or "jsf_sequence"
>
> 2005/10/27, Travis Reeder <tr...@gmail.com>:
> > The not finding the session in view problem is happening on non-ajax
> > pages as well when using server side state.
> >
> > If you let me know what parameter should be sent for the sequence
> > number I can try it out.
> >
> > Travis
> >
> > On 10/27/05, Mathias Brökelmann <mb...@googlemail.com> wrote:
> > > I currently don´t know how ajax is working in detail. To find the
> > > serialized view in the server session it is necessary that the
> > > introduced sequence number is being send in the ajax request, which
> > > meight not be the case. I will take a closer look into that.
> > >
> > > 2005/10/25, Travis Reeder <tr...@gmail.com>:
> > > > Actually come to think of it, it shows those messages in every jsf page even
> > > > on refresh!  This is a fairly new occurence, because the dataTable worked
> > > > fine last week in our application, but with the latest trunk build it has
> > > > this recurring page effect.  This must have something to do with mbr's
> > > > checkin on 10/20 where he changed a bunch of the server side state saving
> > > > mechanisms.
> > > >
> > > >  Mathias, any idea?
> > > >
> > > >  BTW, this seems like a blocker bug to me against making a release.
> > > >
> > > >  Travis
> > > >
> > > > On 10/25/05, Travis Reeder <tr...@gmail.com> wrote:
> > > > > Hi Sean,
> > > > >
> > > > > Is this a fix as of yesterday?  There were issues yesterday with the Ajax
> > > > components when using server side state saving.  Namely
> > > > autoUpdateDataTable.jsp didn't work, it repopulates the entire page inside
> > > > the table so you get this nice infinite recurring page inside a page inside
> > > > page effect.  ;)
> > > > >
> > > > > And this is what shows in the logs which I presume is the reason:
> > > > >
> > > > > Oct 25, 2005 10:52:58 AM
> > > > org.apache.myfaces.application.jsp.JspStateManagerImpl
> > > > restoreTreeStructure
> > > > > FINE: No serialized view found in server session!
> > > > > Oct 25, 2005 10:52:58 AM
> > > > org.apache.myfaces.lifecycle.LifecycleImpl restoreView
> > > > > FINE: exiting restoreView in
> > > > org.apache.myfaces.lifecycle.LifecycleImpl (--> render
> > > > response)
> > > > >
> > > > > Travis
> > > > >
> > > > >
> > > > >
> > > > > On 10/25/05, Sean Schofield < sean.schofield@gmail.com> wrote:
> > > > > > OK I double checked and I was the one to apply the patch
> > > > > > (MYFACES-643.)  Its a bit confusing because Chris has several patches
> > > > > > for that component since we are trying to use it here at work and not
> > > > > > all of the patches have been applied yet.
> > > > > >
> > > > > > So server-side state saving now works (on the trunk.)  I think someone
> > > > > > mentioned that it didn't and that's what got me all confused about the
> > > > > > patch.
> > > > > >
> > > > > > sean
> > > > > >
> > > > > > On 10/25/05, Martin Marinschek < martin.marinschek@gmail.com> wrote:
> > > > > > > ---------- Forwarded message ----------
> > > > > > > From: Martin Marinschek < martin.marinschek@gmail.com>
> > > > > > > Date: Oct 25, 2005 9:56 AM
> > > > > > > Subject: Re: inputSuggestAjax
> > > > > > > To: Sean Schofield <se...@gmail.com>
> > > > > > >
> > > > > > >
> > > > > > > Well,
> > > > > > >
> > > > > > > you've got a confused young man here, so no luck ;)
> > > > > > >
> > > > > > > I've just checked the sources, though, and I find:
> > > > > > >
> > > > > > >    if
> > > > (context.getApplication().getStateManager().isSavingStateInClient(context))
> > > > > > >         {
> > > > > > >             out.writeText("', {\n" +
> > > > > > >                           "      method:       'post',\n" +
> > > > > > >                           "      asynchronous: true,\n" +
> > > > > > >                           "      parameters: '',\n"+
> > > > > > >                           "      callback: function(element,entry)
> > > > > > > {return
> > > > entry+'&jsf_tree_64='+encodeURIComponent(document.getElementById('jsf_tree_64').value)+'&jsf_state_64='+encodeURIComponent(document.getElementById('jsf_state_64').value)+'&jsf_viewid='+encodeURIComponent(document.getElementById
> > > > ('jsf_viewid').value)}"
> > > > > > > +
> > > > > > >                           "    })",null);
> > > > > > >         }
> > > > > > >         else
> > > > > > >         {
> > > > > > >             out.writeText("', {\n" +
> > > > > > >                           "      method:       'post',\n" +
> > > > > > >                           "      asynchronous: true,\n" +
> > > > > > >                           "      parameters: '',\n" +
> > > > > > >                           "      callback: function(element,entry)
> > > > > > > {return entry}" +
> > > > > > >                           "    })", null);
> > > > > > >         }
> > > > > > >
> > > > > > > sounds like server side state saving should work, at least in the
> > > > > > > current head, right?
> > > > > > >
> > > > > > > regards,
> > > > > > >
> > > > > > > Martin
> > > > > > >
> > > > > > > On 10/24/05, Sean Schofield < sean.schofield@gmail.com> wrote:
> > > > > > > > @Martin
> > > > > > > >
> > > > > > > > When was this resolved?  I had a patch for this but now I can't
> > > > > > > > remember if I applied it or someone else did.  Please help a
> > > > confused
> > > > > > > > old man ... :-)
> > > > > > > >
> > > > > > > > sean
> > > > > > > >
> > > > > > > > On 10/21/05, Martin Marinschek < martin.marinschek@gmail.com> wrote:
> > > > > > > > > Do you use client-side or server-side state saving?
> > > > > > > > >
> > > > > > > > > Try switching to client-side state saving, it should work then.
> > > > > > > > >
> > > > > > > > > InputSuggestAjax didn't work with server side state saving until a
> > > > while ago.
> > > > > > > > >
> > > > > > > > > regards,
> > > > > > > > >
> > > > > > > > > Martin
> > > > > > > > >
> > > > > > > > > On 10/21/05, Volker Weber <
> > > > users.myfaces@weber-oldenburg.de > wrote:
> > > > > > > > > > When did you get your last update? there was a problem:
> > > > > > > > > >
> > > > > > > > > >
> > > > http://issues.apache.org/jira/browse/MYFACES-724
> > > > > > > > > >
> > > > > > > > > > which was fixed yesterday.
> > > > > > > > > >
> > > > > > > > > > SOSA, Pablo wrote:
> > > > > > > > > > > I've got the sources from the trunk. URL:
> > > > > > > > > > >
> > > > https://svn.apache.org/repos/asf/myfaces/[build|sandbox|impl|api|...]/tr
> > > > > > > > > > > unk
> > > > > > > > > > >
> > > > > > > > > > > Does anybody have this problem with RC3? Any suggestion on how
> > > > to get it
> > > > > > > > > > > working again?
> > > > > > > > > > >
> > > > > > > > > > > Cheers
> > > > > > > > > > >
> > > > > > > > > > > -----Original Message-----
> > > > > > > > > > > From: Sean Schofield [mailto: sean.schofield@gmail.com]
> > > > > > > > > > > Sent: Friday, 21 October 2005 2:38 p.m.
> > > > > > > > > > > To: MyFaces Development
> > > > > > > > > > > Subject: Re: inputSuggestAjax
> > > > > > > > > > >
> > > > > > > > > > > RC3 is being built on a branch so its definitely possible that
> > > > a bug has
> > > > > > > > > > > been fixed/introduced on the trunk/branch and not on the
> > > > other.
> > > > > > > > > > >
> > > > > > > > > > > sean
> > > > > > > > > > >
> > > > > > > > > > > On 10/20/05, SOSA, Pablo < Pablo.Sosa@contact-energy.co.nz>
> > > > wrote:
> > > > > > > > > > >
> > > > > > > > > > >>Hi People,
> > > > > > > > > > >>
> > > > > > > > > > >>    I'm not sure if this is the right place for this, please
> > > > correct
> > > > > > > > > > >>me if not :D
> > > > > > > > > > >>
> > > > > > > > > > >>    I'd tried the sandbox:inputSuggestAjax, successfuly by
> > > > checking
> > > > > > > > > > >>the sources from the repository the 13/10/05 and following the
> > > > example
> > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > > >>I manage to get it working. It was very very easy. However
> > > > those
> > > > > > > > > > >>sources had some problems and the InputCalendar was broken in
> > > > IE (not
> > > > > > > > > > >>int firefox), therefore I tried 1.1.1RC3, which solve the
> > > > problems
> > > > > > > > > > >>with the calendar but the inputSuggesetAjax fails to call the
> > > > Bean,
> > > > > > > > > > >>further checking in IE and Firefox showed the following error
> > > > is:
> > > > > > > > > > >>    document.getElementById("jsf_tree_64") has no properties.
> > > > > > > > > > >>
> > > > > > > > > > >>    My code:
> > > > > > > > > > >>
> > > > > > > > > > >><%@ taglib uri=" http://java.sun.com/jsf/html" prefix="h" %>
> > > > <%@ taglib
> > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > > >>uri=" http://java.sun.com/jsf/core" prefix="f" %> <%@ taglib
> > > > > > > > > > >>uri=" http://myfaces.apache.org/tomahawk"
> > > > > > > > > > >>prefix="x"%>
> > > > > > > > > > >><%@ taglib
> > > > uri="http://myfaces.apache.org/sandbox"
> > > > > > > > > > >>prefix="sx"%>
> > > > > > > > > > >>:
> > > > > > > > > > >>:
> > > > > > > > > > >>       <sx:inputSuggestAjax
> > > > > > > > > > >>        id="inputAssetSearchAjax"
> > > > > > > > > > >>
> > > > > > > > > > >>suggestedItemsMethod="#{
> > > > assetPlantCodeList.getMatchingList}"
> > > > > > > > > > >>        maxSuggestedItems="50"
> > > > > > > > > > >>        size="80"
> > > > > > > > > > >>
> > > > title="#{worc_messages['help_search_asset']}"
> > > > > > > > > > >>        immediate="true"
> > > > > > > > > > >>        />
> > > > > > > > > > >>:
> > > > > > > > > > >>:
> > > > > > > > > > >>
> > > > > > > > > > >>Cheers,
> > > > > > > > > > >>Pablo
> > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > > >
> > > > ______________________________________________________________________
> > > > > > > > > > > This email has been scanned by the MessageLabs Email Security
> > > > System.
> > > > > > > > > > > For more information please visit
> > > > http://www.messagelabs.com/email
> > > > > > > > > > >
> > > > ______________________________________________________________________
> > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > > --
> > > > > > > > > > Don't answer to From: address!
> > > > > > > > > > Mail to this account are droped if not recieved via mailinglist.
> > > > > > > > > > To contact me direct create the mail address by
> > > > > > > > > > concatenating my forename to my senders domain.
> > > > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > --
> > > > > > > > >
> > > > > > > > > http://www.irian.at
> > > > > > > > > Your JSF powerhouse -
> > > > > > > > > JSF Trainings in English and German
> > > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > --
> > > > > > >
> > > > > > > http://www.irian.at
> > > > > > > Your JSF powerhouse -
> > > > > > > JSF Trainings in English and German
> > > > > > >
> > > > > > >
> > > > > > > --
> > > > > > >
> > > > > > > http://www.irian.at
> > > > > > > Your JSF powerhouse -
> > > > > > > JSF Trainings in English and German
> > > > > > >
> > > > > >
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >
> > > --
> > > Mathias
> > >
> >
>
>
> --
> Mathias
>

Re: inputSuggestAjax

Posted by Travis Reeder <tr...@gmail.com>.
I've just checked in a fix for this.

Travis

On 11/3/05, Travis Reeder <tr...@gmail.com> wrote:
> BTW, if you don't do this, you basically have to use commandLinks and
> commandButtons, direct links are never found, ajax or not.
>
> On 11/3/05, Travis Reeder <tr...@gmail.com> wrote:
> > I haven't tried it yet, but I will soon.  What will it use if this
> > isn't passed in?  Shouldn't it use the most recent in the sequence if
> > this is not supplied?
> >
> > Travis
> >
> > On 11/3/05, Mathias Brökelmann <mb...@googlemail.com> wrote:
> > > Have you tried the new sequence param? I think I forgot to mention
> > > that you can get the current value of the sequence to render as a
> > > param through RendererUtils.getViewSequence(FacesContext)
> > >
> > > 2005/11/3, Travis Reeder <tr...@gmail.com>:
> > > > I'm just wanting to follow up to see if anybody has looked at how to
> > > > fix the FINE: No serialized view found in server session! problem?
> > > >
> > > > Travis
> > > >
> > > > On 10/27/05, Mathias Brökelmann <mb...@googlemail.com> wrote:
> > > > > use RendererUtils.SEQUENCE_PARAM or "jsf_sequence"
> > > > >
> > > > > 2005/10/27, Travis Reeder <tr...@gmail.com>:
> > > > > > The not finding the session in view problem is happening on non-ajax
> > > > > > pages as well when using server side state.
> > > > > >
> > > > > > If you let me know what parameter should be sent for the sequence
> > > > > > number I can try it out.
> > > > > >
> > > > > > Travis
> > > > > >
> > > > > > On 10/27/05, Mathias Brökelmann <mb...@googlemail.com> wrote:
> > > > > > > I currently don´t know how ajax is working in detail. To find the
> > > > > > > serialized view in the server session it is necessary that the
> > > > > > > introduced sequence number is being send in the ajax request, which
> > > > > > > meight not be the case. I will take a closer look into that.
> > > > > > >
> > > > > > > 2005/10/25, Travis Reeder <tr...@gmail.com>:
> > > > > > > > Actually come to think of it, it shows those messages in every jsf page even
> > > > > > > > on refresh!  This is a fairly new occurence, because the dataTable worked
> > > > > > > > fine last week in our application, but with the latest trunk build it has
> > > > > > > > this recurring page effect.  This must have something to do with mbr's
> > > > > > > > checkin on 10/20 where he changed a bunch of the server side state saving
> > > > > > > > mechanisms.
> > > > > > > >
> > > > > > > >  Mathias, any idea?
> > > > > > > >
> > > > > > > >  BTW, this seems like a blocker bug to me against making a release.
> > > > > > > >
> > > > > > > >  Travis
> > > > > > > >
> > > > > > > > On 10/25/05, Travis Reeder <tr...@gmail.com> wrote:
> > > > > > > > > Hi Sean,
> > > > > > > > >
> > > > > > > > > Is this a fix as of yesterday?  There were issues yesterday with the Ajax
> > > > > > > > components when using server side state saving.  Namely
> > > > > > > > autoUpdateDataTable.jsp didn't work, it repopulates the entire page inside
> > > > > > > > the table so you get this nice infinite recurring page inside a page inside
> > > > > > > > page effect.  ;)
> > > > > > > > >
> > > > > > > > > And this is what shows in the logs which I presume is the reason:
> > > > > > > > >
> > > > > > > > > Oct 25, 2005 10:52:58 AM
> > > > > > > > org.apache.myfaces.application.jsp.JspStateManagerImpl
> > > > > > > > restoreTreeStructure
> > > > > > > > > FINE: No serialized view found in server session!
> > > > > > > > > Oct 25, 2005 10:52:58 AM
> > > > > > > > org.apache.myfaces.lifecycle.LifecycleImpl restoreView
> > > > > > > > > FINE: exiting restoreView in
> > > > > > > > org.apache.myfaces.lifecycle.LifecycleImpl (--> render
> > > > > > > > response)
> > > > > > > > >
> > > > > > > > > Travis
> > > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > On 10/25/05, Sean Schofield < sean.schofield@gmail.com> wrote:
> > > > > > > > > > OK I double checked and I was the one to apply the patch
> > > > > > > > > > (MYFACES-643.)  Its a bit confusing because Chris has several patches
> > > > > > > > > > for that component since we are trying to use it here at work and not
> > > > > > > > > > all of the patches have been applied yet.
> > > > > > > > > >
> > > > > > > > > > So server-side state saving now works (on the trunk.)  I think someone
> > > > > > > > > > mentioned that it didn't and that's what got me all confused about the
> > > > > > > > > > patch.
> > > > > > > > > >
> > > > > > > > > > sean
> > > > > > > > > >
> > > > > > > > > > On 10/25/05, Martin Marinschek < martin.marinschek@gmail.com> wrote:
> > > > > > > > > > > ---------- Forwarded message ----------
> > > > > > > > > > > From: Martin Marinschek < martin.marinschek@gmail.com>
> > > > > > > > > > > Date: Oct 25, 2005 9:56 AM
> > > > > > > > > > > Subject: Re: inputSuggestAjax
> > > > > > > > > > > To: Sean Schofield <se...@gmail.com>
> > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > > > Well,
> > > > > > > > > > >
> > > > > > > > > > > you've got a confused young man here, so no luck ;)
> > > > > > > > > > >
> > > > > > > > > > > I've just checked the sources, though, and I find:
> > > > > > > > > > >
> > > > > > > > > > >    if
> > > > > > > > (context.getApplication().getStateManager().isSavingStateInClient(context))
> > > > > > > > > > >         {
> > > > > > > > > > >             out.writeText("', {\n" +
> > > > > > > > > > >                           "      method:       'post',\n" +
> > > > > > > > > > >                           "      asynchronous: true,\n" +
> > > > > > > > > > >                           "      parameters: '',\n"+
> > > > > > > > > > >                           "      callback: function(element,entry)
> > > > > > > > > > > {return
> > > > > > > > entry+'&jsf_tree_64='+encodeURIComponent(document.getElementById('jsf_tree_64').value)+'&jsf_state_64='+encodeURIComponent(document.getElementById('jsf_state_64').value)+'&jsf_viewid='+encodeURIComponent(document.getElementById
> > > > > > > > ('jsf_viewid').value)}"
> > > > > > > > > > > +
> > > > > > > > > > >                           "    })",null);
> > > > > > > > > > >         }
> > > > > > > > > > >         else
> > > > > > > > > > >         {
> > > > > > > > > > >             out.writeText("', {\n" +
> > > > > > > > > > >                           "      method:       'post',\n" +
> > > > > > > > > > >                           "      asynchronous: true,\n" +
> > > > > > > > > > >                           "      parameters: '',\n" +
> > > > > > > > > > >                           "      callback: function(element,entry)
> > > > > > > > > > > {return entry}" +
> > > > > > > > > > >                           "    })", null);
> > > > > > > > > > >         }
> > > > > > > > > > >
> > > > > > > > > > > sounds like server side state saving should work, at least in the
> > > > > > > > > > > current head, right?
> > > > > > > > > > >
> > > > > > > > > > > regards,
> > > > > > > > > > >
> > > > > > > > > > > Martin
> > > > > > > > > > >
> > > > > > > > > > > On 10/24/05, Sean Schofield < sean.schofield@gmail.com> wrote:
> > > > > > > > > > > > @Martin
> > > > > > > > > > > >
> > > > > > > > > > > > When was this resolved?  I had a patch for this but now I can't
> > > > > > > > > > > > remember if I applied it or someone else did.  Please help a
> > > > > > > > confused
> > > > > > > > > > > > old man ... :-)
> > > > > > > > > > > >
> > > > > > > > > > > > sean
> > > > > > > > > > > >
> > > > > > > > > > > > On 10/21/05, Martin Marinschek < martin.marinschek@gmail.com> wrote:
> > > > > > > > > > > > > Do you use client-side or server-side state saving?
> > > > > > > > > > > > >
> > > > > > > > > > > > > Try switching to client-side state saving, it should work then.
> > > > > > > > > > > > >
> > > > > > > > > > > > > InputSuggestAjax didn't work with server side state saving until a
> > > > > > > > while ago.
> > > > > > > > > > > > >
> > > > > > > > > > > > > regards,
> > > > > > > > > > > > >
> > > > > > > > > > > > > Martin
> > > > > > > > > > > > >
> > > > > > > > > > > > > On 10/21/05, Volker Weber <
> > > > > > > > users.myfaces@weber-oldenburg.de > wrote:
> > > > > > > > > > > > > > When did you get your last update? there was a problem:
> > > > > > > > > > > > > >
> > > > > > > > > > > > > >
> > > > > > > > http://issues.apache.org/jira/browse/MYFACES-724
> > > > > > > > > > > > > >
> > > > > > > > > > > > > > which was fixed yesterday.
> > > > > > > > > > > > > >
> > > > > > > > > > > > > > SOSA, Pablo wrote:
> > > > > > > > > > > > > > > I've got the sources from the trunk. URL:
> > > > > > > > > > > > > > >
> > > > > > > > https://svn.apache.org/repos/asf/myfaces/[build|sandbox|impl|api|...]/tr
> > > > > > > > > > > > > > > unk
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > Does anybody have this problem with RC3? Any suggestion on how
> > > > > > > > to get it
> > > > > > > > > > > > > > > working again?
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > Cheers
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > -----Original Message-----
> > > > > > > > > > > > > > > From: Sean Schofield [mailto: sean.schofield@gmail.com]
> > > > > > > > > > > > > > > Sent: Friday, 21 October 2005 2:38 p.m.
> > > > > > > > > > > > > > > To: MyFaces Development
> > > > > > > > > > > > > > > Subject: Re: inputSuggestAjax
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > RC3 is being built on a branch so its definitely possible that
> > > > > > > > a bug has
> > > > > > > > > > > > > > > been fixed/introduced on the trunk/branch and not on the
> > > > > > > > other.
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > sean
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > On 10/20/05, SOSA, Pablo < Pablo.Sosa@contact-energy.co.nz>
> > > > > > > > wrote:
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > > >>Hi People,
> > > > > > > > > > > > > > >>
> > > > > > > > > > > > > > >>    I'm not sure if this is the right place for this, please
> > > > > > > > correct
> > > > > > > > > > > > > > >>me if not :D
> > > > > > > > > > > > > > >>
> > > > > > > > > > > > > > >>    I'd tried the sandbox:inputSuggestAjax, successfuly by
> > > > > > > > checking
> > > > > > > > > > > > > > >>the sources from the repository the 13/10/05 and following the
> > > > > > > > example
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > > >>I manage to get it working. It was very very easy. However
> > > > > > > > those
> > > > > > > > > > > > > > >>sources had some problems and the InputCalendar was broken in
> > > > > > > > IE (not
> > > > > > > > > > > > > > >>int firefox), therefore I tried 1.1.1RC3, which solve the
> > > > > > > > problems
> > > > > > > > > > > > > > >>with the calendar but the inputSuggesetAjax fails to call the
> > > > > > > > Bean,
> > > > > > > > > > > > > > >>further checking in IE and Firefox showed the following error
> > > > > > > > is:
> > > > > > > > > > > > > > >>    document.getElementById("jsf_tree_64") has no properties.
> > > > > > > > > > > > > > >>
> > > > > > > > > > > > > > >>    My code:
> > > > > > > > > > > > > > >>
> > > > > > > > > > > > > > >><%@ taglib uri=" http://java.sun.com/jsf/html" prefix="h" %>
> > > > > > > > <%@ taglib
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > > >>uri=" http://java.sun.com/jsf/core" prefix="f" %> <%@ taglib
> > > > > > > > > > > > > > >>uri=" http://myfaces.apache.org/tomahawk"
> > > > > > > > > > > > > > >>prefix="x"%>
> > > > > > > > > > > > > > >><%@ taglib
> > > > > > > > uri="http://myfaces.apache.org/sandbox"
> > > > > > > > > > > > > > >>prefix="sx"%>
> > > > > > > > > > > > > > >>:
> > > > > > > > > > > > > > >>:
> > > > > > > > > > > > > > >>       <sx:inputSuggestAjax
> > > > > > > > > > > > > > >>        id="inputAssetSearchAjax"
> > > > > > > > > > > > > > >>
> > > > > > > > > > > > > > >>suggestedItemsMethod="#{
> > > > > > > > assetPlantCodeList.getMatchingList}"
> > > > > > > > > > > > > > >>        maxSuggestedItems="50"
> > > > > > > > > > > > > > >>        size="80"
> > > > > > > > > > > > > > >>
> > > > > > > > title="#{worc_messages['help_search_asset']}"
> > > > > > > > > > > > > > >>        immediate="true"
> > > > > > > > > > > > > > >>        />
> > > > > > > > > > > > > > >>:
> > > > > > > > > > > > > > >>:
> > > > > > > > > > > > > > >>
> > > > > > > > > > > > > > >>Cheers,
> > > > > > > > > > > > > > >>Pablo
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > > >
> > > > > > > > ______________________________________________________________________
> > > > > > > > > > > > > > > This email has been scanned by the MessageLabs Email Security
> > > > > > > > System.
> > > > > > > > > > > > > > > For more information please visit
> > > > > > > > http://www.messagelabs.com/email
> > > > > > > > > > > > > > >
> > > > > > > > ______________________________________________________________________
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > >
> > > > > > > > > > > > > > --
> > > > > > > > > > > > > > Don't answer to From: address!
> > > > > > > > > > > > > > Mail to this account are droped if not recieved via mailinglist.
> > > > > > > > > > > > > > To contact me direct create the mail address by
> > > > > > > > > > > > > > concatenating my forename to my senders domain.
> > > > > > > > > > > > > >
> > > > > > > > > > > > >
> > > > > > > > > > > > >
> > > > > > > > > > > > > --
> > > > > > > > > > > > >
> > > > > > > > > > > > > http://www.irian.at
> > > > > > > > > > > > > Your JSF powerhouse -
> > > > > > > > > > > > > JSF Trainings in English and German
> > > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > > > --
> > > > > > > > > > >
> > > > > > > > > > > http://www.irian.at
> > > > > > > > > > > Your JSF powerhouse -
> > > > > > > > > > > JSF Trainings in English and German
> > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > > > --
> > > > > > > > > > >
> > > > > > > > > > > http://www.irian.at
> > > > > > > > > > > Your JSF powerhouse -
> > > > > > > > > > > JSF Trainings in English and German
> > > > > > > > > > >
> > > > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > --
> > > > > > > Mathias
> > > > > > >
> > > > > >
> > > > >
> > > > >
> > > > > --
> > > > > Mathias
> > > > >
> > > >
> > >
> > >
> > > --
> > > Mathias
> > >
> >
>

Re: inputSuggestAjax

Posted by Travis Reeder <tr...@gmail.com>.
BTW, if you don't do this, you basically have to use commandLinks and
commandButtons, direct links are never found, ajax or not.

On 11/3/05, Travis Reeder <tr...@gmail.com> wrote:
> I haven't tried it yet, but I will soon.  What will it use if this
> isn't passed in?  Shouldn't it use the most recent in the sequence if
> this is not supplied?
>
> Travis
>
> On 11/3/05, Mathias Brökelmann <mb...@googlemail.com> wrote:
> > Have you tried the new sequence param? I think I forgot to mention
> > that you can get the current value of the sequence to render as a
> > param through RendererUtils.getViewSequence(FacesContext)
> >
> > 2005/11/3, Travis Reeder <tr...@gmail.com>:
> > > I'm just wanting to follow up to see if anybody has looked at how to
> > > fix the FINE: No serialized view found in server session! problem?
> > >
> > > Travis
> > >
> > > On 10/27/05, Mathias Brökelmann <mb...@googlemail.com> wrote:
> > > > use RendererUtils.SEQUENCE_PARAM or "jsf_sequence"
> > > >
> > > > 2005/10/27, Travis Reeder <tr...@gmail.com>:
> > > > > The not finding the session in view problem is happening on non-ajax
> > > > > pages as well when using server side state.
> > > > >
> > > > > If you let me know what parameter should be sent for the sequence
> > > > > number I can try it out.
> > > > >
> > > > > Travis
> > > > >
> > > > > On 10/27/05, Mathias Brökelmann <mb...@googlemail.com> wrote:
> > > > > > I currently don´t know how ajax is working in detail. To find the
> > > > > > serialized view in the server session it is necessary that the
> > > > > > introduced sequence number is being send in the ajax request, which
> > > > > > meight not be the case. I will take a closer look into that.
> > > > > >
> > > > > > 2005/10/25, Travis Reeder <tr...@gmail.com>:
> > > > > > > Actually come to think of it, it shows those messages in every jsf page even
> > > > > > > on refresh!  This is a fairly new occurence, because the dataTable worked
> > > > > > > fine last week in our application, but with the latest trunk build it has
> > > > > > > this recurring page effect.  This must have something to do with mbr's
> > > > > > > checkin on 10/20 where he changed a bunch of the server side state saving
> > > > > > > mechanisms.
> > > > > > >
> > > > > > >  Mathias, any idea?
> > > > > > >
> > > > > > >  BTW, this seems like a blocker bug to me against making a release.
> > > > > > >
> > > > > > >  Travis
> > > > > > >
> > > > > > > On 10/25/05, Travis Reeder <tr...@gmail.com> wrote:
> > > > > > > > Hi Sean,
> > > > > > > >
> > > > > > > > Is this a fix as of yesterday?  There were issues yesterday with the Ajax
> > > > > > > components when using server side state saving.  Namely
> > > > > > > autoUpdateDataTable.jsp didn't work, it repopulates the entire page inside
> > > > > > > the table so you get this nice infinite recurring page inside a page inside
> > > > > > > page effect.  ;)
> > > > > > > >
> > > > > > > > And this is what shows in the logs which I presume is the reason:
> > > > > > > >
> > > > > > > > Oct 25, 2005 10:52:58 AM
> > > > > > > org.apache.myfaces.application.jsp.JspStateManagerImpl
> > > > > > > restoreTreeStructure
> > > > > > > > FINE: No serialized view found in server session!
> > > > > > > > Oct 25, 2005 10:52:58 AM
> > > > > > > org.apache.myfaces.lifecycle.LifecycleImpl restoreView
> > > > > > > > FINE: exiting restoreView in
> > > > > > > org.apache.myfaces.lifecycle.LifecycleImpl (--> render
> > > > > > > response)
> > > > > > > >
> > > > > > > > Travis
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > > On 10/25/05, Sean Schofield < sean.schofield@gmail.com> wrote:
> > > > > > > > > OK I double checked and I was the one to apply the patch
> > > > > > > > > (MYFACES-643.)  Its a bit confusing because Chris has several patches
> > > > > > > > > for that component since we are trying to use it here at work and not
> > > > > > > > > all of the patches have been applied yet.
> > > > > > > > >
> > > > > > > > > So server-side state saving now works (on the trunk.)  I think someone
> > > > > > > > > mentioned that it didn't and that's what got me all confused about the
> > > > > > > > > patch.
> > > > > > > > >
> > > > > > > > > sean
> > > > > > > > >
> > > > > > > > > On 10/25/05, Martin Marinschek < martin.marinschek@gmail.com> wrote:
> > > > > > > > > > ---------- Forwarded message ----------
> > > > > > > > > > From: Martin Marinschek < martin.marinschek@gmail.com>
> > > > > > > > > > Date: Oct 25, 2005 9:56 AM
> > > > > > > > > > Subject: Re: inputSuggestAjax
> > > > > > > > > > To: Sean Schofield <se...@gmail.com>
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > > Well,
> > > > > > > > > >
> > > > > > > > > > you've got a confused young man here, so no luck ;)
> > > > > > > > > >
> > > > > > > > > > I've just checked the sources, though, and I find:
> > > > > > > > > >
> > > > > > > > > >    if
> > > > > > > (context.getApplication().getStateManager().isSavingStateInClient(context))
> > > > > > > > > >         {
> > > > > > > > > >             out.writeText("', {\n" +
> > > > > > > > > >                           "      method:       'post',\n" +
> > > > > > > > > >                           "      asynchronous: true,\n" +
> > > > > > > > > >                           "      parameters: '',\n"+
> > > > > > > > > >                           "      callback: function(element,entry)
> > > > > > > > > > {return
> > > > > > > entry+'&jsf_tree_64='+encodeURIComponent(document.getElementById('jsf_tree_64').value)+'&jsf_state_64='+encodeURIComponent(document.getElementById('jsf_state_64').value)+'&jsf_viewid='+encodeURIComponent(document.getElementById
> > > > > > > ('jsf_viewid').value)}"
> > > > > > > > > > +
> > > > > > > > > >                           "    })",null);
> > > > > > > > > >         }
> > > > > > > > > >         else
> > > > > > > > > >         {
> > > > > > > > > >             out.writeText("', {\n" +
> > > > > > > > > >                           "      method:       'post',\n" +
> > > > > > > > > >                           "      asynchronous: true,\n" +
> > > > > > > > > >                           "      parameters: '',\n" +
> > > > > > > > > >                           "      callback: function(element,entry)
> > > > > > > > > > {return entry}" +
> > > > > > > > > >                           "    })", null);
> > > > > > > > > >         }
> > > > > > > > > >
> > > > > > > > > > sounds like server side state saving should work, at least in the
> > > > > > > > > > current head, right?
> > > > > > > > > >
> > > > > > > > > > regards,
> > > > > > > > > >
> > > > > > > > > > Martin
> > > > > > > > > >
> > > > > > > > > > On 10/24/05, Sean Schofield < sean.schofield@gmail.com> wrote:
> > > > > > > > > > > @Martin
> > > > > > > > > > >
> > > > > > > > > > > When was this resolved?  I had a patch for this but now I can't
> > > > > > > > > > > remember if I applied it or someone else did.  Please help a
> > > > > > > confused
> > > > > > > > > > > old man ... :-)
> > > > > > > > > > >
> > > > > > > > > > > sean
> > > > > > > > > > >
> > > > > > > > > > > On 10/21/05, Martin Marinschek < martin.marinschek@gmail.com> wrote:
> > > > > > > > > > > > Do you use client-side or server-side state saving?
> > > > > > > > > > > >
> > > > > > > > > > > > Try switching to client-side state saving, it should work then.
> > > > > > > > > > > >
> > > > > > > > > > > > InputSuggestAjax didn't work with server side state saving until a
> > > > > > > while ago.
> > > > > > > > > > > >
> > > > > > > > > > > > regards,
> > > > > > > > > > > >
> > > > > > > > > > > > Martin
> > > > > > > > > > > >
> > > > > > > > > > > > On 10/21/05, Volker Weber <
> > > > > > > users.myfaces@weber-oldenburg.de > wrote:
> > > > > > > > > > > > > When did you get your last update? there was a problem:
> > > > > > > > > > > > >
> > > > > > > > > > > > >
> > > > > > > http://issues.apache.org/jira/browse/MYFACES-724
> > > > > > > > > > > > >
> > > > > > > > > > > > > which was fixed yesterday.
> > > > > > > > > > > > >
> > > > > > > > > > > > > SOSA, Pablo wrote:
> > > > > > > > > > > > > > I've got the sources from the trunk. URL:
> > > > > > > > > > > > > >
> > > > > > > https://svn.apache.org/repos/asf/myfaces/[build|sandbox|impl|api|...]/tr
> > > > > > > > > > > > > > unk
> > > > > > > > > > > > > >
> > > > > > > > > > > > > > Does anybody have this problem with RC3? Any suggestion on how
> > > > > > > to get it
> > > > > > > > > > > > > > working again?
> > > > > > > > > > > > > >
> > > > > > > > > > > > > > Cheers
> > > > > > > > > > > > > >
> > > > > > > > > > > > > > -----Original Message-----
> > > > > > > > > > > > > > From: Sean Schofield [mailto: sean.schofield@gmail.com]
> > > > > > > > > > > > > > Sent: Friday, 21 October 2005 2:38 p.m.
> > > > > > > > > > > > > > To: MyFaces Development
> > > > > > > > > > > > > > Subject: Re: inputSuggestAjax
> > > > > > > > > > > > > >
> > > > > > > > > > > > > > RC3 is being built on a branch so its definitely possible that
> > > > > > > a bug has
> > > > > > > > > > > > > > been fixed/introduced on the trunk/branch and not on the
> > > > > > > other.
> > > > > > > > > > > > > >
> > > > > > > > > > > > > > sean
> > > > > > > > > > > > > >
> > > > > > > > > > > > > > On 10/20/05, SOSA, Pablo < Pablo.Sosa@contact-energy.co.nz>
> > > > > > > wrote:
> > > > > > > > > > > > > >
> > > > > > > > > > > > > >>Hi People,
> > > > > > > > > > > > > >>
> > > > > > > > > > > > > >>    I'm not sure if this is the right place for this, please
> > > > > > > correct
> > > > > > > > > > > > > >>me if not :D
> > > > > > > > > > > > > >>
> > > > > > > > > > > > > >>    I'd tried the sandbox:inputSuggestAjax, successfuly by
> > > > > > > checking
> > > > > > > > > > > > > >>the sources from the repository the 13/10/05 and following the
> > > > > > > example
> > > > > > > > > > > > > >
> > > > > > > > > > > > > >
> > > > > > > > > > > > > >>I manage to get it working. It was very very easy. However
> > > > > > > those
> > > > > > > > > > > > > >>sources had some problems and the InputCalendar was broken in
> > > > > > > IE (not
> > > > > > > > > > > > > >>int firefox), therefore I tried 1.1.1RC3, which solve the
> > > > > > > problems
> > > > > > > > > > > > > >>with the calendar but the inputSuggesetAjax fails to call the
> > > > > > > Bean,
> > > > > > > > > > > > > >>further checking in IE and Firefox showed the following error
> > > > > > > is:
> > > > > > > > > > > > > >>    document.getElementById("jsf_tree_64") has no properties.
> > > > > > > > > > > > > >>
> > > > > > > > > > > > > >>    My code:
> > > > > > > > > > > > > >>
> > > > > > > > > > > > > >><%@ taglib uri=" http://java.sun.com/jsf/html" prefix="h" %>
> > > > > > > <%@ taglib
> > > > > > > > > > > > > >
> > > > > > > > > > > > > >
> > > > > > > > > > > > > >>uri=" http://java.sun.com/jsf/core" prefix="f" %> <%@ taglib
> > > > > > > > > > > > > >>uri=" http://myfaces.apache.org/tomahawk"
> > > > > > > > > > > > > >>prefix="x"%>
> > > > > > > > > > > > > >><%@ taglib
> > > > > > > uri="http://myfaces.apache.org/sandbox"
> > > > > > > > > > > > > >>prefix="sx"%>
> > > > > > > > > > > > > >>:
> > > > > > > > > > > > > >>:
> > > > > > > > > > > > > >>       <sx:inputSuggestAjax
> > > > > > > > > > > > > >>        id="inputAssetSearchAjax"
> > > > > > > > > > > > > >>
> > > > > > > > > > > > > >>suggestedItemsMethod="#{
> > > > > > > assetPlantCodeList.getMatchingList}"
> > > > > > > > > > > > > >>        maxSuggestedItems="50"
> > > > > > > > > > > > > >>        size="80"
> > > > > > > > > > > > > >>
> > > > > > > title="#{worc_messages['help_search_asset']}"
> > > > > > > > > > > > > >>        immediate="true"
> > > > > > > > > > > > > >>        />
> > > > > > > > > > > > > >>:
> > > > > > > > > > > > > >>:
> > > > > > > > > > > > > >>
> > > > > > > > > > > > > >>Cheers,
> > > > > > > > > > > > > >>Pablo
> > > > > > > > > > > > > >
> > > > > > > > > > > > > >
> > > > > > > > > > > > > >
> > > > > > > ______________________________________________________________________
> > > > > > > > > > > > > > This email has been scanned by the MessageLabs Email Security
> > > > > > > System.
> > > > > > > > > > > > > > For more information please visit
> > > > > > > http://www.messagelabs.com/email
> > > > > > > > > > > > > >
> > > > > > > ______________________________________________________________________
> > > > > > > > > > > > > >
> > > > > > > > > > > > > >
> > > > > > > > > > > > >
> > > > > > > > > > > > > --
> > > > > > > > > > > > > Don't answer to From: address!
> > > > > > > > > > > > > Mail to this account are droped if not recieved via mailinglist.
> > > > > > > > > > > > > To contact me direct create the mail address by
> > > > > > > > > > > > > concatenating my forename to my senders domain.
> > > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > > > > --
> > > > > > > > > > > >
> > > > > > > > > > > > http://www.irian.at
> > > > > > > > > > > > Your JSF powerhouse -
> > > > > > > > > > > > JSF Trainings in English and German
> > > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > > --
> > > > > > > > > >
> > > > > > > > > > http://www.irian.at
> > > > > > > > > > Your JSF powerhouse -
> > > > > > > > > > JSF Trainings in English and German
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > > --
> > > > > > > > > >
> > > > > > > > > > http://www.irian.at
> > > > > > > > > > Your JSF powerhouse -
> > > > > > > > > > JSF Trainings in English and German
> > > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > > >
> > > > > >
> > > > > >
> > > > > > --
> > > > > > Mathias
> > > > > >
> > > > >
> > > >
> > > >
> > > > --
> > > > Mathias
> > > >
> > >
> >
> >
> > --
> > Mathias
> >
>

Re: inputSuggestAjax

Posted by Travis Reeder <tr...@gmail.com>.
I haven't tried it yet, but I will soon.  What will it use if this
isn't passed in?  Shouldn't it use the most recent in the sequence if
this is not supplied?

Travis

On 11/3/05, Mathias Brökelmann <mb...@googlemail.com> wrote:
> Have you tried the new sequence param? I think I forgot to mention
> that you can get the current value of the sequence to render as a
> param through RendererUtils.getViewSequence(FacesContext)
>
> 2005/11/3, Travis Reeder <tr...@gmail.com>:
> > I'm just wanting to follow up to see if anybody has looked at how to
> > fix the FINE: No serialized view found in server session! problem?
> >
> > Travis
> >
> > On 10/27/05, Mathias Brökelmann <mb...@googlemail.com> wrote:
> > > use RendererUtils.SEQUENCE_PARAM or "jsf_sequence"
> > >
> > > 2005/10/27, Travis Reeder <tr...@gmail.com>:
> > > > The not finding the session in view problem is happening on non-ajax
> > > > pages as well when using server side state.
> > > >
> > > > If you let me know what parameter should be sent for the sequence
> > > > number I can try it out.
> > > >
> > > > Travis
> > > >
> > > > On 10/27/05, Mathias Brökelmann <mb...@googlemail.com> wrote:
> > > > > I currently don´t know how ajax is working in detail. To find the
> > > > > serialized view in the server session it is necessary that the
> > > > > introduced sequence number is being send in the ajax request, which
> > > > > meight not be the case. I will take a closer look into that.
> > > > >
> > > > > 2005/10/25, Travis Reeder <tr...@gmail.com>:
> > > > > > Actually come to think of it, it shows those messages in every jsf page even
> > > > > > on refresh!  This is a fairly new occurence, because the dataTable worked
> > > > > > fine last week in our application, but with the latest trunk build it has
> > > > > > this recurring page effect.  This must have something to do with mbr's
> > > > > > checkin on 10/20 where he changed a bunch of the server side state saving
> > > > > > mechanisms.
> > > > > >
> > > > > >  Mathias, any idea?
> > > > > >
> > > > > >  BTW, this seems like a blocker bug to me against making a release.
> > > > > >
> > > > > >  Travis
> > > > > >
> > > > > > On 10/25/05, Travis Reeder <tr...@gmail.com> wrote:
> > > > > > > Hi Sean,
> > > > > > >
> > > > > > > Is this a fix as of yesterday?  There were issues yesterday with the Ajax
> > > > > > components when using server side state saving.  Namely
> > > > > > autoUpdateDataTable.jsp didn't work, it repopulates the entire page inside
> > > > > > the table so you get this nice infinite recurring page inside a page inside
> > > > > > page effect.  ;)
> > > > > > >
> > > > > > > And this is what shows in the logs which I presume is the reason:
> > > > > > >
> > > > > > > Oct 25, 2005 10:52:58 AM
> > > > > > org.apache.myfaces.application.jsp.JspStateManagerImpl
> > > > > > restoreTreeStructure
> > > > > > > FINE: No serialized view found in server session!
> > > > > > > Oct 25, 2005 10:52:58 AM
> > > > > > org.apache.myfaces.lifecycle.LifecycleImpl restoreView
> > > > > > > FINE: exiting restoreView in
> > > > > > org.apache.myfaces.lifecycle.LifecycleImpl (--> render
> > > > > > response)
> > > > > > >
> > > > > > > Travis
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > On 10/25/05, Sean Schofield < sean.schofield@gmail.com> wrote:
> > > > > > > > OK I double checked and I was the one to apply the patch
> > > > > > > > (MYFACES-643.)  Its a bit confusing because Chris has several patches
> > > > > > > > for that component since we are trying to use it here at work and not
> > > > > > > > all of the patches have been applied yet.
> > > > > > > >
> > > > > > > > So server-side state saving now works (on the trunk.)  I think someone
> > > > > > > > mentioned that it didn't and that's what got me all confused about the
> > > > > > > > patch.
> > > > > > > >
> > > > > > > > sean
> > > > > > > >
> > > > > > > > On 10/25/05, Martin Marinschek < martin.marinschek@gmail.com> wrote:
> > > > > > > > > ---------- Forwarded message ----------
> > > > > > > > > From: Martin Marinschek < martin.marinschek@gmail.com>
> > > > > > > > > Date: Oct 25, 2005 9:56 AM
> > > > > > > > > Subject: Re: inputSuggestAjax
> > > > > > > > > To: Sean Schofield <se...@gmail.com>
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > Well,
> > > > > > > > >
> > > > > > > > > you've got a confused young man here, so no luck ;)
> > > > > > > > >
> > > > > > > > > I've just checked the sources, though, and I find:
> > > > > > > > >
> > > > > > > > >    if
> > > > > > (context.getApplication().getStateManager().isSavingStateInClient(context))
> > > > > > > > >         {
> > > > > > > > >             out.writeText("', {\n" +
> > > > > > > > >                           "      method:       'post',\n" +
> > > > > > > > >                           "      asynchronous: true,\n" +
> > > > > > > > >                           "      parameters: '',\n"+
> > > > > > > > >                           "      callback: function(element,entry)
> > > > > > > > > {return
> > > > > > entry+'&jsf_tree_64='+encodeURIComponent(document.getElementById('jsf_tree_64').value)+'&jsf_state_64='+encodeURIComponent(document.getElementById('jsf_state_64').value)+'&jsf_viewid='+encodeURIComponent(document.getElementById
> > > > > > ('jsf_viewid').value)}"
> > > > > > > > > +
> > > > > > > > >                           "    })",null);
> > > > > > > > >         }
> > > > > > > > >         else
> > > > > > > > >         {
> > > > > > > > >             out.writeText("', {\n" +
> > > > > > > > >                           "      method:       'post',\n" +
> > > > > > > > >                           "      asynchronous: true,\n" +
> > > > > > > > >                           "      parameters: '',\n" +
> > > > > > > > >                           "      callback: function(element,entry)
> > > > > > > > > {return entry}" +
> > > > > > > > >                           "    })", null);
> > > > > > > > >         }
> > > > > > > > >
> > > > > > > > > sounds like server side state saving should work, at least in the
> > > > > > > > > current head, right?
> > > > > > > > >
> > > > > > > > > regards,
> > > > > > > > >
> > > > > > > > > Martin
> > > > > > > > >
> > > > > > > > > On 10/24/05, Sean Schofield < sean.schofield@gmail.com> wrote:
> > > > > > > > > > @Martin
> > > > > > > > > >
> > > > > > > > > > When was this resolved?  I had a patch for this but now I can't
> > > > > > > > > > remember if I applied it or someone else did.  Please help a
> > > > > > confused
> > > > > > > > > > old man ... :-)
> > > > > > > > > >
> > > > > > > > > > sean
> > > > > > > > > >
> > > > > > > > > > On 10/21/05, Martin Marinschek < martin.marinschek@gmail.com> wrote:
> > > > > > > > > > > Do you use client-side or server-side state saving?
> > > > > > > > > > >
> > > > > > > > > > > Try switching to client-side state saving, it should work then.
> > > > > > > > > > >
> > > > > > > > > > > InputSuggestAjax didn't work with server side state saving until a
> > > > > > while ago.
> > > > > > > > > > >
> > > > > > > > > > > regards,
> > > > > > > > > > >
> > > > > > > > > > > Martin
> > > > > > > > > > >
> > > > > > > > > > > On 10/21/05, Volker Weber <
> > > > > > users.myfaces@weber-oldenburg.de > wrote:
> > > > > > > > > > > > When did you get your last update? there was a problem:
> > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > http://issues.apache.org/jira/browse/MYFACES-724
> > > > > > > > > > > >
> > > > > > > > > > > > which was fixed yesterday.
> > > > > > > > > > > >
> > > > > > > > > > > > SOSA, Pablo wrote:
> > > > > > > > > > > > > I've got the sources from the trunk. URL:
> > > > > > > > > > > > >
> > > > > > https://svn.apache.org/repos/asf/myfaces/[build|sandbox|impl|api|...]/tr
> > > > > > > > > > > > > unk
> > > > > > > > > > > > >
> > > > > > > > > > > > > Does anybody have this problem with RC3? Any suggestion on how
> > > > > > to get it
> > > > > > > > > > > > > working again?
> > > > > > > > > > > > >
> > > > > > > > > > > > > Cheers
> > > > > > > > > > > > >
> > > > > > > > > > > > > -----Original Message-----
> > > > > > > > > > > > > From: Sean Schofield [mailto: sean.schofield@gmail.com]
> > > > > > > > > > > > > Sent: Friday, 21 October 2005 2:38 p.m.
> > > > > > > > > > > > > To: MyFaces Development
> > > > > > > > > > > > > Subject: Re: inputSuggestAjax
> > > > > > > > > > > > >
> > > > > > > > > > > > > RC3 is being built on a branch so its definitely possible that
> > > > > > a bug has
> > > > > > > > > > > > > been fixed/introduced on the trunk/branch and not on the
> > > > > > other.
> > > > > > > > > > > > >
> > > > > > > > > > > > > sean
> > > > > > > > > > > > >
> > > > > > > > > > > > > On 10/20/05, SOSA, Pablo < Pablo.Sosa@contact-energy.co.nz>
> > > > > > wrote:
> > > > > > > > > > > > >
> > > > > > > > > > > > >>Hi People,
> > > > > > > > > > > > >>
> > > > > > > > > > > > >>    I'm not sure if this is the right place for this, please
> > > > > > correct
> > > > > > > > > > > > >>me if not :D
> > > > > > > > > > > > >>
> > > > > > > > > > > > >>    I'd tried the sandbox:inputSuggestAjax, successfuly by
> > > > > > checking
> > > > > > > > > > > > >>the sources from the repository the 13/10/05 and following the
> > > > > > example
> > > > > > > > > > > > >
> > > > > > > > > > > > >
> > > > > > > > > > > > >>I manage to get it working. It was very very easy. However
> > > > > > those
> > > > > > > > > > > > >>sources had some problems and the InputCalendar was broken in
> > > > > > IE (not
> > > > > > > > > > > > >>int firefox), therefore I tried 1.1.1RC3, which solve the
> > > > > > problems
> > > > > > > > > > > > >>with the calendar but the inputSuggesetAjax fails to call the
> > > > > > Bean,
> > > > > > > > > > > > >>further checking in IE and Firefox showed the following error
> > > > > > is:
> > > > > > > > > > > > >>    document.getElementById("jsf_tree_64") has no properties.
> > > > > > > > > > > > >>
> > > > > > > > > > > > >>    My code:
> > > > > > > > > > > > >>
> > > > > > > > > > > > >><%@ taglib uri=" http://java.sun.com/jsf/html" prefix="h" %>
> > > > > > <%@ taglib
> > > > > > > > > > > > >
> > > > > > > > > > > > >
> > > > > > > > > > > > >>uri=" http://java.sun.com/jsf/core" prefix="f" %> <%@ taglib
> > > > > > > > > > > > >>uri=" http://myfaces.apache.org/tomahawk"
> > > > > > > > > > > > >>prefix="x"%>
> > > > > > > > > > > > >><%@ taglib
> > > > > > uri="http://myfaces.apache.org/sandbox"
> > > > > > > > > > > > >>prefix="sx"%>
> > > > > > > > > > > > >>:
> > > > > > > > > > > > >>:
> > > > > > > > > > > > >>       <sx:inputSuggestAjax
> > > > > > > > > > > > >>        id="inputAssetSearchAjax"
> > > > > > > > > > > > >>
> > > > > > > > > > > > >>suggestedItemsMethod="#{
> > > > > > assetPlantCodeList.getMatchingList}"
> > > > > > > > > > > > >>        maxSuggestedItems="50"
> > > > > > > > > > > > >>        size="80"
> > > > > > > > > > > > >>
> > > > > > title="#{worc_messages['help_search_asset']}"
> > > > > > > > > > > > >>        immediate="true"
> > > > > > > > > > > > >>        />
> > > > > > > > > > > > >>:
> > > > > > > > > > > > >>:
> > > > > > > > > > > > >>
> > > > > > > > > > > > >>Cheers,
> > > > > > > > > > > > >>Pablo
> > > > > > > > > > > > >
> > > > > > > > > > > > >
> > > > > > > > > > > > >
> > > > > > ______________________________________________________________________
> > > > > > > > > > > > > This email has been scanned by the MessageLabs Email Security
> > > > > > System.
> > > > > > > > > > > > > For more information please visit
> > > > > > http://www.messagelabs.com/email
> > > > > > > > > > > > >
> > > > > > ______________________________________________________________________
> > > > > > > > > > > > >
> > > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > > > > --
> > > > > > > > > > > > Don't answer to From: address!
> > > > > > > > > > > > Mail to this account are droped if not recieved via mailinglist.
> > > > > > > > > > > > To contact me direct create the mail address by
> > > > > > > > > > > > concatenating my forename to my senders domain.
> > > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > > > --
> > > > > > > > > > >
> > > > > > > > > > > http://www.irian.at
> > > > > > > > > > > Your JSF powerhouse -
> > > > > > > > > > > JSF Trainings in English and German
> > > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > --
> > > > > > > > >
> > > > > > > > > http://www.irian.at
> > > > > > > > > Your JSF powerhouse -
> > > > > > > > > JSF Trainings in English and German
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > --
> > > > > > > > >
> > > > > > > > > http://www.irian.at
> > > > > > > > > Your JSF powerhouse -
> > > > > > > > > JSF Trainings in English and German
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > > >
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > > > --
> > > > > Mathias
> > > > >
> > > >
> > >
> > >
> > > --
> > > Mathias
> > >
> >
>
>
> --
> Mathias
>

Re: inputSuggestAjax

Posted by Mathias Brökelmann <mb...@googlemail.com>.
Have you tried the new sequence param? I think I forgot to mention
that you can get the current value of the sequence to render as a
param through RendererUtils.getViewSequence(FacesContext)

2005/11/3, Travis Reeder <tr...@gmail.com>:
> I'm just wanting to follow up to see if anybody has looked at how to
> fix the FINE: No serialized view found in server session! problem?
>
> Travis
>
> On 10/27/05, Mathias Brökelmann <mb...@googlemail.com> wrote:
> > use RendererUtils.SEQUENCE_PARAM or "jsf_sequence"
> >
> > 2005/10/27, Travis Reeder <tr...@gmail.com>:
> > > The not finding the session in view problem is happening on non-ajax
> > > pages as well when using server side state.
> > >
> > > If you let me know what parameter should be sent for the sequence
> > > number I can try it out.
> > >
> > > Travis
> > >
> > > On 10/27/05, Mathias Brökelmann <mb...@googlemail.com> wrote:
> > > > I currently don´t know how ajax is working in detail. To find the
> > > > serialized view in the server session it is necessary that the
> > > > introduced sequence number is being send in the ajax request, which
> > > > meight not be the case. I will take a closer look into that.
> > > >
> > > > 2005/10/25, Travis Reeder <tr...@gmail.com>:
> > > > > Actually come to think of it, it shows those messages in every jsf page even
> > > > > on refresh!  This is a fairly new occurence, because the dataTable worked
> > > > > fine last week in our application, but with the latest trunk build it has
> > > > > this recurring page effect.  This must have something to do with mbr's
> > > > > checkin on 10/20 where he changed a bunch of the server side state saving
> > > > > mechanisms.
> > > > >
> > > > >  Mathias, any idea?
> > > > >
> > > > >  BTW, this seems like a blocker bug to me against making a release.
> > > > >
> > > > >  Travis
> > > > >
> > > > > On 10/25/05, Travis Reeder <tr...@gmail.com> wrote:
> > > > > > Hi Sean,
> > > > > >
> > > > > > Is this a fix as of yesterday?  There were issues yesterday with the Ajax
> > > > > components when using server side state saving.  Namely
> > > > > autoUpdateDataTable.jsp didn't work, it repopulates the entire page inside
> > > > > the table so you get this nice infinite recurring page inside a page inside
> > > > > page effect.  ;)
> > > > > >
> > > > > > And this is what shows in the logs which I presume is the reason:
> > > > > >
> > > > > > Oct 25, 2005 10:52:58 AM
> > > > > org.apache.myfaces.application.jsp.JspStateManagerImpl
> > > > > restoreTreeStructure
> > > > > > FINE: No serialized view found in server session!
> > > > > > Oct 25, 2005 10:52:58 AM
> > > > > org.apache.myfaces.lifecycle.LifecycleImpl restoreView
> > > > > > FINE: exiting restoreView in
> > > > > org.apache.myfaces.lifecycle.LifecycleImpl (--> render
> > > > > response)
> > > > > >
> > > > > > Travis
> > > > > >
> > > > > >
> > > > > >
> > > > > > On 10/25/05, Sean Schofield < sean.schofield@gmail.com> wrote:
> > > > > > > OK I double checked and I was the one to apply the patch
> > > > > > > (MYFACES-643.)  Its a bit confusing because Chris has several patches
> > > > > > > for that component since we are trying to use it here at work and not
> > > > > > > all of the patches have been applied yet.
> > > > > > >
> > > > > > > So server-side state saving now works (on the trunk.)  I think someone
> > > > > > > mentioned that it didn't and that's what got me all confused about the
> > > > > > > patch.
> > > > > > >
> > > > > > > sean
> > > > > > >
> > > > > > > On 10/25/05, Martin Marinschek < martin.marinschek@gmail.com> wrote:
> > > > > > > > ---------- Forwarded message ----------
> > > > > > > > From: Martin Marinschek < martin.marinschek@gmail.com>
> > > > > > > > Date: Oct 25, 2005 9:56 AM
> > > > > > > > Subject: Re: inputSuggestAjax
> > > > > > > > To: Sean Schofield <se...@gmail.com>
> > > > > > > >
> > > > > > > >
> > > > > > > > Well,
> > > > > > > >
> > > > > > > > you've got a confused young man here, so no luck ;)
> > > > > > > >
> > > > > > > > I've just checked the sources, though, and I find:
> > > > > > > >
> > > > > > > >    if
> > > > > (context.getApplication().getStateManager().isSavingStateInClient(context))
> > > > > > > >         {
> > > > > > > >             out.writeText("', {\n" +
> > > > > > > >                           "      method:       'post',\n" +
> > > > > > > >                           "      asynchronous: true,\n" +
> > > > > > > >                           "      parameters: '',\n"+
> > > > > > > >                           "      callback: function(element,entry)
> > > > > > > > {return
> > > > > entry+'&jsf_tree_64='+encodeURIComponent(document.getElementById('jsf_tree_64').value)+'&jsf_state_64='+encodeURIComponent(document.getElementById('jsf_state_64').value)+'&jsf_viewid='+encodeURIComponent(document.getElementById
> > > > > ('jsf_viewid').value)}"
> > > > > > > > +
> > > > > > > >                           "    })",null);
> > > > > > > >         }
> > > > > > > >         else
> > > > > > > >         {
> > > > > > > >             out.writeText("', {\n" +
> > > > > > > >                           "      method:       'post',\n" +
> > > > > > > >                           "      asynchronous: true,\n" +
> > > > > > > >                           "      parameters: '',\n" +
> > > > > > > >                           "      callback: function(element,entry)
> > > > > > > > {return entry}" +
> > > > > > > >                           "    })", null);
> > > > > > > >         }
> > > > > > > >
> > > > > > > > sounds like server side state saving should work, at least in the
> > > > > > > > current head, right?
> > > > > > > >
> > > > > > > > regards,
> > > > > > > >
> > > > > > > > Martin
> > > > > > > >
> > > > > > > > On 10/24/05, Sean Schofield < sean.schofield@gmail.com> wrote:
> > > > > > > > > @Martin
> > > > > > > > >
> > > > > > > > > When was this resolved?  I had a patch for this but now I can't
> > > > > > > > > remember if I applied it or someone else did.  Please help a
> > > > > confused
> > > > > > > > > old man ... :-)
> > > > > > > > >
> > > > > > > > > sean
> > > > > > > > >
> > > > > > > > > On 10/21/05, Martin Marinschek < martin.marinschek@gmail.com> wrote:
> > > > > > > > > > Do you use client-side or server-side state saving?
> > > > > > > > > >
> > > > > > > > > > Try switching to client-side state saving, it should work then.
> > > > > > > > > >
> > > > > > > > > > InputSuggestAjax didn't work with server side state saving until a
> > > > > while ago.
> > > > > > > > > >
> > > > > > > > > > regards,
> > > > > > > > > >
> > > > > > > > > > Martin
> > > > > > > > > >
> > > > > > > > > > On 10/21/05, Volker Weber <
> > > > > users.myfaces@weber-oldenburg.de > wrote:
> > > > > > > > > > > When did you get your last update? there was a problem:
> > > > > > > > > > >
> > > > > > > > > > >
> > > > > http://issues.apache.org/jira/browse/MYFACES-724
> > > > > > > > > > >
> > > > > > > > > > > which was fixed yesterday.
> > > > > > > > > > >
> > > > > > > > > > > SOSA, Pablo wrote:
> > > > > > > > > > > > I've got the sources from the trunk. URL:
> > > > > > > > > > > >
> > > > > https://svn.apache.org/repos/asf/myfaces/[build|sandbox|impl|api|...]/tr
> > > > > > > > > > > > unk
> > > > > > > > > > > >
> > > > > > > > > > > > Does anybody have this problem with RC3? Any suggestion on how
> > > > > to get it
> > > > > > > > > > > > working again?
> > > > > > > > > > > >
> > > > > > > > > > > > Cheers
> > > > > > > > > > > >
> > > > > > > > > > > > -----Original Message-----
> > > > > > > > > > > > From: Sean Schofield [mailto: sean.schofield@gmail.com]
> > > > > > > > > > > > Sent: Friday, 21 October 2005 2:38 p.m.
> > > > > > > > > > > > To: MyFaces Development
> > > > > > > > > > > > Subject: Re: inputSuggestAjax
> > > > > > > > > > > >
> > > > > > > > > > > > RC3 is being built on a branch so its definitely possible that
> > > > > a bug has
> > > > > > > > > > > > been fixed/introduced on the trunk/branch and not on the
> > > > > other.
> > > > > > > > > > > >
> > > > > > > > > > > > sean
> > > > > > > > > > > >
> > > > > > > > > > > > On 10/20/05, SOSA, Pablo < Pablo.Sosa@contact-energy.co.nz>
> > > > > wrote:
> > > > > > > > > > > >
> > > > > > > > > > > >>Hi People,
> > > > > > > > > > > >>
> > > > > > > > > > > >>    I'm not sure if this is the right place for this, please
> > > > > correct
> > > > > > > > > > > >>me if not :D
> > > > > > > > > > > >>
> > > > > > > > > > > >>    I'd tried the sandbox:inputSuggestAjax, successfuly by
> > > > > checking
> > > > > > > > > > > >>the sources from the repository the 13/10/05 and following the
> > > > > example
> > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > > > >>I manage to get it working. It was very very easy. However
> > > > > those
> > > > > > > > > > > >>sources had some problems and the InputCalendar was broken in
> > > > > IE (not
> > > > > > > > > > > >>int firefox), therefore I tried 1.1.1RC3, which solve the
> > > > > problems
> > > > > > > > > > > >>with the calendar but the inputSuggesetAjax fails to call the
> > > > > Bean,
> > > > > > > > > > > >>further checking in IE and Firefox showed the following error
> > > > > is:
> > > > > > > > > > > >>    document.getElementById("jsf_tree_64") has no properties.
> > > > > > > > > > > >>
> > > > > > > > > > > >>    My code:
> > > > > > > > > > > >>
> > > > > > > > > > > >><%@ taglib uri=" http://java.sun.com/jsf/html" prefix="h" %>
> > > > > <%@ taglib
> > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > > > >>uri=" http://java.sun.com/jsf/core" prefix="f" %> <%@ taglib
> > > > > > > > > > > >>uri=" http://myfaces.apache.org/tomahawk"
> > > > > > > > > > > >>prefix="x"%>
> > > > > > > > > > > >><%@ taglib
> > > > > uri="http://myfaces.apache.org/sandbox"
> > > > > > > > > > > >>prefix="sx"%>
> > > > > > > > > > > >>:
> > > > > > > > > > > >>:
> > > > > > > > > > > >>       <sx:inputSuggestAjax
> > > > > > > > > > > >>        id="inputAssetSearchAjax"
> > > > > > > > > > > >>
> > > > > > > > > > > >>suggestedItemsMethod="#{
> > > > > assetPlantCodeList.getMatchingList}"
> > > > > > > > > > > >>        maxSuggestedItems="50"
> > > > > > > > > > > >>        size="80"
> > > > > > > > > > > >>
> > > > > title="#{worc_messages['help_search_asset']}"
> > > > > > > > > > > >>        immediate="true"
> > > > > > > > > > > >>        />
> > > > > > > > > > > >>:
> > > > > > > > > > > >>:
> > > > > > > > > > > >>
> > > > > > > > > > > >>Cheers,
> > > > > > > > > > > >>Pablo
> > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > ______________________________________________________________________
> > > > > > > > > > > > This email has been scanned by the MessageLabs Email Security
> > > > > System.
> > > > > > > > > > > > For more information please visit
> > > > > http://www.messagelabs.com/email
> > > > > > > > > > > >
> > > > > ______________________________________________________________________
> > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > > > --
> > > > > > > > > > > Don't answer to From: address!
> > > > > > > > > > > Mail to this account are droped if not recieved via mailinglist.
> > > > > > > > > > > To contact me direct create the mail address by
> > > > > > > > > > > concatenating my forename to my senders domain.
> > > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > > --
> > > > > > > > > >
> > > > > > > > > > http://www.irian.at
> > > > > > > > > > Your JSF powerhouse -
> > > > > > > > > > JSF Trainings in English and German
> > > > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > > --
> > > > > > > >
> > > > > > > > http://www.irian.at
> > > > > > > > Your JSF powerhouse -
> > > > > > > > JSF Trainings in English and German
> > > > > > > >
> > > > > > > >
> > > > > > > > --
> > > > > > > >
> > > > > > > > http://www.irian.at
> > > > > > > > Your JSF powerhouse -
> > > > > > > > JSF Trainings in English and German
> > > > > > > >
> > > > > > >
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > >
> > > >
> > > > --
> > > > Mathias
> > > >
> > >
> >
> >
> > --
> > Mathias
> >
>


--
Mathias