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

Igor Vaynberg resolved WICKET-2471.
-----------------------------------

    Resolution: Won't Fix
      Assignee: Igor Vaynberg

if we make the getter nonfinal then we have to remove the setter because it is 
easy to break the setter contract by overriding the getter - eg make calls to 
setescapemodelstrings(false) mean nothing.

you can easily accomplish what you want by using onbeforerender () { 
label.setescapemodelstrings(getescapemodelstrings()); }


> Component: set/getEscapeModelStrings should not be final
> --------------------------------------------------------
>
>                 Key: WICKET-2471
>                 URL: https://issues.apache.org/jira/browse/WICKET-2471
>             Project: Wicket
>          Issue Type: Improvement
>          Components: wicket
>    Affects Versions: 1.3.4
>            Reporter: Peter Parson
>            Assignee: Igor Vaynberg
>
> It would be helpful to be able to overwrite getter and setter for 
> escapeModelStrings.
> Scenario: custom component with Label inside.
> It should be possible to pass CustomComponent#escapeModelStrings property 
> through to Label#escapeModelStrings like this:
> @Override
> public Component setEscapeModelStrings(boolean escape) {
> return myLabel.setEscapeModelStrings(escape);
> }
> @Override
> public boolean getEscapeModelStrings(boolean escape) {
> return myLabel.getEscapeModelStrings();
> }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to