[ http://issues.apache.org/jira/browse/BEEHIVE-278?page=history ]
Daryl Olander resolved BEEHIVE-278:
-----------------------------------
Assign To: Jeremiah Johnson (was: Daryl Olander)
Resolution: Fixed
The annotation to inforce the fact that Scriptheader is supposed to be Empty
was not correct. I corrected the annotation and added a repo that verifies
that we now don't compile the JSP if it is not empty.
repo: coreweb/bugs/j278
> ScriptHeader not validating body-content
> ----------------------------------------
>
> Key: BEEHIVE-278
> URL: http://issues.apache.org/jira/browse/BEEHIVE-278
> Project: Beehive
> Type: Bug
> Components: NetUI
> Reporter: Jeremiah Johnson
> Assignee: Jeremiah Johnson
> Priority: Minor
>
> <netui:scriptHeader/> validation that its body is empty (such as
> <netui:content/> for example); as it is, a user can put something like this
> into the page:
> <netui:scriptHeader>I'm not empty.</netui:scriptHeader>
> And the result is this:
> <script language="JavaScript" type="text/JavaScript"
> src="/ics/resources/beehive/version1/javascript/netui-tree.js"></script>I'm
> not empty.
> I would rather see this message:
> 'According to TLD, tag netui:scriptHeader must be empty, but is not'
> This may be an issue for some that assume that scriptHeader is just a
> specialization of scriptBlock. Validation would prevent confusion.
> - jeremiah
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira