JavaScript error when a link is clicked
Hello,
I have a commandLink in my screen (JSF application). When I click on the link I am getting a javaScript error saying (in Firefox browser)
clear_header_3Abanner_3ApasswordChange is not defined
So when i checked the page source i could see that its generating the clear_header_3Abanner_3ApasswordChange(); tag extra as below
span class="username">Joe McUser</span> | <a href="#" onclick="clear_header_3Abanner_3ApasswordChange();document.forms['header:banner:passwordChange'].elements['header:banner:passwordChange:_link_hidden_'].value='header:banner:passwordChange:passwordLink';if(document. ...................
I don't have a subview or form named "clear" and I am not sure where the _3A is coming from.
My JSF looks like this
><f:subview id="banner">
<h:panelGrid styleClass="accentBar">
<h:panelGroup />
</h:panelGrid>
<h:panelGrid styleClass="headerBar">
<h:panelGrid styleClass="headerBanner" columns="3" columnClasses="logo,title,options">
<h:panelGroup>
<h:outputText styleClass="title" value="text" />
<h:outputText value=" " />
<h:outputText styleClass="subtitle" value="text" />
</h:panelGroup>
<h:form id="passwordChange" >
<h:panelGroup>
<h:outputText styleClass="username" value="Joe McUser" />
<h:outputText value=" | " />
<t:commandLink id="passwordLink" value="Change Password" action="#{bannerOptionDto.doUpdateChangePassword}" />
<h:outputText value=" | " />
<h:outputText value="Logout" />
</h:panelGroup>
</h:form>
</h:panelGrid>
</h:panelGrid>
</f:subview>
Could somebody please help me with this problem.
Thanks!

