当前位置: 首页>>代码示例>>Java>>正文


Java UIForm.make方法代码示例

本文整理汇总了Java中uk.org.ponder.rsf.components.UIForm.make方法的典型用法代码示例。如果您正苦于以下问题:Java UIForm.make方法的具体用法?Java UIForm.make怎么用?Java UIForm.make使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在uk.org.ponder.rsf.components.UIForm的用法示例。


在下文中一共展示了UIForm.make方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: createAnnouncementsDialog

import uk.org.ponder.rsf.components.UIForm; //导入方法依赖的package包/类
private void createAnnouncementsDialog(UIContainer tofill, SimplePage currentPage){
	UIOutput.make(tofill, "add-announcements-dialog").decorate(new UIFreeAttributeDecorator("title", messageLocator.getMessage("simplepage.announcementsLinkText")));
	UIForm form = UIForm.make(tofill, "add-announcements-form");
	makeCsrf(form, "csrf23");
	//check if site has announcements tool added?if not then display info and return
	if(simplePageBean.getCurrentTool(simplePageBean.ANNOUNCEMENTS_TOOL_ID) == null){
		UIOutput.make(tofill, "announcements-error-div");
		UIOutput.make(tofill, "announcements-error-span", messageLocator.getMessage("simplepage.no_announcements_tool"));
		UICommand.make(form, "announcements-cancel", messageLocator.getMessage("simplepage.cancel"), null);
		UICommand.make(form, "delete-announcements-item", messageLocator.getMessage("simplepage.delete"), "#{simplePageBean.deleteItem}");
		return;
	}
	UIInput.make(form, "announcementsEditId", "#{simplePageBean.itemId}");
	String[] options = {"5","10","15","20","30","50"};
	String[] labels = {"5","10","15","20","30","50"};
	UIOutput.make(form, "announcementsNumberDropdownLabel", messageLocator.getMessage("simplepage.announcements-number-dropdown-label"));
	UISelect.make(form, "announcementsNumberDropdown", options, labels, "#{simplePageBean.announcementsDropdown}","5");
	UICommand.make(form, "announcements-add-item", messageLocator.getMessage("simplepage.save_message"), "#{simplePageBean.addAnnouncements}");
	UIInput.make(form, "announcements-add-before", "#{simplePageBean.addBefore}");
	UICommand.make(form, "announcements-cancel", messageLocator.getMessage("simplepage.cancel"), null);
	UICommand.make(form, "delete-announcements-item", messageLocator.getMessage("simplepage.delete"), "#{simplePageBean.deleteItem}");
}
 
开发者ID:sakaiproject,项目名称:sakai,代码行数:23,代码来源:ShowPageProducer.java

示例2: createSubpageDialog

import uk.org.ponder.rsf.components.UIForm; //导入方法依赖的package包/类
private void createSubpageDialog(UIContainer tofill, SimplePage currentPage) {
	UIOutput.make(tofill, "subpage-dialog").decorate(new UIFreeAttributeDecorator("title", messageLocator.getMessage("simplepage.subpage")));
	UIForm form = UIForm.make(tofill, "subpage-form");
	makeCsrf(form, "csrf7");

	UIOutput.make(form, "subpage-label", messageLocator.getMessage("simplepage.pageTitle_label"));
	UIInput.make(form, "subpage-title", "#{simplePageBean.subpageTitle}");

	GeneralViewParameters view = new GeneralViewParameters(PagePickerProducer.VIEW_ID);
	view.setSendingPage(currentPage.getPageId());

	if(!simplePageBean.isStudentPage(currentPage)) {
		UIInternalLink.make(form, "subpage-choose", messageLocator.getMessage("simplepage.choose_existing_page"), view);
	}
	
	UIBoundBoolean.make(form, "subpage-next", "#{simplePageBean.subpageNext}", false);
	UIBoundBoolean.make(form, "subpage-button", "#{simplePageBean.subpageButton}", false);

	UIInput.make(form, "subpage-add-before", "#{simplePageBean.addBefore}");
	UICommand.make(form, "create-subpage", messageLocator.getMessage("simplepage.create"), "#{simplePageBean.createSubpage}");
	UICommand.make(form, "cancel-subpage", messageLocator.getMessage("simplepage.cancel"), null);

}
 
