RE: Ajax Basics

2009-07-08 Thread Richard Gundersen
converters. Richard Gundersen-2 wrote: Hi I'm trying to get the datetimepicker working in my app. It's Struts 2 but it's totally non-AJAX at the moment. I also don't know anything about AJAX to make matters worse. Please could someone tell me a) what extra jars

RE: Ajax Basics

2009-07-08 Thread Richard Gundersen
cssStyle=datefield/ Viola! You will likely want to create a Date converter. You can find lots of posts and discussions about Type Conversion and date converters. Richard Gundersen-2 wrote: Hi I'm trying to get the datetimepicker working in my app. It's Struts 2 but it's

Ajax Basics

2009-07-07 Thread Richard Gundersen
Hi I'm trying to get the datetimepicker working in my app. It's Struts 2 but it's totally non-AJAX at the moment. I also don't know anything about AJAX to make matters worse. Please could someone tell me a) what extra jars (dojo/json etc) do I need to pop into WEB-INF? I don't

RE: Ajax Basics

2009-07-07 Thread Richard Gundersen
/DatePickerTag Just drop the the jar into WEB-INF/lib and you are ready to go. Martin Richard Gundersen wrote: Hi I'm trying to get the datetimepicker working in my app. It's Struts 2 but it's totally non-AJAX at the moment. I also don't know anything about AJAX to make matters worse

String manipulation

2009-02-27 Thread Richard Gundersen
Hi I'm trying to validate that a filename has a .csv extension. I would like to use @FieldExpressionValidator on the field but I can't get the syntax right, and searching the docs I can't find much on String manipulation in OGNL. Could anyone help me out please? Thanks

RE: String manipulation

2009-02-27 Thread Richard Gundersen
Oh, got it @FieldExpressionValidator(expression=(accountFileFileName.endsWith('.cs v'), message=, key=validate.invalidFilename, fieldName=accountFileFileName) Forgot you could just call methods in OGNL :) -Richard -Original Message- From: Richard Gundersen [mailto:r.gunder

RE: String manipulation

2009-02-27 Thread Richard Gundersen
Hmmm, no that also prevents genuine csv files from being selected too. Also investigating the accept attribute on the s:file tag to see if that will help... Any help appreciated. -Original Message- From: Richard Gundersen [mailto:r.gunder...@salford.ac.uk] Sent: 27 February 2009 10:27

RE: String manipulation

2009-02-27 Thread Richard Gundersen
; } Remove |(xls) if you dont want to allow xls files --- On Fri, 2/27/09, Richard Gundersen r.gunder...@salford.ac.uk wrote: From: Richard Gundersen r.gunder...@salford.ac.uk Subject: RE: String manipulation To: Struts Users Mailing List user@struts.apache.org Date: Friday, February 27, 2009

RE: What's the correct expression syntax?

2009-02-06 Thread Richard Gundersen
I think it's because you're comparing a single character string, which OGNL treats as a bit of a special case for some reason. I dont have my code with me now but I'm pretty sure I had the same problem. Google 'comparing single character string in ognl' for some pointers (sorry, I cant verify

Collections and type conversion

2009-02-05 Thread Richard Gundersen
Hi Could anyone point out what I'm doing wrong here please? My model (FileType) has a collection of Field objects and a getter called getFileFields(). I want to automatically display and set these when my form is rendered/posted. Rendering is easy using an iterator, but to allow the

RE: Collections and type conversion

2009-02-05 Thread Richard Gundersen
. Anyone know where the null elements are coming from (it looks like this): [0] null [1] Field[blah] [2] null [3] Field[blahblah] Nearly there - Thanks! -Original Message- From: Richard Gundersen [mailto:r.gunder...@salford.ac.uk] Sent: 05 February 2009 12:00 To: user@struts.apache.org Subject

Setting a List in a ModelDriven action

2009-02-04 Thread Richard Gundersen
was wondering if there were some cool Tags that I could make use of? Regards Richard Gundersen Information Learning Services Ashworth Building ext 56681 - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands