spring webflow 2 - Primefaces Dialog box - show it conditionally. javascript code not working -


I want to show a dialog box on the click of a prefetch command button. Before the dialog box, I have to check a solilat.

I am using Spring Web Stream 2.3.0.

So I'm doing it like this,

and dialog box

I'm not able to show this dialog box based on this condition.

SWF 2.3.0 Primus 2.2.1 JSF Spring 2 Spring 3.1.0 M1 iAkAkacha Tomcat 6.0 STS 2.5.1 <

Therefore I have changed my code according to the following

  = "Dlg3.show ()" update = "DialogPanel" & gt; & Lt; F: setPropertyActionListener value = "# {searchHandler.selectedAccIns}" target = "# {reqSearchHandler.checkAccStatus}" /> & Lt; / P: commandLink & gt;   

and dialog box

  & lt; P: outputPanel id = "Dialog panel" is provided = "# {reqSearchHandler.accStatusFlag}" & gt; & Lt; P: dialog header = "effect dialog" widgetVar = "dlg3" show effect = "bounce" hide effect = "explosion" height = "200" & gt; & Lt; H: outputtext value = "account # is {searchHandler.selectedAccIns.accStatusDesc}" /> & Lt; H: Output Text Value = "Do You Want to Continue?" / & Gt; & Lt; Div align = "left" & gt; & Lt; P: Command Button Value = "Yes" Action = "Accept" /> & Lt; P: spacer width = "960" height = "5" /> & Lt; P: command button value = "no" verb = "cancel" /> & Lt; / Div & gt; & Lt; / P: Dialog & gt; & Lt; / P: outputPanel & gt;   

But when I'm clicking on the command link, I'm getting 3 dialog boxes. Can you please tell me why is this?

Someone else has still posted the same problem! :)

You should use the incomplete attribute instead of onclick of the command button before javascript event is clicked before returning to the page, Your dialog may not appear because of possibly reloading the page.

Incomplete = "dlg3.show ()" will appear after the postback dialog.

Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

c# - Using Vici cool Storage with monodroid -

python - referencing a variable in another function? -