开发者ID:sakaiproject,项目名称:sakai,代码行数:24,代码来源:ShowPageProducer.java

示例3: createExportCcDialog

import uk.org.ponder.rsf.components.UIForm; //导入方法依赖的package包/类
private void createExportCcDialog(UIContainer tofill) {
	UIOutput.make(tofill, "export-cc-dialog").decorate(new UIFreeAttributeDecorator("title", messageLocator.getMessage("simplepage.export-cc-title")));

	UIForm form = UIForm.make(tofill, "export-cc-form");

	UIOutput.make(form, "export-cc-v11"); // value is handled by JS, so RSF doesn't need to treat it as input
	UIOutput.make(form, "export-cc-v13"); // value is handled by JS, so RSF doesn't need to treat it as input
	UIOutput.make(form, "export-cc-bank"); // value is handled by JS, so RSF doesn't need to treat it as input
	UICommand.make(form, "export-cc-submit", messageLocator.getMessage("simplepage.exportcc-download"), "#{simplePageBean.importCc}");
	UICommand.make(form, "export-cc-cancel", messageLocator.getMessage("simplepage.cancel"), null);

	// the actual submission is with a GET. The submit button clicks this link.
	ExportCCViewParameters view = new ExportCCViewParameters("exportCc");
	view.setExportcc(true);
	view.setVersion("1.2");
	view.setBank("1");
	UIInternalLink.make(form, "export-cc-link", "export cc link", view);

}
 
开发者ID:sakaiproject,项目名称:sakai,代码行数:20,代码来源:ShowPageProducer.java

示例4: fillComponents

import uk.org.ponder.rsf.components.UIForm; //导入方法依赖的package包/类
public void fillComponents(UIContainer tofill, ViewParameters viewparams,
		ComponentChecker arg2) {
	log.debug("fillComponents()");
	
	VoteCollectionViewParameters params = (VoteCollectionViewParameters) viewparams;
	
	
	String voteId; 
	if (params.id != null)
		voteId = params.id;
	else 
		voteId="VoteId is missing!";

	String locale = localeGetter.get().toString();
       Map<String, String> langMap = new HashMap<String, String>();
       langMap.put("lang", locale);
       langMap.put("xml:lang", locale);

	UIOutput.make(tofill, "polls-html", null).decorate(new UIFreeAttributeDecorator(langMap));
	
	UIOutput.make(tofill,"confirm-msg",messageLocator.getMessage("thanks_msg"));
	UIOutput.make(tofill,"confirm-ref-msg",messageLocator.getMessage("thanks_ref"));
	UIOutput.make(tofill,"ref-number",voteId);
	UIForm form = UIForm.make(tofill,"back", new SimpleViewParameters(PollToolProducer.VIEW_ID));
	UICommand.make(form,"cancel",messageLocator.getMessage("thanks_done"),"#{pollToolBean.cancel}");
}
 
开发者ID:sakaiproject,项目名称:sakai,代码行数:27,代码来源:ConfirmProducer.java

示例5: createYoutubeDialog

import uk.org.ponder.rsf.components.UIForm; //导入方法依赖的package包/类
private void createYoutubeDialog(UIContainer tofill, SimplePage currentPage) {
	UIOutput.make(tofill, "youtube-dialog").decorate(new UIFreeAttributeDecorator("title", messageLocator.getMessage("simplepage.edit_youtubelink")));

	UIForm form = UIForm.make(tofill, "youtube-form");
	makeCsrf(form, "csrf17");
	UIInput.make(form, "youtubeURL", "#{simplePageBean.youtubeURL}");
	UIInput.make(form, "youtubeEditId", "#{simplePageBean.youtubeId}");
	UIInput.make(form, "youtubeHeight", "#{simplePageBean.height}");
	UIInput.make(form, "youtubeWidth", "#{simplePageBean.width}");
	UIOutput.make(form, "description4-label", messageLocator.getMessage("simplepage.description_label"));
	UIInput.make(form, "description4", "#{simplePageBean.description}");
	UICommand.make(form, "delete-youtube-item", messageLocator.getMessage("simplepage.delete"), "#{simplePageBean.deleteYoutubeItem}");
	UICommand.make(form, "update-youtube", messageLocator.getMessage("simplepage.edit"), "#{simplePageBean.updateYoutube}");
	UICommand.make(form, "cancel-youtube", messageLocator.getMessage("simplepage.cancel"), null);
	UIBoundBoolean.make(form, "youtube-prerequisite", "#{simplePageBean.prerequisite}",false);
	
	if(!simplePageBean.isStudentPage(currentPage)) {
		UIOutput.make(form, "editgroups-youtube");
	}
}
 
