myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From to...@apache.org
Subject svn commit: r332146 - in /myfaces/examples/trunk/simple: panelnavigation_1.jsp src/java/org/apache/myfaces/examples/misc/NavigationMenu.java
Date Wed, 09 Nov 2005 21:27:52 GMT
Author: tomsp
Date: Wed Nov  9 13:27:29 2005
New Revision: 332146

URL: http://svn.apache.org/viewcvs?rev=332146&view=rev
Log:
Test updateActionListener

Modified:
    myfaces/examples/trunk/simple/panelnavigation_1.jsp
    myfaces/examples/trunk/simple/src/java/org/apache/myfaces/examples/misc/NavigationMenu.java

Modified: myfaces/examples/trunk/simple/panelnavigation_1.jsp
URL: http://svn.apache.org/viewcvs/myfaces/examples/trunk/simple/panelnavigation_1.jsp?rev=332146&r1=332145&r2=332146&view=diff
==============================================================================
--- myfaces/examples/trunk/simple/panelnavigation_1.jsp (original)
+++ myfaces/examples/trunk/simple/panelnavigation_1.jsp Wed Nov  9 13:27:29 2005
@@ -36,6 +36,7 @@
     <t:panelNavigation2 id="nav1" layout="list" itemClass="mypage" activeItemClass="selected"
openItemClass="selected" >
 		<t:commandNavigation2 value="#{example_messages['panelnav_products']}" action="go_panelnavigation_1"
>
             <t:commandNavigation2 action="#{navigationMenu.getAction1}" actionListener="#{navigationMenu.actionListener}">
+                <t:updateActionListener property="#{navigationMenu.updateAction}" value="#{navigationMenu.updateActionValue}"/>
                 <f:verbatim>&#8250; </f:verbatim>
                 <t:outputText value="#{example_messages['panelnav_serach1']}" />
             </t:commandNavigation2>

Modified: myfaces/examples/trunk/simple/src/java/org/apache/myfaces/examples/misc/NavigationMenu.java
URL: http://svn.apache.org/viewcvs/myfaces/examples/trunk/simple/src/java/org/apache/myfaces/examples/misc/NavigationMenu.java?rev=332146&r1=332145&r2=332146&view=diff
==============================================================================
--- myfaces/examples/trunk/simple/src/java/org/apache/myfaces/examples/misc/NavigationMenu.java
(original)
+++ myfaces/examples/trunk/simple/src/java/org/apache/myfaces/examples/misc/NavigationMenu.java
Wed Nov  9 13:27:29 2005
@@ -104,5 +104,28 @@
         return "go_panelnavigation_3";
     }
 
+    private String _updateAction;
+    private String _updateActionValue = "testUpdateActionListener";
+
+    public String getUpdateActionValue()
+    {
+        return _updateActionValue;
+    }
+
+    public void setUpdateActionValue(String updateActionValue)
+    {
+        _updateActionValue = updateActionValue;
+    }
+
+    public String getUpdateAction()
+    {
+        return _updateAction;
+    }
+
+    public void setUpdateAction(String updateAction)
+    {
+        _updateAction = updateAction;
+    }
+
 
 }



Mime
View raw message