You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Mak Nern Fatt <ne...@ncs.com.sg> on 2006/07/31 05:33:23 UTC

commandlink not working in panelTabbedPane

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="#"
onclick="if(window.clearFormHiddenParams_generalForm!=undefined) {
 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='gener
alForm: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