You need to sign in to do that
Don't have an account?
Saravanan @Creation
apex:facet for disabling the button
Hi All,
I have below code in my visualforce page
<apex:pageBlockButtons >
<apex:actionStatus id="saveXX">
<apex:facet name="stop">
<apex:commandButton action="{!saveEdit}" status="saveXX" rerender="error" value="Save"/>
</apex:facet>
<apex:facet name="start">
<apex:commandButton status="saveXX" value="Processing..." disabled="true"/>
</apex:facet>
</apex:actionStatus>
</apex:pageBlockButtons>
when i click the save button which is in stop facet it will display the process button which is in the stop facet.
The problem here is after clicking the save button saveEdit method is executing but this method is executing two times.
Please explain me how this work like this.And how do i stop it.
Thanks in advance
I have below code in my visualforce page
<apex:pageBlockButtons >
<apex:actionStatus id="saveXX">
<apex:facet name="stop">
<apex:commandButton action="{!saveEdit}" status="saveXX" rerender="error" value="Save"/>
</apex:facet>
<apex:facet name="start">
<apex:commandButton status="saveXX" value="Processing..." disabled="true"/>
</apex:facet>
</apex:actionStatus>
</apex:pageBlockButtons>
when i click the save button which is in stop facet it will display the process button which is in the stop facet.
The problem here is after clicking the save button saveEdit method is executing but this method is executing two times.
Please explain me how this work like this.And how do i stop it.
Thanks in advance
Try with below it will help
This will work but after clicking the Save it will show the Processing text but it also display the Save button .
I don't want to display the save button once its clicked.
I think you wnat to disable the button for usr for whcih user can not double click on the save button again .
if yes ,better you can use preloader in place of action status .
Could you please explain me what is preload and how to implement.
Thanks,
Change the page code as below Controller should be having code like Let us know in case of any issue.
Don't forget to select best answer to make our efforts visible in the developer forum.
Please mark this as solution by selecting it as best answer if this solves your problem, So that if anyone has this issue this post can help
Please find below code an dtry to add with your code .
Try to down load the jqury API and add in static resource and try to use in code .
Down load from below link .
http://jqueryui.com/download/
You need to add like below
<script src="{!URLFOR($Resource.JQueryUI, '/jquery-ui-1.9.2.custom/js/jquery-1.8.3.js')}"/>
<script src="{!URLFOR($Resource.JQueryUI, '/jquery-ui-1.9.2.custom/js/jquery-ui-1.9.2.custom.min.js')}"/>
Thanks
Manoj