title: JSF 2.0 driven portlet in Websphere - how to implement commandLinks
body: <p>I know how to create JSF 2.0 servlets and I know how to create portlets, but I have problems combining both technologies. My JSF portlet works well until I have to call methods of my backing beans via <code>&lt;h:commandLink /&gt;</code>. When I click those links the current page is reloaded and no method is invoked. I think my application needs some extra configuration. What needs to be done in order to get a command link like this to work:</p>
  
  <pre><code>&lt;h:commandLink action="#{backingBean.doSomething}" /&gt;
  </code></pre>
  
  <p>Note that I'm using a WebSphere 8 portal server which provides a JSF 2.0 portlet bridge.</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>I see a basic conflict here:</p>
  
  <ul>
  <li>portlet API is responsible for generating URLs - generates valid portal-URLs</li>
  <li>JSF is responsible for generating URLs - generates valid JSF-URLs</li>
  </ul>
  
  <p>My managed beans are configured using annotations:</p>
  
  <pre><code>@ManagedBean(name = "backingBean")
  @ViewScoped
  public class entryEditController
  {
       public String doSomething()
       {
           return "result.xhtml";
       }
  }
  </code></pre>
  
  <p>This is my faces-config.xml</p>
  
  <pre><code>  &lt;?xml version="1.0" encoding="UTF-8"?&gt;
    &lt;faces-config
            xmlns="http://java.sun.com/xml/ns/javaee"
            xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
            xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_2_0.xsd"
            version="2.0"&gt;
        &lt;application&gt;
            &lt;view-handler&gt;com.ibm.faces20.portlet.FaceletPortletViewHandler&lt;/view-handler&gt;
            &lt;el-resolver&gt;com.ibm.faces20.portlet.PortletELResolver&lt;/el-resolver&gt;
            &lt;resource-handler&gt;com.ibm.faces20.portlet.httpbridge.PortletResourceHandler&lt;/resource-handler&gt;
        &lt;/application&gt;
    &lt;/faces-config&gt;
  </code></pre>