You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Martin Grigorov <mg...@apache.org> on 2011/06/25 04:39:43 UTC

[Announce] Wicket 1.5-RC5.1 is released

The Wicket Team is proud to introduce the fifth Release Candidate in
Wicket 1.5 series. It includes bug fixes and improvements reported
against 1.5-RC4.2. See the changelog for full list.

More detailed migration notes are available on our [Migrate to 1.5
Wiki Page](https://cwiki.apache.org/WICKET/migration-to-wicket-15.html)

Release Artifacts:
* Subversion tag:
  http://svn.apache.org/repos/asf/wicket/releases/wicket-1.5-RC5.1
* Changelog:
  https://issues.apache.org/jira/secure/ReleaseNote.jspa?projectId=12310561&version=12316423
  https://issues.apache.org/jira/secure/IssueNavigator.jspa?reset=true&mode=hide&jqlQuery=project+%3D+WICKET+AND+fixVersion+%3D+%221.5-RC5.1%22
* To use in Maven:
  <dependency>
    <groupId>org.apache.wicket</groupId>
    <artifactId>wicket-core</artifactId>
    <version>1.5-RC5.1</version>
  </dependency>
* Download the full distribution:
  http://www.apache.org/dyn/closer.cgi/wicket/1.5-RC5.1 (including source)

The Wicket Team!

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


Re: Upgrade Wicket to 1.5-RC5.1 -> 'Page expired'

Posted by Martin Grigorov <mg...@apache.org>.
Please create a quickstart app and attach it to Jira

On Mon, Jun 27, 2011 at 12:49 PM, Thomas Franconville
<tf...@tetraedge.com> wrote:
> yes, It happens in
> org.apache.wicket.request.handler.PageProvider.getPageInstance() ,
> but not for the WelcomePage, but the redirection page (RedirectPage).
> the CASPageAuthorizationStrategy as we are not authentified a
> org.apache.wicket.RestartResponseAtInterceptPageException with in parameter
> an instance of RedirectPage.
> On the second call of PageProvider.getPageInstance, the pageId is of 0, an
> all other parameters are nulls.
>
> The run seems quite different on 1.5-RC4.2 version - There is only one call
> of the method PageProvider.getPageInstance() and it come after the
> CASPageAuthorizationStrategy.isPageAuthorized
>
> Le 27/06/2011 11:24, Martin Grigorov a écrit :
>>
>> Put a breakpoint in
>> org.apache.wicket.request.handler.PageProvider.getPageInstance() and
>> see what happens.
>> It seems the test tries to retrieve a page from the page store by id
>> but there is no such.
>>
>> On Mon, Jun 27, 2011 at 12:20 PM, Thomas Franconville
>> <tf...@tetraedge.com>  wrote:
>>>
>>> Hi,
>>>
>>> Upgrading wicket from 1.5-RC4.2 to 1.5-RC5.1  make my Junit Test down
>>> with
>>> the error 'Page expired'
>>>
>>> /**
>>>  * Simple test using the WicketTester
>>>  */
>>> public class TestHomePage
>>> {
>>>    private WicketTester tester;
>>>
>>>    @Before
>>>    public void setUp()
>>>    {
>>>        tester = new WicketTester(new MyApplication());
>>>    }
>>>
>>>    @Test
>>>    public void homepageRendersSuccessfully()
>>>    {
>>>        //start and render the test page
>>>        tester.startPage(WelcomePage.class);
>>>
>>>        //assert rendered page class
>>>        tester.assertRenderedPage(RedirectPage.class);
>>>    }
>>> }
>>>
>>> My application use a CASPageAuthorizationStrategy inspired of
>>> http://www.lunikon.net/2009/11/24/integrating-cas-and-wicket/
>>>
>>>
>>> Kind Regards
>>>
>>> Thomas
>>>
>>>
>>> ---------------------------------------------------------------------
>>> 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
>
>



-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

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


Re: Upgrade Wicket to 1.5-RC5.1 -> 'Page expired'

Posted by Thomas Franconville <tf...@tetraedge.com>.
yes, It happens in 
org.apache.wicket.request.handler.PageProvider.getPageInstance() ,
but not for the WelcomePage, but the redirection page (RedirectPage).
the CASPageAuthorizationStrategy as we are not authentified a 
org.apache.wicket.RestartResponseAtInterceptPageException with in 
parameter an instance of RedirectPage.
On the second call of PageProvider.getPageInstance, the pageId is of 0, 
an all other parameters are nulls.

The run seems quite different on 1.5-RC4.2 version - There is only one 
call of the method PageProvider.getPageInstance() and it come after the 
CASPageAuthorizationStrategy.isPageAuthorized

Le 27/06/2011 11:24, Martin Grigorov a écrit :
> Put a breakpoint in
> org.apache.wicket.request.handler.PageProvider.getPageInstance() and
> see what happens.
> It seems the test tries to retrieve a page from the page store by id
> but there is no such.
>
> On Mon, Jun 27, 2011 at 12:20 PM, Thomas Franconville
> <tf...@tetraedge.com>  wrote:
>> Hi,
>>
>> Upgrading wicket from 1.5-RC4.2 to 1.5-RC5.1  make my Junit Test down with
>> the error 'Page expired'
>>
>> /**
>>   * Simple test using the WicketTester
>>   */
>> public class TestHomePage
>> {
>>     private WicketTester tester;
>>
>>     @Before
>>     public void setUp()
>>     {
>>         tester = new WicketTester(new MyApplication());
>>     }
>>
>>     @Test
>>     public void homepageRendersSuccessfully()
>>     {
>>         //start and render the test page
>>         tester.startPage(WelcomePage.class);
>>
>>         //assert rendered page class
>>         tester.assertRenderedPage(RedirectPage.class);
>>     }
>> }
>>
>> My application use a CASPageAuthorizationStrategy inspired of
>> http://www.lunikon.net/2009/11/24/integrating-cas-and-wicket/
>>
>>
>> Kind Regards
>>
>> Thomas
>>
>>
>> ---------------------------------------------------------------------
>> 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


Re: Upgrade Wicket to 1.5-RC5.1 -> 'Page expired'

Posted by Martin Grigorov <mg...@apache.org>.
Put a breakpoint in
org.apache.wicket.request.handler.PageProvider.getPageInstance() and
see what happens.
It seems the test tries to retrieve a page from the page store by id
but there is no such.

On Mon, Jun 27, 2011 at 12:20 PM, Thomas Franconville
<tf...@tetraedge.com> wrote:
> Hi,
>
> Upgrading wicket from 1.5-RC4.2 to 1.5-RC5.1  make my Junit Test down with
> the error 'Page expired'
>
> /**
>  * Simple test using the WicketTester
>  */
> public class TestHomePage
> {
>    private WicketTester tester;
>
>    @Before
>    public void setUp()
>    {
>        tester = new WicketTester(new MyApplication());
>    }
>
>    @Test
>    public void homepageRendersSuccessfully()
>    {
>        //start and render the test page
>        tester.startPage(WelcomePage.class);
>
>        //assert rendered page class
>        tester.assertRenderedPage(RedirectPage.class);
>    }
> }
>
> My application use a CASPageAuthorizationStrategy inspired of
> http://www.lunikon.net/2009/11/24/integrating-cas-and-wicket/
>
>
> Kind Regards
>
> Thomas
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>



-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

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


Upgrade Wicket to 1.5-RC5.1 -> 'Page expired'

Posted by Thomas Franconville <tf...@tetraedge.com>.
Hi,

Upgrading wicket from 1.5-RC4.2 to 1.5-RC5.1  make my Junit Test down 
with the error 'Page expired'

/**
  * Simple test using the WicketTester
  */
public class TestHomePage
{
     private WicketTester tester;

     @Before
     public void setUp()
     {
         tester = new WicketTester(new MyApplication());
     }

     @Test
     public void homepageRendersSuccessfully()
     {
         //start and render the test page
         tester.startPage(WelcomePage.class);

         //assert rendered page class
         tester.assertRenderedPage(RedirectPage.class);
     }
}

My application use a CASPageAuthorizationStrategy inspired of 
http://www.lunikon.net/2009/11/24/integrating-cas-and-wicket/


Kind Regards

Thomas


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