update from p:commandButton doesn't work
<p>I search for someone who can help me out with this "small" problem, I searched for hours. The code below is "broken down", so the real application is huge, I can't move technology at the moment.</p>

<p>So I have primefaces 5.0.10 and MyFaces 2.0.3 and I have to deal with that.</p>

<p>Here's an XHTML:</p>

<pre><code>&lt;ui:composition xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:p="http://primefaces.org/ui"
xmlns:ui="http://java.sun.com/jsf/facelets"
template="../index.xhtml"&gt;
&lt;ui:define name="title"&gt;Keyboard Bean Test&lt;/ui:define&gt;

&lt;ui:define name="content"&gt;
    &lt;h1&gt;Keyboard Bean Test&lt;/h1&gt;

    &lt;h:form id="myform"&gt;
        &lt;p:panel header="KeyboardBean"&gt;
            &lt;p:keyboard value="#{keyboardBean.value}"&gt;&lt;/p:keyboard&gt;
        &lt;/p:panel&gt;

        &lt;h:outputText id="myOutput" value="#{keyboardBean.value}"&gt;&lt;/h:outputText&gt; &lt;br /&gt;&lt;br /&gt;

        &lt;p:commandButton value="Setzen" update="myOutput"&gt;&lt;/p:commandButton&gt;
    &lt;/h:form&gt;
&lt;/ui:define&gt;
</code></pre>

<p></p>

<p>And here's my <strong>KeyboardBean.java</strong></p>

<pre><code>package de.lippoliv.test.primefaces.beans;

import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;
import javax.faces.event.ActionEvent;
import javax.inject.Named;

@Named("keyboardBean")
@ManagedBean
@SessionScoped
public class KeyboardBean {

    private String value;

    public String getValue () {
        System.out.println("KeyboardBean::reading value: " + value);

        return value;
    }

    public void setValue (String newValue) {
        System.out.println("KeyboardBean::write value: " + newValue);

        value = newValue;
    }

}
</code></pre>

<p>What I would like to to: Update the outputText on pressing the commandButton. QUIET SO SIMPLE!</p>

<p>In the real application the use-case is different, but for start figuring out why it doesn't work in real application, I decided to break it down to this simple think and then make it (step by step) more like the real application.</p>

<p>Whatever: This doesn't work. The outputText just refresh after page-load. I tryed a lot till now, nothing worked. Just switching from MyFaces to original JSF, but that is (as I wrote) not possible for me at the moment.</p>

<p>Hopefully someone can help me out here.</p>

<p><strong>update 1</strong></p>

<p>Here's the Ouput of console:</p>

<pre><code>26.02.2016 11:58:58 org.apache.myfaces.config.annotation.Tomcat7AnnotationLifecycleProvider newInstance
INFO: Creating instance of de.rac.oliverlippert.test.primefaces.beans.MenuBean
26.02.2016 11:58:58 org.apache.myfaces.config.annotation.Tomcat7AnnotationLifecycleProvider newInstance
INFO: Creating instance of de.rac.oliverlippert.test.primefaces.beans.KeyboardBean
KeyboardBean::reading value: null
KeyboardBean::reading value: null
KeyboardBean::reading value: null
KeyboardBean::reading value: null
26.02.2016 11:59:01 org.apache.myfaces.config.annotation.Tomcat7AnnotationLifecycleProvider newInstance
INFO: Creating instance of de.rac.oliverlippert.test.primefaces.beans.KeyboardBean
26.02.2016 11:59:01 javax.faces.validator._ExternalSpecifications isUnifiedELAvailable
INFO: MyFaces Unified EL support enabled
KeyboardBean::reading value: null
KeyboardBean::write value: sdf
</code></pre>

<p>Very interessting: After pressing the commandButton once, the Beans will not be called again...</p>

<p>Also I modifyed my bean, it now starts with</p>

<pre><code>@ManagedBean
@SessionScoped
public class KeyboardBean {
    ...
}
</code></pre>

<p>AND also I modifyed my "update" to use the whole id:</p>

<pre><code>&lt;p:commandButton value="Setzen" update=":myform:myOutput"&gt;&lt;/p:commandButton&gt;
</code></pre>

<p>All that doesn't change a thing :/</p>

<p>FireFox throws one JS error on pressing the button: </p>

<pre><code>TypeError: f is null (javax.faces.resource/primefaces.js.xhtml?ln=primfaces&amp;v=5.0 row 2 col 6868)
</code></pre>

<p>Thanks for any reply</p>

<p><strong>update 2</strong>
OK breaking it down to this XHTML, it work:</p>

<pre><code>&lt;html xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:p="http://primefaces.org/ui"
xmlns:ui="http://java.sun.com/jsf/facelets"
&gt;

&lt;h:head&gt;
    &lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8" /&gt;

    &lt;title&gt;Primefaces Test&lt;/title&gt;
&lt;/h:head&gt;

&lt;h:body&gt;
    &lt;h1&gt;Keyboard Bean Test&lt;/h1&gt;

    &lt;h:form id="myform"&gt;
        &lt;h:panelGrid id="grid" cellpadding="5" columns="2" style="margin-bottom:10px"&gt;
            &lt;p:panel header="KeyboardBean"&gt;
                &lt;p:keyboard value="#{keyboardBean.value}"&gt;&lt;/p:keyboard&gt;
            &lt;/p:panel&gt;
            &lt;h:outputText id="myOutput" styleClass="update" value="#{keyboardBean.value}"&gt;&lt;/h:outputText&gt;

            &lt;h:outputText id="myOutput2" styleClass="update" value="#{keyboardBean.value}"&gt;&lt;/h:outputText&gt;
            &lt;h:outputText id="myOutput3" styleClass="update" value="#{keyboardBean.value}"&gt;&lt;/h:outputText&gt;
        &lt;/h:panelGrid&gt;

        &lt;p:commandButton value="Setzen" update="@(.update)"&gt;&lt;/p:commandButton&gt;
    &lt;/h:form&gt;
&lt;/h:body&gt;
</code></pre>

<p></p>

<p>Now I can move forward step by step. Thanks for all :)</p>