You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Ernest Monklitch (JIRA)" <de...@tapestry.apache.org> on 2008/08/13 09:50:46 UTC
[jira] Created: (TAPESTRY-2580) Allow override default translator
Allow override default translator
---------------------------------
Key: TAPESTRY-2580
URL: https://issues.apache.org/jira/browse/TAPESTRY-2580
Project: Tapestry
Issue Type: Improvement
Components: tapestry-core
Affects Versions: 5.0.14
Environment: All
Reporter: Ernest Monklitch
Fix For: 5.0.15
Tapestry should allow developer to override shipped default translators and add new ones.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org
[jira] Updated: (TAP5-45) Allow override default translator
Posted by "Ernest Monklitch (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TAP5-45?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ernest Monklitch updated TAP5-45:
---------------------------------
Fix Version/s: 5.1.0.0
> Allow override default translator
> ---------------------------------
>
> Key: TAP5-45
> URL: https://issues.apache.org/jira/browse/TAP5-45
> Project: Tapestry 5
> Issue Type: Bug
> Components: tapestry-ioc
> Affects Versions: 5.0.15
> Environment: All
> Reporter: Ernest Monklitch
> Fix For: 5.1.0.0
>
>
> Tapestry should allow developer to override shipped default translators and add new ones. This should be done by allowing the configuration of the translator source, so that developers are not forced to use the translator tag on every field. :)
> If you try to:
> public void contributeTranslatorSource(MappedConfiguration<String, Translator> configuration)
> {
> configuration.add("double", new LocalizedDoubleTranslator());
> }
> It results in:
> [WARN] TapestryModule.TranslatorSource Service contribution (to service 'TranslatorSource', by fi.abo.eblanketter.tapestry5.services.AppModule.contributeTranslatorSource(MappedConfiguration) (at AppModule.java:224)) conflicts with existing contribution (by org.apache.tapestry5.services.TapestryModule.contributeTranslatorSource(MappedConfiguration) (at TapestryModule.java:609)) and has been ignored.
> Is it possible to assign alias to this translator to override it?
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org
[jira] Updated: (TAPESTRY-2580) Allow override default translator
Posted by "Ernest Monklitch (JIRA)" <de...@tapestry.apache.org>.
[ https://issues.apache.org/jira/browse/TAPESTRY-2580?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ernest Monklitch updated TAPESTRY-2580:
---------------------------------------
Description:
Tapestry should allow developer to override shipped default translators and add new ones. This should be done by allowing the configuration of the translator source, so that developers are not forced to use the translator tag on every field. :)
If you try to:
public void contributeTranslatorSource(MappedConfiguration<String, Translator> configuration)
{
configuration.add("double", new LocalizedDoubleTranslator());
}
It results in:
[WARN] TapestryModule.TranslatorSource Service contribution (to service 'TranslatorSource', by fi.abo.eblanketter.tapestry5.services.AppModule.contributeTranslatorSource(MappedConfiguration) (at AppModule.java:224)) conflicts with existing contribution (by org.apache.tapestry5.services.TapestryModule.contributeTranslatorSource(MappedConfiguration) (at TapestryModule.java:609)) and has been ignored.
Is it possible to assign alias to this translator to override it?
was:Tapestry should allow developer to override shipped default translators and add new ones. This should be done by allowing the configuration of the translator source, so that developers are not forced to use the translator tag on every field. :)
> Allow override default translator
> ---------------------------------
>
> Key: TAPESTRY-2580
> URL: https://issues.apache.org/jira/browse/TAPESTRY-2580
> Project: Tapestry
> Issue Type: Improvement
> Components: tapestry-core
> Affects Versions: 5.0.14
> Environment: All
> Reporter: Ernest Monklitch
> Fix For: 5.0.15
>
>
> Tapestry should allow developer to override shipped default translators and add new ones. This should be done by allowing the configuration of the translator source, so that developers are not forced to use the translator tag on every field. :)
> If you try to:
> public void contributeTranslatorSource(MappedConfiguration<String, Translator> configuration)
> {
> configuration.add("double", new LocalizedDoubleTranslator());
> }
> It results in:
> [WARN] TapestryModule.TranslatorSource Service contribution (to service 'TranslatorSource', by fi.abo.eblanketter.tapestry5.services.AppModule.contributeTranslatorSource(MappedConfiguration) (at AppModule.java:224)) conflicts with existing contribution (by org.apache.tapestry5.services.TapestryModule.contributeTranslatorSource(MappedConfiguration) (at TapestryModule.java:609)) and has been ignored.
> Is it possible to assign alias to this translator to override it?
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org
[jira] Updated: (TAPESTRY-2580) Allow override default translator
Posted by "Howard M. Lewis Ship (JIRA)" <de...@tapestry.apache.org>.
[ https://issues.apache.org/jira/browse/TAPESTRY-2580?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Howard M. Lewis Ship updated TAPESTRY-2580:
-------------------------------------------
Fix Version/s: (was: 5.0.15)
5.0.16
> Allow override default translator
> ---------------------------------
>
> Key: TAPESTRY-2580
> URL: https://issues.apache.org/jira/browse/TAPESTRY-2580
> Project: Tapestry
> Issue Type: Improvement
> Components: tapestry-core
> Affects Versions: 5.0.14
> Environment: All
> Reporter: Ernest Monklitch
> Fix For: 5.0.16
>
>
> Tapestry should allow developer to override shipped default translators and add new ones. This should be done by allowing the configuration of the translator source, so that developers are not forced to use the translator tag on every field. :)
> If you try to:
> public void contributeTranslatorSource(MappedConfiguration<String, Translator> configuration)
> {
> configuration.add("double", new LocalizedDoubleTranslator());
> }
> It results in:
> [WARN] TapestryModule.TranslatorSource Service contribution (to service 'TranslatorSource', by fi.abo.eblanketter.tapestry5.services.AppModule.contributeTranslatorSource(MappedConfiguration) (at AppModule.java:224)) conflicts with existing contribution (by org.apache.tapestry5.services.TapestryModule.contributeTranslatorSource(MappedConfiguration) (at TapestryModule.java:609)) and has been ignored.
> Is it possible to assign alias to this translator to override it?
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org
[jira] Updated: (TAP5-45) Allow override default translator
Posted by "Howard M. Lewis Ship (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TAP5-45?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Howard M. Lewis Ship updated TAP5-45:
-------------------------------------
Issue Type: Improvement (was: Bug)
> Allow override default translator
> ---------------------------------
>
> Key: TAP5-45
> URL: https://issues.apache.org/jira/browse/TAP5-45
> Project: Tapestry 5
> Issue Type: Improvement
> Components: tapestry-ioc
> Affects Versions: 5.0.15
> Environment: All
> Reporter: Ville Virtanen
> Fix For: 5.1.0.0
>
>
> Tapestry should allow developer to override shipped default translators and add new ones. This should be done by allowing the configuration of the translator source, so that developers are not forced to use the translator tag on every field. :)
> If you try to:
> public void contributeTranslatorSource(MappedConfiguration<String, Translator> configuration)
> {
> configuration.add("double", new LocalizedDoubleTranslator());
> }
> It results in:
> [WARN] TapestryModule.TranslatorSource Service contribution (to service 'TranslatorSource', by fi.abo.eblanketter.tapestry5.services.AppModule.contributeTranslatorSource(MappedConfiguration) (at AppModule.java:224)) conflicts with existing contribution (by org.apache.tapestry5.services.TapestryModule.contributeTranslatorSource(MappedConfiguration) (at TapestryModule.java:609)) and has been ignored.
> Is it possible to assign alias to this translator to override it?
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org
[jira] Updated: (TAPESTRY-2580) Allow override default translator
Posted by "Ernest Monklitch (JIRA)" <de...@tapestry.apache.org>.
[ https://issues.apache.org/jira/browse/TAPESTRY-2580?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ernest Monklitch updated TAPESTRY-2580:
---------------------------------------
Description: Tapestry should allow developer to override shipped default translators and add new ones. This should be done by allowing the configuration of the translator source, so that developers are not forced to use the translator tag on every field. :) (was: Tapestry should allow developer to override shipped default translators and add new ones.)
> Allow override default translator
> ---------------------------------
>
> Key: TAPESTRY-2580
> URL: https://issues.apache.org/jira/browse/TAPESTRY-2580
> Project: Tapestry
> Issue Type: Improvement
> Components: tapestry-core
> Affects Versions: 5.0.14
> Environment: All
> Reporter: Ernest Monklitch
> Fix For: 5.0.15
>
>
> Tapestry should allow developer to override shipped default translators and add new ones. This should be done by allowing the configuration of the translator source, so that developers are not forced to use the translator tag on every field. :)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org
[jira] Commented: (TAP5-45) Allow override default translator
Posted by "Christian Köberl (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TAP5-45?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12654777#action_12654777 ]
Christian Köberl commented on TAP5-45:
--------------------------------------
We have decorated the TranslatorSource service to achieve this:
public class I18nTranslatorSourceDecorator implements TranslatorSource. Then we made our own service I18nTranslatorSource to contribute to.
In the class I18nTranslatorSourceDecorator we delegate all methods after checking in I18nTranslatorSource, eg:
public Translator findByType(Class valueType)
{
Translator t = i18nTSource.findByType(valueType);
if (t == null)
{
return delegate.findByType(valueType);
}
return t;
}
This works, but there could be an easier and nicer way.
> Allow override default translator
> ---------------------------------
>
> Key: TAP5-45
> URL: https://issues.apache.org/jira/browse/TAP5-45
> Project: Tapestry 5
> Issue Type: Improvement
> Components: tapestry-ioc
> Affects Versions: 5.0.15
> Environment: All
> Reporter: Ville Virtanen
> Fix For: 5.1.0.0
>
>
> Tapestry should allow developer to override shipped default translators and add new ones. This should be done by allowing the configuration of the translator source, so that developers are not forced to use the translator tag on every field. :)
> If you try to:
> public void contributeTranslatorSource(MappedConfiguration<String, Translator> configuration)
> {
> configuration.add("double", new LocalizedDoubleTranslator());
> }
> It results in:
> [WARN] TapestryModule.TranslatorSource Service contribution (to service 'TranslatorSource', by fi.abo.eblanketter.tapestry5.services.AppModule.contributeTranslatorSource(MappedConfiguration) (at AppModule.java:224)) conflicts with existing contribution (by org.apache.tapestry5.services.TapestryModule.contributeTranslatorSource(MappedConfiguration) (at TapestryModule.java:609)) and has been ignored.
> Is it possible to assign alias to this translator to override it?
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org
[jira] Commented: (TAPESTRY-2580) Allow override default translator
Posted by "Ernest Monklitch (JIRA)" <de...@tapestry.apache.org>.
[ https://issues.apache.org/jira/browse/TAPESTRY-2580?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12625996#action_12625996 ]
Ernest Monklitch commented on TAPESTRY-2580:
--------------------------------------------
I say +1 for this proposal!
Let the developer have the freedom to override (and face the consequences) ;)
> Allow override default translator
> ---------------------------------
>
> Key: TAPESTRY-2580
> URL: https://issues.apache.org/jira/browse/TAPESTRY-2580
> Project: Tapestry
> Issue Type: Improvement
> Components: tapestry-core
> Affects Versions: 5.0.14
> Environment: All
> Reporter: Ernest Monklitch
> Fix For: 5.0.15
>
>
> Tapestry should allow developer to override shipped default translators and add new ones. This should be done by allowing the configuration of the translator source, so that developers are not forced to use the translator tag on every field. :)
> If you try to:
> public void contributeTranslatorSource(MappedConfiguration<String, Translator> configuration)
> {
> configuration.add("double", new LocalizedDoubleTranslator());
> }
> It results in:
> [WARN] TapestryModule.TranslatorSource Service contribution (to service 'TranslatorSource', by fi.abo.eblanketter.tapestry5.services.AppModule.contributeTranslatorSource(MappedConfiguration) (at AppModule.java:224)) conflicts with existing contribution (by org.apache.tapestry5.services.TapestryModule.contributeTranslatorSource(MappedConfiguration) (at TapestryModule.java:609)) and has been ignored.
> Is it possible to assign alias to this translator to override it?
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org
[jira] Commented: (TAPESTRY-2580) Allow override default translator
Posted by "Howard M. Lewis Ship (JIRA)" <de...@tapestry.apache.org>.
[ https://issues.apache.org/jira/browse/TAPESTRY-2580?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12625953#action_12625953 ]
Howard M. Lewis Ship commented on TAPESTRY-2580:
------------------------------------------------
I've been thinking of changing the MappedConfiguration interface to add a new method, override() that's used to override built-ins. That would address this particular situation and many more like it, removing an occasional idiom of the override-configuration-holding service.
> Allow override default translator
> ---------------------------------
>
> Key: TAPESTRY-2580
> URL: https://issues.apache.org/jira/browse/TAPESTRY-2580
> Project: Tapestry
> Issue Type: Improvement
> Components: tapestry-core
> Affects Versions: 5.0.14
> Environment: All
> Reporter: Ernest Monklitch
> Fix For: 5.0.15
>
>
> Tapestry should allow developer to override shipped default translators and add new ones. This should be done by allowing the configuration of the translator source, so that developers are not forced to use the translator tag on every field. :)
> If you try to:
> public void contributeTranslatorSource(MappedConfiguration<String, Translator> configuration)
> {
> configuration.add("double", new LocalizedDoubleTranslator());
> }
> It results in:
> [WARN] TapestryModule.TranslatorSource Service contribution (to service 'TranslatorSource', by fi.abo.eblanketter.tapestry5.services.AppModule.contributeTranslatorSource(MappedConfiguration) (at AppModule.java:224)) conflicts with existing contribution (by org.apache.tapestry5.services.TapestryModule.contributeTranslatorSource(MappedConfiguration) (at TapestryModule.java:609)) and has been ignored.
> Is it possible to assign alias to this translator to override it?
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org
[jira] Updated: (TAP5-45) Allow override default translator
Posted by "Ernest Monklitch (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TAP5-45?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ernest Monklitch updated TAP5-45:
---------------------------------
Component/s: tapestry-ioc
> Allow override default translator
> ---------------------------------
>
> Key: TAP5-45
> URL: https://issues.apache.org/jira/browse/TAP5-45
> Project: Tapestry 5
> Issue Type: Bug
> Components: tapestry-ioc
> Affects Versions: 5.0.15
> Environment: All
> Reporter: Ernest Monklitch
>
> Tapestry should allow developer to override shipped default translators and add new ones. This should be done by allowing the configuration of the translator source, so that developers are not forced to use the translator tag on every field. :)
> If you try to:
> public void contributeTranslatorSource(MappedConfiguration<String, Translator> configuration)
> {
> configuration.add("double", new LocalizedDoubleTranslator());
> }
> It results in:
> [WARN] TapestryModule.TranslatorSource Service contribution (to service 'TranslatorSource', by fi.abo.eblanketter.tapestry5.services.AppModule.contributeTranslatorSource(MappedConfiguration) (at AppModule.java:224)) conflicts with existing contribution (by org.apache.tapestry5.services.TapestryModule.contributeTranslatorSource(MappedConfiguration) (at TapestryModule.java:609)) and has been ignored.
> Is it possible to assign alias to this translator to override it?
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org