According to posts in the past by Craig M., what you've done in #1 is correct.
The problem lies somewhere outside of your managed bean declaration.

On 1/20/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
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