You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@struts.apache.org by lu...@apache.org on 2012/07/21 15:39:17 UTC
svn commit: r1364090 - in /struts/struts2/trunk/core/src:
main/java/org/apache/struts2/components/Head.java
main/java/org/apache/struts2/components/Radio.java
site/resources/tags/head.html site/resources/tags/radio.html
Author: lukaszlenart
Date: Sat Jul 21 13:39:17 2012
New Revision: 1364090
URL: http://svn.apache.org/viewvc?rev=1364090&view=rev
Log:
WW-3804 enables Radio tag to use dynamic attributes
Modified:
struts/struts2/trunk/core/src/main/java/org/apache/struts2/components/Head.java
struts/struts2/trunk/core/src/main/java/org/apache/struts2/components/Radio.java
struts/struts2/trunk/core/src/site/resources/tags/head.html
struts/struts2/trunk/core/src/site/resources/tags/radio.html
Modified: struts/struts2/trunk/core/src/main/java/org/apache/struts2/components/Head.java
URL: http://svn.apache.org/viewvc/struts/struts2/trunk/core/src/main/java/org/apache/struts2/components/Head.java?rev=1364090&r1=1364089&r2=1364090&view=diff
==============================================================================
--- struts/struts2/trunk/core/src/main/java/org/apache/struts2/components/Head.java (original)
+++ struts/struts2/trunk/core/src/main/java/org/apache/struts2/components/Head.java Sat Jul 21 13:39:17 2012
@@ -21,14 +21,13 @@
package org.apache.struts2.components;
-import javax.servlet.http.HttpServletRequest;
-import javax.servlet.http.HttpServletResponse;
-
-import org.apache.struts2.views.annotations.StrutsTag;
-import org.apache.struts2.StrutsConstants;
-
import com.opensymphony.xwork2.inject.Inject;
import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.StrutsConstants;
+import org.apache.struts2.views.annotations.StrutsTag;
+
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
/**
* <!-- START SNIPPET: javadoc -->
@@ -48,8 +47,11 @@ import com.opensymphony.xwork2.util.Valu
* </pre>
*
*/
-@StrutsTag(name="head", tldBodyContent="empty", tldTagClass="org.apache.struts2.views.jsp.ui.HeadTag",
- description="Render a chunk of HEAD for your HTML file")
+@StrutsTag(name="head",
+ tldBodyContent="empty",
+ tldTagClass="org.apache.struts2.views.jsp.ui.HeadTag",
+ description="Render a chunk of HEAD for your HTML file",
+ allowDynamicAttributes = true)
public class Head extends UIBean {
public static final String TEMPLATE = "head";
Modified: struts/struts2/trunk/core/src/main/java/org/apache/struts2/components/Radio.java
URL: http://svn.apache.org/viewvc/struts/struts2/trunk/core/src/main/java/org/apache/struts2/components/Radio.java?rev=1364090&r1=1364089&r2=1364090&view=diff
==============================================================================
--- struts/struts2/trunk/core/src/main/java/org/apache/struts2/components/Radio.java (original)
+++ struts/struts2/trunk/core/src/main/java/org/apache/struts2/components/Radio.java Sat Jul 21 13:39:17 2012
@@ -52,7 +52,10 @@ import javax.servlet.http.HttpServletRes
* <!-- END SNIPPET: example_fmt -->
*
*/
-@StrutsTag(name="radio", tldTagClass="org.apache.struts2.views.jsp.ui.RadioTag", description="Renders a radio button input field")
+@StrutsTag(name="radio",
+ tldTagClass="org.apache.struts2.views.jsp.ui.RadioTag",
+ description="Renders a radio button input field",
+ allowDynamicAttributes = true)
public class Radio extends ListUIBean {
final public static String TEMPLATE = "radiomap";
Modified: struts/struts2/trunk/core/src/site/resources/tags/head.html
URL: http://svn.apache.org/viewvc/struts/struts2/trunk/core/src/site/resources/tags/head.html?rev=1364090&r1=1364089&r2=1364090&view=diff
==============================================================================
--- struts/struts2/trunk/core/src/site/resources/tags/head.html (original)
+++ struts/struts2/trunk/core/src/site/resources/tags/head.html Sat Jul 21 13:39:17 2012
@@ -20,7 +20,7 @@ Please do not edit it directly.
<!-- START SNIPPET: tagattributes -->
<table width="100%">
<tr>
- <td colspan="6"><h4>Dynamic Attributes Allowed:</h4> false</td>
+ <td colspan="6"><h4>Dynamic Attributes Allowed:</h4> true</td>
</tr>
<tr>
<td colspan="6"> </td>
Modified: struts/struts2/trunk/core/src/site/resources/tags/radio.html
URL: http://svn.apache.org/viewvc/struts/struts2/trunk/core/src/site/resources/tags/radio.html?rev=1364090&r1=1364089&r2=1364090&view=diff
==============================================================================
--- struts/struts2/trunk/core/src/site/resources/tags/radio.html (original)
+++ struts/struts2/trunk/core/src/site/resources/tags/radio.html Sat Jul 21 13:39:17 2012
@@ -20,7 +20,7 @@ Please do not edit it directly.
<!-- START SNIPPET: tagattributes -->
<table width="100%">
<tr>
- <td colspan="6"><h4>Dynamic Attributes Allowed:</h4> false</td>
+ <td colspan="6"><h4>Dynamic Attributes Allowed:</h4> true</td>
</tr>
<tr>
<td colspan="6"> </td>