myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From arobinso...@apache.org
Subject svn commit: r698801 - in /myfaces/trinidad/trunk_1.2.x/trinidad-sandbox: sandbox-api/src/main/java-templates/ sandbox-api/src/main/java-templates/org/ sandbox-api/src/main/java-templates/org/apache/ sandbox-api/src/main/java-templates/org/apache/myface...
Date Thu, 25 Sep 2008 02:53:03 GMT
Author: arobinson74
Date: Wed Sep 24 19:53:02 2008
New Revision: 698801

URL: http://svn.apache.org/viewvc?rev=698801&view=rev
Log:
TRINIDAD-663

Add the partialTrigger component to the 1.2 sandbox


Added:
    myfaces/trinidad/trunk_1.2.x/trinidad-sandbox/sandbox-api/src/main/java-templates/
    myfaces/trinidad/trunk_1.2.x/trinidad-sandbox/sandbox-api/src/main/java-templates/org/
    myfaces/trinidad/trunk_1.2.x/trinidad-sandbox/sandbox-api/src/main/java-templates/org/apache/
    myfaces/trinidad/trunk_1.2.x/trinidad-sandbox/sandbox-api/src/main/java-templates/org/apache/myfaces/
    myfaces/trinidad/trunk_1.2.x/trinidad-sandbox/sandbox-api/src/main/java-templates/org/apache/myfaces/trinidad/
    myfaces/trinidad/trunk_1.2.x/trinidad-sandbox/sandbox-api/src/main/java-templates/org/apache/myfaces/trinidad/sandbox/
    myfaces/trinidad/trunk_1.2.x/trinidad-sandbox/sandbox-api/src/main/java-templates/org/apache/myfaces/trinidad/sandbox/component/   (with props)
    myfaces/trinidad/trunk_1.2.x/trinidad-sandbox/sandbox-api/src/main/java-templates/org/apache/myfaces/trinidad/sandbox/component/UIXPartialTriggerTemplate.java   (with props)
    myfaces/trinidad/trunk_1.2.x/trinidad-sandbox/sandbox-api/src/main/java/org/
    myfaces/trinidad/trunk_1.2.x/trinidad-sandbox/sandbox-api/src/main/java/org/apache/
    myfaces/trinidad/trunk_1.2.x/trinidad-sandbox/sandbox-api/src/main/java/org/apache/myfaces/
    myfaces/trinidad/trunk_1.2.x/trinidad-sandbox/sandbox-api/src/main/java/org/apache/myfaces/trinidad/
    myfaces/trinidad/trunk_1.2.x/trinidad-sandbox/sandbox-api/src/main/java/org/apache/myfaces/trinidad/sandbox/
    myfaces/trinidad/trunk_1.2.x/trinidad-sandbox/sandbox-api/src/main/java/org/apache/myfaces/trinidad/sandbox/event/   (with props)
    myfaces/trinidad/trunk_1.2.x/trinidad-sandbox/sandbox-api/src/main/java/org/apache/myfaces/trinidad/sandbox/event/PartialTriggerEvent.java   (with props)
    myfaces/trinidad/trunk_1.2.x/trinidad-sandbox/sandbox-api/src/main/java/org/apache/myfaces/trinidad/sandbox/event/PartialTriggerListener.java   (with props)
    myfaces/trinidad/trunk_1.2.x/trinidad-sandbox/sandbox-build/src/main/resources/META-INF/maven-faces-plugin/components/trinidad/PartialTrigger.xml   (with props)
    myfaces/trinidad/trunk_1.2.x/trinidad-sandbox/sandbox-demo/src/main/java/org/apache/myfaces/trinidaddemo/PartialDemoStatusBean.java   (with props)
    myfaces/trinidad/trunk_1.2.x/trinidad-sandbox/sandbox-demo/src/main/java/org/apache/myfaces/trinidaddemo/PartialDemoUtilBean.java   (with props)
    myfaces/trinidad/trunk_1.2.x/trinidad-sandbox/sandbox-demo/src/main/webapp/components/partialTrigger.jspx   (with props)
Modified:
    myfaces/trinidad/trunk_1.2.x/trinidad-sandbox/sandbox-demo/src/main/webapp/WEB-INF/faces-config.xml
    myfaces/trinidad/trunk_1.2.x/trinidad-sandbox/sandbox-demo/src/main/webapp/componentDemos.jspx

Propchange: myfaces/trinidad/trunk_1.2.x/trinidad-sandbox/sandbox-api/src/main/java-templates/org/apache/myfaces/trinidad/sandbox/component/
------------------------------------------------------------------------------
    svn:mergeinfo = 