开发者ID:sakaiproject,项目名称:sakai,代码行数:21,代码来源:ShowPageProducer.java

示例6: makeSaveChecklistForm

import uk.org.ponder.rsf.components.UIForm; //导入方法依赖的package包/类
private void makeSaveChecklistForm(UIContainer tofill) {
	// Ajax grading form so faculty can grade comments
	if(!saveChecklistFormNeeded) {
		UIForm saveChecklistForm = UIForm.make(tofill, "saveChecklistForm");
		saveChecklistForm.viewparams = new SimpleViewParameters(UVBProducer.VIEW_ID);
		UIInput checklistIdInput = UIInput.make(saveChecklistForm, "saveChecklistForm-checklistId", "checklistBean.checklistId");
		UIInput checklistItemIdInput = UIInput.make(saveChecklistForm, "saveChecklistForm-checklistItemIdInput", "checklistBean.checklistItemId");
		UIInput checklistItemDone = UIInput.make(saveChecklistForm, "saveChecklistForm-checklistItemDone", "checklistBean.checklistItemDone");
		Object sessionToken = SessionManager.getCurrentSession().getAttribute("sakai.csrf.token");
		String sessionTokenString = null;
		if (sessionToken != null)
		    sessionTokenString = sessionToken.toString();
		UIInput checklistCsrfInput = UIInput.make(saveChecklistForm, "saveChecklistForm-csrf", "checklistBean.csrfToken", sessionTokenString);

		UIInitBlock.make(tofill, "saveChecklistForm-init", "checklistDisplay.initSaveChecklistForm", new Object[] {checklistIdInput, checklistItemIdInput, checklistItemDone, checklistCsrfInput, "checklistBean.results"});
		saveChecklistFormNeeded = true;
	}
}
 
开发者ID:sakaiproject,项目名称:sakai,代码行数:19,代码来源:ShowPageProducer.java

示例7: createNewPageDialog

import uk.org.ponder.rsf.components.UIForm; //导入方法依赖的package包/类
private void createNewPageDialog(UIContainer tofill, SimplePage page, SimplePageItem pageItem) {
	UIOutput.make(tofill, "new-page-dialog").decorate(new UIFreeAttributeDecorator("title", messageLocator.getMessage("simplepage.new-page")));

	UIForm form = UIForm.make(tofill, "new-page-form");
	makeCsrf(form, "csrf15");

	UIInput.make(form, "newPage", "#{simplePageBean.newPageTitle}");

	UIInput.make(form, "new-page-number", "#{simplePageBean.numberOfPages}");

	UIBoundBoolean.make(form, "new-page-copy", "#{simplePageBean.copyPage}", false);
	
	GeneralViewParameters view = new GeneralViewParameters(PagePickerProducer.VIEW_ID);
	view.setSendingPage(-1L);
	view.newTopLevel = true;
	UIInternalLink.make(tofill, "new-page-choose", messageLocator.getMessage("simplepage.lm_existing_page"), view);

	UICommand.make(form, "new-page-submit", messageLocator.getMessage("simplepage.save"), "#{simplePageBean.addPages}");
	UICommand.make(form, "new-page-cancel", messageLocator.getMessage("simplepage.cancel"), "#{simplePageBean.cancel}");
}
 
开发者ID:sakaiproject,项目名称:sakai,代码行数:21,代码来源:ShowPageProducer.java

示例8: createTwitterDialog

