Note that there are some explanatory texts on larger screens.

plurals
  1. POJSF2 ajax events not triggered in dynamically included pages
    primarykey
    data
    text
    <p>I have a AdminHome.xhtml page which has a dynamic include as below: </p> <pre><code>&lt;h:form id="masterform"&gt; &lt;table class="DEFTABLE"&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td class="CREATESTYLE"&gt;Create &lt;h:selectOneMenu styleClass="SELECTBOX" id="createBox" value="#{adminWindowController.actionSelection}"&gt; &lt;f:ajax event="change" execute=":masterform:workspace" listener="#{adminWindowController.invokeAction}" render=":masterform:workspace :masterform:taskbar createBox"/&gt; &lt;f:selectItem itemValue="NONE" itemLabel="Select one..."/&gt; &lt;f:selectItem itemValue="CREATE_ENTITY_DEFINITION" itemLabel="Entity Definition"/&gt; &lt;f:selectItem itemValue="CREATE_ENTITY_GROUP" itemLabel="Entity Group" /&gt; &lt;f:selectItem itemValue="CREATE_USER" itemLabel="User" /&gt; &lt;f:selectItem itemValue="CREATE_USER_GROUP" itemLabel="User Group" /&gt; &lt;/h:selectOneMenu&gt; &lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt; &lt;/table&gt; &lt;h:panelGroup id="workspace"&gt; &lt;table class="DEFTABLE"&gt; &lt;tr&gt; &lt;td class="WSHEIGHT" valign="top"&gt; &lt;ui:include src="#{adminworkspace.workspaceContent}"/&gt; &lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; &lt;/h:panelGroup&gt; &lt;/h:form&gt; </code></pre> <p>The above include will get page names dynamically during various ajax events triggered on AdminHome.xhtml page. </p> <p>Below is one of the dynamic pages that gets loaded when the selectOneMenu changes.</p> <pre><code>&lt;ui:composition&gt; &lt;h:form id="entdefcreateform"&gt; &lt;h:panelGroup id="entdefpanel"&gt; &lt;table&gt; &lt;/table&gt; &lt;table cellspacing="0"&gt; &lt;tr&gt; &lt;ui:repeat value="#{adminEntityDefnController.entDefTabList}" var="tab"&gt; &lt;td class="#{tab == uIUtil.getRequestMapValue('activetab','General') ? 'TABBUTTONCTIVE' : 'TABBUTTON'} "&gt; &lt;h:commandLink action="#{adminWindowController.TabChange}" style="border: none;"&gt; &lt;f:ajax execute=":masterform:entdefcreateform:entdefpanel" render=":masterform:entdefcreateform:entdefpanel"/&gt; &lt;f:param name="activetab" value="#{tab}"/&gt; &lt;h:outputText value="#{tab}"/&gt; &lt;/h:commandLink&gt; &lt;/td&gt; &lt;/ui:repeat&gt; &lt;/tr&gt; &lt;/table&gt; &lt;table class="TABCONTENTTABLE"&gt; &lt;tr valign="top"&gt; &lt;td class="TABCONTENT"&gt; &lt;ui:include src= "#{adminEntityDefnController.entDefTabTable.get(uIUtil.getRequestMapValue('activetab','General'))}"/&gt; &lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; &lt;/h:panelGroup&gt; &lt;/h:form&gt; &lt;/ui:composition&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload