You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Andrew Robinson (JIRA)" <de...@myfaces.apache.org> on 2007/08/29 23:52:31 UTC
[jira] Commented: (TRINIDAD-663) Idea for a new component to
enhance PPR
[ https://issues.apache.org/jira/browse/TRINIDAD-663?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12523707 ]
Andrew Robinson commented on TRINIDAD-663:
------------------------------------------
Example usages:
Trigger immediately, useful for re-rendering on validation/conversion failures:
<tr:inputText required="true" partialTriggers="myTrigger" />
<cw:partialTrigger id="myTrigger" immediate="true">
<tr:commandLink partialSubmit="true" text="Test" />
</cw:partialTrigger>
Force other components to trigger:
<tr:inputText id="mytext" />
<cw:partialTrigger partialTargets="mytext">
<tr:commandLink partialSubmit="true" text="Test" />
</cw:partialTrigger>
Support triggering on multiple components with less work:
<tr:inputText partialTriggers="myTrigger" />
<cw:partialTrigger id="myTrigger">
<tr:commandLink partialSubmit="true" text="Test" />
<tr:commandLink partialSubmit="true" text="Test2" />
<tr:commandLink partialSubmit="true" text="Test3" />
<tr:commandLink partialSubmit="true" text="Test4" />
<tr:commandLink partialSubmit="true" text="Test5" />
<tr:commandLink partialSubmit="true" text="Test6" />
</cw:partialTrigger>
> Idea for a new component to enhance PPR
> ---------------------------------------
>
> Key: TRINIDAD-663
> URL: https://issues.apache.org/jira/browse/TRINIDAD-663
> Project: MyFaces Trinidad
> Issue Type: Improvement
> Components: Components
> Affects Versions: 1.0.2-core
> Reporter: Andrew Robinson
> Attachments: PartialTriggerEvent.java, PartialTriggerListener.java, UIPartialTrigger.java
>
>
> It is not currently possible out of the box to control when in the JSF lifecycle a Trinidad component triggers its partial notification outside of actually changing the phase ID of the events, which is not always possible.
> Also, it is very difficult to have a component listen to many components. For example, someone may want to say, re-render component x when any child of y is triggered.
> There is also no functionality for a push type of PPR. Meaning that right now components specify that they want to be triggered, but there is no way to say for a component to target other components (for example, specify on a button to re-render a text box, instead of specifying on a text-box to re-render on that button).
> I will attach code that I am using in my private project for a component that makes this relatively easy.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.