-
1. Re: IE8 submit problem
sivaprasad9394 Oct 18, 2012 4:59 AM (in response to ramram888)Hello ram,
try add the below code in the seprate page(loading_page.xhtml),
<rich:modalPanel id="wait" autosized="true" width="50" height="50"
moveable="false" resizeable="false">
<h:graphicImage alt="Please Wait..." value="/img/bosch/loading_animation.gif"></h:graphicImage>
</rich:modalPanel>
Add the code in another xhtml or jsp page,
<a4j:status for="roleRegionData" id="statusIDs" forceId="true"
onstart="#{rich:component('wait')}.show()"
onstop="#{rich:component('wait')}.hide()" />
<a4j:include id="loadWindowaddEdits"
viewId="/_includes/loading_page.xhtml"></a4j:include>
This is for="roleRegionData" for specific region we can show the loading in the screen,
<a4j:region>
-------------
-----------------
------------------------ UR code
-------------------------------
</a4j:region>
if it is not working just rerender the region id in the button.rerender=regionID.It will help you to display loading screen prop-er manner.
Thanks,
Siva
-
2. Re: IE8 submit problem
ramram888 Oct 18, 2012 5:29 AM (in response to sivaprasad9394)Hi Siva,
I found what is wrong in my code, i m using <a4j:support> and it is submitting the whole form even when i m adding ajaxSingle="true".
the problem doesn't occur when the table data has few rows since the form size is small, but when the table has considerable rows number the form size is huge
that's why it is taking few seconds to submit it before displaying the Loading panel.
Siva, thank you for your help and support.
Regards,
Ram
-
3. Re: IE8 submit problem
mcmurdosound Oct 18, 2012 1:18 PM (in response to ramram888)if I understand you correctly, you have a table with many input components inside? richfaces will always send all input elements as request parameters. This can cause trouble if you a running your application on an application server which has as limited number of requestparams configured. like jboss 7.1. (it has only 512 per default)
currently I'm developing a prototype for "real" inplace input: initially it will render a span just for output, but if you click on it, it will transform to an input only on the client. this will keep the number of inputs low. but it's an early prototype.
alternatively you can try to toggle between edit and view mode in your table. like a roweditor..
-
4. Re: IE8 submit problem
ramram888 Oct 19, 2012 3:51 AM (in response to mcmurdosound)Christian,
You are right, I have a table with many input components inside. but the problem is that the application performance is acceptable when using Firefox,Chrome and IE9, and it is extremelty slow when using IE8. It is like IE8 submits the whole page and ajax functionalities is not working. I don't know if it is related to the browser setup or compatibility with Richfaces 3.3.3.Final.
for example when clicking on the below command button:
<a4j:commandLink value="View" onclick="Richfaces.showModalPanel('modalPanel');" ajaxSingle="true" rendered="#{beanBB.showBtn}"/>
It tooks 4 seconds to display the modal panel on IE8 while it opens in a fraction of second on the other browsers.
Regards,
Ram
-
5. Re: IE8 submit problem
mcmurdosound Oct 19, 2012 1:14 PM (in response to ramram888)"It is like IE8 submits the whole page and ajax functionalities is not working" no difference between different browsers here. each ajax request sends the values of all input elements inside the same form as request parameters to the server. even using regions to reduce the number of processes elements still would gather and send the values of all inputs.
the browser could become significant slower on slow browsers like the IE8. take a look into the developertools and or the error console if you get any errors there during a request.