Re: disabling textfield....problem

2008-07-21 Thread Narayana S
Thanks Jishnu, i applies ReadOnly , is working fine. Thanks a lot. On Mon, Jul 21, 2008 at 4:46 PM, Jishnu Viswanath < [EMAIL PROTECTED]> wrote: > If you still want to send the data, make it read only > > Regards, > > Jishnu Viswanath > > Software Engineer > > *(+9180)41190300 - 22

Re: need some help regarding Display List and Update In Struts2

2008-07-21 Thread Lukasz Lenart

Re: [S2] Unable to access passed parameters in an included file

2008-07-21 Thread Dave Newton
--- On Mon, 7/21/08, wrote: > Feels like I missed something obvious The note on [1] where it says that params aren't available on the stack, I think. I don't recall the reason at the moment, though. Dave [1] http://struts.apache.org/2.x/docs/include.html

[S2] Unable to access passed parameters in an included file

2008-07-21 Thread Becky . L . O'Sullivan
Hi everyone, I'm using to include a page fragment in Struts 2.1.2. (also tried with and the result did not change) Ensuring the values are passed as Strings using OGNL syntax: I know nav1 makes it into header.jsp as a request parameter because this snippet yields "nav1

Dojo javascript errors with ajax theme. please help

2008-07-21 Thread Pranav
Hi, I am using in my jsp files. I have included everything as per struts2 docs. But when I launch the page in FireFox, they show me 404 errors for several javascript files. Example are: ../struts/dojo/src/i18n/calendar/nls/en-us/gregorian.js ../struts/dojo/src/i18n/calendar/nls/en/gregorianEx

Re: need some help regarding Display List and Update In Struts2

2008-07-21 Thread Gabriel Belingueres
I recommend using displaytag [1] for showing the user list. How to know which user you want to delete/update? You need to add a parameter to the delete/update action URL to identify the specific user, usually the user's primary key or if your user list is stored in session scope you could use the

need some help regarding Display List and Update In Struts2

2008-07-21 Thread hisameer
Hi everyone I was just going through the nabble.com and I found very nice help about struts2. Now I need some more help about it. I hope somebody is kind enough to help me. My problem is that I have to display all the users from the database and all the information related to the user(firstName,

Re: [S2] Conversion validation issue

2008-07-21 Thread Lukasz Lenart
> Does this means eliminating the "conversionError" interceptor from the > default stack? Yes ;-) Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Re: issue with ajax submit

2008-07-21 Thread matthieu martin
2008/7/21 Jeromy Evans <[EMAIL PROTECTED]>: > matthieu martin wrote: > >> Hello all. >> >> I can't figure out what this message means, or even where does it come >> from. >> I have no way to know which request returns this to me ... I'm lost. >> >> Is anyone able to help me ? >> >> > > Dojo uses a

[S2] Conversion validation issue

2008-07-21 Thread Gabriel Belingueres
Hi, I'm using Struts 2.1.2: I have a validation file like this: El código de validación es requerido 1 El código de validación debe ser un número positivo codigoValidacion is an Integer prop

Re: Execute and wait interceptor and calling an action more than once

2008-07-21 Thread Burak Doğruöz
I don't think that it can be done with an ajax approach. With ajax or not, concurrent requests for the same action name returns first action's result. I tried this simple scenario with an action which outputs its query parameter. I also added a thread.sleep in execute method to gain extra time to

Re: Execute and wait interceptor and calling an action more than once

2008-07-21 Thread Dave Newton
--- On Mon, 7/21/08, Burak Doğruöz wrote: > The constraint here is about ExecAndWaitInterceptor storing > and returning multiple copies of one certain action. This > constraint is already in the documentation. We are looking > for a turn around. I was referring to the better solution, Jeremy's Aja

Re: Execute and wait interceptor and calling an action more than once

