title: Error in JSF f:websocket
body: <p>Since Primefaces push is deprecated, i want to change to JSF 2.3 with f:websocket.</p>
  
  <p>Therefore i added a websocket in my xhtml:</p>
  
  <pre><code>&lt;h:form&gt;
      &lt;f:websocket channel="testChannel" onmessage="socketListener" /&gt;
      &lt;h:outputScript&gt;
          function socketListener(message, channel, event) {            
              console.log(message);          
          }
      &lt;/h:outputScript&gt;
  &lt;/h:form&gt;
  </code></pre>
  
  <p>And i added a Bean to send Pushs:</p>
  
  <pre><code>@Named("PushTestBean")
  @ApplicationScoped
  public class TestPush {
  
      @Inject
      @Push(channel = "testChannel")
      private PushContext push;
  
      public void test() {
          push.send("test");
      }
  }
  </code></pre>
  
  <p>In my web.xml i have:</p>
  
  <pre><code>&lt;context-param&gt;
      &lt;param-name&gt;javax.faces.ENABLE_WEBSOCKET_ENDPOINT&lt;/param-name&gt;
      &lt;param-value&gt;true&lt;/param-value&gt;
  &lt;/context-param&gt;
  </code></pre>
  
  <p>I added the jsf 2.3 jars as described to my wildfly 11.0.0 server. Compilation and deployment works without any problems. But when i navigate to the page with the socket i get an exception:</p>
  
  <pre><code>2018-02-15 22:41:48,224 ERROR [de.digitaljukebox.web.exceptionHandler.CustomExceptionHandler] (default task-96) Error while rendering view: javax.faces.application.ViewHandler.getWebsocketURL(Ljavax/faces/context/FacesContext;Ljava/lang/String;)Ljava/lang/String;
  </code></pre>