Yes it does.
Sounds like to you need to implement serializable in your class.
public class YourClass extends WebPage implements Serializable {
luther.baker wrote:
>
> For this example, I have a 'blog' like front page. On this page are
> several
> posts that each, have an associated category and multiple tags.
>
> I am in the prototype/design phase right now (simply hard coding the posts
> and corresponding references in the Java class).
>
> *Use Case 1:
> *1. visit the front page and click on a 'category' link (correctly takes
> me
> to the 'CategoryPage').
> 2. from the 'CategoryPage', click on the 'Home' link (correctly takes me
> back to the front page).
> 3. from font page, click on any of the three 'category' links (correctly
> takes me to the 'CategoryPage').
>
> *Use Case 2:
> *1. visit the front page and click on a 'category' link (correctly takes
> me
> to the 'CategoryPage').
> 2. from the 'CategoryPage', click *BACK BUTTON in the browser*
> 3. from font page, click on any of the three 'category' links (crash!)
>
> Page Expired
>
> The page you requested has expired.
>
> Return to home page <http://localhost:8089/effprog/>
>
>
> Thanks,
>
> -Luther
>
>
>
> *Code*
>
> *Relevant markup:
> *
> <dl class="post">
> <dt class="title"><h4>Wicket and Legos</h4></dt>
> <dd class="tags"><strong> # [web frameworks] </strong>:
> wicket</dd>
> <dd class="content">
> Wicket makes things so easy.
> Make a change and you can see all the obvious things
> break.
> Its much more like putting together a lego set.
> Things just fit into place.
> </dd>
> <dd class="dateline">2009/05/26 Luther Baker</dd>
> </dl>
>
> *and the Java:
> *
> public HomePage()
> {
> super(new ResourceModel("head-title"));
>
> Category category = new Category();
> category.setName("web-frameworks");
> addCategoryLink("a-category-1", category);
> addCategoryLink("a-category-2", category);
>
> category = new Category();
> category.setName("mac-desktop");
> addCategoryLink("a-category-3", category);
> }
>
> private void addCategoryLink(final String key, final Category
> category)
> {
> final Link<Void> link = new Link<Void>(key)
> {
> private static final long serialVersionUID = 1L;
>
> @Override
> public void onClick()
> {
> final CategoryPage categoryPage = new
> CategoryPage(category);
> setResponsePage(categoryPage);
> }
> };
> add(link);
> }
>
>
--
View this message in context:
http://www.nabble.com/Does-Link-work-with-browser-BACK-button--tp23804447p23804483.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]