2 Replies Latest reply: Nov 5, 2007 11:05 PM by 800448 RSS

    Reading integers from resource bundles in JSF

    800448
      Hi,

      I'm using the
      <dataTable>
      tag of Tomahawk. I do not want to hard code the number of rows in the JSPs nor put them in a bean as the java source will not be given to the user.

      I tried putting the value in a properties file and load it. I also tried putting it as a
      <context-param>
      . In both the cases the value is read as a
      String
      while the row attribute expects an
      int
      . This causes a
      ClassCastException
      .

      How do I solve this problem? How can I specify the number of rows to be displayed in a configuration file and use it in all the JSPs?