Second question I could answer. The property declaration in the 
bean is required.
The problem that the managed property is not set is still not 
solved.

----Ursprüngliche Nachricht----
Von: [EMAIL PROTECTED]
Datum: 20.01.2007 15:56
An: <users@myfaces.apache.org>
Betreff: managed property is not set

Hello

1)  Do I this correct? 
The problem is the managed property is not set. 
I know the parameter catId is set because getExternalContext().
getRequest() returns the value.

2) I would like to a have property type long, can I simple 
declare 
it as long?

Thanks
 
faces-config.xml  entry


        <managed-bean>
        <managed-bean-name>category</managed-bean-name>
        <managed-bean-class>org.troedel.bean.CategoryBean</managed-
bean-class>
        <managed-bean-scope>request</managed-bean-scope>
                <managed-property>
                        <property-name>catId</property-name>
                        <value>#{param.catId}</value>
                </managed-property>
        </managed-bean>

The property declaration in the bean class

public class org.troedel.bean.CategoryBean {

        private String catId;

        public String getCatId() {
                
                return catId;
        }
        
        public void setCatId(String catId) {
                
                this.catId = catId;
        }

}




Reply via email to