You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Sven Meier (JIRA)" <ji...@apache.org> on 2016/07/15 06:51:20 UTC

[jira] [Updated] (WICKET-6201) PropertyResolver#setValue failing with setter only and no corresponding field

     [ https://issues.apache.org/jira/browse/WICKET-6201?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sven Meier updated WICKET-6201:
-------------------------------
    Description: 
If there is a bean like that:

{code}
  public class Bean {
    private Object innerValue;

    public void setValue(Object value) {
      this.innerValue = value;
    }
  }
{code}

PropertyResolver#setValue() fails with expression "value", because it cannot find a getter nor a field with that name.

  was:
This issue is related to this PR: https://github.com/apache/wicket/pull/74#issuecomment-232608673

Issue:

If there is a bean like that:

public class Bean {
   public void setValue(Object value);
}

PropertyValue.setValue is failing to set value for "value" expression with message that no "get" methods.

        Summary: PropertyResolver#setValue failing with setter only and no corresponding field  (was: PropertyResolver.setValue failing if  there is only setter)

> PropertyResolver#setValue failing with setter only and no corresponding field
> -----------------------------------------------------------------------------
>
>                 Key: WICKET-6201
>                 URL: https://issues.apache.org/jira/browse/WICKET-6201
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 7.3.0
>            Reporter: Ilia Naryzhny
>            Assignee: Sven Meier
>
> If there is a bean like that:
> {code}
>   public class Bean {
>     private Object innerValue;
>     public void setValue(Object value) {
>       this.innerValue = value;
>     }
>   }
> {code}
> PropertyResolver#setValue() fails with expression "value", because it cannot find a getter nor a field with that name.



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