Hi,
I could not get my commandlink to work when it is nested inside a panelTab. This seems to be a bug. Has anyone met with this problem? Is that any workaround? Can someone do something to fix this bug? I need a reply urgently, any reply will be very much appreciated.
I am using the follow jar files:
1)myfaces-api-1.1.5-SNAPSHOT
2)myfaces-impl-1.1.5-SNAPSHOT
3)tomahawk-1.1.5-SNAPSHOT
My JSP file is as follows:
<f:view>
<h:form id="generalForm">
<t:panelTabbedPane width="100%"
activeTabStyleClass=""
inactiveTabStyleClass=""
disabledTabStyleClass=""
activeSubStyleClass=""
inactiveSubStyleClass=""
serverSideTabSwitch="true"
styleClass=""
id="entityLicenceTab"
binding="#{maintainCAPage.tabPane}">
<t:panelTab id="GeneralTab" style="height:500" label="General" rendered="true">
<t:commandLink id="dateLink" action="#{backingBean.displayNextPage}" immediate="false">
<h:outputText value="Display"/>
</t:commandLink>
</t:panelTab>
</t:panelTabbedPane>
<h:messages/>
</h:form>
</f:view>
I got the following _javascript_ error:
'document.forms.generalForm.elements.generalForm:_idcl' is null or not an object
The generated HTML codes is as follows:
<a href="" {
clearFormHiddenParams_generalForm('generalForm');
}
if(window.org_apache_myfaces_getScrolling!=undefined){
document.forms['generalForm'].elements['org_apache_myfaces_autoScroll'].value=org_apache_myfaces_getScrolling();
}
document.forms['generalForm'].elements['generalForm:_idcl'].value='generalForm:dateLink';
if(document.forms['generalForm'].onsubmit){
var result=document.forms['generalForm'].onsubmit();
if( (typeof result == 'undefined') || result ) {
document.forms['generalForm'].submit();
}
}else{
document.forms['generalForm'].submit();
}
return false;
"id="generalForm:dateLink">Display</a>
Thanks in advance!
Melvin