Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I have got answer.</p> <p>If you want use GET, use this:</p> <pre><code>&lt;h:link value="take me to the page2" outcome="page2" /&gt; </code></pre> <p>Or by POST use:</p> <pre><code>&lt;h:form&gt; &lt;h:commandLink action="#{menager.navigateToPage2}" value="take me to the page2" /&gt; &lt;/h:form&gt; </code></pre> <p>and in faces-config.xml</p> <pre><code>&lt;managed-bean&gt; &lt;managed-bean-name&gt;menadzer&lt;/managed-bean-name&gt; &lt;managed-bean-class&gt;test.Menadzer&lt;/managed-bean-class&gt; &lt;managed-bean-scope&gt;request&lt;/managed-bean-scope&gt; &lt;managed-property&gt; &lt;property-name&gt;symbolAktywnejSpolki&lt;/property-name&gt; &lt;value&gt;#{param.symbol}&lt;/value&gt; &lt;/managed-property&gt; &lt;/managed-bean&gt; &lt;navigation-rule&gt; &lt;display-name&gt;index.xhtml&lt;/display-name&gt; &lt;from-view-id&gt;index.xhtml&lt;/from-view-id&gt; &lt;navigation-case&gt; &lt;from-action&gt;#{menager.navigateToPage2}&lt;/from-action&gt; &lt;from-outcome&gt;page2&lt;/from-outcome&gt; &lt;to-view-id&gt;page2.xhtml&lt;/to-view-id&gt; &lt;/navigation-case&gt; &lt;/navigation-rule&gt; </code></pre> <p>and the class:</p> <pre><code>public class Menager { ... public String navigateToPage2() { return "page2"; } } </code></pre> <p>and if you use WebSphere Portal add this, to the faces-config.xml:</p> <pre><code>&lt;application&gt; &lt;view-handler&gt;com.ibm.faces20.portlet.FaceletPortletViewHandler&lt;/view-handler&gt; &lt;resource-handler&gt;com.ibm.faces20.portlet.httpbridge.PortletResourceHandler&lt;/resource-handler&gt; &lt;el-resolver&gt;com.ibm.faces20.portlet.PortletELResolver&lt;/el-resolver&gt; &lt;/application&gt; </code></pre>
    singulars
    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