ZK - Open Source Ajax Java FrameworkZK - Open Source Ajax Java Framework

how to get component of included page in the main page

sanjeeb
7 Feb 2012 13:35:36 GMT
7 Feb 2012 13:35:36 GMT

main.zul
------------------
<p:zk>
<p:window apply="CaptureBiometricsComposer>
<p:hbox height="250px">
<p:include id="incLefPanel"
src="LeftPanelCaptureBiometrics.zul" />

<p:include id="incRightPanel" src="captureFingerPrint.zul" />
</p:hbox>
<p:div align="right" class="buttonWrap">

<p:button label="${c:l('Next')}" id="btnNext"
class="simpleButton" />

</p:div>

</p:window>
</p:zk>

in the above code how will i get the component of "LeftPanelCaptureBiometrics.zul" in the CaptureBiometricsComposer .I want to change the css of a button present in "LeftPanelCaptureBiometrics.zul" whenever i click on next button present in the main.zul.

Please reply

benbai
13 Feb 2012 04:14:31 GMT
13 Feb 2012 04:14:31 GMT

Hi sanjeeb,

Try this

incLefPanel.getFellow("Component_ID_in_Included_Page");

Regards,
ben