title: org.apache.el.parser.ParseException: Encountered " <ILLEGAL_CHARACTER> JSF+Richfaces Error
body: <p>below shows my code in JSF+Spring project.please help me to sort out this issue</p>
  
  <p>thanks </p>
  
  <p>here is my jsf code in xhtml file</p>
  
  <p>i tried with @form / @this also. but same result</p>
  
  <p>error is my inputtext not submitted to controller</p>
  
  <pre><code>&lt;a4j:region id="panel-region"&gt;
      &lt;f:facet name="header"&gt;
          &lt;h:outputText value="SAM Selector"/&gt;
      &lt;/f:facet&gt;
      &lt;rich:panel style="clear:both;" header="Search SAM" styleClass="col" id="panelSamSearch"&gt;
  
          &lt;ui:decorate template="/jsf/templates/two_columns.xhtml"&gt;
              &lt;ui:define name="left_label"&gt;*Search By&lt;/ui:define&gt;
              &lt;ui:define name="left_field"&gt;
                  &lt;h:selectOneMenu value="#{pOSController.samType}" id="samType"&gt;
                      &lt;f:selectItem itemValue="a" itemLabel=""/&gt;
                      &lt;f:selectItem itemValue="samUid" itemLabel="SAM UID"/&gt;
                      &lt;f:selectItem itemValue="samDid" itemLabel="SAM DID"/&gt;
                      &lt;f:selectItem itemValue="status" itemLabel="Status"/&gt;
                  &lt;/h:selectOneMenu&gt;
              &lt;/ui:define&gt;
  
              &lt;ui:define name="right_label"&gt;
                  &lt;h:inputText value="#{pOSController.samValue}" id="samValue"/&gt;
              &lt;/ui:define&gt;
              &lt;ui:define name="right_field"&gt;
                  &lt;a4j:commandButton id="samBtnSearch" value="Search" execute="lp"
                                     action="#{pOSController.loadSamPosTagging(rich:element('samType').value,rich:element('samValue').value)}"
                                     render="#{rich:clientId('dataTableSamView')}"/&gt;
              &lt;/ui:define&gt;
          &lt;/ui:decorate&gt;
  
      &lt;/rich:panel&gt;
  </code></pre>
  
  <p>here shows my error</p>
  
  <pre><code>May 05, 2014 1:13:41 PM org.apache.catalina.core.StandardWrapperValve invoke
  SEVERE: Servlet.service() for servlet [Faces Servlet] in context with path [/cms-web] threw exception [/jsf/popups/samPosTagginPopup.xhtml @29,230 action="#{pOSController.loadSamPosTagging({rich:element('samType')}.value,{rich:element('samValue')}.value)}" Failed to parse the expression [#{pOSController.loadSamPosTagging({rich:element('samType')}.value,{rich:element('samValue')}.value)}]] with root cause
  org.apache.el.parser.ParseException: Encountered " &lt;ILLEGAL_CHARACTER&gt; "{ "" at line 1, column 35.
  Was expecting one of:
      &lt;INTEGER_LITERAL&gt; ...
      &lt;FLOATING_POINT_LITERAL&gt; ...
      &lt;STRING_LITERAL&gt; ...
      "true" ...
      "false" ...
      "null" ...
      "(" ...
      ")" ...
      "!" ...
      "not" ...
      "empty" ...
      "-" ...
      &lt;IDENTIFIER&gt; ...
  
      at org.apache.el.parser.ELParser.generateParseException(ELParser.java:2217)
      at org.apache.el.parser.ELParser.jj_consume_token(ELParser.java:2099)
      at org.apache.el.parser.ELParser.MethodParameters(ELParser.java:1153)
      at org.apache.el.parser.ELParser.ValueSuffix(ELParser.java:1047)
      at org.apache.el.parser.ELParser.Value(ELParser.java:980)
  </code></pre>
  
  <p><strong>EDITED</strong></p>
  
  <p>i added </p>
  
  <pre><code>&lt;a4j:commandButton id="samBtnSearch" value="Search" execute="lp" action="#{pOSController.loadSamPosTagging(rich:component('samType'),rich:component('samValue'))}" render="#{rich:clientId('dataTableSamView')}"  /&gt;
  </code></pre>
  
  <p>then string come as like below.its not pass value of field.just name which i passes returns :-)
  <code>document.getElementById('frmMasPosTagging:dataTablePosView:0:samType')</code></p>