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

Igor Vaynberg resolved WICKET-1229.
-----------------------------------

       Resolution: Fixed
    Fix Version/s:     (was: 1.3.0-rc2)
                   1.3.0-rc3
         Assignee: Igor Vaynberg

wicket will now look for the last : in the attribute name, so

my:attr:key it will be tokenized into my:attr=key

> Inside a html tag wicket:message's attribute cannot contain colon : in it, it 
> uses the first colon and tokenizes the rest to be the resource_identifier. 
> Need some way to use colon in the attribute name.
> ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: WICKET-1229
>                 URL: https://issues.apache.org/jira/browse/WICKET-1229
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.3.0-rc1
>         Environment: Windows XP, JDK1.4, Jetty Server, Eclipse Europa
>            Reporter: Ashley Abraham
>            Assignee: Igor Vaynberg
>             Fix For: 1.3.0-rc3
>
>
> I am trying to use wicket:message inside a tag in the following format 
> wicket:message="attribute:resource_identifier"
> The attribute:resource_identifier passed as a value to the wicket:message 
> uses the colon to tokenize the attribute and the resource_identifier. Now, 
> The attribute which I am using is a custom attribute  "ric:title" (without 
> quotes) which also has a colon in it. 
> Currently, I have a tag with a custom attribute ric:title and the 
> resource_identifier for it is page.title <div 
> wicket:message="ric:title:page.title" />, the problem is wicket takes the 
> first colon which is part of my attribute and takes the rest as the 
> resource_identifier and looks for it in the property file and then throws an 
> error.
> How can I tell wicket to ignore the colon in the attribute name...? and I've 
> tried using slash in front of the colon and it didn't work, I've tried using 
> ascii html entity encoding for colon, which is &#58; and didn't work.
> So, please make a way to use colon in the attribute.
> Something like the following would be nice <div wicket:message=" 'ric:title'  
> : page.title">, which allows the user to set the attribute name in the markup 
> within single quoutes. 
> I am hoping to see this fixed.
> Thanks

-- 
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