Added: myfaces/trinidad/trunk_1.2.x/trinidad-sandbox/sandbox-api/src/main/java-templates/org/apache/myfaces/trinidad/sandbox/component/UIXPartialTriggerTemplate.java
URL: http://svn.apache.org/viewvc/myfaces/trinidad/trunk_1.2.x/trinidad-sandbox/sandbox-api/src/main/java-templates/org/apache/myfaces/trinidad/sandbox/component/UIXPartialTriggerTemplate.java?rev=698801&view=auto
==============================================================================
--- myfaces/trinidad/trunk_1.2.x/trinidad-sandbox/sandbox-api/src/main/java-templates/org/apache/myfaces/trinidad/sandbox/component/UIXPartialTriggerTemplate.java (added)
+++ myfaces/trinidad/trunk_1.2.x/trinidad-sandbox/sandbox-api/src/main/java-templates/org/apache/myfaces/trinidad/sandbox/component/UIXPartialTriggerTemplate.java Wed Sep 24 19:53:02 2008
@@ -0,0 +1,69 @@
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one
+ *  or more contributor license agreements.  See the NOTICE file
+ *  distributed with this work for additional information
+ *  regarding copyright ownership.  The ASF licenses this file
+ *  to you under the Apache License, Version 2.0 (the
+ *  "License"); you may not use this file except in compliance
+ *  with the License.  You may obtain a copy of the License at
+ * 
+ *  http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ *  Unless required by applicable law or agreed to in writing,
+ *  software distributed under the License is distributed on an
+ *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ *  KIND, either express or implied.  See the License for the
+ *  specific language governing permissions and limitations
+ *  under the License.
+ */
+package org.apache.myfaces.trinidad.sandbox.component;
+
+import javax.faces.event.AbortProcessingException;
+import javax.faces.event.FacesEvent;
+import javax.faces.event.PhaseId;
+
+import org.apache.myfaces.trinidad.component.UIXComponentBase;
+import org.apache.myfaces.trinidad.context.RequestContext;
+import org.apache.myfaces.trinidad.sandbox.event.PartialTriggerEvent;
+
+/**
+ * This component queues
+ */
+public abstract class UIXPartialTriggerTemplate extends UIXComponentBase
+{
+/**/  public abstract String[] getPartialTargets();
+/**/  public abstract boolean isImmediate();
+
+  /**
+   * @see org.apache.myfaces.trinidad.sandbox.component.UIXComponentBase#queueEvent(javax.faces.event.FacesEvent)
+   */
+  @Override
+  public void queueEvent(FacesEvent event)
+  {
+    PartialTriggerEvent triggerEvent = new PartialTriggerEvent(this);
+    
+    triggerEvent.setPhaseId(isImmediate() ? PhaseId.ANY_PHASE :
+      event.getPhaseId());
+    
+    super.queueEvent(triggerEvent);
+    super.queueEvent(event);
+  }
+  
+  /**
+   * @see org.apache.myfaces.trinidad.sandbox.component.UIXComponentBase#broadcast(javax.faces.event.FacesEvent)
+   */
+  @Override
+  public void broadcast(FacesEvent event) throws AbortProcessingException
+  {
+    String[] targets = getPartialTargets();
+    if (targets != null)
+    {
+      RequestContext arc = RequestContext.getCurrentInstance();
+      if (arc != null)
+      {
+        arc.addPartialTargets(this, targets);
+      }
+    }
+    super.broadcast(event);
+  }
+}

Propchange: myfaces/trinidad/trunk_1.2.x/trinidad-sandbox/sandbox-api/src/main/java-templates/org/apache/myfaces/trinidad/sandbox/component/UIXPartialTriggerTemplate.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: myfaces/trinidad/trunk_1.2.x/trinidad-sandbox/sandbox-api/src/main/java/org/apache/myfaces/trinidad/sandbox/event/
------------------------------------------------------------------------------
    svn:mergeinfo = 

Added: myfaces/trinidad/trunk_1.2.x/trinidad-sandbox/sandbox-api/src/main/java/org/apache/myfaces/trinidad/sandbox/event/PartialTriggerEvent.java
URL: http://svn.apache.org/viewvc/myfaces/trinidad/trunk_1.2.x/trinidad-sandbox/sandbox-api/src/main/java/org/apache/myfaces/trinidad/sandbox/event/PartialTriggerEvent.java?rev=698801&view=auto
==============================================================================
--- myfaces/trinidad/trunk_1.2.x/trinidad-sandbox/sandbox-api/src/main/java/org/apache/myfaces/trinidad/sandbox/event/PartialTriggerEvent.java (added)
+++ myfaces/trinidad/trunk_1.2.x/trinidad-sandbox/sandbox-api/src/main/java/org/apache/myfaces/trinidad/sandbox/event/PartialTriggerEvent.java Wed Sep 24 19:53:02 2008
@@ -0,0 +1,60 @@
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one
+ *  or more contributor license agreements.  See the NOTICE file
+ *  distributed with this work for additional information
+ *  regarding copyright ownership.  The ASF licenses this file
+ *  to you under the Apache License, Version 2.0 (the
+ *  "License"); you may not use this file except in compliance
+ *  with the License.  You may obtain a copy of the License at
+ * 
+ *  http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ *  Unless required by applicable law or agreed to in writing,
+ *  software distributed under the License is distributed on an
+ *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ *  KIND, either express or implied.  See the License for the
+ *  specific language governing permissions and limitations
+ *  under the License.
+ */
+package org.apache.myfaces.trinidad.sandbox.event;
+
+import javax.faces.component.UIComponent;
+import javax.faces.event.FacesEvent;
+import javax.faces.event.FacesListener;
+
+/**
+ * Event used with the partialTrigger component
+ * 
+ * @version $Name$ ($Revision$) $Date$
+ * @author Andrew Robinson
+ */
+public class PartialTriggerEvent extends FacesEvent
+{
+  /**
+   * @param uiComponent the source component of the event 
+   */
+  public PartialTriggerEvent(UIComponent uiComponent)
+  {
+    super(uiComponent);
+  }
+
+  /**
+   * @see javax.faces.event.FacesEvent#isAppropriateListener(javax.faces.event.FacesListener)
+   */
+  @Override
+  public boolean isAppropriateListener(FacesListener faceslistener)
+  {
+    return faceslistener instanceof PartialTriggerListener;
+  }
+
+  /**
+   * @see javax.faces.event.FacesEvent#processListener(javax.faces.event.FacesListener)
+   */
+  @Override
+  public void processListener(FacesListener faceslistener)
+  {
+    ((PartialTriggerListener)faceslistener).onPartialTrigger(this);
+  }
+  
+  private static final long serialVersionUID = 1L;
+}

Propchange: myfaces/trinidad/trunk_1.2.x/trinidad-sandbox/sandbox-api/src/main/java/org/apache/myfaces/trinidad/sandbox/event/PartialTriggerEvent.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: myfaces/trinidad/trunk_1.2.x/trinidad-sandbox/sandbox-api/src/main/java/org/apache/myfaces/trinidad/sandbox/event/PartialTriggerListener.java
URL: http://svn.apache.org/viewvc/myfaces/trinidad/trunk_1.2.x/trinidad-sandbox/sandbox-api/src/main/java/org/apache/myfaces/trinidad/sandbox/event/PartialTriggerListener.java?rev=698801&view=auto
==============================================================================
--- myfaces/trinidad/trunk_1.2.x/trinidad-sandbox/sandbox-api/src/main/java/org/apache/myfaces/trinidad/sandbox/event/PartialTriggerListener.java (added)
+++ myfaces/trinidad/trunk_1.2.x/trinidad-sandbox/sandbox-api/src/main/java/org/apache/myfaces/trinidad/sandbox/event/PartialTriggerListener.java Wed Sep 24 19:53:02 2008
@@ -0,0 +1,33 @@
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one
+ *  or more contributor license agreements.  See the NOTICE file
+ *  distributed with this work for additional information
+ *  regarding copyright ownership.  The ASF licenses this file
+ *  to you under the Apache License, Version 2.0 (the
+ *  "License"); you may not use this file except in compliance
+ *  with the License.  You may obtain a copy of the License at
+ * 
+ *  http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ *  Unless required by applicable law or agreed to in writing,
+ *  software distributed under the License is distributed on an
+ *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ *  KIND, either express or implied.  See the License for the
+ *  specific language governing permissions and limitations
+ *  under the License.
+ */
+package org.apache.myfaces.trinidad.sandbox.event;
+
+/**
+ * Listener for {@link PartialTriggerEvent}
+ *
+ * @version $Name$ ($Revision$) $Date$
+ * @author Andrew Robinson
+ */
+public interface PartialTriggerListener
+{
+  /**
+   * Listen for partial trigger events
+   */
+  public void onPartialTrigger(PartialTriggerEvent evt);
+}

