Netui:area tag can set submitForm="true" but does not function as Netui:anchor 
tag does
---------------------------------------------------------------------------------------

         Key: BEEHIVE-160
         URL: http://issues.apache.org/jira/browse/BEEHIVE-160
     Project: Beehive
        Type: Bug
  Components: NetUI  
    Versions: V1    
    Reporter: Julie Zhuo
 Assigned to: Daryl Olander 


netui:area tag extends netui:anchorBase tag which allows it to set the 
submitForm attribute to true to submit the form using the form action. But once 
trying this functionality, it does not do the job as expected. Not so sure if 
this feature is intended for the area tag though. The following are the part of 
the JSP and its generated html. Notice, the netui:area tag when have submitForm 
set it generates a <a/> tag rather a <area/> tag.

******** Part of the JSP file *******

    <netui:body>
        <netui:scriptContainer scopeId="scope1">
                Area JS Output Test!<br/>
                <netui:image 
src="./../resources/beehive/version1/images/planets.gif" width="145" 
height="126" alt="Planets" usemap="#planetmap"></netui:image>
                <map id="planetmap" name="planetmap">
                <netui:area tagId="a1" shape="rect" coords="0,0,82,126" 
alt="Back" action="back" />
                <netui:area tagId="a2" shape="rect" coords="82,0,126,126" 
alt="Submit" formSubmit="true">Submit</netui:area>
                </map>
        </netui:scriptContainer><br/>

       <p id="javaOut"></p>
    </netui:body> 

*********** Part of the html output *******
       <div netui:scopeId="scope1" >
                Area JS Output Test!<br/>
                <img 
src="/JavaScriptWeb/outputTest/./../resources/beehive/version1/images/planets.gif"
 width="145" height="126" usemap="#planetmap" alt="Planets">
                <map id="planetmap" name="planetmap">
                <area id="scope1.a1" href="/JavaScriptWeb/outputTest/back.do" 
shape="rect" alt="Back" coords="0,0,82,126">
                <a id="a2" name="a2" shape="rect" alt="Submit" 
coords="82,0,126,126">
                </map>
        </div>

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