title: Converter for entity in h:outputText
body: <p>We have an entity <code>MyType</code>:</p>
  
  <pre><code>MyType { String s; getS();}
  </code></pre>
  
  <p>And we have a JSF converter <code>MyTypeConverter</code> for this type:</p>
  
  <pre><code>@FacesConverter(forClass=MyType.class)
  MyTypeConverter { 
      public String getAsString() { return ((MyType)o).getS().toUpperCase();}
  }
  </code></pre>
  
  <p>And we have a backing bean <code>MyBean</code>:</p>
  
  <pre><code>MyBean { 
      getMyType() { return new MyType("hallo");}
  }
  </code></pre>
  
  <p>And we have a view <code>my.xhtml</code>:</p>
  
  <pre><code>&lt;h:outputText value="#{myBean.myType}"/&gt;
  </code></pre>
  
  <p>The above view works fine:</p>
  
  <blockquote>
    <p>HALLO</p>
  </blockquote>
  
  <p>When I edit it as follows:</p>
  
  <pre><code>&lt;h:outputText value="(#{myBean.myType})"/&gt;
  </code></pre>
  
  <p>I expected to see:</p>
  
  <pre><code>(HALLO)
  </code></pre>
  
  <p>However, the result is:</p>
  
  <pre><code>(org.playground.model.MyType@cb4a479)
  </code></pre>
  
  <p>How is this caused and how can I solve it?</p>