Propchange: myfaces/trinidad/trunk_1.2.x/trinidad-sandbox/sandbox-api/src/main/java/org/apache/myfaces/trinidad/sandbox/event/PartialTriggerListener.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: myfaces/trinidad/trunk_1.2.x/trinidad-sandbox/sandbox-build/src/main/resources/META-INF/maven-faces-plugin/components/trinidad/PartialTrigger.xml
URL: http://svn.apache.org/viewvc/myfaces/trinidad/trunk_1.2.x/trinidad-sandbox/sandbox-build/src/main/resources/META-INF/maven-faces-plugin/components/trinidad/PartialTrigger.xml?rev=698801&view=auto
==============================================================================
--- myfaces/trinidad/trunk_1.2.x/trinidad-sandbox/sandbox-build/src/main/resources/META-INF/maven-faces-plugin/components/trinidad/PartialTrigger.xml (added)
+++ myfaces/trinidad/trunk_1.2.x/trinidad-sandbox/sandbox-build/src/main/resources/META-INF/maven-faces-plugin/components/trinidad/PartialTrigger.xml Wed Sep 24 19:53:02 2008
@@ -0,0 +1,108 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+    Licensed to the Apache Software Foundation (ASF) under one
+    or more contributor license agreements.  See the NOTICE file
+    distributed with this work for additional information
+    regarding copyright ownership.  The ASF licenses this file
+    to you under the Apache License, Version 2.0 (the
+    "License"); you may not use this file except in compliance
+    with the License.  You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+    Unless required by applicable law or agreed to in writing,
+    software distributed under the License is distributed on an
+    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+    KIND, either express or implied.  See the License for the
+    specific language governing permissions and limitations
+    under the License.
+	   
+-->
+<faces-config
+  version="1.2"
+  xmlns="http://java.sun.com/xml/ns/javaee"
+  xmlns:trs="http://myfaces.apache.org/trinidad/sandbox"
+  xmlns:xi="http://www.w3.org/2001/XInclude"
+  xmlns:mfp="http://myfaces.apache.org/maven-faces-plugin"
+  xmlns:mafp="http://myfaces.apache.org/maven-trinidad-plugin"
+  xmlns:xhtml="http://www.w3.org/1999/xhtml">
+  <component>
+    <description><![CDATA[Component that provides partialTriggers, partialTargets and immediate
+event broadcasting of events for PPR]]></description>
+    <component-type>org.apache.myfaces.trinidad.sandbox.PartialTrigger</component-type>
+    <component-class>org.apache.myfaces.trinidad.sandbox.component.UIXPartialTrigger</component-class>
+    <property>
+      <description><![CDATA[whether broadcasting of partial trigger events should be
+immediate.
+
+When immediate is true, all the PartialTriggerEvent events queued by this component will
+be marked with the 'ANY' JSF phase ID. This will cause the event to be broadcast at the
+end of the current phase. This makes it possible to perform partial triggering of components
+before the phase that the triggering component's event. For example, a UIXCommand will typically
+queue an ActionEvent with a phase of INVOKE_APPLICATION. If a partial trigger with 
+immediate set to true is a parent component, listeners to the partial trigger will be queued for
+re-rendering during the APPLY_REQUEST_VALUES phase instead of INVOKE_APPLICATION.]]>
+      </description>
+      <property-name>immediate</property-name>
+      <property-class>boolean</property-class>
+    </property>
+    <property>
+      <description><![CDATA[the IDs of the components that should trigger a partial update.
+        This component will listen on the trigger components. If one of the
+        trigger components receives an event that will cause it to update
+        in some way, this component will request to be updated too.
+        Identifiers are relative to the source component, and must account for
+        NamingContainers.  If your component is already inside of a naming
+        container, you can use a single colon to start the search from the root,
+        or multiple colons to move up through the NamingContainers - "::" will
+        search from the parent naming container, ":::" will search
+        from the grandparent naming container, etc. ]]>
+      </description>
+      <property-name>partialTriggers</property-name>
+      <property-class>java.lang.String[]</property-class>
+      <property-extension>
+        <mfp:property-metadata>
+          <mfp:preferred>true</mfp:preferred>
+        </mfp:property-metadata>
+      </property-extension>
+    </property>
+    <property>
+      <description><![CDATA[the IDs of the components that should be triggered
+        by a partial update.
+        
+        This component will trigger the partial update of all of these
+        components if an event is broadcast by this component. 
+        Identifiers are relative to the source component, and must account for
+        NamingContainers.  If your component is already inside of a naming
+        container, you can use a single colon to start the search from the root,
+        or multiple colons to move up through the NamingContainers - "::" will
+        search from the parent naming container, ":::" will search
+        from the grandparent naming container, etc. ]]>
+      </description>
+      <property-name>partialTargets</property-name>
+      <property-class>java.lang.String[]</property-class>
+    </property>
+    <component-extension>
+      <mfp:component-family>org.apache.myfaces.trinidad.sandbox.PartialTrigger</mfp:component-family>
+      <mfp:component-supertype>org.apache.myfaces.trinidad.ComponentBase</mfp:component-supertype>
+      <mfp:component-superclass>org.apache.myfaces.trinidad.component.UIXComponentBase</mfp:component-superclass>
+      <mfp:tag-name>trs:partialTrigger</mfp:tag-name>
+      <mfp:tag-class>org.apache.myfaces.trinidadinternal.sandbox.taglib.UIXPartialTriggerTag</mfp:tag-class>
+      <mfp:long-description><![CDATA[<html><p>UIXPartialTrigger is a component that provides integration
+with the PPR functionality of Trinidad. It supports three main use cases.</p>
+<ol>
+<li>partialTriggers is supported. Being used as a parent component of several other components,
+it is able to trigger partial rendering if any of its children broadcast an event.</li>
+<li>partialTargets provides a way to force other components to be updated when a child component
+broadcasts an event.</li>
+<li>the ability to have the trigger happen immediately. Setting the immediate attribute to true
+will cause an event to be queued with the 'ANY' phase ID, executing the functionality at the
+end of the current phase</li>
+</ol>
+<p>This component does not render anything, it is used only for PPR integration.</p></html>
+]]>
+      </mfp:long-description>
+      <mfp:author>Andrew Robinson</mfp:author>
+    </component-extension>
+  </component>
+</faces-config>
\ No newline at end of file

