when you hit the back button there is no server hit right? the page is
shown from browser's cache. if you dont want that you have to set a
cache/pragma no-store headers. see webpage.setheaders(). but do notice
this will result in more overhead as every back button hit will result
in another request to the server.

-igor


On Feb 13, 2008 12:05 AM, Constantin Y <[EMAIL PROTECTED]> wrote:
>
> But i am using a custom detachable model to provide data to my repeater.
> Maybe its something else?
> I am posting the code which is very simple and may help.
>
> Thanks for your time and congratulations to the whole team for your work in
> the 'Wicket in Action'
>
> ** the code is part of a quite big series of use cases testing for our
> evaluation process, so dont pay attention to issues like thread safe lists
> etc.
>
> http://www.nabble.com/file/p15450972/DataPanels.html DataPanels.html
> http://www.nabble.com/file/p15450972/DataPanels%2524DataBrowserPanel.html
> DataPanels%24DataBrowserPanel.html
> http://www.nabble.com/file/p15450972/DataPanels%2524DataEditorPanel.html
> DataPanels%24DataEditorPanel.html
> http://www.nabble.com/file/p15450972/DataPanels.java DataPanels.java
> http://www.nabble.com/file/p15450972/SimpleDataProvider.java
> SimpleDataProvider.java
> http://www.nabble.com/file/p15450972/SimplePojo.java SimplePojo.java
> http://www.nabble.com/file/p15450972/SimplePojoLoadableModel.java
> SimplePojoLoadableModel.java
> http://www.nabble.com/file/p15450972/DataFile.java DataFile.java
>
>
>
>
> igor.vaynberg wrote:
> >
> > then you are not using the proper model, you should use a detachable
> > model to feed your repeater. see LoadableDetachableModel. paste your
> > code if you have more questions.
> >
> > -igor
> >
> >
> > On Feb 12, 2008 12:34 AM, Constantin Y <[EMAIL PROTECTED]> wrote:
> >>
> >> Hi Igor,
> >>
> >> The problem with the back button is that if i dont setResponsePage(),
> >> after
> >> updating (or removing) a record from the list and pressing the back
> >> button,
> >> the system displays the exact previous data entry form with the old
> >> values
> >> of each record(!).
> >> If i had made, lets say 10 updates, the system will display all previous
> >> 10
> >> forms.
> >> I noticed that the url parameters have a format like
> >> "?wicket:interface=:1:8:::" where the second number changes every time i
> >> save (or remove) a record. If i press the back button then the second
> >> count
> >> decrements by 1 and the previous form is displayed with obsolete of
> >> course
> >> data.
> >> What the user expects by pressing the back button is to return to the
> >> menu
> >> (or whichever the caller page was) and not to the previous data entry
> >> form
> >> which is quite dangerous.
> >> This somehow is achieved by setting setResponsePage() inside the onClick
> >> code.
> >> I am quite sure that it is not wicket's "problem" and maybe i have to
> >> setup
> >> the whole page in a different way to achieve the behavior i want but i
> >> cant
> >> figure it out.
> >>
> >> Thanks again
> >>
> >>
> >>
> >> igor.vaynberg wrote:
> >> >
> >> > On Feb 8, 2008 7:44 AM, Constantin Y <[EMAIL PROTECTED]> wrote:
> >> >> Everything is ok except the "back" button.
> >> >
> >> > how is the back button broken exactly?
> >> >
> >> >> If i dont setResponsePage(..) in
> >> >> the onClick() method of the save button (btnSave) then wicket starts
> >> >> versioning(?) of the data entry form.
> >> >
> >> > a) you shouldnt call setresponsepage in onclick
> >> > b) wicket will version the page, whats wrong with that?
> >> >
> >> >> On the other hand i dont want to
> >> >> reconstruct the while page whenever i edit (or remove) a record.
> >> >> What am i missing?
> >> >
> >> > like i said, not sure what is not working...and whatever you posted
> >> > didnt make it
> >> >
> >> > -igor
> >> >
> >> >> Thanks a lot
> >> >>   http://www.nabble.com/file/p15357597/DataPanels.java DataPanels.java
> >> >> --
> >> >> View this message in context:
> >> >>
> >> http://www.nabble.com/Multiple-panels-and-back-button-tp15357597p15357597.html
> >> >> Sent from the Wicket - User mailing list archive at Nabble.com.
> >> >>
> >> >>
> >> >> ---------------------------------------------------------------------
> >> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >> >>
> >> >>
> >> >
> >> > ---------------------------------------------------------------------
> >> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> > For additional commands, e-mail: [EMAIL PROTECTED]
> >> >
> >> >
> >> >
> >>
> >> --
> >> View this message in context:
> >> http://www.nabble.com/Multiple-panels-and-back-button-tp15357597p15428648.html
> >>
> >> Sent from the Wicket - User mailing list archive at Nabble.com.
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >>
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
>
> --
> View this message in context: 
> http://www.nabble.com/Multiple-panels-and-back-button-tp15357597p15450972.html
>
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to