You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Howard M. Lewis Ship (JIRA)" <ta...@jakarta.apache.org> on 2005/10/30 21:09:59 UTC

[jira] Assigned: (TAPESTRY-723) The "empty" property of StringTranslator is broken

     [ http://issues.apache.org/jira/browse/TAPESTRY-723?page=all ]

Howard M. Lewis Ship reassigned TAPESTRY-723:
---------------------------------------------

    Assign To: Howard M. Lewis Ship

> The "empty" property of StringTranslator is broken
> --------------------------------------------------
>
>          Key: TAPESTRY-723
>          URL: http://issues.apache.org/jira/browse/TAPESTRY-723
>      Project: Tapestry
>         Type: Bug
>   Components: Framework
>     Versions: 4.0
>     Reporter: Pal Denes
>     Assignee: Howard M. Lewis Ship

>
> When trying to set the empty property for a StringTranslator in an initializer, like this:
>   <binding name="translator" value="translator:string,empty=''"/>,
> an exception is thrown:
> org.apache.hivemind.ApplicationRuntimeException: Unable to instantiate instance of class org.apache.tapestry.form.translator.StringTranslator: java.lang.reflect.InvocationTargetException [context:/WEB-INF/EditDoc.page, line 36, column 68]
> ...
> Caused by: org.apache.hivemind.ApplicationRuntimeException: Property empty of object org.apache.tapestry.form.translator.StringTranslator@dad4b8 is read-only.
>         at org.apache.hivemind.util.PropertyAdaptor.write(PropertyAdaptor.java:86)
>         at org.apache.hivemind.util.PropertyAdaptor.smartWrite(PropertyAdaptor.java:109)
>         at org.apache.hivemind.util.ClassAdaptor.smartWrite(ClassAdaptor.java:76)
>         at org.apache.hivemind.util.ClassAdaptor.configurePropertyFromToken(ClassAdaptor.java:219)
>         at org.apache.hivemind.util.ClassAdaptor.configureProperties(ClassAdaptor.java:195)
>         at org.apache.hivemind.util.PropertyUtils.configureProperties(PropertyUtils.java:90)
>         at org.apache.tapestry.form.translator.StringTranslator.<init>(StringTranslator.java:43)
> In StringTranslator the type of the "empty" property seems to be mismatched in the getter and setter:
>     public Object getEmpty()
>     {
>         return _empty;
>     }
>     public void setEmpty(String empty)
>     {
>         _empty = empty;
>     }
> This is the same problem found here:
> http://www.mail-archive.com/tapestry-user@jakarta.apache.org/msg08166.html

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-dev-help@jakarta.apache.org