Propchange: myfaces/trinidad/trunk_1.2.x/trinidad-sandbox/sandbox-build/src/main/resources/META-INF/maven-faces-plugin/components/trinidad/PartialTrigger.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: myfaces/trinidad/trunk_1.2.x/trinidad-sandbox/sandbox-build/src/main/resources/META-INF/maven-faces-plugin/components/trinidad/PartialTrigger.xml
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision HeadURL

Added: myfaces/trinidad/trunk_1.2.x/trinidad-sandbox/sandbox-demo/src/main/java/org/apache/myfaces/trinidaddemo/PartialDemoStatusBean.java
URL: http://svn.apache.org/viewvc/myfaces/trinidad/trunk_1.2.x/trinidad-sandbox/sandbox-demo/src/main/java/org/apache/myfaces/trinidaddemo/PartialDemoStatusBean.java?rev=698801&view=auto
==============================================================================
--- myfaces/trinidad/trunk_1.2.x/trinidad-sandbox/sandbox-demo/src/main/java/org/apache/myfaces/trinidaddemo/PartialDemoStatusBean.java (added)
+++ myfaces/trinidad/trunk_1.2.x/trinidad-sandbox/sandbox-demo/src/main/java/org/apache/myfaces/trinidaddemo/PartialDemoStatusBean.java Wed Sep 24 19:53:02 2008
@@ -0,0 +1,173 @@
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one
+ *  or more contributor license agreements.  See the NOTICE file
+ *  distributed with this work for additional information
+ *  regarding copyright ownership.  The ASF licenses this file
+ *  to you under the Apache License, Version 2.0 (the
+ *  "License"); you may not use this file except in compliance
+ *  with the License.  You may obtain a copy of the License at
+ * 
+ *  http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ *  Unless required by applicable law or agreed to in writing,
+ *  software distributed under the License is distributed on an
+ *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ *  KIND, either express or implied.  See the License for the
+ *  specific language governing permissions and limitations
+ *  under the License.
+ */
+package org.apache.myfaces.trinidaddemo;
+
+import java.text.SimpleDateFormat;
+
+import java.util.Date;
+
+public class PartialDemoStatusBean implements java.io.Serializable
+{
+  public PartialDemoStatusBean()
+  {
+    reset();
+  }
+
+  public boolean getChecked()
+  {
+    return Boolean.TRUE.equals(_checkBoxState);
+  }
+
+  public int getCheckBoxUpdateCount()
+  {
+    return _checkBoxUpdateCount;
+  }
+
+  public String getCheckBoxStateText()
+  {
+    if (_checkBoxState == null)
+      return _DEFAULT_CHECK_STATE;
+
+    if (Boolean.TRUE.equals(_checkBoxState))
+      return _CHECKED_STATE;
+
+    return _NOT_CHECKED_STATE;
+  }
+
+  public String getChoiceInt()
+  {
+    if (_choiceInt == null)
+      return "1";
+    return _choiceInt.toString();
+  }
+
+  public String getChoiceText()
+  {
+    if (_choiceInt == null)
+      return _DEFAULT_CHOICE_TEXT;
+
+    return "value #" + _choiceInt;
+  }
+
+  public String getLinkUpdate()
+  {
+    return _linkUpdate;
+  }
+
+  public String getRadioStateText()
+  {
+    return _radioState;
+  }
+
+  public String getTextStateText()
+  {
+    if (_DEFAULT_TEXT_VALUE.equals(_textValue))
+      return _DEFAULT_TEXT_STATE;
+    return _textValue;
+  }
+
+  public String getTextValue()
+  {
+    return _textValue;
+  }
+
+  public void setChecked(boolean checked)
+  {
+    _checkBoxState = (checked ? Boolean.TRUE : Boolean.FALSE);
+  }
+
+  public void setChecked(Boolean checked)
+  {
+    _checkBoxState = checked;
+  }
+
+  public void setChoiceText(String txt)
+  {
+    // does nothing
+  }
+
+  public void setChoiceInt(String ci)
+  {
+    _choiceInt = new Integer(ci);
+  }
+
+  public void setLinkUpdate()
+  {
+    SimpleDateFormat sdf = new SimpleDateFormat("HH:mm:ss");
+    _linkUpdate = sdf.format(new Date());
+  }
+
+  public void setRadioStateText(String t)
+  {
+    _radioState = t;
+  }
+
+  void setSelectBooleanState(String value)
+  {
+    _radioState = "selectBoolean set, " + value;
+  }
+
+  void setSelectOneState(String value)
+  {
+    _radioState = "selectOne set, item " + value;
+  }
+
+  public void setTextValue(String t)
+  {
+    _textValue = t;
+  }
+
+  public void resetCheckBox()
+  {
+    _checkBoxUpdateCount = 0;
+    _checkBoxState = null;
+  }
+
+  public void incrementCheckBoxUpdateCount()
+  {
+    _checkBoxUpdateCount++;
+  }
+
+  public void reset()
+  {
+    resetCheckBox();
+    _choiceInt = null;
+    _linkUpdate = _DEFAULT_LINK_UPDATE;
+    _radioState = _DEFAULT_RADIO_STATE;
+    _textValue = _DEFAULT_TEXT_VALUE;
+  }
+
+  private int     _checkBoxUpdateCount;
+  // This is kept as a Boolean so we can reset to the default value.
+  private Boolean _checkBoxState;
+  private Integer _choiceInt;
+  private String  _linkUpdate;
+  private String  _radioState;
+  private String  _textValue;
+
+  private static String _NOTHING              = "nothing yet.";
+  private static String _DEFAULT_CHECK_STATE  = "updates this text.";
+  private static String _CHECKED_STATE        = "is checked.";
+  private static String _NOT_CHECKED_STATE    = "is not checked.";
+  private static String _DEFAULT_CHOICE_TEXT  = _NOTHING;
+  private static String _DEFAULT_LINK_UPDATE  = "never.";
+  private static String _DEFAULT_RADIO_STATE  = "no selection yet.";
+  private static String _DEFAULT_TEXT_STATE   = _NOTHING;
+  private static String _DEFAULT_TEXT_VALUE   = "Change this text";
+}

