Re: German/Turkey etc decimal use comma in input fields.

2008-02-14 Thread Ned Collyer
It needs to be big decimal as I use other numbers that have no currency information associated. I've fixed it - I was not coverting Number to BigDecimal explicitly at the end of the method, so somewhere in the middle of the OgnlRuntime class it was swallowing up the illegal args or invalid param

Re: problem in validating optiontransferselect element

2008-02-14 Thread Prashant Khanal
Thanks, I will give it a try. On 2/15/08, Jeromy Evans <[EMAIL PROTECTED]> wrote: > > I'm not sure if the validators can be applied to collections. > > You can validate it yourself: > - either implement Validateable in your action and check the property > in the corresponding method; or > - ch

Re: problem in validating optiontransferselect element

2008-02-14 Thread Jeromy Evans
I'm not sure if the validators can be applied to collections. You can validate it yourself: - either implement Validateable in your action and check the property in the corresponding method; or - check the collection in your execute method and return "input" if its invalid If you action exten

Re: German/Turkey etc decimal use comma in input fields.

2008-02-14 Thread Jeromy Evans
Sounds great. Nothing stands out to me. Maybe turn on developer mode to see if there's any errors logged when trying to set the value (struts.devMode=true) Is it possible it can't instantiate an AmountDTO object or call the corresponding getter before setting the BigDecimal value? Also try to

Re: problem in validating optiontransferselect element

2008-02-14 Thread Prashant Khanal
Hello Jeromy, I do have getters for this property as well. I am not been able to find a way out on this. I have to check whether or not the selected list is empty. I could not get any hints from the mailing list archive too. On 2/15/08, Jeromy Evans <[EMAIL PROTECTED]> wrote: > > Prashant Khanal

Re: German/Turkey etc decimal use comma in input fields.

2008-02-14 Thread Ned Collyer
I've implemented this now... but its not working correctly. I'm using Struts 2.0.9 (am aware of the new versions). I have an AmountDTO which has a CurrencyCode (String), and a BigDecimal. I have created an xwork-conversion.properties in the root of the classpath which has the following line in

Re: Bypassing action mappings

2008-02-14 Thread wkbutler
That was it Dave, thanks. I'm using Appfuse and it declares a StaticFilter in the web.xml - adding /struts/* to the includes did the trick. newton.dave wrote: > > --- wkbutler <[EMAIL PROTECTED]> wrote: >> I'm trying to enable the OGNL debug console (using request param >> 'debug=console'),

Re: problem in validating optiontransferselect element

2008-02-14 Thread Jeromy Evans
Prashant Khanal wrote: @RequiredFieldValidator(key="sequence.selectedLevelsNotEmpty", message = "one or more levels must be selected") public void setSelectedLevels(List selectedLevels) { this.selectedLevels = selectedLevels; } As i have to validate the right select element

Rumors about poor performance

2008-02-14 Thread Wendy Smoak
I've got an anecdotal report of Spring MVC performance being *much* better than Struts 2. And zero data to back it up. ;) I'm trying to get the version numbers that were used for testing (most likely the 2.0.11 GA release) and more information on what the tests looked like. I'm told that it was

Re: Dynamic Results

2008-02-14 Thread Dave Newton
--- [EMAIL PROTECTED] wrote: > It seems very odd that OGNL tried issuing chart.setHeight("${height}") Why? It has a java.lang.String parameter; it's matching method signatures. Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] F

Re: Dynamic Results