import uk.org.ponder.rsf.components.UIForm; //导入方法依赖的package包/类
private void createTwitterDialog(UIContainer tofill, SimplePage currentPage) {
	UIOutput.make(tofill, "add-twitter-dialog").decorate(new UIFreeAttributeDecorator("title", messageLocator.getMessage("simplepage.twitter")));
	UIForm form = UIForm.make(tofill, "add-twitter-form");
	makeCsrf(form, "csrf13");
	UIInput.make(form, "twitterEditId", "#{simplePageBean.itemId}");
	UIInput.make(form, "twitter-addBefore", "#{simplePageBean.addBefore}");
	UIInput.make(form, "twitter-username", "#{simplePageBean.twitterUsername}");
	UIOutput.make(form, "twitter-username-label", messageLocator.getMessage("simplepage.twitter-username"));
	UIInput.make(form, "widget-height", "#{simplePageBean.twitterWidgetHeight}");
	UIOutput.make(form, "height-label", messageLocator.getMessage("simplepage.twitter.height_label"));
	//Adding default values for tweet number dropdown
	String[] options = {"5","10","25","50","100","1000"};
	String[] labels = {"5","10","25","50","100","1000"};
	UIOutput.make(form, "numberDropdownLabel", messageLocator.getMessage("simplepage.number-dropdown-label"));
	UISelect.make(form, "numberDropdown", options, labels, "#{simplePageBean.twitterDropDown}","5");
	UICommand.make(form, "twitter-add-item", messageLocator.getMessage("simplepage.save_message"), "#{simplePageBean.addTwitterTimeline}");
	UICommand.make(form, "twitter-cancel", messageLocator.getMessage("simplepage.cancel"), null);
	UICommand.make(form, "delete-twitter-item", messageLocator.getMessage("simplepage.delete"), "#{simplePageBean.deleteItem}");
}
 
开发者ID:sakaiproject,项目名称:sakai,代码行数:20,代码来源:ShowPageProducer.java

示例9: createForumSummaryDialog

import uk.org.ponder.rsf.components.UIForm; //导入方法依赖的package包/类
private void createForumSummaryDialog(UIContainer tofill, SimplePage currentPage) {
	UIOutput.make(tofill, "add-forum-summary-dialog").decorate(new UIFreeAttributeDecorator("title", messageLocator.getMessage("simplepage.forumSummaryLinkText")));
	UIForm form = UIForm.make(tofill, "add-forum-summary-form");
	makeCsrf(form, "csrf24");
	//check if site has forum tool added?if not then display info and return
	if (simplePageBean.getCurrentTool(simplePageBean.FORUMS_TOOL_ID) == null) {
		UIOutput.make(tofill, "forum-summary-error-div");
		UIOutput.make(tofill, "forum-summary-error-span", messageLocator.getMessage("simplepage.no_forum_tools"));
		UICommand.make(form, "forum-summary-cancel", messageLocator.getMessage("simplepage.cancel"), null);
		return;
	}
	UIInput.make(form, "forumSummaryEditId", "#{simplePageBean.itemId}");
	String[] options = {"5", "10", "15", "20", "30", "50"};
	String[] labels = {"5", "10", "15", "20", "30", "50"};
	UIOutput.make(form, "forumNumberDropdownLabel", messageLocator.getMessage("simplepage.forum-number-dropdown-label"));
	UISelect.make(form, "forumNumberDropdown", options, labels, "#{simplePageBean.forumSummaryDropDown}", "5");
	UICommand.make(form, "forum-summary-add-item", messageLocator.getMessage("simplepage.save_message"), "#{simplePageBean.addForumSummary}");
	UIInput.make(form, "forum-summary-add-before", "#{simplePageBean.addBefore}");
	UICommand.make(form, "forum-summary-cancel", messageLocator.getMessage("simplepage.cancel"), null);
	UICommand.make(form, "delete-forum-summary-item", messageLocator.getMessage("simplepage.delete"), "#{simplePageBean.deleteItem}");
}
 
开发者ID:sakaiproject,项目名称:sakai,代码行数:22,代码来源:ShowPageProducer.java

示例10: createCommentsDialog

