You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Jochen Kemnade (JIRA)" <ji...@apache.org> on 2015/03/02 12:49:05 UTC

[jira] [Commented] (TAP5-2459) Setter in subinterface of getter's interface not found by tapestry

    [ https://issues.apache.org/jira/browse/TAP5-2459?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14343075#comment-14343075 ] 

Jochen Kemnade commented on TAP5-2459:
--------------------------------------

Hard to say anything without some code. What kind of form are you using? A Tapestry Form component, a BeanEditForm, or some custom component? Does Tapestry detect that your object is a {{ReadableWritableObject}}? What output do you get for {{readableWritableObject.class}}?

> Setter in subinterface of getter's interface not found by tapestry
> ------------------------------------------------------------------
>
>                 Key: TAP5-2459
>                 URL: https://issues.apache.org/jira/browse/TAP5-2459
>             Project: Tapestry 5
>          Issue Type: Bug
>          Components: tapestry-core
>    Affects Versions: 5.3.7
>            Reporter: Vincent Dhellemmes
>            Priority: Minor
>
> When a setter is declared in a subinterface of the interface containing the associated getter, tapestry can't access to the setter and see the property in read-only.
> By example, if I have the following objects :
> public interface ReadableObject {
>  String getValue();
> }
> public interface ReadableWritableObject extends ReadableObject {
>  void setValue(String v);
> }
> When I reference an object of type ReadableWritableObject in a form, I have the following error at the form validation :
> "Expression 'readableWritableObject.value' for class myPackage.myComponentWithForm is read-only."
> When I move the setter in the first Interface (ReadableObject), it works.
> Is it a bug of tapestry 5.3.7 ?



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)