tags:

views:

75

answers:

0

:) Hi all, this is my first post after searching through the forum for similar posts

I have buttons that look like this: http://img.villagephotos.com/p/2006-10/1223248/pc3.JPG (Sorry but it said that new user needs 10 reputation to post images and more than one link)

and here is the code of the button:

<a4j:commandButton styleClass="pcPopUpButton" ajaxSingle="true" eventsQueue="myQueue" value="#{_pcs.priceKey}&#10;Tx Price: $#{_pcs.amount} + Tx Fee: $#{_pcs.fee}&#10;= $#{_pcs.amount+_pcs.fee}"/>

The problem is there when i reRender the buttons using ajax reRender, the buttons become like what is shown in the picture.

I checked the page code using firebug (first load):

    <input type="button" value="ADULT
Tx Price: $5.00 + Tx Fee: $5.00
= $10.00" onclick="A4J.AJAX.Submit('tblBooking:repeater:0:pcLink','tblBooking',event,{'similarityGroupingId':'tblBooking:repeater:0:pcGrid2:0:pc4','parameters':{'ajaxSingle':'tblBooking:repeater:0:pcGrid2:0:pc4','tblBooking:repeater:0:pcGrid2:0:pc4':'tblBooking:repeater:0:pcGrid2:0:pc4'} ,'eventsQueue':'myQueue','actionUrl':'/quebecTicketing/TblBookingEdit.seam'} );return false;" name="tblBooking:repeater:0:pcGrid2:0:pc4" id="tblBooking:repeater:0:pcGrid2:0:pc4" class="pcPopUpButton">

(after reRender'ed) :

<input type="button" class="pcPopUpButton" id="tblBooking:repeater:0:pcGrid2:0:pc4" name="tblBooking:repeater:0:pcGrid2:0:pc4" onclick="A4J.AJAX.Submit('tblBooking:repeater:0:pcLink','tblBooking',event,{'similarityGroupingId':'tblBooking:repeater:0:pcGrid2:0:pc4','parameters':{'ajaxSingle':'tblBooking:repeater:0:pcGrid2:0:pc4','tblBooking:repeater:0:pcGrid2:0:pc4':'tblBooking:repeater:0:pcGrid2:0:pc4'} ,'eventsQueue':'myQueue','actionUrl':'/quebecTicketing/TblBookingEdit.seam'} );return false;" value="ADULT Tx Price: $5.00 + Tx Fee: $5.00 = $10.00">

If I use h:commandButton to submit the whole page, the buttons still remain the same but I can't use h:commandButton because there are some validation in the page. Any help or suggestions would be appreciated. Thanks!