3 Replies Latest reply on Feb 12, 2007 11:02 AM by Stan Silvert

    JSF using it's tag lib does work for map throws an error on

    Ranbir Kandola Newbie


      I am trying to use JSF tag lib to access a Map. Below is the code JSF code :

      <f:view >
      <h:panelGrid columns="1">
      <h:inputText value="#{settings.map['foo']}" />
      <h:outputText rendered="#{settings.map['foo'] != null}" value="foo is #{settings.map['foo']}" />
      <h:panelGrid columns="2">
      <h:commandButton action="" value="Go" />
      <h:commandButton action="#{settings.reset}" value="Reset" />
      <h:messages showDetail="true" style="color:red"/>

      setting is session scoped var :


      The backing bean code :

      public class MyMap {
      private Map map;
      /** Creates a new instance of MyMap */
      public MyMap() {

      public Map getMap() {
      return map;

      public void setMap(Map map) {
      this.map = map;

      public void reset()
      map = new HashMap();


      This works in Tomcat5.5 using JSF, but for some reason this getting error in the Portal 2.6. Could some please tell why this is the case ?

      Thank you