but then you are still encoding the name of the param into the path

/param1/value1/0/value2

if you dont a hybrid wont work because you wont be able to tell what is
indexed and what is not

/value1/value2/param1/value3

how do you tell 0=value1, 1=value2, param1=value3 ?

-igor


On 10/27/06, Johan Compagner <[EMAIL PROTECTED]> wrote:

i think what we could do is make Indexed a bit smarter
Only let its do its job when it really finds parameters that are index (1
=
x, 2 = y)
If not all params are like that fallback to the normal name = value.

currently if you make that default i guess this exception will be thrown:

    if (i != parameters.size())
        {
            throw new WicketRuntimeException(
                    "Not all parameters were encoded. Make sure all
parameter names are integers in consecutive order starting with zero.
Current parameter names are: "
                            + parameters.keySet().toString());
        }

johan


On 10/27/06, Korbinian Bachl <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> as many people need nice URLs in some cases and these should be perfect
to
> the thing the developer wants, I hereby request to set the default URL
> codingstrategy for BookmarkablePageLink to IndexedParamUrlCodingStrategy
> instead of the current default.
>
> For the exact Reasons and more infos, please see the Thread "my Feature
> Request/ Idea + now proposal (nice URLs)" on this mailinglist.
>
> [-1] No! - The current default (/paramname/paramvalue) is better IMHO
> [ 0] I don't care
> [+1] YES ! - I prefer /value1/value2 and dont want more URL discussions!
>
>
> Best Regards,
>
> Korbinian
>
> PS: this is my 1st Vote. If i've made any mistakes please let me know.
>
>


Reply via email to