You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Ritesh Trivedi <ri...@gmail.com> on 2008/09/15 21:23:16 UTC

Yet another back button question

Hi,

I have a bookmarkable page which has a DropDownChoice with
onSelectionChanged() enabled. When the selection changes, the response is
set to another bookmarkable page. The DropDownChoice is actually in the left
bar panel which is common to all the pages as its included in the base page
as part of the standard page layout.

Note: DownDownChoice is wrapped with its own form. Not sure if this is
absolutely required.

Here is the problem...

1. I am on page1 (Bookmarkable) with the left bar DropDownChoice.
DropDownChoice wrapper form now has the URL of type ?wicket:interface=26:...
2. I select a choice from downdownchoice, since I have form wrapper around
and have onselectionchange enabled, the form is submitted to
?wicket:interface=26... and properly get the response to the new
bookmarkable page. Since this bookmarkable page is also extended from common
base page with the left bar panel containing DropDownChoice, now the
DropDownChoice url in the html becomes ?wicket:interface=27:...
3. I hit back button to go back to previous bookmarkable page. Note, this
page has the form submission url of wicket:interface=26:.. Now I select
something from the dropdownchoice and it bombs with ClassNotFoundException.

While I understand why - this represents a common situation that many ppl
probably should have encountered. Trying to find out whats the best way to
solve these kind of issues? I know one way is to set the proper cache
control headers. Is that the only way? I may be missing a bigger picture of
back button handling in wicket and designing stateless pages etc. Will
appreciate a "design" oriented feedback on how to go about designing pages,
what to keep in mind etc. A lot of the times, pages are created without
keeping these kind of things in mind, which causes problems later or worse
yet, not tested and end user encounters the issue.
-- 
View this message in context: http://www.nabble.com/Yet-another-back-button-question-tp19499452p19499452.html
Sent from the Wicket - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Yet another back button question

Posted by Igor Vaynberg <ig...@gmail.com>.
you understand why you get a classnotfoundexception? i dont. mind
enlightening us?

-igor

On Mon, Sep 15, 2008 at 12:23 PM, Ritesh Trivedi
<ri...@gmail.com> wrote:
>
> Hi,
>
> I have a bookmarkable page which has a DropDownChoice with
> onSelectionChanged() enabled. When the selection changes, the response is
> set to another bookmarkable page. The DropDownChoice is actually in the left
> bar panel which is common to all the pages as its included in the base page
> as part of the standard page layout.
>
> Note: DownDownChoice is wrapped with its own form. Not sure if this is
> absolutely required.
>
> Here is the problem...
>
> 1. I am on page1 (Bookmarkable) with the left bar DropDownChoice.
> DropDownChoice wrapper form now has the URL of type ?wicket:interface=26:...
> 2. I select a choice from downdownchoice, since I have form wrapper around
> and have onselectionchange enabled, the form is submitted to
> ?wicket:interface=26... and properly get the response to the new
> bookmarkable page. Since this bookmarkable page is also extended from common
> base page with the left bar panel containing DropDownChoice, now the
> DropDownChoice url in the html becomes ?wicket:interface=27:...
> 3. I hit back button to go back to previous bookmarkable page. Note, this
> page has the form submission url of wicket:interface=26:.. Now I select
> something from the dropdownchoice and it bombs with ClassNotFoundException.
>
> While I understand why - this represents a common situation that many ppl
> probably should have encountered. Trying to find out whats the best way to
> solve these kind of issues? I know one way is to set the proper cache
> control headers. Is that the only way? I may be missing a bigger picture of
> back button handling in wicket and designing stateless pages etc. Will
> appreciate a "design" oriented feedback on how to go about designing pages,
> what to keep in mind etc. A lot of the times, pages are created without
> keeping these kind of things in mind, which causes problems later or worse
> yet, not tested and end user encounters the issue.
> --
> View this message in context: http://www.nabble.com/Yet-another-back-button-question-tp19499452p19499452.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org