1 Reply Latest reply on Dec 16, 2008 3:45 AM by joblini

    how to properly use el

    hcura

      Hi


      How can i get EL interpolation to work in a these two scenarios:


      First:


      <button onclick="javascript:mudar('#e.id')">detalhe</button>



      "e" is the variable in an iteration and i want to output its value to the javascript call. it allways outputs an empty value like:


      <button onclick="javascript:mudar('')">detalhe</button>



      I've tried different approaches without any success (eg: with our without '')


      Second:


      Pretty similar to the first one.


      <tr class="#{e.id}" style="display: none">



      result:


      <tr class="" style="display: none;">



      I'd appreciate some help here.


      Thanks.

        • 1. Re: how to properly use el
          joblini

          Hi,  in your first scenario, #e.id is not valid EL.  The second, #{e.id} is OK.


          Try setting a break point in the getId() method of the component to confirm that it is returning null.