I think you meant "does it", not "does is"! :-)

I'd probably phrase it as:
"Expression " + exp + " is neither an index nor a method of the list " +clz

On 31/03/06, Juergen Donnerstag <[EMAIL PROTECTED]> wrote:
> I came accross the following error message in PropertyResolver.
>
> throw new WicketRuntimeException("Can parse " + exp
>     + " as an index or look it up as a method for the list " + clz);
>
> Based on the code before I assume if must something like "Can not
> parse...". Even then, may be due to my english it would not be clear
> enough. May I suggest something like: "The expression " + exp + "
> contains neither an index nor does is refer to a method for the list "
> + clz.
>
> Juergen
>
> if (List.class.isAssignableFrom(clz))
> {
>         try
>         {
>                 int index = Integer.parseInt(exp);
>                 getAndSetter = new ListGetSet(index);
>         }
>         catch (NumberFormatException ex)
>         {
>                 // can't parse the exp als a index maybe the exp was a
>                 // method.
>                 method = findMethod(clz, exp);
>                 if (method != null)
>                 {
>                         getAndSetter = new MethodGetAndSet(method);
>                 }
>                 else
>                 {
>                         throw new WicketRuntimeException("Can parse '" + exp
>                                 + "' as an index or look it up as a method 
> for the list " + clz);
>                                                 }
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by xPML, a groundbreaking scripting language
> that extends applications into web and mobile media. Attend the live webcast
> and join the prime developer group breaking into this new coding territory!
> http://sel.as-us.falkag.net/sel?cmdlnk&kid0944&bid$1720&dat1642
> _______________________________________________
> Wicket-develop mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/wicket-develop
>


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
_______________________________________________
Wicket-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-develop

Reply via email to