import uk.org.ponder.rsf.components.UIForm; //导入方法依赖的package包/类
private void createCommentsDialog(UIContainer tofill) {
	UIOutput.make(tofill, "comments-dialog").decorate(new UIFreeAttributeDecorator("title", messageLocator.getMessage("simplepage.edit_commentslink")));

	UIForm form = UIForm.make(tofill, "comments-form");
	makeCsrf(form, "csrf19");

	UIInput.make(form, "commentsEditId", "#{simplePageBean.itemId}");

	UIBoundBoolean.make(form, "comments-anonymous", "#{simplePageBean.anonymous}");
	UIBoundBoolean.make(form, "comments-graded", "#{simplePageBean.graded}");
	UIInput.make(form, "comments-max", "#{simplePageBean.maxPoints}");
	
	UIBoundBoolean.make(form, "comments-required", "#{simplePageBean.required}");
	UIBoundBoolean.make(form, "comments-prerequisite", "#{simplePageBean.prerequisite}");

	UICommand.make(form, "delete-comments-item", messageLocator.getMessage("simplepage.delete"), "#{simplePageBean.deleteItem}");
	UICommand.make(form, "update-comments", messageLocator.getMessage("simplepage.edit"), "#{simplePageBean.updateComments}");
	UICommand.make(form, "cancel-comments", messageLocator.getMessage("simplepage.cancel"), null);
}
 
开发者ID:sakaiproject,项目名称:sakai,代码行数:20,代码来源:ShowPageProducer.java

示例11: createQuestionDialog

import uk.org.ponder.rsf.components.UIForm; //导入方法依赖的package包/类
private void createQuestionDialog(UIContainer tofill, SimplePage currentPage) {
	UIOutput.make(tofill, "question-dialog").decorate(new UIFreeAttributeDecorator("title", messageLocator.getMessage("simplepage.edit_questionlink")));
	
	UIForm form = UIForm.make(tofill, "question-form");
	makeCsrf(form, "csrf21");
	
	UISelect questionType = UISelect.make(form, "question-select", new String[] {"multipleChoice", "shortanswer"}, "#{simplePageBean.questionType}", "");
	UISelectChoice.make(form, "multipleChoiceSelect", questionType.getFullID(), 0);
	UISelectChoice.make(form, "shortanswerSelect", questionType.getFullID(), 1);

	UIOutput.make(form, "question-shortans-del").decorate(new UIFreeAttributeDecorator("alt", messageLocator.getMessage("simplepage.delete")));
	UIOutput.make(form, "question-mc-del").decorate(new UIFreeAttributeDecorator("alt", messageLocator.getMessage("simplepage.delete")));
	UIInput.make(form, "questionEditId", "#{simplePageBean.itemId}");
	
	UIBoundBoolean.make(form, "question-required", "#{simplePageBean.required}");
	UIBoundBoolean.make(form, "question-prerequisite", "#{simplePageBean.prerequisite}");
	UIInput.make(form, "question-text-input", "#{simplePageBean.questionText}");
	UIInput.make(form, "question-answer-full-shortanswer", "#{simplePageBean.questionAnswer}");
	
	UIBoundBoolean.make(form, "question-graded", "#{simplePageBean.graded}");
	UIInput.make(form, "question-gradebook-title", "#{simplePageBean.gradebookTitle}");
	UIInput.make(form, "question-max", "#{simplePageBean.maxPoints}");
	
	UIInput.make(form, "question-multiplechoice-answer-complete", "#{simplePageBean.addAnswerData}");
	UIInput.make(form, "question-multiplechoice-answer-id", null);
	UIBoundBoolean.make(form, "question-multiplechoice-answer-correct");
	UIInput.make(form, "question-multiplechoice-answer", null);
	UIBoundBoolean.make(form, "question-show-poll", "#{simplePageBean.questionShowPoll}");
	
	UIInput.make(form, "question-correct-text", "#{simplePageBean.questionCorrectText}");
	UIInput.make(form, "question-incorrect-text", "#{simplePageBean.questionIncorrectText}");
	UIInput.make(form, "question-addBefore", "#{simplePageBean.addBefore}");
	
	UICommand.make(form, "delete-question-item", messageLocator.getMessage("simplepage.delete"), "#{simplePageBean.deleteItem}");
	UICommand.make(form, "update-question", messageLocator.getMessage("simplepage.edit"), "#{simplePageBean.updateQuestion}");
	UICommand.make(form, "cancel-question", messageLocator.getMessage("simplepage.cancel"), null);
}
 
