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(){ MapString, ListString fieldError = new HashedMap(); setFieldErrors(fieldError); } what i didn´t know is that (calling save action) after validateSave, Struts 2 continues executing validate,

Re: Struts2-jQuery plugin

2012-11-22 Thread lucas owen
the sj plugin not sure what you need to do. Z. On 21/11/12 12:46 AM, lucas owen sr.ilus...@gmail.com wrote: Hi Struts users! I'm building a web app and I have a serious problem: index.jsp is a search form with 2 combo boxes which i populate with sj:select (this works correctly) when

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 mgai...@hotmail.com Lukasz i assume this is what you are referring to: sj:select href=%{remoteurl} id=echo name=echo

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 filter-mapping filter-namestruts2/filter-name url-pattern*.action/url-pattern /filter-mapping to filter-mapping

Re: how to remove .action suffix in struts 2.1

2012-07-10 Thread lucas owen
-- in web.xml thanks in advance!! 2012/7/10 Łukasz Lenart lukasz.len...@googlemail.com 2012/7/10 lucas owen sr.ilus...@gmail.com: filter-mapping filter-namestruts2/filter-name url-pattern*/url-pattern /filter-mapping It should be /* And what kind of error do you have with css

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

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 bill98...@gmail.com Since 'activated' is a String, try swapping your single double quotes, e.g. s:if test='%{warning.activated==Y}' -Bill On Sat, Jun 26, 2010 at 11:28 AM, lucas

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: s:if test=*%{warning==null}* -- *Warning* null! /s:if s:else -- *Warning* not null! -- Activated: s:property

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

2010-06-25 Thread lucas owen
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 with its own method. I want a validate() method for each of these actions, I'm

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

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: sx:datetimepicker name=*dDate* label=*Date* iconPath=* /images/ico-calendar.gif* displayFormat=*dd/MM/*/ If the user enters anything with wrong format (for instance, ), the datetimepicker changes this value to

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 s:textfield name=myDate/, it shows the date with a wrong format. I can use fmt:formatDate value=${myDate}

Re: Struts 2 + dates

2010-06-08 Thread lucas owen
thanks to all what a cracks u r 2010/6/8 sandeep kotha sandeep4u.ko...@gmail.com I agree with ken simple best thing to do %@ taglib prefix=sx uri=/struts-dojo-tags% sx:head / sx:datetimepicker key=bean.date displayFormat=dd/MM//. On 8 June 2010 23:09, lucas owen sr.ilus

Re: struts2 + javascript doubt

2010-05-26 Thread lucas owen
{myBean.propertyName}. Cimballi On Mon, May 24, 2010 at 1:10 PM, lucas owen sr.ilus...@gmail.com wrote: Hi: is it possible to pass a dynamic parameter to a javascript function??? I'm trying this: h3 id=s:property value=*'info.id_html'*/ class=*head* a href

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: h3 id=s:property value=*'info.id_html'*/ class=*head* a href=*javascript:fPrimerNivel(*s:property value=*'info.id_html'*/*);* s:property value=*info.titulo_menu*//a /h3 javascript function:

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!!!

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 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: s:iterator value=*notificationList* var=*notification* status=*stat* tr td scope=*row* s:checkbox name=*IdNotification* value=*%{selected}*

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: s:iterator value=*notificationList* var=*notification* tr td scope=*row*s:checkbox name=*notificationIdList* value=* %{selected}*

Re: possible s:submit with parameter?

2010-03-08 Thread lucas owen
textfield will be submitted when page submitted which is effectively a parameter. Adam On 5 Mar 2010, at 19:46, lucas owen sr.ilus...@gmail.com 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

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

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 burtonrho...@gmail.com Sounds like a good use for javascript , not a struts tag. On 3/5/10, lucas owen

Re: possible s:submit with parameter?

2010-03-06 Thread lucas owen
a parameter. Adam On 5 Mar 2010, at 19:46, lucas owen sr.ilus...@gmail.com 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, in which I collect some user data

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 s:select

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
for 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. Robert lucas owen

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 --

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 r...@lsoft.com lucas owen schrieb: Hi