You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2014/03/13 20:23:44 UTC
[jira] [Commented] (WW-4297) XHTML validations for s:hidden in form
[ https://issues.apache.org/jira/browse/WW-4297?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13933923#comment-13933923 ]
ASF subversion and git services commented on WW-4297:
-----------------------------------------------------
Commit d63deb9750a3d409be30414faaf76f5481a4417d in struts's branch refs/heads/develop from [~lukaszlenart]
[ https://git-wip-us.apache.org/repos/asf?p=struts.git;h=d63deb9 ]
WW-4297 finishes feature: improves hidden tag to properly support xhtml theme
> XHTML validations for s:hidden in form
> --------------------------------------
>
> Key: WW-4297
> URL: https://issues.apache.org/jira/browse/WW-4297
> Project: Struts 2
> Issue Type: Bug
> Components: Core Actions
> Affects Versions: 2.3.15.3
> Environment: Plattform independent
> Reporter: Fredrik Andersson
> Priority: Minor
> Labels: newbie
> Fix For: 2.3.17
>
> Original Estimate: 2h
> Remaining Estimate: 2h
>
> Hello!
> I first posted this in user user@struts.apache.org, please see:
> https://mail-archives.apache.org/mod_mbox/struts-user/201403.mbox/%3CDUB129-W3328CF1DD22C328A3F2480B1880@phx.gbl%3E
> It looks like this might be a bug since the form do not pass validation at:
> http://validator.w3.org/check
> The problem is that hidden tags in the form is within the table, but do not get any tr and td tags.
> The struts-users helped me to this work around:
> I put a new file "hidden.ftl" in my resources-folder (I use maven with eclipse):
> resources/template/xhtml/hidden.ftl
> The content in hidden.ftl is:
> {code:xml}
> <tr style="display:none;">
> <td>
> <#include "/${parameters.templateDir}/simple/hidden.ftl" />
> </td>
> </tr>
> {code}
> Then it validates fine!
> Best regards
> Fredrik
> .
--
This message was sent by Atlassian JIRA
(v6.2#6252)