Re: customize fielderror

2009-02-13 Thread Sonny Gill
Ahh...right. Assuming that you are using simple theme as default, You will need to extract fielderror.ftl from the struts2 jar, modify it to suit the way you want it, and then add it to your applicaiton. Instructions here - http://struts.apache.org/2.0.14/docs/template-loading.html The other opti

Re: customize fielderror

2009-02-12 Thread Sonny Gill
Not sure what is, but try adding theme="simple" to it. On Fri, Feb 13, 2009 at 12:39 PM, Po Po wrote: > Hi, > > I use struts 2.1.6, > When I used , it's generated html with tag and . > how to configure the component, so the html result is only plain > text message (without html formating ul d

Re: Using Struts 2 native dependency injection

2009-02-12 Thread Sonny Gill
> There are warnings from time to time that we don't expose the details > of the internal DI because we want to reserve the right to change the > inner workings. If you are familiar with Spring, go ahead and use it, > despite all of the available features, it will only bring in what you > want to u

Re: Returning request parameters in action class... How?

2009-02-12 Thread Sonny Gill
Unless you are using a redirect, the JSP already has access to that parameter since it is still the same request. If you are using JSTL, you can access it as ${param.mode}. Some people prefer not to access request parameters directly in JSPs, which is a good thing IMO. In that case, you can create

Re: Using Struts 2 native dependency injection

2009-02-12 Thread Sonny Gill
That's partly the reason I was trying to do this. With Guice already included in Struts, it somehow feels wrong to add Spring just for very basic DI. Sonny On Thu, Feb 12, 2009 at 8:18 PM, Wes Wannemacher wrote: > It's part of Struts, we're using a custom/hacked/forked version of Guice > within

Re: Using Struts 2 native dependency injection

2009-02-11 Thread Sonny Gill
e. This is actually good enough for what I was trying to do, which was to use the Struts' built in DI facilities for very simple cases. Still, if anyone knows how I can avoid doing the type conversion myself, that would be great. Cheers, Sonny On Thu, Feb 12, 2009 at 1:19 PM, Sonny Gill w

Using Struts 2 native dependency injection

2009-02-11 Thread Sonny Gill
Hi guys, I am trying to find out if it is possible to do some basic DI using the native DI support in Struts 2. I can create a bean in struts.xml as - and have it injected into my Action using - @Inject( "beanName" ) Is there a way to pass a primitive or String value to the bean beanName cre

Re: How to array variable declared to set tag

2009-02-11 Thread Sonny Gill
Is the set tag even supposed to work like that? >From looking at the docs (http://struts.apache.org/2.0.14/docs/set.html), it doesn't seems so. I didn't try it, but I would expect it to assign the value to a parameter named 'id[#status.index]' without evaluating that expression. In any case, would

Re: S2 + Ajax Validation + JQuery

2009-02-11 Thread Sonny Gill
On Thu, Feb 12, 2009 at 8:11 AM, Jaarthy wrote: > > Hi alvin, > Please send them to my mail id aarthyj...@yahoo.com > > Thanks, > Aarthy Seriously guys! Why would you want or expect him to email it to you? Alvin is offering to share it with the community. Doesn't it make more sense

Re: Validate() method not working

2009-02-10 Thread Sonny Gill
Hi, How come you posted the same (except for slightly different subject) message twice? Anyway, I answered your question while replying to the other mail. May be we should continue any further discussion in that email. Cheers, Sonny On Tue, Feb 10, 2009 at 9:02 PM, taj uddin wrote: > Hi, > > I

Re: problem with validate() method

2009-02-10 Thread Sonny Gill
You need to include the workflow interceptor for validate() to be invoked. Cheers, Sonny On Tue, Feb 10, 2009 at 10:23 PM, taj uddin wrote: > In my application I have used the validate() method but to my surprise i > found that validate method was not being called at all.

Re: submitting a form without a submit button ajax-style

2009-02-10 Thread Sonny Gill
If using Prototype, you can do it using the Form object. See http://www.prototypejs.org/api/form/request Similarly, Dojo or whatever other library you use should have a way of submitting the form by an Ajax request. Cheers, Sonny On Tue, Feb 10, 2009 at 10:52 PM, ulf n wrote: > > Hi! all > > I'

Re: Hiding s:select control

2009-02-10 Thread Sonny Gill
Whether or not the and s are created depend on the theme see are using for the form. See http://struts.apache.org/2.0.14/docs/form.html If you use the 'simple' theme, no extra html elements will be created. See http://struts.apache.org/2.0.14/docs/themes-and-templates.html Setting the element's

Re: How to display composite listValue in listValue tag in Struts 2 without using iterator

2009-02-03 Thread Sonny Gill
Didn't you also post this at Javaranch (http://www.coderanch.com/t/429374/Struts/show-composite-string-listValue-attribute)? I answered it there, have a look. Cheers, S. On Wed, Feb 4, 2009 at 2:58 AM, Saikat Podder wrote: > > Hello Friends, > > > I am new to Struts 2 & I need your little help