3 Replies Latest reply on May 30, 2006 8:18 PM by ssquare

    Help needed !  Adding SelectItems Tag in the home.jsp page

    ssquare

      Hi,

      In jbpm demo environment, I am trying to add two checkboxes for languages using SelectManyCheckBox in the home.jsp file and its associated details in the homeBean.java.

      private String[] lang =null;

      public String[] getLang(){
      return lang;
      }

      public void setLang(String[] s) {
      lang=s;
      }

      public SelectItem[] getLangItems() {
      return langItems;
      }


      private static SelectItem[] langItems = new SelectItem[]{
      new SelectItem("ENGLISH"),
      new SelectItem("GERMANY"),
      };


      JSP side:

      <h:selectManyCheckbox value="#{homeBean.lang}">
      <f:selectItems value= "#{homeBean.langItems}"/>
      </h:selectManyCheckbox>


      When I access localhost:8080/jbpm/faces.home.jsp I get the folowing exception: I modified the deployed home.jsp file as I could not make the changes made in resources/home.jsp into the deployed home.jsp. Could anyone tell me what I am missing here?


      javax.servlet.ServletException: Bean: org.jbpm.webapp.bean.HomeBean, property: lang
      javax.faces.webapp.FacesServlet.service(FacesServlet.java:109)
      org.jbpm.webapp.filter.AuthenticationFilter.doFilter(AuthenticationFilter.java:25)
      org.jbpm.webapp.filter.PersistenceFilter.doFilter(PersistenceFilter.java:28)
      org.jbpm.webapp.filter.ContextFilter.doFilter(ContextFilter.java:19)
      org.jbpm.webapp.filter.LogFilter.doFilter(LogFilter.java:38)
      org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)


      Thanks for your help

      -Siv