title: Use String.contains in an Apex page
body: <pre><code>&lt;apex:outputField rendered="{!(WidgetType.contains('mywidget1'))}" /&gt;
  </code></pre>
  
  <p>When I do this I get an error...</p>
  
  <blockquote>
    <p>Error: Unknown function WidgetType.contains. Check spelling   </p>
  </blockquote>
  
  <p>... even though the WidgetType returns a String!</p>
  
  <p>It will let me do this though...</p>
  
  <blockquote>
    <p>rendered="{!(WidgetType == 'mywidget1')}"</p>
  </blockquote>
  
  <p>Here is the property in the controller...</p>
  
  <pre><code>public String getWidgetType() {
      return Settings.getWidgetType();
  }
  </code></pre>