I wonder why I can't find a component from my backing bean, the code for the bean does:
UIComponent component = viewRoot.findComponent("form_01:meterDialog:lazyGrid");
component.toString();
and the jsf is:
<h:form id="form_01">
<p:dialog id="meterDialog" header="Meters" widgetVar="meter_data"
minimizable="true" maximizable="true" draggable="true"
resizable="true" height="auto" width="auto" onShow="enableForm()">
<p:remoteCommand id="cmd" name="enableForm" update="lazyGrid">
<f:setPropertyActionListener value="#{true}"
target="#{chartBean.formEnable}" />
</p:remoteCommand>
<p:panelGrid id="lazyGrid" rendered="true">
</p:panelGrid>
</p:dialog>
</h:form>
the problem is that it cant find lazyGrid, it can find the meterDialog with:
viewRoot.findComponent("form_01:meterDialog");
with no problems, but not the components lazyGrid or cmd