2008-02-14 Thread stanlick
${height} ${width} I double checked my configuration and I have itJustHappens="true" :) It seems very odd that OGNL tried issuing chart.setHeight("${height}") Caused by: java.lang.NoSuchMethodException: setHeight(java.

Re: Ajax tabbedPanel and sitemesh problem

2008-02-14 Thread Jeromy Evans
Is it possible your decorator is missing the tag in its head section? daveck wrote: It works if I put in the of the html. daveck wrote: Hi, I am having problem using an ajax tabbedPanel with sitemesh. If I don't decorate page.jsp, the tabbedPanel works fine. As soon as I decorate it,

Re: More sitemesh struts2 problems

2008-02-14 Thread Jeromy Evans
daveck wrote: sitemesh is taking the content from the first pair of tags in the main.jsp (my main decorator) and putting it in the tag of the page it's trying to decorate! Is it possible that you're using a remote tab and sitemesh is doing it's job decorating the ajax html response?

Re: radio tag - how to have the items order vertically?

2008-02-14 Thread xianwinwin
is there any concrete example of how to modify an existing template, thanks! -- View this message in context: http://www.nabble.com/radio-tag---how-to-have-the-items-order-vertically--tp15468384p15492763.html Sent from the Struts - User mailing list archive at Nabble.com. --

Re: radio tag - how to have the items order vertically?

2008-02-14 Thread Jeromy Evans
When you use theme="simple" the radio buttons are rendered as plain html inputs: eg. xianwinwin wrote: you suggested: Use theme="simple" on the radio then add breaks between each radio button; or Q: what do you mean by "add breaks between each radio button" Thank you! ---

Re: radio tag - how to have the items order vertically?

2008-02-14 Thread Dave Newton
--- xianwinwin <[EMAIL PROTECTED]> wrote: > you suggested: > > Use theme="simple" on the radio then add breaks between each radio > button; or > > Q: what do you mean by "add breaks between each radio > button" You'll probably need to either: modify an existing template, create your own, or pl

Re: radio tag - how to have the items order vertically?

2008-02-14 Thread xianwinwin
you suggested: Use theme="simple" on the radio then add breaks between each radio button; or Q: what do you mean by "add breaks between each radio button" Thank you! -- View this message in context: http://www.nabble.com/radio-tag---how-to-have-the-items-order-vertically--tp15468384p15492163

[OT] Re: Dynamic Results

2008-02-14 Thread Dave Newton
--- [EMAIL PROTECTED] wrote: > Have you ever been asked to write children's books? :-) Yes, and illustrate. Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: and AJAX

2008-02-14 Thread Martin Gainty
start here http://struts.apache.org/2.0.11/docs/select.html M- - Original Message - From: "Stanley, Eric" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Thursday, February 14, 2008 6:19 PM Subject: and AJAX All, Need some help and or direction in how to chain together

Re: [struts] Dynamic Results

2008-02-14 Thread Dave Newton
--- [EMAIL PROTECTED] wrote: > The ChartAction extends ActionSupport. Wouldn't the > action-mapping-OGNL-parsing be looking for height/width getters on the > ChartAction? I think we're all talking past each other here. It's the responsibility of the *result* to parse OGNL in its parameters: the

and AJAX

2008-02-14 Thread Stanley, Eric
All, Need some help and or direction in how to chain together tags using ajax. I understand the basics of how it works, but I cant make it happen using struts 2. Does anyone have some examples or something I can check out? I would be very appreciative. E. Ryan Stanley Phone: 720.578.3703 Pag

Re: Dynamic Results

2008-02-14 Thread stanlick
D -- Have you ever been asked to write children's books? :-) S On Thu, Feb 14, 2008 at 4:33 PM, Dave Newton <[EMAIL PROTECTED]> wrote: > --- [EMAIL PROTECTED] wrote: > > I understand the quirky plug-in, but that does not explain > > why OGNL is looking for a setHeight(String) on ChartResult! >

Re: [struts] Dynamic Results

2008-02-14 Thread stanlick
Hey Dale -- The ChartAction extends ActionSupport. Wouldn't the action-mapping-OGNL-parsing be looking for height/width getters on the ChartAction? Scott On Thu, Feb 14, 2008 at 4:39 PM, Dale Newfield <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > I am puzzled at why S2 is not execu

Re: [struts] Dynamic Results

2008-02-14 Thread Dale Newfield
[EMAIL PROTECTED] wrote: I am puzzled at why S2 is not executing getHeight() on my ChartAction and substituting the height and weight into these params. This is done by StrutsResultSupport. I would guess that whatever class is implementing your chart result does not extend/leverage that capab

Re: Dynamic Results

2008-02-14 Thread Dave Newton
--- [EMAIL PROTECTED] wrote: > I understand the quirky plug-in, but that does not explain > why OGNL is looking for a setHeight(String) on ChartResult! Because parameters can be for the result (for example, FreeMarkerResult's "contentType" parameter). > I am puzzled at why S2 is not executing

Re: Dynamic Results

2008-02-14 Thread stanlick
I understand the quirky plug-in, but that does not explain why OGNL is looking for a setHeight(String) on ChartResult! If I hardcode ints into these two parms, life is good. I am puzzled at why S2 is not executing getHeight() on my ChartAction and substituting the height and weight into these par

Re: Bypassing action mappings

2008-02-14 Thread Dave Newton
--- wkbutler <[EMAIL PROTECTED]> wrote: > I'm trying to enable the OGNL debug console (using request param > 'debug=console'), and am receiving the error > >There is no Action mapped for namespace /struts and action name > webconsole > > since struts is trying to map the URL. The webconsol

Bypassing action mappings

2008-02-14 Thread wkbutler
Hi - Newbie question- I hope this isn't too obvious. I'm trying to enable the OGNL debug console (using request param 'debug=console'), and am receiving the error There is no Action mapped for namespace /struts and action name webconsole since struts is trying to map the URL. The webcon

Re: serializable and exceptions

2008-02-14 Thread Randy Burgess
I wonder if making your object implement serializable will have any affect on the Xwork object. Have you tried to see what happens? Regards, Randy Burgess Sr. Web Applications Developer Nuvox Communications > From: Brian Relph <[EMAIL PROTECTED]> > Reply-To: Struts Users Mailing List > Date: T

Re: Dynamic Results

2008-02-14 Thread Dave Newton
--- [EMAIL PROTECTED] wrote: > Anyone realize why this is not working? I have get/set methods in my > ChartAction, but the getters are not fetching the values for the Result. > > > > ${height} > ${width} > > Probably bec

More sitemesh struts2 problems

2008-02-14 Thread daveck
sitemesh is taking the content from the first pair of tags in the main.jsp (my main decorator) and putting it in the tag of the page it's trying to decorate! The first pair of tags could be any html tag (, ,, etc...). The code is in a post I left earlier today. Crazy... any help would b

Re: Parameters in URL

2008-02-14 Thread Musachy Barroso
:) On Thu, Feb 14, 2008 at 3:42 PM, Dave Newton <[EMAIL PROTECTED]> wrote: > Teach a man to fish... > > > > --- Musachy Barroso <[EMAIL PROTECTED]> wrote: > > set includeParams = "'none'" > > > > On Thu, Feb 14, 2008 at 3:31 PM, Dave Newton <[EMAIL PROTECTED]> wrote: > > > --- Paranoid_Fabio

Re: Struts2 JSF Integration

2008-02-14 Thread Laurie Harper
Maybe this helps: http://struts.apache.org/2.x/docs/jsf-plugin.html Venkata Nagendra wrote: Hello, I'm new to Struts2 & JSF. Please help with the following questions. Where can I find documentation for Struts2 JSF Integration. What steps I should follow to create a web application using Str

Re: Parameters in URL

2008-02-14 Thread Dave Newton
Teach a man to fish... --- Musachy Barroso <[EMAIL PROTECTED]> wrote: > set includeParams = "'none'" > > On Thu, Feb 14, 2008 at 3:31 PM, Dave Newton <[EMAIL PROTECTED]> wrote: > > --- Paranoid_Fabio <[EMAIL PROTECTED]> wrote: > > > > > > en_US > > > > > > >

Re: Parameters in URL

2008-02-14 Thread Musachy Barroso
set includeParams = "'none'" On Thu, Feb 14, 2008 at 3:31 PM, Dave Newton <[EMAIL PROTECTED]> wrote: > --- Paranoid_Fabio <[EMAIL PROTECTED]> wrote: > > > > en_US > > > > > > > > > I'm using the "url" tag correctly.Am I? > > No. > > > > What i'm doing wron

Dynamic Results

2008-02-14 Thread stanlick
Anyone realize why this is not working? I have get/set methods in my ChartAction, but the getters are not fetching the values for the Result. ${height} ${width} -- Scott [EMAIL PROTECTED]

Re: Parameters in URL

2008-02-14 Thread Dave Newton
--- Paranoid_Fabio <[EMAIL PROTECTED]> wrote: > > en_US > > > > I'm using the "url" tag correctly.Am I? No. > What i'm doing wrong? You're using an unknown value for the "includeParams" attribute. http://struts.apache.org/2.0.11/docs/url.html Dave ---

Re: Parameters in URL

2008-02-14 Thread Paranoid_Fabio
Ok.I've read that but even using includeParams="none" params are shown in the URL. My code is like this: en_US When the user clicks on the English flag, the "showAdminPage" is called switching the Locale. I'm using the "url" tag correctly.Am I? Cli

Re: serializable and exceptions

2008-02-14 Thread Brian Relph
Yes, for my own objects, i am going to implement the serializable interface, however, the xwork class, even if i were to rewrite/replace it, i would also have to rewrite the interceptor to use the new object ... On 2/14/08, Randy Burgess <[EMAIL PROTECTED]> wrote: > > That would be the first thin

Re: Scope interceptor / Practical Apache Struts 2

2008-02-14 Thread Ian Roughley
I just re-ran my local version of the code without problems, and verified that the base class does have a getModel() and setModel() methods. If you contact me off-list I can supply another copy of the code, that might be a resolution. Did you have any problems running the code from chapter 5?

Scope interceptor / Practical Apache Struts 2

2008-02-14 Thread Selckin
Hello, In Chapter 6 of "Practical Apache Struts 2 Web 2.0 Projects", It explains how to use the scope interceptor to create sort of wizard pages. I've been trying to figure these out, but cannot get this to work. Even the included example (downloadable from http://www.apress.com/book/view/159059

Struts2 JSF Integration

2008-02-14 Thread Venkata Nagendra
Hello, I'm new to Struts2 & JSF. Please help with the following questions. Where can I find documentation for Struts2 JSF Integration. What steps I should follow to create a web application using Struts2 & JSF. Where can I get a good working example of Struts2 JSF Integration. If anyone has a w

Re: datetimepicker (type="time") problem - SOLVED!

2008-02-14 Thread Belinda Lawson
Ah-ha! The theme="ajax" attribute has to be on the head tag, not on the picker. That is the ticket. It works like a charm now! Thank you Jeromy! On Wed, Feb 13, 2008 at 5:17 PM, Jeromy Evans < [EMAIL PROTECTED]> wrote: > StrutsTimePicker is an extension of the dropdowndatepicker included with

Re: Parameters in URL

2008-02-14 Thread Musachy Barroso
http://struts.apache.org/2.0.11/docs/why-are-request-parameters-appended-to-our-hyperlinks.html regards musachy On Thu, Feb 14, 2008 at 1:33 PM, Paranoid_Fabio <[EMAIL PROTECTED]> wrote: > > Hi, i'm new to struts. I'm developing a web application and I can't > understand why parameters still in

Parameters in URL

2008-02-14 Thread Paranoid_Fabio
Hi, i'm new to struts. I'm developing a web application and I can't understand why parameters still in the url beetwen actions calls. I try to explain it better (sorry for my poor english): I call "myAction?paramx=valuex" and the url becomes ".../myAction?paramx=valuex" correctly. Then, my new d

Re: Ajax tabbedPanel and sitemesh problem

2008-02-14 Thread daveck
It works if I put in the of the html. daveck wrote: > > Hi, > I am having problem using an ajax tabbedPanel with sitemesh. > If I don't decorate page.jsp, the tabbedPanel works fine. > As soon as I decorate it, the in the > section of page.jsp doesn't make it through to the final decorated

Re: serializable and exceptions

2008-02-14 Thread Randy Burgess
That would be the first thing I would do and generate a serialVersionUID for the pojo. Regards, Randy Burgess Sr. Web Applications Developer Nuvox Communications > From: Brian Relph <[EMAIL PROTECTED]> > Reply-To: Struts Users Mailing List > Date: Thu, 14 Feb 2008 10:38:28 -0600 > To: Struts U

RE: Struts-EL and JSP 2.0

2008-02-14 Thread Karr, David
Just so it's clear, you not only don't need it, but it's presence would probably cause subtle (well, maybe not so subtle) problems. Don't use it in a JSP 2.x+ container. > -Original Message- > From: Antonio Petrelli [mailto:[EMAIL PROTECTED] > Sent: Thursday, February 14, 2008 8:50 AM >

RE: Question on usage of EL in tiles:put name attribute

2008-02-14 Thread Anup Chatterjee
Hi Antonio, Thanks for the response. My answers are inline. - Anup -Original Message- From: Antonio Petrelli [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 13, 2008 11:56 PM To: Struts Users Mailing List Subject: Re: Question on usage of EL in tiles:put name attribute 2008/2/14, A

Ajax tabbedPanel and sitemesh problem

2008-02-14 Thread daveck
Hi, I am having problem using an ajax tabbedPanel with sitemesh. If I don't decorate page.jsp, the tabbedPanel works fine. As soon as I decorate it, the in the section of page.jsp doesn't make it through to the final decorated page. As a result, only the html is displayed. Any help would be app

Re: Struts-EL and JSP 2.0

2008-02-14 Thread Antonio Petrelli
2008/2/14, javaskull <[EMAIL PROTECTED]>: > > I'm using RAD 7.0 and WAS 6.1 which is a JSP 2.0 container. If I'm > using the Struts 1.38 version, should I not put Struts-EL in the WEB- > INF\lib folder? I had read that Struts-EL won't work with JSP 2.0 and > I should not use Struts-EL for that.

serializable and exceptions

2008-02-14 Thread Brian Relph
Hey everyone, I seem to be coming across two issues when running multiple jvms with session sharing ... i have not run into this during my previous testing, since i was not worried about a high-availability environment, and did not test inside a cluster... Anyways, i receive this exception when us

Struts-EL and JSP 2.0

2008-02-14 Thread javaskull
I'm using RAD 7.0 and WAS 6.1 which is a JSP 2.0 container. If I'm using the Struts 1.38 version, should I not put Struts-EL in the WEB- INF\lib folder? I had read that Struts-EL won't work with JSP 2.0 and I should not use Struts-EL for that. Thanks, -G P.S. EL Expressions are not working in

Re: Struts2 WebApp context

2008-02-14 Thread Rushikesh Thakkar
Yea, I will do that. But its still unsolved, so if anybody has got some solution, please feel free to guide me. Thank you.. On Thu, Feb 14, 2008 at 4:18 PM, Ian Roughley <[EMAIL PROTECTED]> wrote: > This question will probably result in an answer / better solution if > asked on the Spring forums.

Re: Struts2 - Xworks action

2008-02-14 Thread Dave Newton
Do you have the S2 filter defined in your web.xml? The URL would be: > http://localhost:8080/appContext/employeeAcct.action where "appContext" is whatever context you're deploying to. --- Arun <[EMAIL PROTECTED]> wrote: > Is it needed that I use s:url[?] It's easier and less error-prone. Da

Re: Struts2 WebApp context

2008-02-14 Thread Ian Roughley
This question will probably result in an answer / better solution if asked on the Spring forums. /Ian -- Ian Roughley From Down & Around, Inc. Consulting * Training / Mentoring * Agile Process * Open Source web: http://www.fdar.com - email: [EMAIL PROTECTED] Rushikesh Thakkar wrote: Thank

Re: Roadmap and activity

2008-02-14 Thread Antonio Petrelli
2008/2/14, Matthew Seaborn <[EMAIL PROTECTED]>: > We are currently trialling Struts 2 as a replacement as the framework of > choice in the place of Struts 1 and was wondering how 'active' is the > development on the current framework? I see that last year a new > release came out every few mont

Re: Struts2 - Xworks action

2008-02-14 Thread Arun
Sorry My web.xml was in wrong place. Now I cannot start my app. It says ERROR: ListenerStart. Why is this hyappening? On 2/14/08, Arun <[EMAIL PROTECTED]> wrote: > > Hi, > > I had been following the example in > http://struts.apache.org/2.x/docs/struts-2-spring-2-jpa-ajax.html to build > my own a

Struts2 - Xworks action

2008-02-14 Thread Arun
Hi, I had been following the example in http://struts.apache.org/2.x/docs/struts-2-spring-2-jpa-ajax.html to build my own app. But I do not want to use the custom library or tiles or ognl or struts tags or dojo. I am using plain jsp and el. I just want to hit the POJO action class thru url. What u

Re: Roadmap and activity

2008-02-14 Thread jeromy . evans
I'll give you my opinion: Yes, struts 2 development is active but the activity ebbs and flows with the volunteers. The "stall" in a release is due to a number of compounding factors: - Struts 2.1 includes some major changes from 2.0.11. 2.0.11 is stable and no *major* bugs are known to be affec

Re: ParametersInterceptor setting values using a String[]

2008-02-14 Thread jeromy . evans
Hi Matthew, The params interceptor is calling setId on ActionSupport (the default action), not on your action that has the setId method, so an exception is being thrown as there's no matching setter whatsoever. You may have a config error. All params are treated as arrays because its valid in HT

Re: [struts] about paramsPrepareParamsStack

2008-02-14 Thread GF
> Almost. Really it should be the other way around, since you don't want > user-set parameters to override your static parameters. I agree with you. Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e

Re: Struts2 WebApp context

2008-02-14 Thread Rushikesh Thakkar
Thanks Ian and Laurie for looking into this. Excuse me Laurie, for missing out an imp. info. that "web.xml also contains spring ContextLoaderListener declaration". I now feel that it is more a spring / tomcat issue and not a really a struts2 issue. I observed the tomcat's console logs while it was

RE: ParametersInterceptor setting values using a String[]

2008-02-14 Thread Matthew Seaborn
Thanks for the prompt response. Having had a look at the code in Xwork that comes as part of Struts 2 (included below) it seems to log it regardless of the devMode. This is the same for 2.0.4 and 2.1.0. I cannot believe this hasn't been spotted before now, so I assume I am doing something wrong.

[S2] Wiki: Crud Demo I, the Update...?

2008-02-14 Thread GF
On this page: http://struts.apache.org/2.x/docs/crud-demo-i.html It proposes this code to set the department of an employee. In the case of an "Update", I think this code will map to a : getEmployee.getDepartment().setDepartmentId(value) Than I want to merge with JPA the employee, but of cour

Re: ParametersInterceptor setting values using a String[]

2008-02-14 Thread Daniel Baldes
Matthew Seaborn wrote: Why is this happening and short of creating my own TypeConverter or blocking it in the logger config, how can I stop this error being logged for GET requests? AFAIK this error is only logged in devMode. ---

ParametersInterceptor setting values using a String[]

2008-02-14 Thread Matthew Seaborn
This appears to have been mentioned a number of times in the Struts 2 and XWork forums but I cannot find a real answer: Using Struts 2.0.11 I am experiencing the following problem. I have an action with the method setId(Integer id) { ... } When this value is set via a HTTP request through

Roadmap and activity

2008-02-14 Thread Matthew Seaborn
We are currently trialling Struts 2 as a replacement as the framework of choice in the place of Struts 1 and was wondering how 'active' is the development on the current framework? I see that last year a new release came out every few months, but there has been nothing since September. _