Examples of bind()


Examples of play.db.jpa.GenericModel.JPAQuery.bind()

           
            JPAQuery jpaQuery = Member.find(query.toString())
                    .bind("member", member)
                    .bind("interests", member.interests);
            if (!member.links.isEmpty()) {
                    jpaQuery.bind("links", member.links);
            }
            List<Object[]> result = jpaQuery.fetch(limit);
            suggestions = Lists.transform(result, MEMBER_SUGGESTIONS_FUNCTION);
        }
        return suggestions;
View Full Code Here

Examples of pt.ist.fenixWebFramework.renderers.components.HtmlCheckBox.bind()

            HtmlTableRow row2 = htmlTable.createRow();
            HtmlTableCell photoCell = row2.createCell();
            photoCell.setColspan(headerRow.getCells().size());
            HtmlCheckBox checkBox =
                    new HtmlCheckBox(BundleUtil.getString(Bundle.APPLICATION, "label.viewPhoto"), bean.getViewPhoto());
            checkBox.bind(getInputContext().getMetaObject(), "viewPhoto");
            photoCell.setBody(checkBox);

            HtmlTableRow row3 = htmlTable.createRow();
            HtmlTableCell submitCell = row3.createCell();
            submitCell.setColspan(headerRow.getCells().size());
View Full Code Here

Examples of pt.ist.fenixWebFramework.renderers.components.HtmlCheckBoxList.bind()

                                        workingStudentSelectionType.getQualifiedName())), workingStudentSelectionType.name());
                option.setChecked(bean.getWorkingStudentTypes().contains(workingStudentSelectionType));
            }
            row.createCell().setBody(workingStudentCheckBoxList);

            workingStudentCheckBoxList.bind(getInputContext().getMetaObject(), "workingStudentTypes");
            workingStudentCheckBoxList.setConverter(new EnumArrayConverter(WorkingStudentSelectionType.class));
            workingStudentCheckBoxList.setSelectAllShown(true);

        }
View Full Code Here

Examples of pt.ist.fenixWebFramework.renderers.components.HtmlHiddenField.bind()

        HtmlHiddenField selected = new HtmlHiddenField();

        page.setValue(getCurrentPage());

        page.bind(bean, "page");
        selected.bind(bean, "selected");
        selected.setConverter(new DomainObjectKeyConverter());

        HtmlContainer container = new HtmlBlockContainer();
        container.addChild(page);
        container.addChild(selected);
View Full Code Here

Examples of pt.ist.fenixWebFramework.renderers.components.HtmlMultipleHiddenField.bind()

        }

        final HtmlBlockContainer container = new HtmlBlockContainer();

        HtmlMultipleHiddenField hiddenEnrollments = new HtmlMultipleHiddenField();
        hiddenEnrollments.bind(getRenderer().getInputContext().getMetaObject(), "curriculumModulesToRemove");
        hiddenEnrollments.setConverter(new DomainObjectKeyArrayConverter());
        hiddenEnrollments.setController(getEnrollmentsController());

        HtmlMultipleHiddenField hiddenDegreeModulesToEvaluate = new HtmlMultipleHiddenField();
        hiddenDegreeModulesToEvaluate.bind(getRenderer().getInputContext().getMetaObject(), "degreeModulesToEvaluate");
View Full Code Here

Examples of pt.ist.fenixWebFramework.renderers.components.HtmlTextInput.bind()

                HtmlTextInput input = new HtmlTextInput();
                if (getSize() != null) {
                    input.setSize(getSize());
                }
                input.setValue(tags);
                input.bind(slot);
                input.setId(input.getName());

                TagCloudRenderer tagCloud = new TagCloudRenderer();
                tagCloud.setClasses(getTagClasses());
                tagCloud.setSortBy(getTagSort());
View Full Code Here

Examples of tyrex.naming.MemoryContext.bind()

            // get channel-ids context
            final Context channel_idsContext = (Context) jndiTemplate.lookup("users/" + userId + "/layouts/" + layoutId + "/channel-ids", Context.class);
            // get channel-obj context
            final Context channel_objContext = (Context) jndiTemplate.lookup("users/" + userId + "/sessions/" + sessionId + "/channel-obj", Context.class);
   
            cic.bind("services", servicesContext);
            cic.bind("channel-ids", channel_idsContext);
            cic.bind("channel-obj", channel_objContext);
            cic.bind("portlet-ids", new ArrayList<Object>());
   
            return cic;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.