2 Replies Latest reply: Mar 20, 2013 7:10 AM by 988759 RSS

    making reusable toolbar in the template page

    988759
      Hi all ,
      I knew the method of making resuable toolbar using Declarative components ,
      my question is how can i make reusable toolbar in the adf template page and not using declarative components ?

      my Jdeveloper version 11.1.2.3

      thanks
        • 1. Re: making reusable toolbar in the template page
          Frank Nimphius-Oracle
          Hi,

          try this: http://www.oracle.com/technetwork/developer-tools/adf/learnmore/79-global-template-button-strategy-360139.pdf

          Frank
          • 2. Re: making reusable toolbar in the template page
            988759
            thanks Frank ,
            in the consumed application i made implementation for the interface
            for example to make CreateInsert
            i override the Create Method but it gives me Null pointer exception

            the code

            *@Override*
            *public String create(ActionEvent actionEvent) {*
            try
            *{*
            BindingContainer bindings = getBindings();
            OperationBinding operationBinding = bindings.getOperationBinding("CreateInsert");
            Object result = operationBinding.execute();
            *if (!operationBinding.getErrors().isEmpty()) {*
            return null;
            *}*
            *}*
            *catch(Exception ex) {*
            System.out.println("Excp"+ex.getMessage() );
            *}*
            return null;
            }

            is any missing step in my code ?

            Edited by: 985756 on Mar 20, 2013 5:01 AM

            Edited by: 985756 on Mar 20, 2013 5:10 AM