attribute « Seam « JSF Q&A





1. JSF required attribute    seamframework.org

2. Seam Test problem (jsf required attribute)    seamframework.org

@Test public void testCreateOrganisation() throws Exception { String id = login(ADMIN_LOGIN); id = new FacesRequest(ORG_VIEW, id) { @Override protected void invokeApplication() throws Exception { assertEquals( invokeAction("#{organisations.createOrganisation}"), JSFNavigationConstants.ORGANISATION_CREATE); } }.run(); new FacesRequest(ORG_CREATE_VIEW, id) { @Override protected void processValidations() throws Exception { validateValue("#{selectedOrganisation.name}", ""); assertTrue(isValidationFailure()); } @Override protected void renderResponse() throws Exception { FacesContext fc = FacesContext.getCurrentInstance(); assertEquals(fc.getMaximumSeverity(), FacesMessage.SEVERITY_ERROR); boolean contains = false; ...