PrimeFaces: Ui block not working

Hi i am working with js2 + primefaces here is my code for UI blocking

<table>

<h:form id="main">


<tr>

<p:growl --->
    ---
    <p:dashboard   id="board" model="#{adminD.userProfl}" disabled="true">


<p:panel id="adminActivity" header="Admin Activities">
  <table id="hor-minimalist-b" >
    <tbody>
      <tr>
        <td>
          <h:commandLink action="#{photoValidation.ooDirectory()}" name="submit" type="submit" id="convertPhotos">
            <h:outputText value="Convert All Photos in Databse "/>
            <f:ajax execute=":main:adminActivity"  render=":main:growl"/>
          </h:commandLink>
        </td>
      </tr>
    </tbody>
  </table>
</p:panel>
</p:dashboard>

<p:blockUI block=":main:board" trigger=":main:convertPhotos">
  LOADING<br />  
  <p:graphicImage value="#{facesContext.externalContext.requestContextPath}/resources/images/ajax-loader.gif"/>  
</p:blockUI>

      


here panel - panel id main is form id

also implemented managed bean with thread.sleep 5 seconds

+3


source to share


3 answers


Remove all prefixes :main:

as they are all inside the same h:form

, there is no need to add this prefixmain

Use



<p:blockUI block="board" trigger="convertPhotos">

      

0


source


Try changing h: commandLink to p: commandLink:



<p:commandLink actionListener="#{photoValidation.ooDirectory()}"  update=":main:growl"   id="convertPhotos"><h:outputText value="Convert All Photos in Databse "/></p:commandLink>

      

0


source


Can you try this code?

<p:blockUI block="board" trigger="adminActivity:convertPhotos">

      

This is only a tipp, but you can find the firebug component element or other web tool in the browser.

0


source







All Articles