1 Reply Latest reply on Apr 30, 2010 7:24 AM by Ilya Shaikovsky

    aj4:include via code

    Sascha Janz Master

      Hi,     

      my pages are dynamically created by java code

       

      now i want to implement a4j:include.

       

      my function for that is

       

      <code>

       

      public Include createA4JInclude(HashMap<String, String> map) {

      Include include =

      new Include();

      String id =

      null;

       

      if (map.get("ID") == null || map.get("ID").length() == 0)

      id = getID(

      "INCLUDE");

       

      else {

       

      log.debug("set id " + map.get("ID"));

      id = map.get(

      "ID");

      }

      include.setId(id);

      include.setViewId(map.get(

      "Value"));

       

       

      log.debug("createA4JInclude value=" + map.get("Value"));

       

       

      return include;

      }

       

      </code>

       

       

      but whatever i include nothing happens

       

      a test via xhtml works fine.

       

       

      any idea what might be wrong?