Propchange: myfaces/trinidad/trunk_1.2.x/trinidad-sandbox/sandbox-demo/src/main/java/org/apache/myfaces/trinidaddemo/PartialDemoStatusBean.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: myfaces/trinidad/trunk_1.2.x/trinidad-sandbox/sandbox-demo/src/main/java/org/apache/myfaces/trinidaddemo/PartialDemoStatusBean.java
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision HeadURL

Added: myfaces/trinidad/trunk_1.2.x/trinidad-sandbox/sandbox-demo/src/main/java/org/apache/myfaces/trinidaddemo/PartialDemoUtilBean.java
URL: http://svn.apache.org/viewvc/myfaces/trinidad/trunk_1.2.x/trinidad-sandbox/sandbox-demo/src/main/java/org/apache/myfaces/trinidaddemo/PartialDemoUtilBean.java?rev=698801&view=auto
==============================================================================
--- myfaces/trinidad/trunk_1.2.x/trinidad-sandbox/sandbox-demo/src/main/java/org/apache/myfaces/trinidaddemo/PartialDemoUtilBean.java (added)
+++ myfaces/trinidad/trunk_1.2.x/trinidad-sandbox/sandbox-demo/src/main/java/org/apache/myfaces/trinidaddemo/PartialDemoUtilBean.java Wed Sep 24 19:53:02 2008
@@ -0,0 +1,138 @@
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one
+ *  or more contributor license agreements.  See the NOTICE file
+ *  distributed with this work for additional information
+ *  regarding copyright ownership.  The ASF licenses this file
+ *  to you under the Apache License, Version 2.0 (the
+ *  "License"); you may not use this file except in compliance
+ *  with the License.  You may obtain a copy of the License at
+ * 
+ *  http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ *  Unless required by applicable law or agreed to in writing,
+ *  software distributed under the License is distributed on an
+ *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ *  KIND, either express or implied.  See the License for the
+ *  specific language governing permissions and limitations
+ *  under the License.
+ */
+package org.apache.myfaces.trinidaddemo;
+
+import javax.faces.application.ViewHandler;
+import javax.faces.component.UIComponent;
+import javax.faces.component.UIViewRoot;
+import javax.faces.context.FacesContext;
+import javax.faces.event.ActionEvent;
+import javax.faces.event.ValueChangeEvent;
+
+import org.apache.myfaces.trinidad.component.UIXOutput;
+import org.apache.myfaces.trinidad.context.RequestContext;
+
+public class PartialDemoUtilBean
+{
+  public void action(ActionEvent action)
+  {
+    // Just update the string which says when the last update was.
+    _status.setLinkUpdate();
+  }
+
+  // This is called for the resetButton
+  public void reset(ActionEvent action)
+  {
+    _status.reset();
+    _resetList();
+  }
+
+  public void valueChanged(ValueChangeEvent vce)
+  {
+    Object newValue = vce.getNewValue();
+    UIComponent component = vce.getComponent();
+
+    String rendererType = component.getRendererType();
+
+    // For these first components the listeners have registered themselves
+    // by setting the partialTriggers attribute. So we just update the model.
+    if (rendererType.equals("org.apache.myfaces.trinidad.Checkbox"))
+    {
+      _status.setChecked((Boolean) newValue);
+      _status.incrementCheckBoxUpdateCount();
+    }
+    else if (rendererType.equals("org.apache.myfaces.trinidad.Radio"))
+    {
+      if (Boolean.TRUE.equals(newValue))
+      {
+        String text = (String) component.getAttributes().get("text");
+        _status.setSelectBooleanState(text);
+      }
+      else if (newValue instanceof String)
+        _status.setSelectOneState((String) newValue);
+    }
+    else if (rendererType.equals("org.apache.myfaces.trinidad.Text"))
+    {
+      if (newValue instanceof String)
+        _status.setTextValue((String) newValue);
+    }
+    else if (rendererType.equals("org.apache.myfaces.trinidad.Choice"))
+    {
+      if (newValue instanceof String)
+        _status.setChoiceInt((String) newValue);
+    }
+
+    // This component illustrates a method of dynamically adding a
+    // partialTarget (i.e. without setting the partialTriggers attribute). It
+    // updates a component binding and adds the updated component directly to
+    // the list of partial targets.
+    else if (rendererType.equals("org.apache.myfaces.trinidad.Listbox"))
+    {
+      _listUpdate.setValue(component.getAttributes().get("value"));
+      _addTarget(_listUpdate);
+    }
+  }
+
+  public UIXOutput getListUpdate()
+  {
+    return _listUpdate;
+  }
+
+  public void setListUpdate(UIXOutput listUpdate)
+  {
+    _listUpdate = listUpdate;
+  }
+
+  public PartialDemoStatusBean getStatus()
+  {
+    return _status;
+  }
+
+  public void setStatus(PartialDemoStatusBean status)
+  {
+    _status = status;
+  }
+
+  public void navigate(ValueChangeEvent vce)
+  {
+    Object newValue = vce.getNewValue();
+    if ((newValue != null) && !"".equals(newValue))
+    {
+      FacesContext fContext = FacesContext.getCurrentInstance(); 
+      ViewHandler vh = fContext.getApplication().getViewHandler(); 
+      UIViewRoot root = vh.createView(fContext, newValue.toString()); 
+      fContext.setViewRoot(root); 
+    }
+  }
+
+  private void _resetList()
+  {
+    _listUpdate.setValue("nothing yet.");
+    _addTarget(_listUpdate);
+  }
+
+  private void _addTarget(UIComponent target)
+  {
+    RequestContext adfContext = RequestContext.getCurrentInstance();
+    adfContext.addPartialTarget(target);
+  }
+
+  private PartialDemoStatusBean _status;
+  private UIXOutput _listUpdate;
+}