开发者ID:sakaiproject,项目名称:sakai,代码行数:38,代码来源:ShowPageProducer.java

示例12: fill

import uk.org.ponder.rsf.components.UIForm; //导入方法依赖的package包/类
public void fill(UIContainer tofill, ViewParameters viewparams, ComponentChecker checker) {

        EmailViewParameters emailViewParams = (EmailViewParameters) viewparams;
        if (emailViewParams.templateId == null 
                && emailViewParams.emailType == null) {
            throw new IllegalArgumentException("At least templateId or emailType must be set before accessing the preview email view");
        }

        UIVerbatim.make(tofill, "email_templates_fieldhints", UIMessage.make("email.templates.field.names"));

        // get the email template by the templateId or from the evaluation
        EvalEmailTemplate emailTemplate = null;
        if (emailViewParams.templateId != null) {
            emailTemplate = evaluationService.getEmailTemplate(emailViewParams.templateId);
        }
        if (emailTemplate == null 
                && emailViewParams.emailType != null) {
            // get either the template associated with the eval or the default one
            emailTemplate = evaluationService.getEmailTemplate(emailViewParams.evaluationId, emailViewParams.emailType);
        }

        if (emailViewParams.evaluationId != null) {
            // we are working with an evaluation so add edit controls

            // use a get form to submit to the editing page
            UIForm form = UIForm.make(tofill, "previewEmailForm",
                    new EmailViewParameters(ModifyEmailProducer.VIEW_ID, emailViewParams.templateId, 
                            emailViewParams.emailType, emailViewParams.evaluationId) );
            UIMessage.make(form, "modifyEmailTemplate", "previewemail.modify.button");
        }

        UIOutput.make(tofill, "emailSubject", emailTemplate.getSubject() );
        UIVerbatim.make(tofill, "emailMessage", new LineBreakResolver().resolveBean(emailTemplate.getMessage()) );

        UIMessage.make(tofill, "close-button", "general.close.window.button");
    }
 
开发者ID:sakaicontrib,项目名称:evaluation,代码行数:37,代码来源:PreviewEmailProducer.java

示例13: createEditMultimediaDialog

import uk.org.ponder.rsf.components.UIForm; //导入方法依赖的package包/类
private void createEditMultimediaDialog(UIContainer tofill, SimplePage currentPage) {
	UIOutput.make(tofill, "edit-multimedia-dialog").decorate(new UIFreeAttributeDecorator("title", messageLocator.getMessage("simplepage.editMultimedia")));

	UIOutput.make(tofill, "instructions");

	UIForm form = UIForm.make(tofill, "edit-multimedia-form");
	makeCsrf(form, "csrf10");

	UIOutput.make(form, "height-label", messageLocator.getMessage("simplepage.height_label"));
	UIInput.make(form, "height", "#{simplePageBean.height}");

	UIOutput.make(form, "width-label", messageLocator.getMessage("simplepage.width_label"));
	UIInput.make(form, "width", "#{simplePageBean.width}");

	UIOutput.make(form, "description2-label", messageLocator.getMessage("simplepage.description_label"));
	UIInput.make(form, "description2", "#{simplePageBean.description}");

	if (!simplePageBean.isStudentPage(currentPage)) {
	    UIOutput.make(form, "multi-prerequisite-section");
	    UIBoundBoolean.make(form, "multi-prerequisite", "#{simplePageBean.prerequisite}",false);
	}

	FilePickerViewParameters fileparams = new FilePickerViewParameters();
	fileparams.setSender(currentPage.getPageId());
	fileparams.setResourceType(true);
	fileparams.viewID = ResourcePickerProducer.VIEW_ID;
	UIInternalLink.make(form, "change-resource-mm", messageLocator.getMessage("simplepage.change_resource"), fileparams);

	UIOutput.make(form, "alt-label", messageLocator.getMessage("simplepage.alt_label"));
	UIInput.make(form, "alt", "#{simplePageBean.alt}");

	UIInput.make(form, "mimetype", "#{simplePageBean.mimetype}");

	UICommand.make(form, "edit-multimedia-item", messageLocator.getMessage("simplepage.save_message"), "#{simplePageBean.editMultimedia}");

	UIInput.make(form, "multimedia-item-id", "#{simplePageBean.itemId}");

	UICommand.make(form, "delete-multimedia-item", messageLocator.getMessage("simplepage.delete"), "#{simplePageBean.deleteItem}");
	UICommand.make(form, "edit-multimedia-cancel", messageLocator.getMessage("simplepage.cancel"), null);
}
 
