ah..I didnt make it up after all: http://blogs.sun.com/kchung/entry/jsr_245_mr_part_i
On Tue, Nov 3, 2009 at 4:04 PM, Musachy Barroso <musa...@gmail.com> wrote: > yeah I have to look into that, it seems like the last jar in their > maven repo doesn't have the latest api. The JUEL demo now works with > the simple parameters binder, so a dumb form like: > > <s:form action="SurveySave"> > <s:textfield label="First Name" > name="#{surveyBean.firstName}"></s:textfield> > <s:textfield label="Last Name" > name="#{surveyBean.lastName}"></s:textfield> > <s:textfield label="Age" name="#{surveyBean.age}"></s:textfield> > <s:textfield label="Birthday" > name="#{surveyBean.birthdate}"></s:textfield> > <s:submit value="Submit"/> > </s:form> > > works, so basic parameters with type conversions is partially working. > Long way to go but we have to start somewhere :). beta testers always > welcome, you would need to build xwork and s2 from trunk and set > struts.enableSimpleParametersBinder=true. There is a good chance that > I broke something else, so let me know. > > musachy > > On Tue, Nov 3, 2009 at 11:52 AM, Antonio Petrelli > <antonio.petre...@gmail.com> wrote: >> 2009/11/3 Musachy Barroso <musa...@gmail.com>: >>> Well yes, that's by default, but with the new EL api you can plugin a >>> new EL resolver like: >>> >>> JspApplicationContext jspApplicationContext = >>> JspFactory.getDefaultFactory().getJspApplicationContext(servletContext); >>> jspApplicationContext.addELResolver(new CompoundRootELResolver()); >> >> Maybe I did not explain myself. >> In a JSP page, an expression of the type: >> ${something} >> is treated as an expression. If you put such a string in a non-rtexpr >> enabled attribute it will give you an error. >> >>> BTW the JUEL plugin... >> >> Leave JUEL and try Tomcat's EL like I did in tiles: >> https://svn.eu.apache.org/repos/asf/tiles/framework/trunk/tiles-el >> (notice that currently SVN seems down). >> You can even load the default container EL implementation. >> Take a look in particular at the configuration, because the EL API is >> got from java.net repository, and the implementation from Tomcat. >> >> HTH >> Antonio >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: dev-unsubscr...@struts.apache.org >> For additional commands, e-mail: dev-h...@struts.apache.org >> >> > --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@struts.apache.org For additional commands, e-mail: dev-h...@struts.apache.org