2 Replies Latest reply on Apr 19, 2007 7:06 AM by konikoni

    Converter

    konikoni

      There is a method:

      public Object getAsObject(FacesContext facesContext, UIComponent uIComponent, String value) {

      I like to get a List that declarated as datamodel from conversation context:

      So like under just jsf:

      Object object =
      FacesContext
      .getCurrentInstance()
      .getExternalContext()
      .getRequestMap()
      .get("myBean2");

      In annotation doesn't work:
      @In Set fillList;

      The problem is that jsf conversation context doesn't now.

        • 1. Re: Converter
          pmuir

          Try Component.getInstance("myBean2");

          • 2. Re: Converter
            konikoni

            With follow code i don't need to iterate through a list i get a value directly:

            public Object getAsObject(FacesContext facesContext, UIComponent uIComponent, String value) {
            
             SetDataModel sd = (SetDataModel) Component.getInstance("fillList");
            
             Filliale fill= (Filliale) sd.getRowData();



            Why use almost examples iterating through a list?