On 3/16/06, James Mitchell <[EMAIL PROTECTED]> wrote: > What if <--- dangerous I know! > > What if there existed a JSF 1.2 implementation built with WW2 at the > core? > > I'm definitely not an expert with either JSF or WW2, however, I've > looked at both just enough to be convinced that it is possible. WW2 > has everything I already love about Struts and it even comes with > basic support for components, full Spring integration, etc, etc. > > Am I just crazy or what? Would that not let everyone have their cake > and eat it too?
What if you developed components in good old JSP, and used whatever action framework you like, such as Struts Classic, WebWork, Spring MVC or Stripes for input conversion, validation, propagation to business objects, backend operations, localization and resource management? For example: <span id="Login_def"> <%-- Submit phase --%> <jc:handler event="loginEvent"> <jsp:include page="/login.do" /> </jc:handler> <jc:handler event="logoutEvent"> <jsp:include page="/logout.do" /> </jc:handler> <jc:reload/> <%-- Render phase --%> <jc:prerender/> <jc:render view="notloggedin"> <h3>Log In</h3> <logic:messagesPresent> <html:messages id="error"> <li><bean:write name="error"/></li> </html:messages> </logic:messagesPresent><br/> <jc:form> <label for="username">Username:</label> <input type="text" name="username" value="${username}"/><br/> <label for="password">Password:</label> <input type="text" name="password" value=""/><br/> <jc:submit event="loginEvent" value="Log In"/><br/> </jc:form> </jc:render> <jc:render view="loggedin"> <h3>Log Out</h3> <jc:form> <label>Current user:</label> <div>${USER}</div><br/> <jc:submit event="logoutEvent" value="Log out"/><br/> <jc:link event="logoutEvent" value="Log out using link" /> </jc:form> </jc:render> </span> Michael. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]