[richfaces-issues] [JBoss JIRA] (RF-12342) RichFunction: warn user or fail when no component found for given clientId

Brian Leathem (JIRA) jira-events at lists.jboss.org
Wed Oct 24 17:21:02 EDT 2012


     [ https://issues.jboss.org/browse/RF-12342?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Brian Leathem updated RF-12342:
-------------------------------

    Fix Version/s: 5-Tracking
                       (was: 4.3.0.M3)

    
> RichFunction: warn user or fail when no component found for given clientId
> --------------------------------------------------------------------------
>
>                 Key: RF-12342
>                 URL: https://issues.jboss.org/browse/RF-12342
>             Project: RichFaces
>          Issue Type: Enhancement
>      Security Level: Public(Everyone can see) 
>          Components: component-misc
>    Affects Versions: 4.2.2.Final
>            Reporter: Lukáš Fryč
>             Fix For: 5-Tracking
>
>
> {{RichFunction}} provides number of utility functions for inlining JavaScript calls refering to client-side component API.
> Those functions (in fact utility methods) usually returns {{null}} when no such component found.
> https://github.com/richfaces/components/blob/4.2.2.20120513-Final/misc/ui/src/main/java/org/richfaces/function/RichFunction.java#L91
> This is not very clever, since developers might observe tough-times when refactoring or even authoring JSF pages - they will observe problems during testing or even worse in production.
> In case no such component found in tree, I propose to either:
> * throw exception
> * produce {{FacesMessage}} (this will be displayed just in Development mode)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira



More information about the richfaces-issues mailing list