开发者ID:sakaiproject,项目名称:sakai,代码行数:41,代码来源:ShowPageProducer.java

示例14: fillComponents

import uk.org.ponder.rsf.components.UIForm; //导入方法依赖的package包/类
public void fillComponents(UIContainer tofill, ViewParameters viewParams, ComponentChecker checker) {
    	
	GroupImportViewParameters params = (GroupImportViewParameters) viewParams;
    	
	UIBranchContainer content = UIBranchContainer.make(tofill, "content:");
	UIVerbatim.make(content, "import1.instr.req.1", messageLocator.getMessage("import1.instr.req.1"));
	UIVerbatim.make(content, "import1.instr.req.2", messageLocator.getMessage("import1.instr.req.2"));
	UIVerbatim.make(content, "import1.instr.req.3", messageLocator.getMessage("import1.instr.req.3"));
	UIForm uploadForm = UIForm.make(content, "uploadform");
	UIInput.make(uploadForm, "groupuploadtextarea", "#{SiteManageGroupSectionRoleHandler.groupUploadTextArea}");
	UICommand.make(uploadForm, "continue", messageLocator.getMessage("import1.continue"), "#{SiteManageGroupSectionRoleHandler.processUploadAndCheck}");
	UICommand cancel = UICommand.make(uploadForm, "cancel", messageLocator.getMessage("cancel"), "#{SiteManageGroupSectionRoleHandler.processCancel}");
	cancel.parameters.add(new UIDeletionBinding("#{destroyScope.resultScope}"));
    
	frameAdjustingProducer.fillComponents(tofill, "resize", "resetFrame");

	//process any messages
	tml = handler.messages;
	if (tml.size() > 0) {
		for (int i = 0; i < tml.size(); i ++ ) {
			UIBranchContainer errorRow = UIBranchContainer.make(tofill,"error-row:", Integer.toString(i));
			TargettedMessage msg = tml.messageAt(i);
			if (msg.args != null )
			{
				UIMessage.make(errorRow,"error", msg.acquireMessageCode(), (Object[]) msg.args);
			}
			else
			{
				UIMessage.make(errorRow,"error", msg.acquireMessageCode());
			}
		}
	}
	    
}
 
开发者ID:sakaiproject,项目名称:sakai,代码行数:35,代码来源:GroupImportStep1Producer.java

示例15: printGradingForm

import uk.org.ponder.rsf.components.UIForm; //导入方法依赖的package包/类
private void printGradingForm(UIContainer tofill) {
	// Ajax grading form so faculty can grade comments
	if(!printedGradingForm) {
		UIForm gradingForm = UIForm.make(tofill, "gradingForm");
		gradingForm.viewparams = new SimpleViewParameters(UVBProducer.VIEW_ID);
		UIInput idInput = UIInput.make(gradingForm, "gradingForm-id", "gradingBean.id");
		UIInput jsIdInput = UIInput.make(gradingForm, "gradingForm-jsId", "gradingBean.jsId");
		UIInput pointsInput = UIInput.make(gradingForm, "gradingForm-points", "gradingBean.points");
		UIInput typeInput = UIInput.make(gradingForm, "gradingForm-type", "gradingBean.type");
		Object sessionToken = SessionManager.getCurrentSession().getAttribute("sakai.csrf.token");
		UIInput csrfInput = UIInput.make(gradingForm, "csrf", "gradingBean.csrfToken", (sessionToken == null ? "" : sessionToken.toString()));
		UIInitBlock.make(tofill, "gradingForm-init", "initGradingForm", new Object[] {idInput, pointsInput, jsIdInput, typeInput, csrfInput, "gradingBean.results"});
		printedGradingForm = true;
	}
}
 
开发者ID:sakaiproject,项目名称:sakai,代码行数:16,代码来源:ShowPageProducer.java


注:本文中的uk.org.ponder.rsf.components.UIForm.make方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。