Note that there are some explanatory texts on larger screens.

plurals
  1. POJSF: Actions calls are delayed
    text
    copied!<p>What could possible reasons be that my action calls are delayed? It happens for all action calls on one form I have. After I click on a anything that will call an action (or when the value of a dataTable should be evaluated on form load), it takes roughly 10 seconds for the action to be called. (I checked it by setting a breakpoint and then click on the button.)</p> <p>Any ideas why?</p> <p>This is the part that seems to cause the trouble:</p> <pre><code>&lt;h:panelGroup id="someGroup"&gt; &lt;h:dataTable value="#{someHandler.keys}" binding="#{someHandler.dataTable}" var="key"&gt; &lt;h:column&gt; &lt;f:facet name="header"&gt; &lt;h:outputText value="Key" /&gt; &lt;/f:facet&gt; &lt;h:outputText value="#{key}" /&gt; &lt;/h:column&gt; &lt;h:column&gt; &lt;f:facet name="header"&gt; &lt;h:outputText value="Value" /&gt; &lt;/f:facet&gt; &lt;h:commandLink value="[No value]" rendered="#{empty someHandler.getValue(key)}"&gt; &lt;f:ajax listener="#{someHandler.loadProperty}" render="someForm:key someForm:value" /&gt; &lt;/h:commandLink&gt; &lt;h:commandLink value="#{someHandler.getValue(key)}" rendered="#{not empty someHandler.getValue(key)}"&gt; &lt;f:ajax listener="#{someHandler.loadProperty}" render="someForm:key someForm:value" /&gt; &lt;/h:commandLink&gt; &lt;/h:column&gt; &lt;/h:dataTable&gt; &lt;/h:panelGroup&gt; </code></pre> <p>During debugging I noticed that it always calls someHandler.keys first when I click a commandLink. Is there any explaination for that? I don't want the dataTable rerendered if I click on one of these commandLinks. None of the methods called is particularly "slow".</p>
 

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