public HtmlForm getLoginForm() { if(loginForm == null) { //first call to this method. loginForm = new HtmlForm(); } return loginForm; }
HtmlForm form = new HtmlForm(); form.Controls.Add(userControl); pageHolder.Controls.Add(form);
HtmlForm frm = new HtmlForm();
} else { HtmlForm htmlFormTmp; htmlFormTmp = new HtmlForm(); htmlFormTmp.setId(this.getId() + "_form"); htmlFormTmp.setStyleClass(jsfContext.resolveStyleClass(JsfStyleClasses.TABLE_FORM));
htmlForm = tmpHtmlForm; } else { final HtmlForm tmpHtmlForm = new HtmlForm(); tmpHtmlForm.setId(this.getId() + "_form"); tmpHtmlForm.setStyleClass(resolver.resolve(JsfStyleClasses.FORM));
protected void setUp() throws Exception { this.jsfMock.setUp(); this.jsfMock.facesContext().getApplication().setViewHandler(new MockViewHandler()); this.jsfMock.facesContext().setResponseWriter(new MockResponseWriter(this.output, null, null)); UIViewRoot viewToRender = new UIViewRoot(); viewToRender.setRenderKitId("HTML_BASIC"); viewToRender.setViewId(VIEW_ID); this.jsfMock.facesContext().setViewRoot(viewToRender); UIForm form = new HtmlForm(); form.setId("myForm"); UIInput input = new HtmlInputText(); input.setId("foo"); form.getChildren().add(input); viewToRender.getChildren().add(form); RequestContextHolder.setRequestContext(this.context); EasyMock.expect(this.context.getExternalContext()).andStubReturn(this.extContext); EasyMock.expect(this.context.getFlashScope()).andStubReturn(this.flashScope); EasyMock.expect(this.context.getFlowScope()).andStubReturn(this.flowMap); EasyMock.expect(this.context.getFlowExecutionContext()).andStubReturn(this.flowExecutionContext); EasyMock.expect(this.flowExecutionContext.getKey()).andStubReturn(this.key); this.view = new JsfView(viewToRender, this.jsfMock.lifecycle(), this.context); }
HtmlForm propSetForm = new HtmlForm(); modalPanel.getChildren().add(propSetForm); String propSetFormId = ConfigurationSetComponent.getPropSetFormId(configurationSetComponent);