AnsweredAssumed Answered

JSP page modifications

Question asked by soeursourire on Feb 1, 2006
Latest reply on Dec 5, 2006 by zummy

I got into troubles while adding a field "pays" and /or a listbox "userNames" in person-properties.jsp. Here is what I am doing and the error I have while opening this page. Please tell me what I am doing wrong or what I am missing?

- I create a sub-class MyNewUserWizard
- Inside I added two attributes :
-            protected String pays = null;
-            protected static List<SelectItem> userNames = null;
- I initialize this list as follow:
-             this.userNames= new ArrayList<SelectItem>(8);
-             userNames.add(new SelectItem("soso", "Sophie"));
-             userNames.add(new SelectItem("charlot","Charlot"));
- I added this listbox in my jsp page as follow:
- <tr>
        <div style="padding:4px">
        <h:selectOneListbox id="userNames" style="width:250px" size="5">
        <f:selectItems value="#{MyNewUserWizard.userNames}" />
- And I would like to use MyNewUserWizard instead of NewUserWizard
- But how can I do to modify <h:input value = #( How can I use MyNewUserWizard.setEmail() here?
- I added "pays" in ContentModel.xml and I added a manage-bean MyNewUserWizard in faces-config.xml
- But I still have the following error while opening the page:
-       javax.portlet.PortletException: org.apache.jasper.JasperException: Bean: org.alfresco.web.bean.wizard.MyNewUserWizard, property:pays

Please tell me what is wrong here?
Thanks in advance