Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

hx:ajaxRefreshSubmit using two times to submit two panelgroups in single hx:behaviour.not working  RSS feed

 
Hariprasad Chirumamilla
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I am using hx:ajaxRefreshSubmit for two times to refresh the different panelgroups in single hx:behaviour. but command button action is performing two times. its adding two records instead of one

Sample code for the same

Mainjsp:

<f:view>
<h:form>
<hx:scriptCollector>
<h:panelGroup id="hdrMsgRefresh">
<h:messages layout="table" showDetail="true" style="color: red"
showSummary="false" />
<hx:ajaxRefreshSubmit target="hdrMsgRefresh"></hx:ajaxRefreshSubmit>
</h:panelGroup>
<jsp:include ......................./>
<jsp:include ......................./>
<jsp:include ......................./>
<jsp:include ......................./>
<jsp:include ......................./>
<jsp:include ......................./>
<jsp:include ......................./>
<jsp:include ......................./>
<h:panelGroup id="line">
<jsp:include
page="/jsp/subsec/sub.jsp" />
<hx:ajaxRefreshSubmit id="Lineitemajax" target="line"></hx:ajaxRefreshSubmit>
</h:panelGroup>
</hx:scriptCollector>
</h:form>
</f:view>


Command button is inside sub.jsp
<h:commandButton id="addLineItemSummary" style="CURSOR:hand"
action="#{claimsControllerBean.addLineItem}" onclick="javascript:flagWarn=false;"
styleClass="add_icon" title="Add" value=" "
onmousedown="javascript:focusThis(this.id);" >
<hx:behavior event="onclick" behaviorAction="get;get" targetAction="line;hdrMsgRefresh"></hx:behavior>
</h:commandButton>


so, its submitting two panel groups by using single hx:behaviour but command button action is performing two times.

I am using JSF 1.2 and portlet 2.0(JSR 286 API).

Any one can you help me please.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!