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

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

    Story Points: 4

    
> 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: 4.3.0.Milestone2
>
>
> {{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: 
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

_______________________________________________
richfaces-issues mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/richfaces-issues

Reply via email to