2 Replies Latest reply on Jan 22, 2010 9:03 AM by Frantz Degrigny

    EL expressions not evaluated in id attribute ?

    Frantz Degrigny Newbie

      I have a JSF page with the following code :

       

      <rich:dataTable value="#{pageCtrl.colsToDisplay}" var="col" >                                   
             <rich:column id="lab_#{col.propName}" >
                   <h:outputLabel id="label_#{col.propName}" value="#{col.label} :" for="#{col.propName}_input" />
              </rich:column>
               <rich:column id="col_#{col.propName}">
                        <h:inputText id="#{col.propName}_input" value="#{pageCtrl.selectedBean[col.propName]}" />
               </rich:column>                      
      </rich:dataTable>

       

      But the #{col.propName} expression seems not to be evaluated in the IDs attributes. So I obtain the following error message in console :

      "22 janv. 2010 08:47:39 com.sun.faces.renderkit.html_basic.HtmlBasicRenderer getForComponent
      ATTENTION: Unable to find component with ID EAN_input in view."

       

      But, if the expression is put directly in the page it is evaluated.

       

      Is it a bug or I miss something important ?