Propchange: myfaces/trinidad/trunk_1.2.x/trinidad-sandbox/sandbox-demo/src/main/java/org/apache/myfaces/trinidaddemo/PartialDemoUtilBean.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: myfaces/trinidad/trunk_1.2.x/trinidad-sandbox/sandbox-demo/src/main/java/org/apache/myfaces/trinidaddemo/PartialDemoUtilBean.java
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision HeadURL

Modified: myfaces/trinidad/trunk_1.2.x/trinidad-sandbox/sandbox-demo/src/main/webapp/WEB-INF/faces-config.xml
URL: http://svn.apache.org/viewvc/myfaces/trinidad/trunk_1.2.x/trinidad-sandbox/sandbox-demo/src/main/webapp/WEB-INF/faces-config.xml?rev=698801&r1=698800&r2=698801&view=diff
==============================================================================
--- myfaces/trinidad/trunk_1.2.x/trinidad-sandbox/sandbox-demo/src/main/webapp/WEB-INF/faces-config.xml (original)
+++ myfaces/trinidad/trunk_1.2.x/trinidad-sandbox/sandbox-demo/src/main/webapp/WEB-INF/faces-config.xml Wed Sep 24 19:53:02 2008
@@ -1,96 +1,112 @@
-<?xml version="1.0"?>
+<?xml version="1.0"?>
 <!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.1//EN"
                               "http://java.sun.com/dtd/web-facesconfig_1_1.dtd">
 <!--
-    Licensed to the Apache Software Foundation (ASF) under one
-    or more contributor license agreements.  See the NOTICE file
-    distributed with this work for additional information
-    regarding copyright ownership.  The ASF licenses this file
-    to you under the Apache License, Version 2.0 (the
-    "License"); you may not use this file except in compliance
-    with the License.  You may obtain a copy of the License at
+  Licensed to the Apache Software Foundation (ASF) under one
+  or more contributor license agreements.  See the NOTICE file
+  distributed with this work for additional information
+  regarding copyright ownership.  The ASF licenses this file
+  to you under the Apache License, Version 2.0 (the
+  "License"); you may not use this file except in compliance
+  with the License.  You may obtain a copy of the License at
+  
+  http://www.apache.org/licenses/LICENSE-2.0
+  
+  Unless required by applicable law or agreed to in writing,
+  software distributed under the License is distributed on an
+  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  KIND, either express or implied.  See the License for the
+  specific language governing permissions and limitations
+  under the License.
+  
+-->
+<faces-config>
+  <!-- Global preferences object that proxies to others -->
+  <managed-bean>
+    <managed-bean-name>editor</managed-bean-name>
+    <managed-bean-class>org.apache.myfaces.trinidaddemo.ComponentEditorHandler</managed-bean-class>
+    <managed-bean-scope>request</managed-bean-scope>
+    <managed-property>
+      <property-name>javascriptShown</property-name>
+      <value>false</value>
+    </managed-property>
+  </managed-bean>
 
-    http://www.apache.org/licenses/LICENSE-2.0
+  <managed-bean>
+    <managed-bean-name>partialDemoUtil</managed-bean-name>
+    <managed-bean-class>org.apache.myfaces.trinidaddemo.PartialDemoUtilBean</managed-bean-class>
+    <managed-bean-scope>request</managed-bean-scope>
+    <managed-property>
+      <property-name>status</property-name>
+      <value>#{partialDemoStatus}</value>
+    </managed-property>
+  </managed-bean>
 
