voyent
Messages posted by: javaji.maruthi  XML
Profile for javaji.maruthi -> Messages posted by javaji.maruthi [3]
Author Message
Hi Everybody,

As per the requirement in my project, I have to disable dropdowns and input text boxes on click of submit button which internally submitting the form using java script. drop downs are not disabled through js. Pls find the js snipet which I am using for ice:form submittion.

[code]

iceSubmit(form, componentObj, event);


my jsp contains below code to call js function on form submittion

Ice.onSendReceive('document:body', enableDisableCockpit , enableDisableCockpit );
I am using ice:commandButton, when I click on command button action method is called and inside the method I am not seeing values updated in the backing bean, its giving old value.

[code]
jsp
<ice:commandButton id="datiSubmit" styleClass="textBtnGreen" value="#{topUpShopperSupportBean.confirmationLabel}" onclick="validateShopperForm(form,this,event); return false;" actionListener="#{topupCockpitController.actionlListener}"
action="#{topupCockpitController.onSubmit}">
<f:attribute name="ActionName" value="confirmDashboardShopperDetails"/>
</ice:commandButton>





I am using ice:commandButton with java script for validation and actionListener and action attributes. When I clicked on ice:commandButton, the js function is called which returns true after validation successful. after that actionListener and action methods are not calling. If I remove js function then actionListener and action methods are called. Pls help me in fixing this issue and find the code for ice command button below.
[/code]
<ice:commandButton id="datiSubmit" styleClass="textBtnGreen" value="#{topUpShopperSupportBean.confirmationLabel}" onclick="return validateShopperForm(this);" actionListener="#{topupCockpitController.actionlListener}"
action="#{topupCockpitController.onSubmit}">
<f:attribute name="ActionName" value="confirmDashboardShopperDetails"/>
</ice:commandButton>
 
Profile for javaji.maruthi -> Messages posted by javaji.maruthi [3]
Go to:   
Powered by JForum 2.1.7ice © JForum Team