Re: s:a tag

2009-01-09 Thread Nils-Helge Garli Hegvik
Then I probably have misunderstood your question. Could you explain your problem in a little more detail? Nils-H On Thu, Jan 8, 2009 at 7:53 PM, Jaarthy wrote: > > But how can I implement Ajax in that? > > > Nils-Helge Garli wrote: >> >> You can combine and to create your links. >> >> http:/

expression type validator and getText()

2009-01-09 Thread stanlick
I need to fetch a locale specific string for an evaluation and cannot get the syntax worked out: !title.toUpperCase().equals( getText("titleMatch") ) Should this work? I also tried: !title.toUpperCase().eq

AJAX with JSON, dojo rpc (smd)

2009-01-09 Thread Ercan Kayaonu
Hi all, I have an Action class which has basic CRUD methods in it. I'm using convention plugin. I want to ajax-call list, save, and delete methods using dojo rpc. (I included my UsersAction class below). I did these kind of things in php, but it is, at least for now, very difficult for me to unders

Re: OGNL exceptions are swallowed by struts2

2009-01-09 Thread Musachy Barroso
The OgnlValueStack swallows the exceptions. Always rethrowing the exception is not an option, as that it not wanted in many places. The challenge is to do some refactoring, so the exceptions are thrown only when OgnlValueStack:find(...) is called from the view. I will play around with it, see if I

[S2] Using ajax head tag makes entire application slow

2009-01-09 Thread Neil Aggarwal
Hello all: When I include this tag in the head tag of my layout: My webapp seems to take about a second per page load. If I remove that tag, things are lightning fast. I only need the datetimepicker struts tag, nothing else. Is there a way to make this faster? Thanks, Neil -- Neil

Re: Re : Struts2 ajaxified autocompleter is shrinking when use back tab

2009-01-09 Thread Sashik
Did you fix it? Do I need to upgrade my IE version from 6 to 7? Does that helps to fix this issue? Also I read (some where) that in Struts 2.1.x they have some fixes for IE when using Ajax. was it true? But migrating from 2.0.11 to 2.1.x is simpler and im end of my project completion. Any help

Re: Conditional Annotation based Validation

2009-01-09 Thread Dirk Forchel
Thank you for your good explanation. Nevertheless I'll prefer to do it the Java way 'cos the validation is more complicated than just do some tests for required string properties. Dirk Forchel Greg Lindholm wrote: > > I see what you are asking for, but sorry I'm sure it doesn't exist, there >

Re: OGNL exceptions are swallowed by struts2

2009-01-09 Thread hernan gonzalez
> > I agree, Struts2 sucks big time in > this regard while being an excellent framework otherwise. > > Robert Judging from my (not very long) experience with Struts2, I agree wholeheartedly with that. It really seems badly broken that the framework (OGNL, in this case) swallows exceptions (even i

Re: [S2] best practice for reading POST body in an action

2009-01-09 Thread Roger Varley
On Thursday 08 January 2009 18:12:48 John Cartwright wrote: > No, in this case the mime type is not application/x-www-form-urlencoded > and not sent w/ KVP from a form. The body of the POST is all content. > Hmm, then I'm sorry I'm probably not going to be much help. Although I've done quite a bi

Re: Conditional Annotation based Validation

2009-01-09 Thread Greg Lindholm
I see what you are asking for, but sorry I'm sure it doesn't exist, there is no annotation combining logic, each validation annotation has to stand-on-its-own. So to do what you are asking, you couldn't use the @RequiredStringValidator, you would need to use a Expression Validator and combine the

S2 Grouping Validators

2009-01-09 Thread Andreas Sachs
Hello, can anybody give me some hints on the configuration of validators to avoid redundant configuration. Lets say, you have 3 actions, all off them have a username field. To validate the username three build-in validators are used (with annotation or via xml). If the validation rule changes,

Re: [S2] Result Type Dispatch problem with relative Action calls

2009-01-09 Thread Dave Newton
Dirk Forchel wrote: I could not resolve my problem yet. How can I use the "dispatch" result type to forward to actions (or maybe tiles definitions) rather than to JSPs? You can't, AFAIK. You use "redirectAction" to go to actions, and "tiles" to go to Tiles. IIRC "tiles" aren't redirects, so yo

Re: - Data Not Displayed

2009-01-09 Thread Paweł Wielgus
Hi Himanshu, i don't know it for sure but try: Best greetings, Paweł Wielgus. 2009/1/9 Himanshu Rathore : > Hi, > > I'm trying to display data in a drop-down but no success till now. I checked > online documents and other examples but somehow they are not working for me. > > Here is how I have i

Re : Struts2 ajaxified autocompleter is shrinking when use back tab

2009-01-09 Thread François Rouxel
I had the same problem with FF3 and IE7.. - Message d'origine De : Sashik À : user@struts.apache.org Envoyé le : Jeudi, 8 Janvier 2009, 22h27mn 48s Objet : Struts2 ajaxified autocompleter is sh

- Data Not Displayed

2009-01-09 Thread Himanshu Rathore
Hi, I'm trying to display data in a drop-down but no success till now. I checked online documents and other examples but somehow they are not working for me. Here is how I have implemented the code: *Action class* private String countryId; private List countryList = new ArrayList(0); publi

Re: how to get config info from portlet.xml in struts2 action

2009-01-09 Thread Nils-Helge Garli Hegvik
Ah...of course. I should have double checked the portlet api docs. Thanks for the feedback. Good idea for a future improvement. Nils-H On Fri, Jan 9, 2009 at 7:41 AM, Daoyue Ming wrote: > servlet-config is used for getting parameter, session objects, etc. > > however I found the solution for my

Re: OGNL exceptions are swallowed by struts2

2009-01-09 Thread Andy Sykes
If you're running with log4j in your app, set the logging priority on the root logger to debug. It spews a lot of messages, and the type converter messages are there - I was using this facility the other day when trying to upgrade an existing app from 2.0.x to 2.1.2. Andy. On 9 Jan 2009, a

Re: OGNL exceptions are swallowed by struts2

2009-01-09 Thread Robert Graf-Waczenski
Hi! To my knowledge, you have to enable devMode. This gives you a lot of debugging output and exception stack traces on the console. The drawback is that it makes your application rather sluggish. Yes, the article you quote is well known. I agree, Struts2 sucks big time in this regard while

Re: Error Throwing With Struts 2 Tags

2009-01-09 Thread Vincent Lin
It's really an annoying issue of struts2. It took me long time to troubleshoot this kind of problem. One time I came across "NoClassDefFoundError". It was swallowed by xwork. I wouldn't know it if I'd not used eclipse debbuger to step in the code. I wonder why this simple issue is not fixed in st

OGNL exceptions are swallowed by struts2

2009-01-09 Thread Vincent Lin
Hi, Is there anyway to get better error message there's an error occurring in ognl? Everytime there's an exception in ognl it's swallowed. And I ran into some "No Result Found for XxxAction" error. It's extremely hard to debug, because there's no any useful information in it. All of them seem

[S2] Result Type Dispatch problem with relative Action calls

2009-01-09 Thread Dirk Forchel
I could not resolve my problem yet. How can I use the "dispatch" result type to forward to actions (or maybe tiles definitions) rather than to JSPs? In my application are some situations where I have to forward the error messages or the field validation errors to to a different action. I can not u