You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by im...@apache.org on 2006/02/25 19:55:22 UTC
svn commit: r380966 - in /myfaces/tomahawk/trunk:
core/src/main/java/org/apache/myfaces/custom/aliasbean/AliasBeanTag.java
core/src/main/java/org/apache/myfaces/custom/aliasbean/AliasBeansScopeTag.java
examples/simple/src/main/webapp/aliasBean.jsp
Author: imario
Date: Sat Feb 25 10:55:19 2006
New Revision: 380966
URL: http://svn.apache.org/viewcvs?rev=380966&view=rev
Log:
adjusted example for aliasBean
changed sequence in doEndTag
Modified:
myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/aliasbean/AliasBeanTag.java
myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/aliasbean/AliasBeansScopeTag.java
myfaces/tomahawk/trunk/examples/simple/src/main/webapp/aliasBean.jsp
Modified: myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/aliasbean/AliasBeanTag.java
URL: http://svn.apache.org/viewcvs/myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/aliasbean/AliasBeanTag.java?rev=380966&r1=380965&r2=380966&view=diff
==============================================================================
--- myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/aliasbean/AliasBeanTag.java (original)
+++ myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/aliasbean/AliasBeanTag.java Sat Feb 25 10:55:19 2006
@@ -84,8 +84,6 @@
public int doEndTag() throws JspException
{
- int retVal = super.doEndTag();
-
UIComponent comp = getComponentInstance();
if(comp instanceof AliasBean)
@@ -97,6 +95,6 @@
log.warn("associated component is no aliasBean");
}
- return retVal;
+ return super.doEndTag();
}
}
Modified: myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/aliasbean/AliasBeansScopeTag.java
URL: http://svn.apache.org/viewcvs/myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/aliasbean/AliasBeansScopeTag.java?rev=380966&r1=380965&r2=380966&view=diff
==============================================================================
--- myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/aliasbean/AliasBeansScopeTag.java (original)
+++ myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/aliasbean/AliasBeansScopeTag.java Sat Feb 25 10:55:19 2006
@@ -61,8 +61,6 @@
public int doEndTag() throws JspException
{
- int retVal = super.doEndTag();
-
UIComponent comp = getComponentInstance();
if(comp instanceof AliasBeansScope)
@@ -74,7 +72,7 @@
log.warn("associated component is no aliasBeansScope");
}
- return retVal;
+ return super.doEndTag();
}
}
Modified: myfaces/tomahawk/trunk/examples/simple/src/main/webapp/aliasBean.jsp
URL: http://svn.apache.org/viewcvs/myfaces/tomahawk/trunk/examples/simple/src/main/webapp/aliasBean.jsp?rev=380966&r1=380965&r2=380966&view=diff
==============================================================================
--- myfaces/tomahawk/trunk/examples/simple/src/main/webapp/aliasBean.jsp (original)
+++ myfaces/tomahawk/trunk/examples/simple/src/main/webapp/aliasBean.jsp Sat Feb 25 10:55:19 2006
@@ -89,16 +89,19 @@
<t:aliasBean alias="#{holder}" value="#{firstComponentBindingHolder}" >
<f:subview id="simulatedIncludedSubform3">
<%-- The next tags could be inserted by an %@ include or jsp:include --%>
- <h:panelGroup binding="#{firstComponentBindingHolder.panelGroup}"/>
+ <h:panelGroup binding="#{holder.panelGroup}"/>
</f:subview>
</t:aliasBean>
- <t:aliasBean alias="#{holder}" value="#{firstComponentBindingHolder}" >
+ <t:aliasBean alias="#{holder}" value="#{secondComponentBindingHolder}" >
<f:subview id="simulatedIncludedSubform3">
<%-- The next tags could be inserted by an %@ include or jsp:include --%>
- <h:panelGroup binding="#{secondComponentBindingHolder.panelGroup}"/>
+ <h:panelGroup binding="#{holder.panelGroup}"/>
</f:subview>
</t:aliasBean>
+
+ <h:commandButton value="postback" />
+ <f:verbatim>on every postback the text 'first' and 'second' will be added</f:verbatim>
<br/><br/>