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

Martin Grigorov commented on WICKET-3608:
-----------------------------------------

Nice solution/workaround here is to use resource bundle for this special value.
E.g. 
in markup : <input type="button" wicket:message="value:myKey"/>
in MyApp.properties: myKey=Bla a<b>c.

I understand that it looks like a hack but the automatic encoding for attribute 
values in one central place (ComponentTag.writeOutput()) is too cool to be 
sacrificed for this special use case.

> input button escapes escaped value
> ----------------------------------
>
>                 Key: WICKET-3608
>                 URL: https://issues.apache.org/jira/browse/WICKET-3608
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket-core
>    Affects Versions: 1.5-RC3
>            Reporter: Sven Meier
>             Fix For: 1.5-RC4
>
>         Attachments: WICKET-3608-test.patch, double_escaped_test.diff, 
> wicket-3608.patch
>
>
> An input button with a value attribute containing escaped characters (&gt;) 
> is double escaped when rendered. Worked in 1.4.x.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to