title: JSF - custom component, problem with expression for attribute
body: <p>I want to create custom component with attribute "title" that can have expression but I get this error:</p>
  
  <p>Unable to convert string "#{myBean.text}" to class "javax.el.ValueExpression" for attribute "title": Property Editor not registered with the PropertyEditorManager</p>
  
  <p>Caused by:
  org.apache.jasper.JasperException - Unable to convert string "#{myBean.text}" to class "javax.el.ValueExpression" for attribute "title": Property Editor not registered with the PropertyEditorManager</p>
  
  <p>My classes:</p>
  
  <pre><code>&lt;d:ticker title="#{myBean.text}"&gt;
      &lt;f:verbatim&gt;Hello JSF Custom Component&lt;/f:verbatim&gt;
  &lt;/d:ticker&gt;
  
  MyBean.java
  
  public class MyBean {
  
      private String text = "TITLE!!!!";
  
      public String getText() {
          return text;
      }
  }
  
  TickerTag.java
  
  private ValueExpression title = null;
  public void setTitle(ValueExpression title)
  {
      this.title = title;
  }
  
  protected void setProperties(UIComponent component) {
  
          super.setProperties(component);
      if (title != null) {
          if (!title.isLiteralText()) {
              component.setValueExpression("title", title);
          } else {
      component.getAttributes().put("title",title.getExpressionString());
      }
  }
  
  taglib.tld
  
  &lt;taglib version="2.1" 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 web-jsptaglibrary_2_1.xsd"&gt;
      &lt;tlib-version&gt;1.0&lt;/tlib-version&gt;
      &lt;jsp-version&gt;1.2&lt;/jsp-version&gt;
      &lt;short-name&gt;d&lt;/short-name&gt;
      &lt;uri&gt;http://jsftutorials.com/&lt;/uri&gt;
      &lt;tag&gt;
          &lt;name&gt;ticker&lt;/name&gt;
          &lt;tag-class&gt;ticker.TickerTag&lt;/tag-class&gt;
          &lt;body-content&gt;JSP&lt;/body-content&gt;
          &lt;attribute&gt;
              &lt;name&gt;title&lt;/name&gt;
              &lt;rtexprvalue&gt;true&lt;/rtexprvalue&gt;
          &lt;/attribute&gt;
      &lt;/tag&gt;
  &lt;/taglib&gt;
  </code></pre>
  
  <p>anybody see the problem?</p>