1 Reply Latest reply on Aug 9, 2006 2:19 PM by Pete Muir

    Bean access

    Urs Wagner Novice

      How have I to call the categoryManager bean. I should call method before the data model is loaded into the table. With the following construction

      xhtml @69,119 binding="#{categoryMangager.updateAssortmentCategories}": Target Unreachable, identifier 'categoryMangager' resolved to null

      I get the error

      <h:dataTable var="category" binding="#{categoryMangager.updateAssortmentCategories}" value="#{assortmentCategories}">
      <h:outputLink value="">
      <h:outputText value="#{category.description}" />

      The bean code part

      public class CategoryManagerBean implements Serializable, CategoryManager {


      public void updateAssortmentCategories() {

      if (assortment != oldAssortment) {
      Query query = em.createQuery("from Category c where c.assortment = :assortment");
      query.setParameter("assortment", assortment);
      assortmentCategories = query.getResultList();
      oldAssortment = assortment;