Well, wouldn't you know it -- it doesn't do it anymore! I don't know if I
should be happy or upset!
Anyway, I had originally encountered the page expiry problem on my actual
application which is a little more involved than the code snippets we've
been working with. I am going to go back to the original app and work with
it to see if I can isolate the code base from it.
Thanks for all your attention and help.
Sri
igor.vaynberg wrote:
>
> tried your code here and it works just fine. not sure where your
> problem is. perhaps you can generate your project using our maven
> archetype and try again there.
>
> -igor
>
>
> On Feb 5, 2008 6:16 AM, Sri Sankaran <[EMAIL PROTECTED]> wrote:
>>
>> The behavior is unchanged whether I deploy my app as a WAR or as an
>> exploded
>> archive. I have tried this in WebLogic 10, Tomcat 5.5 & Tomcat 6.
>>
>> Yes, cookies are enabled.
>>
>> Here is the code:
>> Home.html
>>
>> <a href="#" wicket:id="link_to_page_two">Page Two</a>
>>
>> <a href="#" wicket:id="another_link_to_page_two">Page Two too</a>
>>
>> Home.java
>> public class Home extends WebPage {
>> public Home() {
>> add(new PageLink("link_to_page_two", PageTwo.class));
>> add(new PageLink("another_link_to_page_two",
>> new IPageLink() {
>> public Page getPage() { return new
>> PageTwo(); }
>> public Class getPageIdentity() { return
>> PageTwo.class; }
>> }
>> )
>> );
>>
>> Page2.html
>> This is page 2
>>
>> Page2.java
>> public class PageTwo extends WebPage {}
>>
>> web.xml
>>
>> <web-app>
>> <display-name>Wicket Test</display-name>
>> <filter>
>> <filter-name>wicket_filter</filter-name>
>>
>> <filter-class>org.apache.wicket.protocol.http.WicketFilter</filter-class>
>> <init-param>
>> <param-name>applicationClassName</param-name>
>> <param-value>com.sas.mis.wicketTest</param-value>
>> </init-param>
>> </filter>
>> <filter-mapping>
>> <filter-name>wicket_filter</filter-name>
>> <url-pattern>/*</url-pattern>
>> </filter-mapping>
>> </web-app>
>>
>> Now, I have
>> http://www.nabble.com/Page-Expired-issue-td13661826.html#a13661826 read
>> the
>> post about page expiration. It discusses the merits of servlet vs.
>> filter
>> mapping and mapping /* vs. /app/*. But I fail to see that having any
>> bearing on my current problem.
>>
>> Sri
>>
>>
>> igor.vaynberg wrote:
>> >
>> > i dont think the page actually expires, i think wicket cant find it
>> > anymore.
>> >
>> > are the cookies enabled in the browser?
>> >
>> > how are you deploying your app?
>> >
>> > show us the code to the link.
>> >
>> > show us your web.xml
>> >
>> > -igor
>> >
>> > On Feb 4, 2008 8:53 PM, Sri Sankaran <[EMAIL PROTECTED]> wrote:
>> >>
>> >> Wicket Version: 1.3
>> >>
>> >> OK, I'll admit to having a tenuous grasp of Wicket -- but I am trying
>> to
>> >> learn. I am having trouble with a pages having a very short half
>> life!
>> >> I
>> >> have looked at several prior postings on the topic of page expiry but
>> >> none
>> >> seem fit the bill.
>> >>
>> >> I have boiled my application down to two very simple pages:
>> Page1.html
>> >> that
>> >> has a link to Page2.
>> >>
>> >>
>> >> <a href="#" wicket:id="link_to_page_two">Page Two</a>
>> >>
>> >> That's it!
>> >>
>> >> Here are the sequence of steps:
>> >>
>> >> I invoke the app, Page1 is displayed
>> >> I click on the link on Page1, Wicket correctly leads me to Page2
>> >> I use the browser's back button (I can hear you say aha!) -- Page1 is
>> >> displayed
>> >> I click on the link (to Page2) -- I get the "Page Expired" page
>> >>
>> >>
>> >> I can see that this has something to do with the version of the page
>> that
>> >> is
>> >> being referenced but beyond that I don't have a rational explanation
>> for
>> >> what I am seeing. Can you please explain -- or point me to the
>> >> appropriate
>> >> docs?
>> >>
>> >> Also, what I have described above is a fairly common usage scenario.
>> How
>> >> can I prevent the user from seeing the "Page expired" page?
>> >>
>> >> FWIW, the link to Page2 has been coded as a PageLink. For good
>> measure,
>> >> I
>> >> have even tried both PageLink constructor variants. I see the same
>> >> behavior
>> >> in both cases.
>> >>
>> >> I appreciate any guidance you can provide.
>> >>
>> >> Sri
>> >>
>> >> --
>> >> View this message in context:
>> >>
>> http://www.nabble.com/Why-has-my-page-expired--tp15283551p15283551.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]
>> >
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Why-has-my-page-expired--tp15283551p15290962.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/Why-has-my-page-expired--tp15283551p15296618.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]