Invalid field value(due to type coversion) in Struts2

2007-10-23 Thread sagarlotiya
Hi Problem in Struts2. I have problem when using OGNL to set the Object directly on Model. For e.g. e.g. Final html which is rendered by struts2 Dermetology Orthopedic_dept Art of Fashion MBA here i am trying to set the Object of "Department" directly on Model "CourseImple

Re: conditional statement in struts2

2007-10-23 Thread jignesh(india)
It's simple dude use s:if and s:else like mentioned below if part else part hope it will help u.! Regards, Jignesh carmi_cd wrote: > > hi i'm new in struts 2..my question is how can i get a value from a > member variable of my action class and > evaluate it in my if-else-if

conditional statement in struts2

2007-10-23 Thread carmi_cd
hi i'm new in struts 2..my question is how can i get a value from a member variable of my action class and evaluate it in my if-else-if statemet? i try to code it but it doesn't evaluate properly..here is my exisiting code. Loading report... Ple

Re: AJax remote DIV flickering ...

2007-10-23 Thread Jeromy Evans
Giovanni Azua wrote: hi all, I have within a S2 self updating Ajax remote DIV a displaytag table that flickers terribly. Is there any cheap way to get rid of the flickering? I think this is an interesting question. Its inevitable that for a moment the content of the div will be replaced in t

Re: Validation of Ajax Tags

2007-10-23 Thread Musachy Barroso
That should work and you will get a validation error, the only problem is that it won't show up on the xhtml theme, so you will have to use musachy On 10/23/07, chengas123 <[EMAIL PROTECTED]> wrote: > > Does anyone have any ideas on how the dojo ajax tags can be validated > (autocompleter, datet

Validation of Ajax Tags

2007-10-23 Thread chengas123
Does anyone have any ideas on how the dojo ajax tags can be validated (autocompleter, datetimepicker, etc.)? I was told this was fixed in 2.1, which I am using, but I cannot get it to work. I'd like to make my autocompleter required and have it validate the same as my other fields. Can I valida

[s2] number format s:textfield tag

2007-10-23 Thread Pedro Herrera
Hi, I have a currency input field (BigDecimal). In my location the decimal point is comma, eg, 10,00(==10.00) must be permitted. Struts is throwing a message error : Invalid field value for field "valor". Thanks Herrera -- View this message in context: http://www.nabble.com/-s2--number-

[S2] Problem with simple theme javascript validation

2007-10-23 Thread Gabriel Belingueres
Hi, I'm trying to perform some basic javascript validation using a form with the simple theme. I just added the onsubmit parameter in the form tag: but the form is ALWAYS posted, so there might be an error somewhere. Looking at the html source code, the form.ftl template generates so this i

Re: Value Stack and Interceptors

2007-10-23 Thread JBL
Interceptors don't go on the value stack. They're similar to filters -- the intercept() method is executed before the action is run, and they can (say) initialize your action, but they're not used as value objects. You might be thinking of the Model Driven interceptor. The Object returned by (you

Exception Handler

2007-10-23 Thread Arun
Hi, I have a problem running the exception handler in struts 1.3 . I am using struts modules config/useraccount, config/blogdigest ..etc defined in web.xml duly. I have set an exception Handler for java.lang.Exception And In the exception handler I wrote public class GeneralExceptionHandl

Re: Why does update action fire on load

2007-10-23 Thread Piero Sartini
Am Montag, 22. Oktober 2007 13:23:38 schrieb zul;jami: > Still I am getting the error, > my execute also fires update on load. > There is no img tag with empty src attribute execute() is triggered when the action is called, not only when you submit your data. Piero -

RE: Struts TLD Parse Error

2007-10-23 Thread Peters, John
Yes. Fixed the problem. I had the jar in the EAR and not in the WEB-INF/lib directory -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Paul Benedict Sent: Monday, October 22, 2007 2:49 AM To: Struts Users Mailing List Subject: Re: Struts TLD Parse Error A

[S2] Problem with Double validation

2007-10-23 Thread kaouki
Hello, I am trying to submit my form but I have a validator problem on a texfield: prixHT is a Double that I set to 19.99, and I validate data with annotations : @Validations( requiredStrings = { ..., @RequiredStringValidator(

Re: [S1] Ping another page from within a struts application

2007-10-23 Thread Piero Sartini
Am Montag, 22. Oktober 2007 19:27:59 schrieb enthucoder: > I have requirement where, i need to send session id of app2 to a listener > page in app1 (i.e non jee based one and i am allowed to send this > information as a 'get'), everytime the a new page loads or user goes to new > page in app2, with

Mailreader tutorial offline?

2007-10-23 Thread TuomoS
Whats wrong with the mailreader tutorial? It has been offline for quite a while now.. http://www.planetstruts.org/struts2-mailreader/Tour.do -- View this message in context: http://www.nabble.com/Mailreader-tutorial-offline--tf4677083.html#a13363078 Sent from the Struts - User mailing list arch

AJax remote DIV flickering ...

2007-10-23 Thread Giovanni Azua
hi all, I have within a S2 self updating Ajax remote DIV a displaytag table that flickers terribly. Is there any cheap way to get rid of the flickering? The showcase example also flicker slightly but when there is more content then it becomes really bothering. TIA, regards, Giovanni --

Re: OT: displaytag remember sort config ..

2007-10-23 Thread Giovanni Azua
Just for the records ... I managed to have it working so displaytag re-sorts the last user selection whenever the AJAX DIV refreshes. It works using the includeParams option set to "get": <%@ page contentType="text/html; charset=UTF-8" %> <%@ taglib prefix="display" uri="http://displaytag.sf.n

Multiselect tags

2007-10-23 Thread Stephen de Vries
Are there any examples of how to write Actions for the multiselect tags such as documentation only explains how to use the tags themselves, but not what the action or model should look like and whether any conversion is required between the two. I have already trawled through nabble to fi