Package oracle.binding

Examples of oracle.binding.BindingContainer


    private void setFieldDomain(EntityCriterion criterion, Builder.FieldDef fieldDef) {
        System.out.println("setFieldDomain("+fieldDef.name+","+fieldDef.domain+","+")");
        EntityAttributeDescriptor attr = (EntityAttributeDescriptor)criterion.getAttribute();
     
     
        BindingContainer bindings = BindingContext.getCurrent().getCurrentBindingsEntry();     
        FacesCtrlHierBinding treeData = (FacesCtrlHierBinding)bindings.getControlBinding(fieldDef.domain);
        if ( treeData == null) {
          throw new IllegalArgumentException("ADF tree binding is null: "+fieldDef.domain);
        }
     
        List<SelectItem> list = new ArrayList<SelectItem>();
View Full Code Here


    public void searchAction(ActionEvent p0) {
        //TODO Auto-generated method stub
        logger.fine("searchAction");
        // get the binding container
        BindingContainer bindings =
            BindingContext.getCurrent().getCurrentBindingsEntry();
        OperationBinding method = bindings.getOperationBinding("searchITunes");
        method.execute();
        for (Object o : method.getErrors()) {
            JboException ex = (JboException)o;
            String msgText = ex.getMessage();
            String methodName = method.getName();
            logger.severe(ex.getMessage());
            FacesMessage msg =
                new FacesMessage(FacesMessage.SEVERITY_WARN, methodName,
                                 msgText);
            FacesContext.getCurrentInstance().addMessage(null, msg);
        }

        AttributeBinding attr = (AttributeBinding)bindings.getControlBinding("resultCount")
        logger.fine("Total result: "+attr.getInputValue().toString())
    }
View Full Code Here

    protected ViewObject getViewObject() {
        if (controlBinding == null || controlBinding.isEmpty()) {
            throw new IllegalStateException("LovBean needs the Managed Property ControlBinding");
        }
        final BindingContainer bindings = BindingContext.getCurrent().getCurrentBindingsEntry();
        final DCControlBinding binding = (DCControlBinding) bindings.getControlBinding(controlBinding);
        if (binding == null) {
            throw new IllegalStateException("binding \"" + controlBinding + "\" not found");
        }
        return binding.getViewObject();
    }
View Full Code Here

TOP

Related Classes of oracle.binding.BindingContainer

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.