[ http://issues.apache.org/jira/browse/BEEHIVE-500?page=history ]
     
Daryl Olander resolved BEEHIVE-500:
-----------------------------------

    Resolution: Fixed

This is now configurable.  The default is to encode the '&' character using the 
"&" string.  This is how the HTML 4.01 spec reads.  Attribute values are 
CDATA so the '&' should be encoded.

http://www.w3.org/TR/REC-html40/charset.html

To configure if encoding is on or not, you simply do add the following the the 
beehive-netui-config file:

<url-config>
   <html-amp-entity>false</html-amp-entity>
</url-config>

This should go after the <jsp-tag-config> section.

In addition to this, I changed all of the test results in the BVT webapp to use 
the default "&amp;" encoding.  This affect 84 or so tests.

> netui tags generated URLs are not HTML compliant
> ------------------------------------------------
>
>          Key: BEEHIVE-500
>          URL: http://issues.apache.org/jira/browse/BEEHIVE-500
>      Project: Beehive
>         Type: Bug
>   Components: NetUI
>     Versions: V1Beta
>     Reporter: Krista Baker
>     Assignee: Daryl Olander
>      Fix For: V1
>  Attachments: Controller.jpf, basicJSPTree.jsp
>
> When creating a tree (except runAtClient trees), the expansion and selection 
> actions are generated as anchor hrefs which include the parameter of 
> netui_treeid=tree.  These generated URLs do not encode the & symbol into 
> &amp; when the document type is set to html4-loose, causing the following 
> error when the html is run through an html validator:  general entity 
> "netui_treeid" not defined and no default entity.
> The generated XHTML when the document type is set to xhtml1-transitional is 
> correctly encoded as &amp;
> Example incorrect href:
> <a href="/basicPFTree/select.do?netui_treenode=0&netui_treeid=tree1">
> Example valid html href:
> <a href="/basicPFTree/select.do?netui_treenode=0&amp;netui_treeid=tree1">

-- 
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

Reply via email to