After some obvious bugfixes, as well as many attempts to try different
angles of updated objects on the client, I'm still stuck. I've made my
AjaxDirectLink components work, I can click them and the listeners are
called. I've made sure that my dojo js directory is the excact same as the
tacos4 demo application. Still nothing happens when I click the back and
forward buttons, tested in IE and Firefox.

Just to make sure: Is this documented to work, or might there be bugs in the
tacos implementation for these back button things?

Inge

On 2/2/06, Inge Solvoll <[EMAIL PROTECTED]> wrote:
>
> Still no luck on this one. When i click the backbutton, none of my server
> side listeners are triggered, and nothing apart from the regular form stuff
> happens. And the StaleLink of course when I do something else...
>
> My page file contains this:
>
>   <component id="form" type="tacos:AjaxForm">
>     <binding name="listener" value="listener:formSubmit"/>
>     <binding name="backLink" value="component:backLink"/>
>     <binding name="forwardLink" value="component:forwardLink"/>
>     <binding name="statusElement" value="'formStatus'"/>
>     <binding name="updateComponents" value="{'formTest'}"/>
>   </component>
>
>   <component id="backLink" type="tacos:AjaxDirectLink">
>     <binding name="listener" value="listener:backButton"/>
>     <binding name="updateComponents" value="{'formTest'}"/>
>   </component>
>
>   <component id="forwardLink" type="tacos:AjaxDirectLink">
>     <binding name="listener" value="listener:nextButton"/>
>     <binding name="updateComponents" value="{'formTest'}"/>
>   </component>
>
> My html file contains this:
>
> <form jwcid="form">
> ...lots of other stuff...
> <div id="formStatus">
>   Form status here...
> </div>
> <input type="text" jwcid="[EMAIL PROTECTED]" value="ognl:activeCategory.id">
>   ***Active category is printed here.***
> </input>
> ...lots of other stuff...
> </form>
>
> My java file contains this:
>
> public void backButton(IRequestCycle cycle) {
>     log.debug("Entered backButton method");
>   }
>
>   public void forwardButton(IRequestCycle cycle) {
>     log.debug("Entered forwardButton method");
>   }
>
>
> Any help would be appreciated, I continue to try to make this work, but
> for now I have absolutely nothing to hang on to, I get no response from the
> tacos components...
>
> Inge
>
> On 2/1/06, Inge Solvoll <[EMAIL PROTECTED]> wrote:
> >
> > Thanks for the reply! I moved the deadline on this a little bit, will
> > try to implement it within a few weeks. I'll get back to it here.
> >
> > Inge
> >
> > On 1/24/06, Jesse Kuhnert < [EMAIL PROTECTED]> wrote:
> > >
> > > Three things come to mind:
> > >
> > > -) When using backLink, it is almost always desirable to use a
> > > combination
> > > of backLink/forwardLink so that behaviour makes sense in both
> > > directions.
> > >
> > > -) Your backLink doesn't specify which areas of the page to refresh.
> > >
> > > -) I'm not entirely sure that redirects are working properly in tacos
> > > right
> > > now.
> > >
> > > On 1/24/06, Inge Solvoll < [EMAIL PROTECTED]> wrote:
> > > >
> > > > I've tried to get this to work, looking at the demo application, but
> > > so
> > > > far
> > > > no luck.
> > > >
> > > > When I click the back button in firefox 1.0.7, nothing happens.
> > > There are
> > > > no
> > > > Javascript errors in the Javascript console.
> > > > When I click the back button in IE 6, it works normally, going back
> > > the
> > > > usual "back button way". No visible javascript error.
> > > > None of the browsers (IE, Firefox) call my listener method.
> > > >
> > > > My components look like this:
> > > >
> > > > <component id="form" type="tacos:AjaxForm">
> > > >     <binding name="listener" value="listener:formSubmit"/>
> > > >     <binding name="backLink" value="component:backLink"/>
> > > >   </component>
> > > >
> > > >   <component id="backLink" type="tacos:AjaxDirectLink">
> > > >     <binding name="listener" value="listener:previousCategory"/>
> > > >   </component>
> > > >
> > > > My listener method:
> > > >
> > > > public void previousCategory(IRequestCycle cycle) {
> > > >     log.debug("Entered previousCategory method");
> > > > // Redirect for clear debugging
> > > >     throw new RedirectException(" http://www.amazon.com";);
> > > >   }
> > > >
> > > > Any ideas?
> > > >
> > > > Inge
> > > >
> > > > On 1/21/06, Jesse Kuhnert < [EMAIL PROTECTED] > wrote:
> > > > >
> > > > > You can achieve the behaviour you are asking for if you were
> > > willing to
> > > > > use
> > > > > the tapestry form here instead:
> > > > > http://tacos.sourceforge.net/components/AjaxForm.html .
> > > > >
> > > > > Specifically, you want to specify the forwardLink/backLink actions
> > > that
> > > > > should be performed when the user hits the forward/back buttons on
> > > their
> > > > > web
> > > > > browser client.
> > > > >
> > > > > j
> > > > >
> > > > > On 1/21/06, Stijn Christiaens < [EMAIL PROTECTED]> wrote:
> > > > > >
> > > > > >
> > > > > > Hello all,
> > > > > >
> > > > > > I have the following problem. I have a page which contains a
> > > Form and
> > > > > some
> > > > > > RadioButtons and If components. The page represents one question
> > > in a
> > > > > > multiple choice system (hence the form with the radiobuttons).
> > > On
> > > > > submit,
> > > > > > the page reloads with the next question.
> > > > > > Now if I go back and the next question has the same amount of
> > > answers
> > > > > (eg.
> > > > > > 3 RadioButtons), no problem (well, not always :-). If the next
> > > > question
> > > > > has
> > > > > > a different number (eg. 2), Tapestry will come crying about with
> > > some
> > > > > > StaleStateException that ActionId #x doesn't match with some
> > > component
> > > > > in
> > > > > > the form.
> > > > > > Obviously this is because Tapestry thinks that it is at question
> > > 2,
> > > > > while
> > > > > > the back button caused the browser to be back at question 1.
> > > > > >
> > > > > > That's about it. Now to my question. How can I fix this? So if
> > > the
> > > > back
> > > > > > button is pressed, Tapestry will rebuild the Form based on data
> > > it
> > > > > receives
> > > > > > from the client, rather than trying to use the Form object it
> > > thinks
> > > > is
> > > > > the
> > > > > > correct one.
> > > > > > Is this already present in the framework?
> > > > > >
> > > > > > Thanks in advance.
> > > > > >
> > > > > > Ciao,
> > > > > >
> > > > > > Stijn
> > > > > >
> > > > > >
> > > ---------------------------------------------------------------------
> > > > > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > >
> > > > > > For additional commands, e-mail:
> > > [EMAIL PROTECTED]
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >
> >
>

Reply via email to