[jira] Commented: (WICKET-1534) Allow multiple URL coding strategies on the same mount path

2009-02-20 Thread Flying Wolf (JIRA)

[ 
https://issues.apache.org/jira/browse/WICKET-1534?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12675516#action_12675516
 ] 

Flying Wolf commented on WICKET-1534:
-

Igor, it it not an uncommon usecase, it is the basis of RESTful URLs. Example:

http://example.com/users/
http://example.com/users/{user} (one for each user - where {user} is either the 
user name or the user id)

So RESTful URLs aren't possible in Wicket, unless you code it yourself.

> Allow multiple URL coding strategies on the same mount path
> ---
>
> Key: WICKET-1534
> URL: https://issues.apache.org/jira/browse/WICKET-1534
> Project: Wicket
>  Issue Type: New Feature
>  Components: wicket
>Affects Versions: 1.3.3
>Reporter: Erik van Oosten
>Assignee: Igor Vaynberg
> Attachments: VersatileWebRequestCodingStrategy.java
>
>
> It is currently not possible to mount multiple URL coding strategies on the 
> same mount path. However, in combination with method #matches(String urlPath) 
> this would be quite easy to accomplish in a backward compatible way.
> Please find attached a class that can be used instead of 
> WebRequestCodingStrategy.

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



[jira] Commented: (WICKET-1534) Allow multiple URL coding strategies on the same mount path

2008-07-31 Thread Igor Vaynberg (JIRA)

[ 
https://issues.apache.org/jira/browse/WICKET-1534?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12618865#action_12618865
 ] 

Igor Vaynberg commented on WICKET-1534:
---

we cannot put every conceivable convenience into the framework. the code would 
grow too large and unmanageable for us, we are a small team.

it is our job to provide you with a framework that is both concise and flexible 
enough for you to extend it and implement features you need. this is actually 
demonstrated by this patch which required no modification of wicket itself to 
implement this new feature.

if you find it useful then feel free to start a wicket stuff project and 
maintain and grow it there.

> Allow multiple URL coding strategies on the same mount path
> ---
>
> Key: WICKET-1534
> URL: https://issues.apache.org/jira/browse/WICKET-1534
> Project: Wicket
>  Issue Type: New Feature
>  Components: wicket
>Affects Versions: 1.3.3
>Reporter: Erik van Oosten
>Assignee: Igor Vaynberg
> Fix For: 1.4-M3
>
> Attachments: VersatileWebRequestCodingStrategy.java
>
>
> It is currently not possible to mount multiple URL coding strategies on the 
> same mount path. However, in combination with method #matches(String urlPath) 
> this would be quite easy to accomplish in a backward compatible way.
> Please find attached a class that can be used instead of 
> WebRequestCodingStrategy.

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



[jira] Commented: (WICKET-1534) Allow multiple URL coding strategies on the same mount path

2008-07-31 Thread dennis lucero (JIRA)

[ 
https://issues.apache.org/jira/browse/WICKET-1534?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12618864#action_12618864
 ] 

dennis lucero commented on WICKET-1534:
---

Igor, I disagree. In the days of user friendly URLs this is a quite common 
use-case. And when you look at frameworks with superior URL mapping 
capabilities such as Grails this is a must have for Wicket.

Erik, you saved my ass with this one. Thanks a lot!

> Allow multiple URL coding strategies on the same mount path
> ---
>
> Key: WICKET-1534
> URL: https://issues.apache.org/jira/browse/WICKET-1534
> Project: Wicket
>  Issue Type: New Feature
>  Components: wicket
>Affects Versions: 1.3.3
>Reporter: Erik van Oosten
>Assignee: Igor Vaynberg
> Fix For: 1.4-M3
>
> Attachments: VersatileWebRequestCodingStrategy.java
>
>
> It is currently not possible to mount multiple URL coding strategies on the 
> same mount path. However, in combination with method #matches(String urlPath) 
> this would be quite easy to accomplish in a backward compatible way.
> Please find attached a class that can be used instead of 
> WebRequestCodingStrategy.

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



[jira] Commented: (WICKET-1534) Allow multiple URL coding strategies on the same mount path

2008-04-16 Thread Erik van Oosten (JIRA)

[ 
https://issues.apache.org/jira/browse/WICKET-1534?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12589834#action_12589834
 ] 

Erik van Oosten commented on WICKET-1534:
-

After a small investigation I found that a 
CompoundRequestTargetUrlCodingStrategy is indeed possible.

However, it would not really work well unless WebRequestCodingStrategy is 
changed such that the IRequestTargetUrlCodingStrategy#matches methods are 
executed outside a synchronized block.

In my application I have to access the database in the matches methods. 
(Although the data is heavily cached, I can not afford to have all requests to 
stand still while the database is accessed for one page.)

I'll try to make new patches, but if someone else is quicker I would welcome 
that :)

> Allow multiple URL coding strategies on the same mount path
> ---
>
> Key: WICKET-1534
> URL: https://issues.apache.org/jira/browse/WICKET-1534
> Project: Wicket
>  Issue Type: New Feature
>  Components: wicket
>Affects Versions: 1.3.3
>Reporter: Erik van Oosten
> Fix For: 1.4-M1
>
> Attachments: VersatileWebRequestCodingStrategy.java
>
>
> It is currently not possible to mount multiple URL coding strategies on the 
> same mount path. However, in combination with method #matches(String urlPath) 
> this would be quite easy to accomplish in a backward compatible way.
> Please find attached a class that can be used instead of 
> WebRequestCodingStrategy.

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



[jira] Commented: (WICKET-1534) Allow multiple URL coding strategies on the same mount path

