actionListener и событие ajax в моем коде не работают. 1-й щелчок не удался, но 2-й щелчок работает должным образом. - PullRequest
0 голосов
/ 18 июня 2020

Ярлыки форм и поведение при нажатии! src="/WEB-INF/includes/fragment/edm/linkedValuePair.xhtml"

                   <h:commandLink actionListener="#{bean[listener]}">
                     <f:ajax event="action" execute="@this" render="@all"/>
                     <h:outputText value="#{label}" styleClass="ui-input-label"/>
                   </h:commandLink>
                   <h:commandLink actionListener="#{bean[listener]}">
                     <f:ajax event="action" execute="@this" render="@all"/>
                     <h:outputText value="#{value}"/>
                   </h:commandLink> 
                 </h:panelGrid>```
**Above code is the issue which is misbehaving !**
          ``` <ace:panel header="Media" styleClass="lp" id="mediaPanel">
                     <h:panelGrid columns="1" styleClass="w100">
                       <ui:include src="/WEB-INF/includes/fragment/edm/linkedValuePair.xhtml">
                         <ui:param name="bean" value="#{frontPage}"/>
                         <ui:param name="listener" value="manageLogos"/>**Bean method !**
                         <ui:param name="label" value="Logos"/>
                         <ui:param name="value" value=""/>
                       </ui:include>
                       <hr class="hrb"/>          
                       <ui:include src="/WEB-INF/includes/fragment/edm/linkedValuePair.xhtml">
                         <ui:param name="bean" value="#{frontPage}"/>
                         <ui:param name="listener" value="manageImages"/>**Bean method !**
                         <ui:param name="label" value="Images"/>
                         <ui:param name="value" value=""/>
                       </ui:include>
                       <hr class="hrb"/>    
                       <ui:include src="/WEB-INF/includes/fragment/edm/linkedValuePair.xhtml">
                         <ui:param name="bean" value="#{frontPage}"/>
                         <ui:param name="listener" value="managePdfs"/>**Bean method !**
                         <ui:param name="label" value="Catalogues / Menus"/>
                         <ui:param name="value" value=""/>
                       </ui:include>
                       <hr class="hrb"/>  
                       <ui:include src="/WEB-INF/includes/fragment/edm/linkedValuePair.xhtml">
                         <ui:param name="bean" value="#{frontPage}"/>
                         <ui:param name="listener" value="manageVideos"/>**Bean method !**
                         <ui:param name="label" value="Videos"/>
                         <ui:param name="value" value=""/>
                       </ui:include>
                       <hr class="hrb"/>  
                       <ui:include src="/WEB-INF/includes/fragment/edm/linkedValuePair.xhtml">
                         <ui:param name="bean" value="#{frontPage}"/>
                         <ui:param name="listener" value="manageGalleries"/>**Bean method !**
                         <ui:param name="label" value="Galleries"/>
                         <ui:param name="value" value=""/>
                       </ui:include>
                     </h:panelGrid>
                   </ace:panel>```
**when I click on logos its directing to managepdfs where it supposed to direct to managelogos listner** **please advise ! appreciate your help !**
Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...