-
1. Re: Unknown RunTime error
harut Sep 14, 2010 8:37 AM (in response to sivaprasad9394)be sure that you have no nested 'form' tags in your pages... Also post your page code
-
2. Re: Unknown RunTime error
sivaprasad9394 Sep 16, 2010 9:27 PM (in response to harut)Hi Harut,
Thanks for your reply.This is my problem,
have main page inside mail page my code looks like this,Iam getting error in IE8 like this,But in Mozilla nd Chrome it is working fine.even i tried with removing forms in sub pages(nested forms) also,it shows the same error in IE8.MainPage.jsp<rich:tabPanel switchType="client" id="tp1" styleClass="tabbertab" ><rich:tab label="General Info" name="General Info" styleClass="myClass"><a4j:region id="generalInforegion"><a4j:commandLink ajaxSingle="true" id="nameEditLinks" styleClass="celcomNoColor01"reRender="postpaidNameField" value="#{msg['statusEdit']}" immediate="true"oncomplete="#{rich:component('edit_info_nricmodal')}.show();"></a4j:commandLink><a4j:include id="generalInformationPage" viewId="/existingcustomer/postpaid/genaralinformation/generalinfo/generalInformation.jsp"/></a4j:region></rich:tab></rich:tabPanel><rich:tabPanel switchType="client" id="tp1" styleClass="tabbertab" ><rich:tab label="General Info" name="General Info" styleClass="myClass"><a4j:region id="generalInforegion"><a4j:commandLink ajaxSingle="true" id="nameEditLinks" styleClass="celcomNoColor01"reRender="postpaidNameField" value="#{msg['statusEdit']}" immediate="true"oncomplete="#{rich:component('edit_info_nricmodal')}.show();"></a4j:commandLink><a4j:include id="generalInformationPage" viewId="/existingcustomer/postpaid/genaralinformation/generalinfo/generalInformation.jsp"/></a4j:region></rich:tab>generalInformation.jsp<f:subview id="postpaidCustomerView"><h:form id="postpaidCustomerForm"><a4j:outputPanel ajaxRendered="true"><a4j:region id="postpaidCustomerRegion"><table width="100%" border="0" cellspacing="1" cellpadding="1" ><tr><td width="147"><h:outputText value="#{msg['existingcustomer.tab.postpaid.postpaid.name']}"/></td><td width="5"><h:outputText value=":" /></td><td width="638" class="font_exist"><h:outputText id="postpaidNameFields" styleClass="style1" value="#{generalInformationBean.name}"/></td><td width="30"><a4j:commandLink ajaxSingle="true" id="nameEditLinks" styleClass="celcomNoColor01"reRender="postpaidNameField" value="#{msg['statusEdit']}" immediate="true"oncomplete="#{rich:component('edit_info_nricmodal')}.show();"></a4j:commandLink></td></tr></table></a4j:region></a4j:outputPanel></h:form><!-- Adding Model panel starts here --><c:import url="../generalinfo/infonriceditmodal.jsp"/><!-- Adding model panel ends here --></f:subview>infornriceditmodel.jsp<f:subview id="info_nric_editmodalsubview"><rich:modalPanel id="edit_info_nricmodal" moveable="false" resizeable="false"width="950" height="450"><f:facet name="header"><h:outputText value="Edit Customer Info" styleClass="modalPanel12"/></f:facet><f:facet name="controls"><h:panelGroup><h:graphicImage value="../_assets/image/close.png" id="hidelinkedit_info_nric"styleClass="hidelink" /><rich:componentControl for="edit_info_nricmodal" attachTo="hidelinkedit_info_nric"operation="hide" event="onclick" /></h:panelGroup></f:facet><h:form id="edit_info_nric_modal_Form"><table class="font_exist" width="950" height="50%" border="0" cellpadding="0" cellspacing="0"><tr><td> ..................sample text </td></tr></table></h:form></rich:modalPanel></f:subview>I have main page inside mail page my code looks like this,Iam getting error in IE8 like this,
URI: http://localhost:8080/sample/a4j/g/3_3_2.GA/org/ajax4jsf/framework.pack.js.jsf
But in Mozilla nd Chrome it is working fine.
even i tried with removing forms in sub pages(nested forms) also,it shows the same error in IE8.
MainPage.jsp
<f:subview id="CustomerView">
<h:form id="CustomerForm">
<a4j:outputPanel ajaxRendered="true">
<a4j:region id="Region">
<rich:tabPanel switchType="client" id="tp1" styleClass="tabbertab" >
<rich:tab label="General Info" name="General Info" styleClass="myClass">
<a4j:region id="generalInforegion">
<a4j:commandLink ajaxSingle="true" id="nameEditLinks" styleClass="celcomNoColor01"
reRender="postpaidNameField" value="#{msg['statusEdit']}" immediate="true"
oncomplete="#{rich:component('edit_info_nricmodal')}.show();">
</a4j:commandLink>
<a4j:include id="generalInformationPage" viewId="/existingcustomer/postpaid/genaralinformation/generalinfo/generalInformation.jsp"/>
</a4j:region>
</rich:tab>
</rich:tabPanel>
<rich:tabPanel switchType="client" id="tp1" styleClass="tabbertab" ><rich:tab label="General Info" name="General Info" styleClass="myClass"><a4j:region id="generalInforegion"><a4j:commandLink ajaxSingle="true" id="nameEditLinks" styleClass="celcomNoColor01"reRender="postpaidNameField" value="#{msg['statusEdit']}" immediate="true"oncomplete="#{rich:component('edit_info_nricmodal')}.show();"></a4j:commandLink><a4j:include id="generalInformationPage" viewId="/existingcustomer/postpaid/genaralinformation/generalinfo/generalInformation.jsp"/></a4j:region></rich:tab>
</a4j:region>
</a4j:outputPanel>
</h:form>
</f:subview>
generalInformation.jsp
<f:subview id="postpaidCustomerView">
<h:form id="postpaidCustomerForm">
<a4j:outputPanel ajaxRendered="true">
<a4j:region id="postpaidCustomerRegion">
<table width="100%" border="0" cellspacing="1" cellpadding="1" >
<tr>
<td width="147"><h:outputText value="#{msg['existingcustomer.tab.postpaid.postpaid.name']}"/></td>
<td width="5"><h:outputText value=":" /></td>
<td width="638" class="font_exist">
<h:outputText id="postpaidNameFields" styleClass="style1" value="#{generalInformationBean.name}"/></td>
<td width="30">
<a4j:commandLink ajaxSingle="true" id="nameEditLinks" styleClass="celcomNoColor01"
reRender="postpaidNameField" value="#{msg['statusEdit']}" immediate="true"
oncomplete="#{rich:component('edit_info_nricmodal')}.show();">
</a4j:commandLink></td>
</tr>
</table>
</a4j:region>
</a4j:outputPanel>
</h:form>
<!-- Adding Model panel starts here -->
<c:import url="../generalinfo/infonriceditmodal.jsp"/>
<!-- Adding model panel ends here -->
</f:subview>
infornriceditmodel.jsp
<f:subview id="info_nric_editmodalsubview">
<rich:modalPanel id="edit_info_nricmodal" moveable="false" resizeable="false"
width="950" height="450">
<f:facet name="header">
<h:outputText value="Edit Customer Info" styleClass="modalPanel12"/>
</f:facet>
<f:facet name="controls">
<h:panelGroup>
<h:graphicImage value="../_assets/image/close.png" id="hidelinkedit_info_nric"
styleClass="hidelink" />
<rich:componentControl for="edit_info_nricmodal" attachTo="hidelinkedit_info_nric"
operation="hide" event="onclick" />
</h:panelGroup>
</f:facet>
<h:form id="edit_info_nric_modal_Form">
<table class="font_exist" width="950" height="50%" border="0" cellpadding="0" cellspacing="0">
<tr><td> ..................sample text </td></tr></table>
</h:form>
</rich:modalPanel>
</f:subview>
I tried removing nested form also but in IE8 i cant see the modal panel page.
Any help would be appreciate..
-
3. Re: Unknown RunTime error
liuliu Sep 17, 2010 3:28 AM (in response to sivaprasad9394)hi,
do you include the same page twice?
i suggest you put all your code in one page, and see what happens.
-
4. Re: Unknown RunTime error
sivaprasad9394 Sep 17, 2010 3:36 AM (in response to liuliu)Thank you for your reply.My problem is When i click edit button it should open one modal panel,As per previous discussion this is one model panel page
infornriceditmodel.jsp
Like wise i have 10 edit in my page so 10 modal panel in one jsp page means my code will be mess ,so only i have created 10 model panels as seperate page and while clicking Edit i am trying to open model panel.
-
5. Re: Unknown RunTime error
liuliu Sep 17, 2010 5:47 AM (in response to sivaprasad9394)in your second poste, i dont know if it is a problem de copy-paste. you have 2 tabpanel include the same modalpanel.
#{rich:component('edit_info_nricmodal')} try to find the first modalpanel with this id in the view, it use the short id, not the complete id.
and i see you rerender all your tabpanel automatically with ajaxRendered="true", it could be a problem for modalpanel.
-
-
7. Re: Unknown RunTime error
liuliu Sep 20, 2010 4:16 AM (in response to sivaprasad9394)hi,
when i have this kind problem, i put all code in one single page to see if it works at first. because the includ could bring some surprises.
and then put them in seperate files to find out the problem..
-
8. Re: Unknown RunTime error
sivaprasad9394 Sep 20, 2010 5:30 AM (in response to liuliu)yes i agree your answer.Thank you for reply.But in my case i have 30-40 tabs and some tabs have sub tabs and sub tabs have sub tabs in single page divided into modules .so in a single jsp means it comes around n-number of lines code.So i is mess and can't debug also.How to solve this issue
-
9. Re: Unknown RunTime error
liuliu Sep 21, 2010 5:56 AM (in response to sivaprasad9394)Did you try with firebug to find if your modalpanel is unique?
-
10. Re: Unknown RunTime error
jshepher Sep 22, 2010 3:29 AM (in response to sivaprasad9394)If it is possible to use a h:outputLink, instead of a4j:commandLink, to render the ModalPanel, please do so using the following code snippet:
<h:outputLink value="#" id="link">
showModal
<rich:componentControl for="edit_info_nricmodal" attachTo="link" operation="show" event="onclick"/>
</h:outputLink>I have raised an issue in Jira about this issue, which I have verified for 3.3.2.GA, 3.3.2.SR1, and 3.3.3.Final