You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Wolfgang Schröder (JIRA)" <ji...@apache.org> on 2008/07/09 12:37:05 UTC
[jira] Created: (WW-2714) Attribute var not defined in TLD for tag
s:text
Attribute var not defined in TLD for tag s:text
-----------------------------------------------
Key: WW-2714
URL: https://issues.apache.org/struts/browse/WW-2714
Project: Struts 2
Issue Type: Bug
Components: Plugin - Tags
Affects Versions: 2.0.11.2
Reporter: Wolfgang Schröder
When using the s:text text like this:
<s:text name="myKey" var="myVar"/>
I get the Exception "Attribute var invalid for tag text according to TLD"
I checked the TLD and found this:
<tag>
<name>text</name>
<tag-class>org.apache.struts2.views.jsp.TextTag</tag-class>
<body-content>JSP</body-content>
<description><![CDATA[Render a I18n text message]]></description>
<attribute>
<name>id</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
<description><![CDATA[id for referencing element. For UI and form tags it will be used as HTML id attribute]]></description>
</attribute>
<attribute>
<name>name</name>
<required>true</required>
<rtexprvalue>false</rtexprvalue>
<description><![CDATA[ Name of resource property to fetch]]></description>
</attribute>
</tag>
Only defined attribute are "id" and "name". Attribute "var" seems to be missing.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (WW-2714) Attribute var not defined in TLD for tag
s:text
Posted by "Musachy Barroso (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/struts/browse/WW-2714?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Musachy Barroso resolved WW-2714.
---------------------------------
Resolution: Not A Problem
var is available on 2.1.x only. It replaces "id" which is available in 2.0.x. Id will still be available on 2.1 but it is deprecated.
> Attribute var not defined in TLD for tag s:text
> -----------------------------------------------
>
> Key: WW-2714
> URL: https://issues.apache.org/struts/browse/WW-2714
> Project: Struts 2
> Issue Type: Bug
> Components: Plugin - Tags
> Affects Versions: 2.0.11.2
> Reporter: Wolfgang Schröder
>
> When using the s:text text like this:
> <s:text name="myKey" var="myVar"/>
> I get the Exception "Attribute var invalid for tag text according to TLD"
> I checked the TLD and found this:
> <tag>
> <name>text</name>
> <tag-class>org.apache.struts2.views.jsp.TextTag</tag-class>
> <body-content>JSP</body-content>
> <description><![CDATA[Render a I18n text message]]></description>
> <attribute>
> <name>id</name>
> <required>false</required>
> <rtexprvalue>false</rtexprvalue>
> <description><![CDATA[id for referencing element. For UI and form tags it will be used as HTML id attribute]]></description>
> </attribute>
> <attribute>
> <name>name</name>
> <required>true</required>
> <rtexprvalue>false</rtexprvalue>
> <description><![CDATA[ Name of resource property to fetch]]></description>
> </attribute>
> </tag>
> Only defined attribute are "id" and "name". Attribute "var" seems to be missing.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.