You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Ron Piterman (JIRA)" <ta...@jakarta.apache.org> on 2005/10/23 12:30:06 UTC
[jira] Created: (TAPESTRY-722) unequal handling of ' (amp) in .properties when using validators
unequal handling of ' (amp) in .properties when using validators
----------------------------------------------------------------
Key: TAPESTRY-722
URL: http://issues.apache.org/jira/browse/TAPESTRY-722
Project: Tapestry
Type: Bug
Reporter: Ron Piterman
When using validators if
(1) you give the message in the .jwc validators:, you need to escape each ' as '' (double amp).
(2) if using resources, the behaiviour is the same, BUT other resources do not need that.
(3) when using a bean and referencing it in the validators def using $, I would guess it is the same (did not try...) - you need to escape each amp as a double one.
this leeds to unequal escaping of amps in resources which can couse problems in translations.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-dev-help@jakarta.apache.org
[jira] Commented: (TAPESTRY-722) unequal handling of ' (amp) in .properties when using validators
Posted by "Ron Piterman (JIRA)" <ta...@jakarta.apache.org>.
[ http://issues.apache.org/jira/browse/TAPESTRY-722?page=comments#action_12332891 ]
Ron Piterman commented on TAPESTRY-722:
---------------------------------------
Sorry - version is Tap. 4 b11
> unequal handling of ' (amp) in .properties when using validators
> ----------------------------------------------------------------
>
> Key: TAPESTRY-722
> URL: http://issues.apache.org/jira/browse/TAPESTRY-722
> Project: Tapestry
> Type: Bug
> Reporter: Ron Piterman
>
> When using validators if
> (1) you give the message in the .jwc validators:, you need to escape each ' as '' (double amp).
> (2) if using resources, the behaiviour is the same, BUT other resources do not need that.
> (3) when using a bean and referencing it in the validators def using $, I would guess it is the same (did not try...) - you need to escape each amp as a double one.
> this leeds to unequal escaping of amps in resources which can couse problems in translations.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-dev-help@jakarta.apache.org
[jira] Commented: (TAPESTRY-722) unequal handling of ' (amp) in .properties when using validators
Posted by "Howard M. Lewis Ship (JIRA)" <ta...@jakarta.apache.org>.
[ http://issues.apache.org/jira/browse/TAPESTRY-722?page=comments#action_12358425 ]
Howard M. Lewis Ship commented on TAPESTRY-722:
-----------------------------------------------
Still not seeing what the issue is here. You always have to escape single quotes as a pair of single quotes when using java.text.MessageFormat, which is *explicitly* what Tapestry does.
> unequal handling of ' (amp) in .properties when using validators
> ----------------------------------------------------------------
>
> Key: TAPESTRY-722
> URL: http://issues.apache.org/jira/browse/TAPESTRY-722
> Project: Tapestry
> Type: Bug
> Reporter: Ron Piterman
> Assignee: Howard M. Lewis Ship
> Attachments: amp.zip
>
> When using validators if
> (1) you give the message in the .jwc validators:, you need to escape each ' as '' (double amp).
> (2) if using resources, the behaiviour is the same, BUT other resources do not need that.
> (3) when using a bean and referencing it in the validators def using $, I would guess it is the same (did not try...) - you need to escape each amp as a double one.
> this leeds to unequal escaping of amps in resources which can couse problems in translations.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-dev-help@jakarta.apache.org
[jira] Updated: (TAPESTRY-722) unequal handling of ' (amp) in .properties when using validators
Posted by "Ron Piterman (JIRA)" <ta...@jakarta.apache.org>.
[ http://issues.apache.org/jira/browse/TAPESTRY-722?page=all ]
Ron Piterman updated TAPESTRY-722:
----------------------------------
Attachment: amp.zip
> unequal handling of ' (amp) in .properties when using validators
> ----------------------------------------------------------------
>
> Key: TAPESTRY-722
> URL: http://issues.apache.org/jira/browse/TAPESTRY-722
> Project: Tapestry
> Type: Bug
> Reporter: Ron Piterman
> Attachments: amp.zip
>
> When using validators if
> (1) you give the message in the .jwc validators:, you need to escape each ' as '' (double amp).
> (2) if using resources, the behaiviour is the same, BUT other resources do not need that.
> (3) when using a bean and referencing it in the validators def using $, I would guess it is the same (did not try...) - you need to escape each amp as a double one.
> this leeds to unequal escaping of amps in resources which can couse problems in translations.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-dev-help@jakarta.apache.org
[jira] Commented: (TAPESTRY-722) unequal handling of ' (amp) in .properties when using validators
Posted by "Ron Piterman (JIRA)" <ta...@jakarta.apache.org>.
[ http://issues.apache.org/jira/browse/TAPESTRY-722?page=comments#action_12356477 ]
Ron Piterman commented on TAPESTRY-722:
---------------------------------------
The attached zip contains .page .html and .properties and demonstrates the problem -
hope that will make it clearer...
> unequal handling of ' (amp) in .properties when using validators
> ----------------------------------------------------------------
>
> Key: TAPESTRY-722
> URL: http://issues.apache.org/jira/browse/TAPESTRY-722
> Project: Tapestry
> Type: Bug
> Reporter: Ron Piterman
>
> When using validators if
> (1) you give the message in the .jwc validators:, you need to escape each ' as '' (double amp).
> (2) if using resources, the behaiviour is the same, BUT other resources do not need that.
> (3) when using a bean and referencing it in the validators def using $, I would guess it is the same (did not try...) - you need to escape each amp as a double one.
> this leeds to unequal escaping of amps in resources which can couse problems in translations.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-dev-help@jakarta.apache.org
[jira] Assigned: (TAPESTRY-722) unequal handling of ' (amp) in .properties when using validators
Posted by "Howard M. Lewis Ship (JIRA)" <ta...@jakarta.apache.org>.
[ http://issues.apache.org/jira/browse/TAPESTRY-722?page=all ]
Howard M. Lewis Ship reassigned TAPESTRY-722:
---------------------------------------------
Assign To: Howard M. Lewis Ship
> unequal handling of ' (amp) in .properties when using validators
> ----------------------------------------------------------------
>
> Key: TAPESTRY-722
> URL: http://issues.apache.org/jira/browse/TAPESTRY-722
> Project: Tapestry
> Type: Bug
> Reporter: Ron Piterman
> Assignee: Howard M. Lewis Ship
> Attachments: amp.zip
>
> When using validators if
> (1) you give the message in the .jwc validators:, you need to escape each ' as '' (double amp).
> (2) if using resources, the behaiviour is the same, BUT other resources do not need that.
> (3) when using a bean and referencing it in the validators def using $, I would guess it is the same (did not try...) - you need to escape each amp as a double one.
> this leeds to unequal escaping of amps in resources which can couse problems in translations.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-dev-help@jakarta.apache.org
[jira] Commented: (TAPESTRY-722) unequal handling of ' (amp) in .properties when using validators
Posted by "Howard M. Lewis Ship (JIRA)" <ta...@jakarta.apache.org>.
[ http://issues.apache.org/jira/browse/TAPESTRY-722?page=comments#action_12356337 ]
Howard M. Lewis Ship commented on TAPESTRY-722:
-----------------------------------------------
I'm not following what the issue is. I things are consistent and we explicitly state that MessageFormat is used under the covers.
> unequal handling of ' (amp) in .properties when using validators
> ----------------------------------------------------------------
>
> Key: TAPESTRY-722
> URL: http://issues.apache.org/jira/browse/TAPESTRY-722
> Project: Tapestry
> Type: Bug
> Reporter: Ron Piterman
>
> When using validators if
> (1) you give the message in the .jwc validators:, you need to escape each ' as '' (double amp).
> (2) if using resources, the behaiviour is the same, BUT other resources do not need that.
> (3) when using a bean and referencing it in the validators def using $, I would guess it is the same (did not try...) - you need to escape each amp as a double one.
> this leeds to unequal escaping of amps in resources which can couse problems in translations.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-dev-help@jakarta.apache.org
[jira] Resolved: (TAPESTRY-722) unequal handling of ' (amp) in .properties when using validators
Posted by "Howard M. Lewis Ship (JIRA)" <ta...@jakarta.apache.org>.
[ http://issues.apache.org/jira/browse/TAPESTRY-722?page=all ]
Howard M. Lewis Ship resolved TAPESTRY-722:
-------------------------------------------
Resolution: Fixed
As noted, this is simpy the behavior of java.text.MessageFormat, a de-facto standard.
> unequal handling of ' (amp) in .properties when using validators
> ----------------------------------------------------------------
>
> Key: TAPESTRY-722
> URL: http://issues.apache.org/jira/browse/TAPESTRY-722
> Project: Tapestry
> Type: Bug
> Reporter: Ron Piterman
> Assignee: Howard M. Lewis Ship
> Attachments: amp.zip
>
> When using validators if
> (1) you give the message in the .jwc validators:, you need to escape each ' as '' (double amp).
> (2) if using resources, the behaiviour is the same, BUT other resources do not need that.
> (3) when using a bean and referencing it in the validators def using $, I would guess it is the same (did not try...) - you need to escape each amp as a double one.
> this leeds to unequal escaping of amps in resources which can couse problems in translations.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-dev-help@jakarta.apache.org