Throw an error if component binding is used illegally
-----------------------------------------------------

                 Key: TRINIDAD-1733
                 URL: https://issues.apache.org/jira/browse/TRINIDAD-1733
             Project: MyFaces Trinidad
          Issue Type: New Feature
          Components: Components
    Affects Versions: 1.2.13-core 
            Reporter: Andrew Robinson
            Assignee: Andrew Robinson


Because users illegally use component binding with non-request scopes, we
It would be very good to have a way to stop users from illegally using 
component binding of Trinidad components.

<tr:outputText binding="#{requestScope.myBean.outputComponent}" />
vs.
<tr:outputText binding="#{sessionScope.myBean.outputComponent}" />

I suggest we put code into UIXComponentBase of Trinidad that when the parent
component is set on a component, we check the old view root and the new view
root and if they are not the same, throw an exception. This way we would
catch these design errors before they are filed as bugs in the components.

I have seen many people trying to flag these situations as bugs in the 
framework instead of realizing it is a problem with their application.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to