You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Alexander Gavrilov (JIRA)" <de...@tapestry.apache.org> on 2008/05/01 18:18:56 UTC

[jira] Created: (TAPESTRY-2402) Tapestry should be smarter about coersing string literals to Enum's

Tapestry should be smarter about coersing string literals to Enum's
-------------------------------------------------------------------

                 Key: TAPESTRY-2402
                 URL: https://issues.apache.org/jira/browse/TAPESTRY-2402
             Project: Tapestry
          Issue Type: Improvement
    Affects Versions: 5.0.11
            Reporter: Alexander Gavrilov
            Priority: Minor
             Fix For: 5.0.12


In the current implementation to allow coersion form string literal to Enum we need to add contribution to the TypeCoercer. This is working. But this coersion can be performed by default using just Enum.valueOf (Class, String), so there are not required to register new coersion for every used enum type. In this case whe are lost the case insensibility of enum coersions, but if this is meaningfull for everyone we can still use contributed coersions, and if no one is found fallback do the default. Enum.valueOf

-- 
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-98) Tapestry should be smarter about coersing string literals to Enum's

Posted by "Howard M. Lewis Ship (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TAP5-98?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Howard M. Lewis Ship updated TAP5-98:
-------------------------------------

    Issue Type: Improvement  (was: Bug)

> Tapestry should be smarter about coersing string literals to Enum's
> -------------------------------------------------------------------
>
>                 Key: TAP5-98
>                 URL: https://issues.apache.org/jira/browse/TAP5-98
>             Project: Tapestry 5
>          Issue Type: Improvement
>    Affects Versions: 5.0.15
>            Reporter: Alexander Gavrilov
>            Priority: Minor
>
> In the current implementation to allow coersion form string literal to Enum we need to add contribution to the TypeCoercer. This is working. But this coersion can be performed by default using just Enum.valueOf (Class, String), so there are not required to register new coersion for every used enum type. In this case whe are lost the case insensibility of enum coersions, but if this is meaningfull for everyone we can still use contributed coersions, and if no one is found fallback do the default. Enum.valueOf

-- 
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-2402) Tapestry should be smarter about coersing string literals to Enum's

Posted by "Howard M. Lewis Ship (JIRA)" <de...@tapestry.apache.org>.
     [ https://issues.apache.org/jira/browse/TAPESTRY-2402?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Howard M. Lewis Ship updated TAPESTRY-2402:
-------------------------------------------

    Fix Version/s:     (was: 5.0.13)
                   5.0

> Tapestry should be smarter about coersing string literals to Enum's
> -------------------------------------------------------------------
>
>                 Key: TAPESTRY-2402
>                 URL: https://issues.apache.org/jira/browse/TAPESTRY-2402
>             Project: Tapestry
>          Issue Type: Improvement
>    Affects Versions: 5.0.11
>            Reporter: Alexander Gavrilov
>            Priority: Minor
>             Fix For: 5.0
>
>
> In the current implementation to allow coersion form string literal to Enum we need to add contribution to the TypeCoercer. This is working. But this coersion can be performed by default using just Enum.valueOf (Class, String), so there are not required to register new coersion for every used enum type. In this case whe are lost the case insensibility of enum coersions, but if this is meaningfull for everyone we can still use contributed coersions, and if no one is found fallback do the default. Enum.valueOf

-- 
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-2402) Tapestry should be smarter about coersing string literals to Enum's

Posted by "Howard M. Lewis Ship (JIRA)" <de...@tapestry.apache.org>.
     [ https://issues.apache.org/jira/browse/TAPESTRY-2402?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Howard M. Lewis Ship updated TAPESTRY-2402:
-------------------------------------------

    Fix Version/s:     (was: 5.0.12)
                   5.0.13

> Tapestry should be smarter about coersing string literals to Enum's
> -------------------------------------------------------------------
>
>                 Key: TAPESTRY-2402
>                 URL: https://issues.apache.org/jira/browse/TAPESTRY-2402
>             Project: Tapestry
>          Issue Type: Improvement
>    Affects Versions: 5.0.11
>            Reporter: Alexander Gavrilov
>            Priority: Minor
>             Fix For: 5.0.13
>
>
> In the current implementation to allow coersion form string literal to Enum we need to add contribution to the TypeCoercer. This is working. But this coersion can be performed by default using just Enum.valueOf (Class, String), so there are not required to register new coersion for every used enum type. In this case whe are lost the case insensibility of enum coersions, but if this is meaningfull for everyone we can still use contributed coersions, and if no one is found fallback do the default. Enum.valueOf

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