Re: Struts 2 - Parameterized error messages

2011-01-24 Thread Chris Pratt
Try: field.amount={0} can not be '$'{1} for Sequence {2}. The single quotes tell the underlying MessageFormat that the dollar sign should be treated literally. You might also be able to use {1,number,currency} which I think may include the proper currency symbol automatically. (*Chris*) On Mo

Re: Struts 2 - Parameterized error messages

2011-01-24 Thread jlmagc
I thin that the symbol $ is messing the result. Have you tried this? field.amount= {0} can not be {1} for Sequence {2}. addActionError(getText("field.amount", new String[] { "Amount", "$0.00", "987654"})); Jose Luis Sent via BlackBerry from T-Mobile -Original Message- From: kamlesh shar

Re: Struts 2 - Parameterized error messages

2011-01-24 Thread kamlesh sharma
Hi, i am facing same problem with other message. i.e field.amount= {0} can not be ${1} for Sequence {2}. On UI interface it is displaying below message: Amount can not be 1 for Sequence 987654. instead of Amount can not be $0.00 for Sequence 987654. Means ${ is not working for any erro

Re: ModelDriven - Best Practices

2011-01-24 Thread Paweł Wielgus
Hi Chris, are You using paramPrepareParams stack? It should work with it like You expect it to. Best greetings, Paweł Wielgus. 2011/1/24 CRANFORD, CHRIS : > I recently implemented an action using the ModelDriven interface.  Since > my Domain Object doesn't contain anything beyond properties that

ModelDriven - Best Practices

2011-01-24 Thread CRANFORD, CHRIS
I recently implemented an action using the ModelDriven interface. Since my Domain Object doesn't contain anything beyond properties that are mapped to columns in the associated table; it made it easy to pass the data between the DAO, Service, and View tiers. o Creation During creation, everythin

Re: Dynamic Struts component type

2011-01-24 Thread Dave Newton
There's a bunch of ways this could be done. Personally, I'd either create a standard JSP-based custom tag, do it in JavaScript, or write a thin layer between a DB-backed UI description DSL and a JavaScript UI builder. Dave On Mon, Jan 24, 2011 at 10:37 AM, John Dondapati wrote: > Would a custom

Re: Dynamic Struts component type

2011-01-24 Thread John Dondapati
Would a custom component be the right direction to solve this? If this has been asked earlier, can someone please point me to that resource. Thanks! On Mon, Jan 24, 2011 at 10:22 AM, John Dondapati wrote: > Hi all, > > I have recently started playing around with struts 2 framework. And I have >

Dynamic Struts component type

2011-01-24 Thread John Dondapati
Hi all, I have recently started playing around with struts 2 framework. And I have an interesting problem that I wanna solve with Struts. We are creating a survey from the questions stored in database and even the options like yes/no/other/comment fields come from the database. Even the html type

Re: Struts mapping failing when using struts2-convention-plugin

2011-01-24 Thread stanlick
Thanks my good brother. I'll attribute my weirdness to trying to code and watch football at the same time! Peace, Scott 2011/1/24 Paweł Wielgus > Hi Scott, > i use them side by side, > normal action by conention and freaks in xml. > > Best greetings, > Paweł Wielgus. > > > 2011/1/23 stanlick :

Re: Struts mapping failing when using struts2-convention-plugin

2011-01-24 Thread Paweł Wielgus
Hi Scott, i use them side by side, normal action by conention and freaks in xml. Best greetings, Paweł Wielgus. 2011/1/23 stanlick : > > Do you guys know if using the convention plugin is mutually exclusive of > having an action mapping xml file?  IOW, is the convention plugin an all or > nothin