:)大家好,这是我在论坛上搜索类似帖子后的第一篇帖子
我的按钮看起来像这样: http://img.villagephotos.com/p/2006-10/1223248/pc3.JPG (很抱歉,但它说新用户需要10个信誉才能发布图片和多个链接)
这是按钮的代码:
<a4j:commandButton styleClass="pcPopUpButton" ajaxSingle="true" eventsQueue="myQueue" value="#{_pcs.priceKey} Tx Price: $#{_pcs.amount} + Tx Fee: $#{_pcs.fee} = $#{_pcs.amount+_pcs.fee}"/>
当我使用ajax reRender重新调整按钮时,问题就出现了,按钮变得像图片中显示的那样。
我使用firebug(第一次加载)检查了页面代码:
<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">
(在reRender之后):
<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">
如果我使用h:commandButton提交整个页面,按钮仍然保持不变但我不能使用h:commandButton,因为页面中有一些验证。 任何帮助或建议将不胜感激。谢谢!