2008-04-15 Thread Frank Bille Jensen (JIRA)

[ 
https://issues.apache.org/jira/browse/WICKET-1534?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12589190#action_12589190
 ] 

Frank Bille Jensen commented on WICKET-1534:


Patches are always welcome :)

> Allow multiple URL coding strategies on the same mount path
> ---
>
> Key: WICKET-1534
> URL: https://issues.apache.org/jira/browse/WICKET-1534
> Project: Wicket
>  Issue Type: New Feature
>  Components: wicket
>Affects Versions: 1.3.3
>Reporter: Erik van Oosten
> Fix For: 1.4-M1
>
> Attachments: VersatileWebRequestCodingStrategy.java
>
>
> It is currently not possible to mount multiple URL coding strategies on the 
> same mount path. However, in combination with method #matches(String urlPath) 
> this would be quite easy to accomplish in a backward compatible way.
> Please find attached a class that can be used instead of 
> WebRequestCodingStrategy.

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



[jira] Commented: (WICKET-1534) Allow multiple URL coding strategies on the same mount path

2008-04-15 Thread Erik van Oosten (JIRA)

[ 
https://issues.apache.org/jira/browse/WICKET-1534?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12589122#action_12589122
 ] 

Erik van Oosten commented on WICKET-1534:
-

A CompoundRequestTargetUrlCodingStrategy is probably possible as well. I am 
however not sure how to code it. It would be a better solution because then you 
stay more compatible with other code (e.g. compresses coding strategy).

If this is chosen instead of the attached code, the WebRequestCodingStrategy 
(in particular the MountMap and the code that uses it) could still use some 
cleanup activity :)

> Allow multiple URL coding strategies on the same mount path
> ---
>
> Key: WICKET-1534
> URL: https://issues.apache.org/jira/browse/WICKET-1534
> Project: Wicket
>  Issue Type: New Feature
>  Components: wicket
>Affects Versions: 1.3.3
>Reporter: Erik van Oosten
> Fix For: 1.4-M1
>
> Attachments: VersatileWebRequestCodingStrategy.java
>
>
> It is currently not possible to mount multiple URL coding strategies on the 
> same mount path. However, in combination with method #matches(String urlPath) 
> this would be quite easy to accomplish in a backward compatible way.
> Please find attached a class that can be used instead of 
> WebRequestCodingStrategy.

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



[jira] Commented: (WICKET-1534) Allow multiple URL coding strategies on the same mount path

2008-04-15 Thread Frank Bille Jensen (JIRA)

[ 
https://issues.apache.org/jira/browse/WICKET-1534?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12589120#action_12589120
 ] 

Frank Bille Jensen commented on WICKET-1534:


Wouldn't this be possible to achieve the same thing with something like a 
CompoundRequestTargetUrlCodingStrategy?

> Allow multiple URL coding strategies on the same mount path
> ---
>
> Key: WICKET-1534
> URL: https://issues.apache.org/jira/browse/WICKET-1534
> Project: Wicket
>  Issue Type: New Feature
>  Components: wicket
>Affects Versions: 1.3.3
>Reporter: Erik van Oosten
> Fix For: 1.4-M1
>
> Attachments: VersatileWebRequestCodingStrategy.java
>
>
> It is currently not possible to mount multiple URL coding strategies on the 
> same mount path. However, in combination with method #matches(String urlPath) 
> this would be quite easy to accomplish in a backward compatible way.
> Please find attached a class that can be used instead of 
> WebRequestCodingStrategy.

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



[jira] Commented: (WICKET-1534) Allow multiple URL coding strategies on the same mount path

2008-04-15 Thread Erik van Oosten (JIRA)

[ 
https://issues.apache.org/jira/browse/WICKET-1534?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12589048#action_12589048
 ] 

Erik van Oosten commented on WICKET-1534:
-

Nothing changes there. It is already possible that multiple URL encoders are 
mounted for the same page type.

> Allow multiple URL coding strategies on the same mount path
> ---
>
> Key: WICKET-1534
> URL: https://issues.apache.org/jira/browse/WICKET-1534
> Project: Wicket
>  Issue Type: New Feature
>  Components: wicket
>Affects Versions: 1.3.3
>Reporter: Erik van Oosten
> Fix For: 1.4-M1
>
> Attachments: VersatileWebRequestCodingStrategy.java
>
>
> It is currently not possible to mount multiple URL coding strategies on the 
> same mount path. However, in combination with method #matches(String urlPath) 
> this would be quite easy to accomplish in a backward compatible way.
> Please find attached a class that can be used instead of 
> WebRequestCodingStrategy.

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



[jira] Commented: (WICKET-1534) Allow multiple URL coding strategies on the same mount path

2008-04-15 Thread Johan Compagner (JIRA)

[ 
https://issues.apache.org/jira/browse/WICKET-1534?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12589040#action_12589040
 ] 

Johan Compagner commented on WICKET-1534:
-

and which one to use when you do setResponsePage()



> Allow multiple URL coding strategies on the same mount path
> ---
>
> Key: WICKET-1534
> URL: https://issues.apache.org/jira/browse/WICKET-1534
> Project: Wicket
>  Issue Type: New Feature
>  Components: wicket
>Affects Versions: 1.3.3
>Reporter: Erik van Oosten
> Fix For: 1.4-M1
>
> Attachments: VersatileWebRequestCodingStrategy.java
>
>
> It is currently not possible to mount multiple URL coding strategies on the 
> same mount path. However, in combination with method #matches(String urlPath) 
> this would be quite easy to accomplish in a backward compatible way.
> Please find attached a class that can be used instead of 
> WebRequestCodingStrategy.

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