-    Unless required by applicable law or agreed to in writing,
-    software distributed under the License is distributed on an
-    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-    KIND, either express or implied.  See the License for the
-    specific language governing permissions and limitations
-    under the License.
-	   
--->
-<faces-config>
- <!-- Global preferences object that proxies to others -->
- <managed-bean>
-  <managed-bean-name>editor</managed-bean-name>
-  <managed-bean-class>org.apache.myfaces.trinidaddemo.ComponentEditorHandler</managed-bean-class>
-  <managed-bean-scope>request</managed-bean-scope>
-  <managed-property>
-   <property-name>javascriptShown</property-name>
-   <value>false</value>
-  </managed-property>
- </managed-bean>
-
- <!-- Global navigation rules -->
- <navigation-rule>
-  <!-- Top level navigation -->
-  <navigation-case>
-   <from-outcome>home</from-outcome>
-   <to-view-id>/index.jspx</to-view-id>
-   <redirect/>
-  </navigation-case>
-  <navigation-case>
-   <from-outcome>guide</from-outcome>
-   <to-view-id>/componentDemos.jspx</to-view-id>
-   <redirect/>
-  </navigation-case>
-  <!-- Nav to Component Demos -->
-  <navigation-case>
-   <from-outcome>guide.tableFormLayout</from-outcome>
-   <to-view-id>/components/tableFormLayout.jspx</to-view-id>
-   <redirect/>
-  </navigation-case>
- </navigation-rule>
- <!-- Navigation rules for all cases -->
-
- <application>
-  <!-- Use the Trinidad RenderKit -->
-  <default-render-kit-id>org.apache.myfaces.trinidadinternal.sandbox.core</default-render-kit-id>
-  <!-- DEFAULT/SUPPORTED LOCALE/S FOR THE DEMO -->
-  <locale-config>
-   <default-locale>en</default-locale>
-   <supported-locale>ar</supported-locale>
-   <supported-locale>ca</supported-locale>
-   <supported-locale>cs</supported-locale>
-   <supported-locale>da</supported-locale>
-   <supported-locale>de</supported-locale>
-   <supported-locale>el</supported-locale>
-   <supported-locale>es</supported-locale>
-   <supported-locale>es_ES</supported-locale>
-   <supported-locale>fi</supported-locale>
-   <supported-locale>fr</supported-locale>
-   <supported-locale>fr_CA</supported-locale>
-   <supported-locale>hr</supported-locale>
-   <supported-locale>hu</supported-locale>
-   <supported-locale>is</supported-locale>
-   <supported-locale>it</supported-locale>
-   <supported-locale>iw</supported-locale>
-   <supported-locale>ja</supported-locale>
-   <supported-locale>ko</supported-locale>
-   <supported-locale>nl</supported-locale>
-   <supported-locale>no</supported-locale>
-   <supported-locale>pl</supported-locale>
-   <supported-locale>pt</supported-locale>
-   <supported-locale>pt_BR</supported-locale>
-   <supported-locale>ro</supported-locale>
-   <supported-locale>ru</supported-locale>
-   <supported-locale>sk</supported-locale>
-   <supported-locale>sv</supported-locale>
-   <supported-locale>th</supported-locale>
-   <supported-locale>tr</supported-locale>
-   <supported-locale>zh_CN</supported-locale>
-   <supported-locale>zh_TW</supported-locale>
-  </locale-config>
- </application>
-</faces-config>
+  <managed-bean>
+    <managed-bean-name>partialDemoStatus</managed-bean-name>
+    <managed-bean-class>org.apache.myfaces.trinidaddemo.PartialDemoStatusBean</managed-bean-class>
+    <managed-bean-scope>session</managed-bean-scope>
+  </managed-bean>
+
+  <!-- Global navigation rules -->
+  <navigation-rule>
+    <!-- Top level navigation -->
+    <navigation-case>
+      <from-outcome>home</from-outcome>
+      <to-view-id>/index.jspx</to-view-id>
+      <redirect />
+    </navigation-case>
+    <navigation-case>
+      <from-outcome>guide</from-outcome>
+      <to-view-id>/componentDemos.jspx</to-view-id>
+      <redirect />
+    </navigation-case>
+    <!-- Nav to Component Demos -->
+    <navigation-case>
+      <from-outcome>guide.tableFormLayout</from-outcome>
+      <to-view-id>/components/tableFormLayout.jspx</to-view-id>
+      <redirect />
+    </navigation-case>
+  </navigation-rule>
+  <!-- Navigation rules for all cases -->
+
+  <application>
+    <!-- Use the Trinidad RenderKit -->
+    <default-render-kit-id>org.apache.myfaces.trinidadinternal.sandbox.core</default-render-kit-id>
+    <!-- DEFAULT/SUPPORTED LOCALE/S FOR THE DEMO -->
+    <locale-config>
+      <default-locale>en</default-locale>
+      <supported-locale>ar</supported-locale>
+      <supported-locale>ca</supported-locale>
+      <supported-locale>cs</supported-locale>
+      <supported-locale>da</supported-locale>
+      <supported-locale>de</supported-locale>
+      <supported-locale>el</supported-locale>
+      <supported-locale>es</supported-locale>
+      <supported-locale>es_ES</supported-locale>
+      <supported-locale>fi</supported-locale>
+      <supported-locale>fr</supported-locale>
+      <supported-locale>fr_CA</supported-locale>
+      <supported-locale>hr</supported-locale>
+      <supported-locale>hu</supported-locale>
+      <supported-locale>is</supported-locale>
+      <supported-locale>it</supported-locale>
+      <supported-locale>iw</supported-locale>
+      <supported-locale>ja</supported-locale>
+      <supported-locale>ko</supported-locale>
+      <supported-locale>nl</supported-locale>
+      <supported-locale>no</supported-locale>
+      <supported-locale>pl</supported-locale>
+      <supported-locale>pt</supported-locale>
+      <supported-locale>pt_BR</supported-locale>
+      <supported-locale>ro</supported-locale>
+      <supported-locale>ru</supported-locale>
+      <supported-locale>sk</supported-locale>
+      <supported-locale>sv</supported-locale>
+      <supported-locale>th</supported-locale>
+      <supported-locale>tr</supported-locale>
+      <supported-locale>zh_CN</supported-locale>
+      <supported-locale>zh_TW</supported-locale>
+    </locale-config>
+  </application>
+</faces-config>

Modified: myfaces/trinidad/trunk_1.2.x/trinidad-sandbox/sandbox-demo/src/main/webapp/componentDemos.jspx
URL: http://svn.apache.org/viewvc/myfaces/trinidad/trunk_1.2.x/trinidad-sandbox/sandbox-demo/src/main/webapp/componentDemos.jspx?rev=698801&r1=698800&r2=698801&view=diff
==============================================================================
--- myfaces/trinidad/trunk_1.2.x/trinidad-sandbox/sandbox-demo/src/main/webapp/componentDemos.jspx (original)
+++ myfaces/trinidad/trunk_1.2.x/trinidad-sandbox/sandbox-demo/src/main/webapp/componentDemos.jspx Wed Sep 24 19:53:02 2008
@@ -36,11 +36,14 @@
             </tr:navigationPane>
           </f:facet>
   
-            <tr:panelHeader text="Sandbox Component Demos">
-              <tr:panelGroupLayout layout="vertical">
-                <tr:commandLink text="tableFormLayout" action="guide.tableFormLayout"/>
-              </tr:panelGroupLayout>
-            </tr:panelHeader>
+          <tr:panelHeader text="Sandbox Component Demos">
+            <tr:panelGroupLayout layout="vertical">
+              <tr:goLink
+                text="partialTrigger"
+                destination="components/partialTrigger.jspx"/>
+              <tr:commandLink text="tableFormLayout" action="guide.tableFormLayout"/>
+            </tr:panelGroupLayout>
+          </tr:panelHeader>
         </tr:panelPage>
       </tr:form>
     </tr:document>

