Hi Taras, Sorry for not been clear enough, it is a strange issue. Seems that putting a scriplet within a stripes tag is preventing the stripes tag from been rendered by Stripes.
The type="radio" attribute which belongs to the input html tag is not been rendered in the HTML produced from a stripes:radio tag when a scriplet is put inside the value attribute. Example: JSP code: <stripes:radio name="tribeAccountNumber" value="<%="test"%>"/> Parsed HTML: <stripes:radio value="test" name="tribeAccountNumber" /> Expected parsed HTML: <input value="test" type="radio" name="tribeAccountNumber" /> Cheers, Phil On Tue, Feb 10, 2009 at 3:54 PM, Taras Puchko <[email protected]> wrote: > Hi Phil, > > I don't understand what kind of problem you have. Can you elaborate on it? > > Cheers, > Taras > > On Tue, Feb 10, 2009 at 2:03 PM, phil darley <[email protected]> > wrote: >> >> Thanks Taras. >> >> I have now implemented my own version of the ExpressionEvaluator using >> commons-el and it works a treat! However I now have another issue, it >> appears that writing a scriplet within a stripes radio tag (haven't >> tested other tags yet) results in the type being lost when parsed! E.g >> >> <stripes:radio name="tribeAccountNumber" value="<%="test"%>"/> results >> in: >> <input value="test" name="tribeAccountNumber" /> >> >> Other radio tags render correctly with hardcoded strings within the >> same jsp. Has anybody come across this before? >> >> Cheers, >> Phil >> >> >> On Fri, Feb 6, 2009 at 6:13 PM, Taras Puchko <[email protected]> >> wrote: >> > Hi Phil, >> > >> > You can write a tool that converts EL in JSP files to Java expressions >> > and >> > run it during the build process. >> > >> > For instance <stripes:radio name="accountNumber" >> > value="${member.accountNumber}" /> can be replaced with >> > <stripes:radio name="accountNumber" >> > value="<%=mypack.MyTools.eval(pageContext, "member.accountNumber")%>" /> >> > >> > Cheers, >> > Taras >> > >> > >> > On Fri, Feb 6, 2009 at 2:10 PM, phil darley >> > <[email protected]> >> > wrote: >> >> >> >> Hi, >> >> >> >> Env: >> >> >> >> JSP 1.3 container, JVM 1.4, Stripes 1.5 (retrotranslated), >> >> retrotranslator >> >> 1.2.7 >> >> >> >> Issue: >> >> >> >> EL syntax not being parsed within stripe tags. Example <stripes:radio >> >> name="accountNumber" value="${member.accountNumber}" /> renders as >> >> <input value="${member.tribeAccountNumber}" type="radio" >> >> name="tribeAccountNumber" />. EL syntax is being parsed correctly >> >> within JSTL tags. >> >> >> >> Reason: >> >> >> >> Prior to JSP 2.0 (I believe) EL syntax was limited to being rendered >> >> within JSTL tags only, therefore writing ${test} within a stripes >> >> value="" tag attribute will just render as a string. >> >> >> >> Solution: >> >> >> >> a) Is there a way to write a jstl out tag within a stripes tag e.g. >> >> <stripes:radio name="accountNumber" value='<c:out >> >> value="${member.accountNumber}"/>' /> >> >> b) Could I extend the stripes Tag impl (NB: which class and method is >> >> responsible for extracting / evaluating tag input values) with the >> >> commons-el library (ExpressionEvaluatorImpl) and rebuild source? >> >> c) Should this be working and am I missing something obvious? >> >> >> >> Cheers, >> >> Phil >> >> >> >> >> >> >> >> ------------------------------------------------------------------------------ >> >> Create and Deploy Rich Internet Apps outside the browser with >> >> Adobe(R)AIR(TM) >> >> software. With Adobe AIR, Ajax developers can use existing skills and >> >> code >> >> to >> >> build responsive, highly engaging applications that combine the power >> >> of >> >> local >> >> resources and data with the reach of the web. Download the Adobe AIR >> >> SDK >> >> and >> >> Ajax docs to start building applications >> >> today-http://p.sf.net/sfu/adobe-com >> >> _______________________________________________ >> >> Stripes-users mailing list >> >> [email protected] >> >> https://lists.sourceforge.net/lists/listinfo/stripes-users >> > >> > >> > >> > ------------------------------------------------------------------------------ >> > Create and Deploy Rich Internet Apps outside the browser with >> > Adobe(R)AIR(TM) >> > software. With Adobe AIR, Ajax developers can use existing skills and >> > code >> > to >> > build responsive, highly engaging applications that combine the power of >> > local >> > resources and data with the reach of the web. Download the Adobe AIR SDK >> > and >> > Ajax docs to start building applications >> > today-http://p.sf.net/sfu/adobe-com >> > _______________________________________________ >> > Stripes-users mailing list >> > [email protected] >> > https://lists.sourceforge.net/lists/listinfo/stripes-users >> > >> > >> >> >> ------------------------------------------------------------------------------ >> Create and Deploy Rich Internet Apps outside the browser with >> Adobe(R)AIR(TM) >> software. With Adobe AIR, Ajax developers can use existing skills and code >> to >> build responsive, highly engaging applications that combine the power of >> local >> resources and data with the reach of the web. Download the Adobe AIR SDK >> and >> Ajax docs to start building applications >> today-http://p.sf.net/sfu/adobe-com >> _______________________________________________ >> Stripes-users mailing list >> [email protected] >> https://lists.sourceforge.net/lists/listinfo/stripes-users > > > ------------------------------------------------------------------------------ > Create and Deploy Rich Internet Apps outside the browser with > Adobe(R)AIR(TM) > software. With Adobe AIR, Ajax developers can use existing skills and code > to > build responsive, highly engaging applications that combine the power of > local > resources and data with the reach of the web. Download the Adobe AIR SDK and > Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com > _______________________________________________ > Stripes-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/stripes-users > > ------------------------------------------------------------------------------ Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM) software. With Adobe AIR, Ajax developers can use existing skills and code to build responsive, highly engaging applications that combine the power of local resources and data with the reach of the web. Download the Adobe AIR SDK and Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com _______________________________________________ Stripes-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/stripes-users
