RE: [slight OT] GZip compression filter

2006-10-19 Thread Paul Ferraro
// Gzip streams must be explicitly closed. tempOut.close(); // Update the Content-Length header. res.setContentLength(byteStream.size()); // Send compressed result to client. OutputStream realOut = res.getOutputStream(); byteStream.writeTo(realOut); }

Re: [slight OT] GZip compression filter

2006-10-19 Thread Paul Ferraro
Yes. Since the filter applies http headers before the tapestry servlet handles the request, you should be able to do this without issue. How is your filter set up in your web.xml? Here is mine (using pjl-comp-filter and servlet 2.4): compress com.planetj.servlet.filter.compression.Compressing

Re: OGNL && causes weird error

2006-10-17 Thread Paul Ferraro
Use the "and" operator synonym as defined here: http://www.ognl.org/2.6.9/Documentation/html/LanguageGuide/apa.html#operators e.g. Paul On Tue, 2006-10-17 at 21:29 +, Gareth wrote: > > > 46 > 47 > 48 > 49 name="actionsDisabled" value="ognl: addingOrAmendingSought && > (currentSkil

Re: Date format bug?? (Headache. Tried all options.)

2006-06-23 Thread Paul Ferraro
Check the capitalization of your date format. It must comply with java.text.SimpleDateFormat: http://java.sun.com/j2se/1.5.0/docs/api/java/text/SimpleDateFormat.html I think you want this: Bode, Bianca wrote: > Hi guys, > > I've tried everything I could come up with to display my Dates in a >

Re: Input dates validator

2006-06-22 Thread Paul Ferraro
tor is mm/dd/ I think. > > Malin > > On 6/21/06, Paul Ferraro <[EMAIL PROTECTED]> wrote: >> >> That syntax is documented here: >> >> http://tapestry.apache.org/tapestry4/UsersGuide/validation.html#validation.fields >> >> >> What aspe

Re: Input dates validator

2006-06-21 Thread Paul Ferraro
That syntax is documented here: http://tapestry.apache.org/tapestry4/UsersGuide/validation.html#validation.fields What aspect of localization is not working? The format? date symbols? or validation error messages? all of the above? The format is unfortunately hard coded and can be overridden.

Re: redirect-after-post pattern

2006-06-20 Thread Paul Ferraro
It depends on which service you expect the redirect page to use. e.g. If the ExternalService will handle your redirect link, you can use: String page = "MyPage"; Object[] parameters = new Object[] { parameter1, parameter2 }; // Alternatively, you can use injection to obtain service IEngineService

Re: Input dates validator

2006-06-16 Thread Paul Ferraro
This should work: Paul Malin Ljungh wrote: > Hi all, > > I'm a newbie and just too tired think right now. Please help me :) > > I have a form with two TextFields where the user should enter somes > dates. I > use the date validator to check that co