2008-07-21 Thread Burak Doğruöz
The constraint here is about ExecAndWaitInterceptor storing and returning multiple copies of one certain action. This constraint is already in the documentation. We are looking for a turn around. For example if we open 2 browsers (which share the same session) and call same action (which has ExecA

Re: Error global-Forwards

2008-07-21 Thread Dani
Lukasz Lenart escribió: public class MostrarUsuarioAction extends Action { You have to override execute() method not implement your own method, Struts1 will not use it. The deafult implementation just return null, so it means, stop processing. Change your method name mostrarUsuario() to ex

Re: Execute and wait interceptor and calling an action more than once

2008-07-21 Thread Burak Doğruöz
So, how to override this ExecAndWiatInterceptor behaviour? Is it possible to map by some key other than action name? If we use wildcards while defining action mapping, can we bypass this constraint? This way we can call myAction1, myAction2 and myActionRandomN which trigger myAction.action. Does E

Re: Execute and wait interceptor and calling an action more than once

2008-07-21 Thread Dave Newton
--- On Mon, 7/21/08, Burak Doğruöz wrote: > I think, even with an ajax approach, concurrent requests > for same action would result in unexpected output as these > actions are stored by same action name at background. Each request would get its own action instance. The DOM element being updated

Re: Execute and wait interceptor and calling an action more than once

2008-07-21 Thread Jeromy Evans
Burak Doğruöz wrote: Thanks for your response, I think, even with an ajax approach, concurrent requests for same action would result in unexpected output as these actions are stored by same action name at background. So in fact this is not a presentation constraint but a processing constraint. W

RE: S2: Multiple unknown handlers?

2008-07-21 Thread Brad A Cupit
On Sat, Jul 19, 2008 at 9:52 PM, Paul Benedict <[EMAIL PROTECTED]> wrote: > Using Struts 2.0.x, is it possible to have multiple unknown handlers? I am > using the Codebehind plugin and want to extend it. On Sat, Jul 19, 2008 at 11:41 PM, Musachy Barroso <[EMAIL PROTECTED]> wrote: > You will need t

Re: Execute and wait interceptor and calling an action more than once

2008-07-21 Thread Burak Doğruöz
Thanks for your response, I think, even with an ajax approach, concurrent requests for same action would result in unexpected output as these actions are stored by same action name at background. So in fact this is not a presentation constraint but a processing constraint. We can neither prevent c

unwanted field reset after failed validation on submit

2008-07-21 Thread Tom Vertommen
Hello, I made a page to update persons(firstname, lastname,...). What I do is fill a form with the help of ${person.firstname}, ${person.lastname},... The problem I am having is when I submit and validation fails, my fields (firstname, lastname,...) are being reset, but not to the data the

Re: Execute and wait interceptor and calling an action more than once

2008-07-21 Thread Giovanni Azua
hi, I think that actually you can run more than one execAndWait at the time for the same Session, the problem though is that you have no guarantee on which result will be returned to which browser e.g. Session 1 - browser 1 - triggers execAndWait => gets result of action triggered by Browser

Re: Execute and wait interceptor and calling an action more than once

2008-07-21 Thread Jeromy Evans
Burak Doğruöz wrote: Hi, Our application lets user to run 2 (or more) copies of same action at the same time (possibly with different parameters) in a frameset. In execute and wait interceptor documentation ( http://struts.apache.org/2.x/docs/execute-and-wait-interceptor.html), it says that exec

Execute and wait interceptor and calling an action more than once

2008-07-21 Thread Burak Doğruöz
Hi, Our application lets user to run 2 (or more) copies of same action at the same time (possibly with different parameters) in a frameset. In execute and wait interceptor documentation ( http://struts.apache.org/2.x/docs/execute-and-wait-interceptor.html), it says that execute and wait intercepto

Form Submission of arrays

2008-07-21 Thread Dimitris Mouchritsas
Hi all, we've got a form where there's a table. In each row there's a hidden field for the id, a comment (text field) and a select box. What's the best way to submit this form? Create a form bean that will accept arrays as input? e.g. public class CommentForm { private String[] orgIds; priva

RE: disabling textfield....problem

2008-07-21 Thread Jishnu Viswanath
If you still want to send the data, make it read only Regards, Jishnu Viswanath Software Engineer *(+9180)41190300 - 222(Ext) ll * ( + 91 ) 9731209330ll Tavant Technologies Inc., www.tavant.com PEOPLE :: PASSION :: EXCELLENCE -Original Message- From: ManiKanta G [mailto:[EMAIL PROTE

Re: Error global-Forwards

2008-07-21 Thread Lukasz Lenart
> public class MostrarUsuarioAction extends Action { You have to override execute() method not implement your own method, Struts1 will not use it. The deafult implementation just return null, so it means, stop processing. Change your method name mostrarUsuario() to execute() and should be ok. If

Re: disabling textfield....problem

2008-07-21 Thread ManiKanta G
According to html, browser will not send the disabled fields to the server along with the request headers. So you've to send that value in the form of a hidden value. Regards, ManiKanta Narayana S wrote: Hi, i have a text field, with disabled property set to TRUE, and when i coming bac

disabling textfield....problem

2008-07-21 Thread Narayana S
Hi, i have a text field, with disabled property set to TRUE, and when i coming back to the same page with some error messages for the other fields, it is missing the textfield value, it is not retaining like the non-disabled fields where i am missing? plz help me..

Re: Error global-Forwards

2008-07-21 Thread Dani
Lukasz Lenart escribió: Copy-paste your jsp and/or action and we will see.. Regards I call the method getUsuarios() that should return all the idusers of the database (just created and working, tested) . This method returns an Arraylist (mostrar) which is saved in a bean session. Afterward

Re: [S2] Possible issue w/ S2.1.3

2008-07-21 Thread Don Brown
Doh, we really need functional tests. I'll try to take a look at it in the next few days if no one beats me to it. Don On Mon, Jul 21, 2008 at 1:57 PM, Dave Newton <[EMAIL PROTECTED]> wrote: > --- On Sun, 7/20/08, Jeromy Evans wrote: >> Dave Newton wrote: >> > --- On Sun, 7/20/08, Musachy Barros