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"
onclick="testcasedialog.show()">
</p:commandButton>
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}">
<p:outputPanel>
<ui:insert name="right-pane-content">
<ui:include src="edittestcase.xhtml">
<ui:param name="action" value="modify" />
<ui:param name="testcaseid" value="#{TestCase.testCaseId}" />
</ui:include>
</ui:insert>
</p:outputPanel>
</p:dialog>
Code: Select all
<p:commandButton id="modifyTestCase" value="#{msg['createTestCase.modifyTestCase.commandButton.value']}"
action="#{TestCase.modify}" oncomplete="testcasedialog.hide()">
</p:commandButton>