p dialog fails to call the backing bean method the 1st time

Components, Ajax Framework, Utilities and More.
Post Reply
Posts: 2
Joined: 30 Nov 2010, 12:23

13 Dec 2010, 18:03

I have a dialog box thats invoked to modify a couple of fields, but when I submit the form in the dialog, it fails to invoke the method the first time. If I bring up the dialog again and click submit, it works.
Any pointers in the right direction will be much appreciated. Thanks in advance.

Code snippets as follows :
Invoking the dialog

Code: Select all

<p:commandButton value="Modify Testcase" 
The dialog

Code: Select all

<p:dialog header="Modify TestCase" id="tcdialogid"
				widgetVar="testcasedialog" hideEffect="explode"
				showEffect="slide" closable="true" width="500" 
				visible="#{not empty facesContext.maximumSeverity}">
				<ui:insert name="right-pane-content">
					<ui:include src="edittestcase.xhtml">
						<ui:param name="action" value="modify" />
						<ui:param name="testcaseid" value="#{TestCase.testCaseId}" />
Submit in the dialog

Code: Select all

<p:commandButton id="modifyTestCase" value="#{msg['createTestCase.modifyTestCase.commandButton.value']}"
action="#{TestCase.modify}" oncomplete="testcasedialog.hide()">			
Using : PrimeFaces-2.2.RC2, Mojarra 2.0.3, Tomcat 6.0.14

Post Reply
  • Information
  • Who is online

    Users browsing this forum: arco, Bing [Bot], Google [Bot] and 14 guests