Provide 'webappRelative' flag for netui:image and netui:anchor
--------------------------------------------------------------

         Key: BEEHIVE-240
         URL: http://issues.apache.org/jira/browse/BEEHIVE-240
     Project: Beehive
        Type: Improvement
  Components: NetUI  
    Reporter: Rich Feit
     Fix For: TBD


For the 'src' attribute on netui:image, and the 'href' attribute on 
netui:anchor, it would be great to be able to specify a '/'-rooted path that is 
relative to the webapp, rather than having to use scriptlet to include the 
webapp name. Having a 'webappRelative' flag (preferably defaulting to true, but 
possibly to false for backward compatibility) would solve this, and would still 
allow the option of referring to images/links in other webapps.

Examples:
    <netui:anchor href="/foo/bar.jsp" webappRelative="true">
    <netui:anchor href="/otherWebApp/foo/bar.jsp" webappRelative="false">
    <netui:image src="/foo/bar.jsp" webappRelative="true"/>
    <netui:image src="/otherWebApp/foo/bar.jsp" webappRelative="false"/>

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