0 Replies Latest reply on Mar 3, 2008 7:21 AM by Syed Muhammad Ali Naqvi

    Changing button caption

    Syed Muhammad Ali Naqvi Newbie


      I am using a ajax:commandButton in my project. It want to change the caption and action of button each time it is clicked. e.g I have a button for editing when it has a caption "Set Name ABC" when that button is clicked the caption is changed to "Set Name XYZ" and Label is updated with text ABC and When I press the same button with caption "Set Name XYZ" It changes it's caption back to "Set Name ABC" and the label text becomes updated with "XYZ" ... and same procedure continues everytime I click that button.

      Muhammad Ali