1 Reply Latest reply on Sep 28, 2007 6:28 AM by Pete Muir

    Facelets Tags attribute conversion problem

    David Joseph Newbie

      I'm using Faceletes Tag Source Files

      this is defined in my taglib file:

      <tag>
       <tag-name>score</tag-name>
       <source>tags/score.xhtml</source>
       </tag>


      in my score.xhtml file i have the following for loop:
      <c:forEach begin="1" end="#{scale}">
       <td class="g"></td>
       </c:forEach>


      and I use this tag in a seam page as follows:
      <xyz:score scale="20"/>


      now I get the following error:


      Cannot convert 20 of type class java.lang.String to class java.lang.Number


      Is there a way to pass the scale parameter as an integer or to convert it automatically (that is without writing a complete taghandler.) ??