You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Martin Grigorov (JIRA)" <ji...@apache.org> on 2010/08/15 11:25:16 UTC

[jira] Created: (WICKET-2989) Add IRequestMapper that can mount all pages in a package

Add IRequestMapper that can mount all pages in a package
--------------------------------------------------------

                 Key: WICKET-2989
                 URL: https://issues.apache.org/jira/browse/WICKET-2989
             Project: Wicket
          Issue Type: Bug
          Components: wicket
    Affects Versions: 1.5-M1
         Environment: Any
            Reporter: Martin Grigorov
             Fix For: 1.5-M2


In Wicket 1.4 it is possible to mount all pages in a package via org.apache.wicket.protocol.http.WebApplication.mount(String, PackageName).
Currently there is no replacement for this functionality in Wicket 1.5

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (WICKET-2989) Add IRequestMapper that can mount all pages in a package

Posted by "Hudson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WICKET-2989?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12899201#action_12899201 ] 

Hudson commented on WICKET-2989:
--------------------------------

Integrated in Apache Wicket 1.5.x #245 (See [https://hudson.apache.org/hudson/job/Apache%20Wicket%201.5.x/245/])
    

> Add IRequestMapper that can mount all pages in a package
> --------------------------------------------------------
>
>                 Key: WICKET-2989
>                 URL: https://issues.apache.org/jira/browse/WICKET-2989
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.5-M1
>         Environment: Any
>            Reporter: Martin Grigorov
>            Assignee: Martin Grigorov
>             Fix For: 1.5-M2
>
>
> In Wicket 1.4 it is possible to mount all pages in a package via org.apache.wicket.protocol.http.WebApplication.mount(String, PackageName).
> Currently there is no replacement for this functionality in Wicket 1.5

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (WICKET-2989) Add IRequestMapper that can mount all pages in a package

Posted by "Martin Grigorov (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WICKET-2989?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Martin Grigorov resolved WICKET-2989.
-------------------------------------

    Fix Version/s:     (was: 1.5-M2)
       Resolution: Not A Problem

It appears that this is actually supported out of the box thru org.apache.wicket.request.mapper.BookmarkableMapper which is added by default.
This mapper creates something like REST API for all classes in the application.
I.e. if there is a Page class com.example.MyPage then it is reachable at http://localhost:8080/wicket/bookmarkable/com.example.MyPage.
It has a bug currently that it tries to create a page even for classes which do not extend Page - WICKET-2993.

> Add IRequestMapper that can mount all pages in a package
> --------------------------------------------------------
>
>                 Key: WICKET-2989
>                 URL: https://issues.apache.org/jira/browse/WICKET-2989
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.5-M1
>         Environment: Any
>            Reporter: Martin Grigorov
>            Assignee: Martin Grigorov
>
> In Wicket 1.4 it is possible to mount all pages in a package via org.apache.wicket.protocol.http.WebApplication.mount(String, PackageName).
> Currently there is no replacement for this functionality in Wicket 1.5

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (WICKET-2989) Add IRequestMapper that can mount all pages in a package

Posted by "Major Peter (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WICKET-2989?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12898720#action_12898720 ] 

Major Peter commented on WICKET-2989:
-------------------------------------

Can this tweaked somehow to use Class#simpleName instead of FQDN? (like the old one)

> Add IRequestMapper that can mount all pages in a package
> --------------------------------------------------------
>
>                 Key: WICKET-2989
>                 URL: https://issues.apache.org/jira/browse/WICKET-2989
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.5-M1
>         Environment: Any
>            Reporter: Martin Grigorov
>            Assignee: Martin Grigorov
>
> In Wicket 1.4 it is possible to mount all pages in a package via org.apache.wicket.protocol.http.WebApplication.mount(String, PackageName).
> Currently there is no replacement for this functionality in Wicket 1.5

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Reopened: (WICKET-2989) Add IRequestMapper that can mount all pages in a package

Posted by "Martin Grigorov (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WICKET-2989?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Martin Grigorov reopened WICKET-2989:
-------------------------------------


Re-open the ticket to add a mapper that behaves exactly as in 1.4

> Add IRequestMapper that can mount all pages in a package
> --------------------------------------------------------
>
>                 Key: WICKET-2989
>                 URL: https://issues.apache.org/jira/browse/WICKET-2989
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.5-M1
>         Environment: Any
>            Reporter: Martin Grigorov
>            Assignee: Martin Grigorov
>
> In Wicket 1.4 it is possible to mount all pages in a package via org.apache.wicket.protocol.http.WebApplication.mount(String, PackageName).
> Currently there is no replacement for this functionality in Wicket 1.5

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (WICKET-2989) Add IRequestMapper that can mount all pages in a package

Posted by "Martin Grigorov (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WICKET-2989?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12898730#action_12898730 ] 

Martin Grigorov commented on WICKET-2989:
-----------------------------------------

It looks to be easy to do.
Take a look at org.apache.wicket.request.mapper.BookmarkableMapper.parseRequest(Request).
You need to replace the usage of 'getContext().getBookmarkableIdentifier()' with 'mountPath' and the FQN with the simple name. Do the same in #buildUrl() and you are done.
Give it a try and attach it to the ticket.

> Add IRequestMapper that can mount all pages in a package
> --------------------------------------------------------
>
>                 Key: WICKET-2989
>                 URL: https://issues.apache.org/jira/browse/WICKET-2989
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.5-M1
>         Environment: Any
>            Reporter: Martin Grigorov
>            Assignee: Martin Grigorov
>
> In Wicket 1.4 it is possible to mount all pages in a package via org.apache.wicket.protocol.http.WebApplication.mount(String, PackageName).
> Currently there is no replacement for this functionality in Wicket 1.5

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (WICKET-2989) Add IRequestMapper that can mount all pages in a package

Posted by "Martin Grigorov (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WICKET-2989?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Martin Grigorov resolved WICKET-2989.
-------------------------------------

    Fix Version/s: 1.5-M2
       Resolution: Fixed

Implemented with r986100.

> Add IRequestMapper that can mount all pages in a package
> --------------------------------------------------------
>
>                 Key: WICKET-2989
>                 URL: https://issues.apache.org/jira/browse/WICKET-2989
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.5-M1
>         Environment: Any
>            Reporter: Martin Grigorov
>            Assignee: Martin Grigorov
>             Fix For: 1.5-M2
>
>
> In Wicket 1.4 it is possible to mount all pages in a package via org.apache.wicket.protocol.http.WebApplication.mount(String, PackageName).
> Currently there is no replacement for this functionality in Wicket 1.5

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Assigned: (WICKET-2989) Add IRequestMapper that can mount all pages in a package

Posted by "Martin Grigorov (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WICKET-2989?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Martin Grigorov reassigned WICKET-2989:
---------------------------------------

    Assignee: Martin Grigorov

> Add IRequestMapper that can mount all pages in a package
> --------------------------------------------------------
>
>                 Key: WICKET-2989
>                 URL: https://issues.apache.org/jira/browse/WICKET-2989
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.5-M1
>         Environment: Any
>            Reporter: Martin Grigorov
>            Assignee: Martin Grigorov
>             Fix For: 1.5-M2
>
>
> In Wicket 1.4 it is possible to mount all pages in a package via org.apache.wicket.protocol.http.WebApplication.mount(String, PackageName).
> Currently there is no replacement for this functionality in Wicket 1.5

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.