[jboss-user] [JBoss Portal] - JSF using it's tag lib does work for map throws an error on

rkandola do-not-reply at jboss.com
Fri Feb 9 11:40:55 EST 2007


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


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4013750#4013750

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4013750

More information about the jboss-user mailing list