Added: myfaces/trinidad/trunk_1.2.x/trinidad-sandbox/sandbox-demo/src/main/webapp/components/partialTrigger.jspx
URL: http://svn.apache.org/viewvc/myfaces/trinidad/trunk_1.2.x/trinidad-sandbox/sandbox-demo/src/main/webapp/components/partialTrigger.jspx?rev=698801&view=auto
==============================================================================
--- myfaces/trinidad/trunk_1.2.x/trinidad-sandbox/sandbox-demo/src/main/webapp/components/partialTrigger.jspx (added)
+++ myfaces/trinidad/trunk_1.2.x/trinidad-sandbox/sandbox-demo/src/main/webapp/components/partialTrigger.jspx Wed Sep 24 19:53:02 2008
@@ -0,0 +1,141 @@
+<?xml version="1.0" encoding="iso-8859-1" standalone="yes" ?>
+<!--
+    Licensed to the Apache Software Foundation (ASF) under one
+    or more contributor license agreements.  See the NOTICE file
+    distributed with this work for additional information
+    regarding copyright ownership.  The ASF licenses this file
+    to you under the Apache License, Version 2.0 (the
+    "License"); you may not use this file except in compliance
+    with the License.  You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+    Unless required by applicable law or agreed to in writing,
+    software distributed under the License is distributed on an
+    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+    KIND, either express or implied.  See the License for the
+    specific language governing permissions and limitations
+    under the License.
+	   
+-->
+<jsp:root
+  xmlns:jsp="http://java.sun.com/JSP/Page"
+  version="2.0"
+  xmlns:f="http://java.sun.com/jsf/core"
+  xmlns:h="http://java.sun.com/jsf/html"
+  xmlns:trh="http://myfaces.apache.org/trinidad/html"
+  xmlns:tr="http://myfaces.apache.org/trinidad"
+  xmlns:trs="http://myfaces.apache.org/trinidad/sandbox">
+  <jsp:directive.page contentType="text/html;charset=utf-8" />
+  <f:view>
+    <tr:document title="Partial Trigger Demo">
+      <tr:form>
+        <tr:panelPage>
+          <f:facet name="navigationGlobal">
+            <tr:panelGroupLayout
+              layout="vertical">
+              <tr:commandLink immediate="true" text="Sandbox Component Guide"
+                action="guide"/>
+            </tr:panelGroupLayout>
+          </f:facet>
+
+          <tr:panelHeader
+            text="Partial Trigger Demo">
+            <tr:panelGroupLayout layout="vertical">
+              <tr:panelHeader text="Status Indicator">
+                <tr:statusIndicator />
+              </tr:panelHeader>
+              <tr:panelHeader text="Partial trigger demonstrations">
+                <tr:panelGroupLayout layout="vertical">
+                  <tr:panelHeader
+                    text="Trigger rendering with validation errors">
+                    <tr:subform>
+                      <tr:panelGroupLayout layout="vertical">
+                        <tr:inputText
+                          id="partialTriggerText1"
+                          label="This is required"
+                          showRequired="true"
+                          value="#{partialTriggerText1}"
+                          required="true"
+                          partialTriggers="partialTrigger1" />
+                        <trs:partialTrigger
+                          id="partialTrigger1"
+                          immediate="true">
+                          <tr:commandLink
+                            id="partialTriggerLink1"
+                            partialSubmit="true"
+                            text="Trigger" />
+                        </trs:partialTrigger>
+                      </tr:panelGroupLayout>
+                    </tr:subform>
+                  </tr:panelHeader>
+                  <tr:panelHeader
+                    text="Trigger based on target rather then trigger">
+                    <tr:subform>
+                      <tr:panelGroupLayout layout="vertical">
+                        <tr:outputFormatted
+                          id="partialTriggerTarget2"
+                          styleUsage="instruction"
+                          value="#{partialDemoUtil.status.linkUpdate}">
+                          <f:convertDateTime pattern="HH:mm:ss" />
+                        </tr:outputFormatted>
+                        <trs:partialTrigger
+                          id="partialTrigger2"
+                          partialTargets="partialTriggerTarget2">
+                          <tr:commandLink
+                            id="partialTriggerLink2"
+                            partialSubmit="true"
+                            text="Trigger"
+                            actionListener="#{partialDemoUtil.action}" />
+                        </trs:partialTrigger>
+                      </tr:panelGroupLayout>
+                    </tr:subform>
+                  </tr:panelHeader>
+                  <tr:panelHeader
+                    text="Listen to a parent of several components that can trigger">
+                    <tr:subform>
+                      <tr:panelGroupLayout layout="vertical">
+                        <tr:outputFormatted
+                          id="partialTriggerTarget3"
+                          styleUsage="instruction"
+                          partialTriggers="partialTrigger3"
+                          value="#{partialDemoUtil.status.linkUpdate}">
+                          <f:convertDateTime pattern="HH:mm:ss" />
+                        </tr:outputFormatted>
+                        <trs:partialTrigger id="partialTrigger3">
+                          <tr:panelGroupLayout layout="horizontal">
+                            <tr:commandLink
+                              id="partialTriggerLink3a"
+                              partialSubmit="true"
+                              text="Trigger A"
+                              actionListener="#{partialDemoUtil.action}" />
+                            <tr:spacer
+                              width="8"
+                              height="10" />
+                            <tr:commandLink
+                              id="partialTriggerLink3b"
+                              partialSubmit="true"
+                              text="Trigger B"
+                              actionListener="#{partialDemoUtil.action}" />
+                            <tr:spacer
+                              width="8"
+                              height="10" />
+                            <tr:commandLink
+                              id="partialTriggerLink3c"
+                              partialSubmit="true"
+                              text="Trigger C"
+                              actionListener="#{partialDemoUtil.action}" />
+                          </tr:panelGroupLayout>
+                        </trs:partialTrigger>
+                      </tr:panelGroupLayout>
+                    </tr:subform>
+                  </tr:panelHeader>
+                </tr:panelGroupLayout>
+              </tr:panelHeader>
+            </tr:panelGroupLayout>
+          </tr:panelHeader>
+        </tr:panelPage>
+      </tr:form>
+    </tr:document>
+  </f:view>
+</jsp:root>

Propchange: myfaces/trinidad/trunk_1.2.x/trinidad-sandbox/sandbox-demo/src/main/webapp/components/partialTrigger.jspx
------------------------------------------------------------------------------
    svn:eol-style = native



Mime
View raw message