well, what wicket does is version the state if you keep it inside its model,
so it all Just Works. But because you are keeping your state outside of
wicket you have to build your own versioning mechanism, or remove your state
machine and use wicket.

-igor


On 8/28/07, fero <[EMAIL PROTECTED]> wrote:
>
>
> I know, it is working fine. But I have a problem with BACK BUTTON in
> browser.
> When somebody uses back button he changes the webpage, but not my
> statemachine. How should I make that my SM will be always in correct state
> even when back button used?
>
> Fero
>
>
> igor.vaynberg wrote:
> >
> > your question doesnt really make sense
> >
> > you can wire wicket however you like
> >
> > your wicket page can have a reference to your statemachine and pull
> > attribute values (such as disabled) from it while pushing events (such
> as
> > onclick) into it.
> >
> > wicket is very flexible when it comes to wiring components
> >
> > -igor
> >
> >
> > On 8/28/07, fero <[EMAIL PROTECTED]> wrote:
> >>
> >>
> >> Hi. Is there any way in this framework how to separate app logic and
> >> presentation. I dont want to store all app behavior (which button is
> >> eneabled for this user with this role, what happens when button is
> >> pressed...) in the web page.
> >>
> >> This is my first wicket application and I was using state machine (SM)
> as
> >> in
> >> swing. Every state represents one webpage but every state has it
> >> interanal
> >> state as well (eg. weather editing is enabled...). SM is stored in
> >> session
> >> and when new state comes it does in initialization setResponsePage.
> When
> >> a
> >> button is pressed it only call processEvent(Event e) on the state
> machine
> >> which delegates it to current state.
> >>
> >> It was ok but I have problem with back button in web browser. Wicket
> has
> >> this problem solved. How can I use  this wicket feature to synchronize
> my
> >> SM? Or should I take another approach? Eg. state will be stored in a
> >> webpage..
> >>
> >> I like this approach more than code directly in webpage because it is
> >> very
> >> readable.
> >>
> >> Thanks for your suggestions.
> >>
> >> Fero
> >>
> >> --
> >> View this message in context:
> >>
> http://www.nabble.com/Presentation-and-application-logic-separation-tf4341077.html#a12365915
> >> Sent from the Wicket - User mailing list archive at Nabble.com.
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >>
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/Presentation-and-application-logic-separation-tf4341077.html#a12376844
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

Reply via email to