Re: Create a struts ajax anchor using javascript

2009-09-12 Thread Paweł Wielgus
Hi Christian, can't You update a div or a form or a table with parsed contents of a json from ajax call. Or even simplier, get this whole "a href" from ajax call at the first place, and don't use json here at all. Have in mind that strut is something completly different than ajax, those are two dif

Re: Warning message when setting BigDecimal to list of bean

2009-09-12 Thread Steven Yang
so...this is an OGNL error? is there a way to fix it? or should i file a bug? On Fri, Sep 11, 2009 at 12:32 AM, j alex wrote: > hmm..i remember getting the warning even for doubles..as the error message > says, OGNL fails when trying to set a String array (all request parameters > are Strings )

Create a struts ajax anchor using javascript

2009-09-12 Thread Christian Javellana
Hi All, I'd like to know if there is a way how to build a struts anchor (theme='ajax') using javascript alone? I'd like to construct a struts ajax anchor wherein the href value comes from a JSON response. Is there a way to do this? -- View this message in context: http://www.nabble.com/Create

Re: scripting paramaters passed as parameters

2009-09-12 Thread Tommy Pham
--- On Sat, 9/12/09, red dog wrote: > From: red dog > Subject: Re: scripting paramaters passed as parameters > To: "Struts Users Mailing List" > Date: Saturday, September 12, 2009, 3:17 PM > First of all the subject should've > read "scripting events passed as parameters". >   > I'm now respon

Re: scripting paramaters passed as parameters

2009-09-12 Thread red dog
First of all the subject should've read "scripting events passed as parameters".   I'm now responding to my own question :) - this will do it - not sure if this is a bug in Struts2 or not though:   <@s.textfield theme="simple" name="name1" id="id1" cssClass="textfield" value="value1"> <@s.param

Re: Formatting in extended theme using Freemarker

2009-09-12 Thread musomesa
Try the pattern "#.00". Chris -Original Message- From: ashwin ala To: user@struts.apache.org Sent: Sat, Sep 12, 2009 2:30 pm Subject: RE: Formatting in extended theme using Freemarker Thank you for the prompt replies. The BigDecimal rounding somehow always renders

scripting paramaters passed as parameters

2009-09-12 Thread red dog
Hello,   I'm new to this mailing list although I'm using Struts2 for quite some time. I am stuck right now and I decided to ask a quick question:   Is it possible to generate an input field (as well as any other fields) by passing an onclick event for example as parameter? It doesn't seem to be

RE: Formatting in extended theme using Freemarker

2009-09-12 Thread ashwin ala
Thank you for the prompt replies. The BigDecimal rounding somehow always renders the value with extra zeroes appended. I had some success with the freemarker number formatting as suggested by Martin and am getting close to solving this. I changed text.ftl to now use this line: <#if parameters.nameV

RE: Formatting in extended theme using Freemarker

2009-09-12 Thread Martin Gainty
did you try formatting your variable as string.currency? <#assign x=123.35> ${x?string.currency} http://freemarker.sourceforge.net/docs/ref_builtins_number.html other solutions? Martin __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de

Re: [S2.1.6] problem with value attribute for

2009-09-12 Thread David Canos
I think we haven't solve the main problem that is, the context appears in the action attribute of a form builded from s:form tag. is s:form ready to not to add the context in a production enviroment? in my company we've decided, as Tommny, to use html tag instead of thank u guys 2009/9/12 Tomm

Re: Formatting in extended theme using Freemarker

2009-09-12 Thread Paweł Wielgus
Hi, bigdecimal knows its own rounding, can't You use it? Also You can write your own bigdecimal converter, but it think it won't be necessary in this case. Best greetings, Pawel Wielgus. 2009/9/12, ashwin ala : > We currently display BigDecimal values in tags in our jsps. > These values need to