Re: struts2 (2.2.1) adds field error and doesn't return input!!

2013-03-27 Thread lucas owen
NEVER MIND it turns out that a co-worker had touched validate() method: public void validate(){ Map> fieldError = new HashedMap(); setFieldErrors(fieldError); } what i didn´t know is that (calling "save" action) after validateSave, Struts 2 continues executing validate, erasing, in thi

Re: Struts2-jQuery plugin

2012-11-22 Thread lucas owen
tly, but as I said not having used the sj plugin not > sure what you need to do. > > Z. > > > > On 21/11/12 12:46 AM, "lucas owen" wrote: > > >Hi Struts users! > > > >I'm building a web app and I have a serious problem: > > > >in

Re: Struts2-jQuery plugin

2012-11-21 Thread lucas owen
no no, sj:select is working perfectly in index.jsp but not in searchResults.jsp (it's the same code) why? 2012/11/20 Martin Gainty > > Lukasz > i assume this is what you are referring to: > href="%{remoteurl}" > id="echo" > name="echo" > list="languageList" >

Re: how to remove .action suffix in struts 2.1

2012-07-10 Thread lucas owen
ay, I presume that it's requesting style.css and because of the new configuration it's expecting style.css to be an action... -- My configuration: --> in struts.xml struts2 /* --> in web.xml thanks in advance!! 2012/7/10 Łukasz Lenart > 2012/7/10 lucas owen : > >

Re: how to remove .action suffix in struts 2.1

2012-07-10 Thread lucas owen
sorry to resurrect this thread but this solution doesn't work for me (and I'm using struts 2.1.6) do i have to change anything else in web.xml? I have tried from struts2 *.action to struts2 * then it works, but I have problems with the CSS any help is appreciated!! 2010/8/13 Dave Newton

validation method is being executed twice in IE (jCaptcha img)

2012-06-19 Thread lucas owen
Hi Struts 2 Users! I have this little problem here, only in Internet Explorer (it works in Firefox and Chrome): the action is being executed twice I think because in the JSP form I have a captcha with an image and when it fetches the image it creates a new request. Anybody knows how to solve it?

Re: s:if test condition

2010-06-27 Thread lucas owen
OMG! that was it!!! I would never have figured out by myself, THANKS BILL!!! 2010/6/26 Bill Bohnenberger > Since 'activated' is a String, try swapping your single & double quotes, > e.g. > > > -Bill > > On Sat, Jun 26, 2010 at 11:28 AM, lucas owen wrote:

s:if test condition

2010-06-26 Thread lucas owen
Hi Struts 2 users: I was wondering if you can use a s:if test based on a pojo's attribute value: POJO: public class Warning{ String text; String activated; // Y or N } JSP: --> *Warning* null! --> *Warning* not null! --> Activated: --> *Warning* *activated*. --> *Warning* *d

Re: different validate's() for different actions in java class

2010-06-25 Thread lucas owen
ps you can have just one action extend > another and they can share some common validation > code in a method defined in the base action. > > > > On 06/24/2010 07:53 AM, lucas owen wrote: > >> Hi Struts 2 users, >> >> I have in a class different actions, each one wi

different validate's() for different actions in java class

2010-06-24 Thread lucas owen
Hi Struts 2 users, I have in a class different actions, each one with its own method. I want a validate() method for each of these actions, I'm not sure if I can have more than one validate() method in a class, so all the actions would have the same validation. should i split all my actions in d

sx:dateTimePicker disable textfield

2010-06-22 Thread lucas owen
Hi Struts 2 users! I have a jsp in which I allow the users to enter a date: If the user enters anything with wrong format (for instance, ), the datetimepicker changes this value to 01/01/1970 (I dont know why!!) so I want to disable the textbox so that the user only can introduce a date wh

Re: Struts 2 + dates

2010-06-08 Thread lucas owen
thanks to all what a cracks u r 2010/6/8 sandeep kotha > I agree with ken simple best thing to do > > <%@ taglib prefix="sx" uri="/struts-dojo-tags"%> > > . > > On 8 June 2010 23:09, lucas owen wrote: > > > Hi Struts users! > &g

Struts 2 + dates

2010-06-08 Thread lucas owen
Hi Struts users! I need to present a java.util.Date in a jsp. It has to be within a s:textfield because the user can modify/edit this date. The problem is when I display the date , it shows the date with a wrong format. I can use but in this case the date wouldnt be editable... any ideas???

Re: struts2 + javascript doubt

2010-05-26 Thread lucas owen
Hi, I have tried ( note the single quotes) and it works Thank you so much Cimballi, you are a crack 2010/5/24 Cimballi > Yes you can but instead of using you can use directly JSP > EL like {myBean.propertyName}. > > Cimballi > > > On Mon, May 24, 2010 at 1:10

struts2 + javascript doubt

2010-05-24 Thread lucas owen
Hi: is it possible to pass a dynamic parameter to a javascript function??? I'm trying this: javascript function: fPrimerNivel(id){ alert(id); } yields [object] If I try the same, but with javascript:fPrimerNivel(this.id), I get [undefined] I dont know if this is possible, any he

Re: previous action

2010-04-15 Thread lucas owen
of your request url. > > > lucas owen wrote: > >> Hi Struts users: >> >> An easy one: how can I figure out the struts 2 previous action, the one I >> come from? >> >> I ha

previous action

2010-04-15 Thread lucas owen
Hi Struts users: An easy one: how can I figure out the struts 2 previous action, the one I come from? I have tried everything but nothing works... Thanks in advance!!!

s:iterator status doubt

2010-04-12 Thread lucas owen
Hi Struts users: I'm wondering if it would be possible to pass status.index attribute of s:iterator to a javascript function. Something like this: Thanks in advance!

struts2 checkbox

2010-04-09 Thread lucas owen
Hi Struts users: I'm working with Struts 2 (v 2.1.6) and I have the following problem: I have a list of notifications, which I display in a table in a jsp: As you can see, each notification has a checkbox: if the user selects a notification, its Id is sent to the action. So in

problem with getText()

2010-03-08 Thread lucas owen
Hi Struts users: I'm working with Struts 2. I have following property file: solicitud.error.solicitante.enCalidad = Debe introducir en calidad de del solicitante. . . . solicitante.enCalidad = En calidad I know keys are similar, but not the same. When I try to retrieve getText(solicitud.erro

Re: possible s:submit with parameter?

2010-03-08 Thread lucas owen
y form textfield will be submitted when page submitted which is >> effectively a parameter. >> >> Adam >> >> On 5 Mar 2010, at 19:46, lucas owen wrote: >> >> Hi Struts users: >>> >>> I'm wondering if it is possible to pass a paramet

Re: possible s:submit with parameter?

2010-03-06 Thread lucas owen
ameter. > > Adam > > > On 5 Mar 2010, at 19:46, lucas owen wrote: > > Hi Struts users: >> >> I'm wondering if it is possible to pass a parameter inside a s:submit tag. >> >> I'm working with the following form (this is just a sketch) on a webpage,

Re: possible s:submit with parameter?

2010-03-06 Thread lucas owen
Of course!! The problem is I can't use javascript, the application is supposed to work in any computer, any browser...no matter how old they are Any suggestions? 2010/3/5 Burton Rhodes > Sounds like a good use for javascript , not a struts tag. > > On 3/5/10, lucas owen wrote:

possible s:submit with parameter?

2010-03-05 Thread lucas owen
Hi Struts users: I'm wondering if it is possible to pass a parameter inside a s:submit tag. I'm working with the following form (this is just a sketch) on a webpage, in which I collect some user data and display a list of elements (let's say books): ___

horizontal scroll in

2010-03-03 Thread lucas owen
Hi struts users, I have a select with options too large (don't fit on the screen) so I need a horizontal scroll. By the way, it has to work on Firefox and IExplorer. anybody knows a possible solution for this problem? Thanks in advance, Sr. Ilustre

Re: checkbox array

2010-02-24 Thread lucas owen
a select with type=multiple. There is a CheckboxInterceptor > class as well. Maybe there is none for a checkbox array. Anyway, let us have > a look at your JSP to see what S2 tags you are using. If all else fails, you > could write your own interceptor to deal with the issue. > &g

Re: checkbox array

2010-02-23 Thread lucas owen
mmm I'm using Struts 2 (struts2-core-2.1.6) and the last checkbox (of a checkbox array) doesn't get unchecked, as I have previously commented... WHY? It seems it has to be always selected one of the checkboxes at least 2010/2/23 Robert Graf-Waczenski > lucas owen schrieb: > &

checkbox array

2010-02-23 Thread lucas owen
Hi struts users, I'm working with a checkbox array; the problem is that it doesn't work as a single checkbox: I can't have the checkbox array with all checkboxes unchecked (apart from the beginning) Example: I check checkbox1. I check checkbox2. I uncheck checkbox2 --> OK I uncheck checkbox1 -->