Examples of BoundCompoundPropertyModel


Examples of org.apache.wicket.model.BoundCompoundPropertyModel

   * @param index
   * @return a BoundCompoundPropertyModel wrapping a ListItemModel
   */
  protected IModel getListItemModel(final IModel model, final int index)
  {
    return new BoundCompoundPropertyModel(super.getListItemModel(model, index));
  }
View Full Code Here

Examples of org.apache.wicket.model.BoundCompoundPropertyModel

   * @param index
   * @return a BoundCompoundPropertyModel wrapping a ListItemModel
   */
  protected IModel getListItemModel(final IModel model, final int index)
  {
    return new BoundCompoundPropertyModel(super.getListItemModel(model, index));
  }
View Full Code Here

Examples of org.apache.wicket.model.BoundCompoundPropertyModel

            FeedbackPanel feedback = new FeedbackPanel("feedback");
            filter = new JtracFeedbackMessageFilter();
            feedback.setFilter(filter);
            add(feedback);            
           
            final BoundCompoundPropertyModel model = new BoundCompoundPropertyModel(this);
            setModel(model);                      
           
            // delete button only if edit ======================================
            Button delete = new Button("delete") {
                @Override
View Full Code Here

Examples of org.apache.wicket.model.BoundCompoundPropertyModel

            this.password = password;
        }       
       
        public SvnForm(String id) {
            super(id);           
            final BoundCompoundPropertyModel model = new BoundCompoundPropertyModel(this);
            setModel(model);
            add(new TextField("url").setRequired(true));
            add(new TextField("loginName"));
            add(new PasswordTextField("password").setRequired(false));
        }
View Full Code Here

Examples of org.apache.wicket.model.BoundCompoundPropertyModel

        private int type;
        private String comment;               
       
        public RelateForm(String id) {
            super(id);           
            setModel(new BoundCompoundPropertyModel(this));
            final Map<Integer, String> options = new HashMap<Integer, String>(3);
            options.put(DUPLICATE_OF, localize("item_view_form.duplicateOf"));
            options.put(DEPENDS_ON, localize("item_view_form.dependsOn"));
            options.put(RELATED, localize("item_view_form.relatedTo"));
            DropDownChoice choice = new DropDownChoice("type", new ArrayList(options.keySet()), new IChoiceRenderer() {
View Full Code Here

Examples of org.apache.wicket.model.BoundCompoundPropertyModel

        }       
       
        public UserAllocateForm(String id) {
           
            super(id);                                                        
            final BoundCompoundPropertyModel model = new BoundCompoundPropertyModel(this);
            setModel(model);
           
            add(new FeedbackPanel("feedback"));
           
            user = getJtrac().loadUser(userId);
View Full Code Here

Examples of org.apache.wicket.model.BoundCompoundPropertyModel

           
            if (item.getId() > 0) {
                editMode = true;
            }
           
            BoundCompoundPropertyModel model = null;
            if (editMode) {
                /*
                 * This ensures that the model object is re-loaded as part
                 * of the form submission workflow before form binding and
                 * avoids hibernate lazy loading issues during the whole
                 * update transaction.
                 */
                LoadableDetachableModel itemModel = new LoadableDetachableModel() {
                    protected Object load() {
                        logger.debug("attaching existing item " + item.getId());
                        return getJtrac().loadItem(item.getId());
                    }
                };
                model = new BoundCompoundPropertyModel(itemModel);
            } else {
                model = new BoundCompoundPropertyModel(item);
            }
            setModel(model);
           
            /*
             * ===================================================
 
View Full Code Here

Examples of org.apache.wicket.model.BoundCompoundPropertyModel

            super(id);
            setMultiPart(true);
            this.itemId = item.getId();
            final History history = new History();
            history.setItemUsers(item.getItemUsers());
            final BoundCompoundPropertyModel model = new BoundCompoundPropertyModel(history);
            setModel(model);
            add(new TextArea("comment").setRequired(true).add(new ErrorHighlighter()));
            // custom fields ===================================================
            User user = getPrincipal();
            add(new CustomFieldsFormPanel("fields", model, item, user));
View Full Code Here

Examples of org.apache.wicket.model.BoundCompoundPropertyModel

               
        private String comment;               
       
        public ConfirmForm(String id) {
            super(id);           
            setModel(new BoundCompoundPropertyModel(this));
            TextArea commentArea = new TextArea("comment");
            commentArea.setRequired(true);
            commentArea.add(new ErrorHighlighter());
            add(commentArea);
        }
View Full Code Here

Examples of org.apache.wicket.model.BoundCompoundPropertyModel

            if(selectedUserId > 0) {
                // pre-select newly created user for convenience
                user = getJtrac().loadUser(selectedUserId);
            }
           
            final BoundCompoundPropertyModel model = new BoundCompoundPropertyModel(this);
            setModel(model);
           
            space = getJtrac().loadSpace(spaceId);
           
            add(new Label("label", space.getName() + " (" + space.getPrefixCode() + ")"));
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.