Note that there are some explanatory texts on larger screens.

plurals
  1. POf:param and f:viewparam setter not called
    text
    copied!<p>I have a xhtml page where i have an outputlink with f:param</p> <p><code>&lt;h:outputLink value="#{formService.getStartFormData(v_process.id).formKey}"&gt; Start &lt;f:param name="processDefinitionKey" value="#{v_process.key}"&gt;&lt;/f:param&gt; &lt;/h:outputLink&gt;</code></p> <p>in the target page , i have view param </p> <pre><code>f:metadata&gt; &lt;!-- bind the key of the process to be started --&gt; &lt;f:viewParam name="processDefinitionKey" value="#{processList.processDefinitionKey}"/&gt; &lt;/f:metadata&gt; </code></pre> <p>my bean is </p> <pre><code>@Named @RequestScoped public class ProcessList{ private String processDefinitionKey ; @Inject private RepositoryService repositoryService; @Produces @Named("processDefinitionList") public List&lt;ProcessDefinition&gt; getProcessDefinitionList() { return repositoryService.createProcessDefinitionQuery() .list(); } public void setProcessDefinitionKey(String processDefinitionKey1) { System.out.println("setProcessDefinitionKey "+processDefinitionKey1); this.processDefinitionKey = processDefinitionKey1; } public String getProcessDefinitionKey() { System.out.println("getProcessDefinitionKey______ "+processDefinitionKey); return processDefinitionKey; } } </code></pre> <p>processDefinitionKey is null , the setter is not called , what's wrong ? are there any configurations in web.xml or faces-config.xml to add? in the same project i work with primefaces and spring security </p> <p>this is the whole page</p> <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;ui:composition xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" template="/WEB-INF/templates/template.xhtml"&gt; &lt;ui:define name="metadata"&gt; &lt;f:metadata&gt; &lt;!-- bind the key of the process to be started --&gt; &lt;f:viewParam name="processDefinitionKey" value="#{processList.processDefinitionKey}" /&gt; &lt;/f:metadata&gt; &lt;/ui:define&gt; &lt;ui:define name="content"&gt; </code></pre> <p>Thank you for replying , please this did not work </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