You need to sign in to do that
Don't have an account?
Frank N.
Ajax issue: page changes only small portion but in debug shows it loads the entire page.
HI all,
I have another AJAX related question. If I use Ajax to render my page, for example using the following action to add stuff to a basket:
<apex:actionFunction action="{!addProductsToOrder}" oncomplete="return alert('Order Basket Updated Successfully');" name="updateCartInformation" reRender="jsva"> <apex:param name="piInfo" value="" /> <apex:param name="quantity" value="" /> </apex:actionFunction>
Then the action works, the page does not seem to reload and I see a message on my screen. However, I check the debug log it shows that it renders everything on the page, from top navigation to rendering the entire table in which I have inputfields to add stuff.
This does not seem like the appropriate behavior or... ? How can I stop the page from completely reloading and just change one small part of the screen.
Best.
Frank
You have rerender="java" - what is the element with id="java"?
*Update* Using firebug I notice it does return an Ajax response. However, the navigation bar that is causing the big load is still reloaded in debug.
JSCA is an outputpanel.
This is the setup on the page, Its the product navigation that seems to be reloading all the time:
Function in the codebehind:
So no idea why the navigation is reloading. Does the controller get trigger when an Ajax request is made? It does return an Ajax response.. its dubious.
Best.
We have solved this issue. Furthermore we've setup a blog where we discuss our issues and solutions:
Three heads on a pike - Salesforce BLOG