Re: Highlighting a field with a validation error in struts 2

2008-11-12 Thread Andras Balogh
Hi, I think the easiest way would be to copy from struts2-core-xx.jar the validation.js based on the theme and put it in your source package folder . So example I took template/css_xhtml/validation.js from struts.jar and I modified the javascript function: function addError(e, errorText) { } H

RE: Validation causing me problems

2008-11-12 Thread lathjer
Here is the UserAction class public class UserAction extends AbstractCRUDAction implements ServletRequestAware{ private User user = null; private String password2 = null; private HttpServletRequest request = null; private Logger log = Logger.getLogger(User

Re: Migrating to 2.0.12 General Availability Release

2008-11-12 Thread Adam Ruggles
do you have the tag on your page? Tomi21 wrote: > > Hi everyone, > > I've migrated my web application to the last release 2.0.12 and all things > that require 'dojo' are not working correctly(datetimepicker, tooltip, > etc.). > The error message is "dojo is not defined". > > Does anyone know

Struts 2.1.2 type conversion failing for Integer method.

2008-11-12 Thread Adam Ruggles
I'm trying to figure out why struts/xwork is having issues doing the conversion on an Integer property. Here is the configuration. public class MyAction extends ActionSupport implements Preparable, ModelDriven { private MyObject obj; public void prepare() throws Exception { obj = new MyO

struts 1.3.5: hwo to let user input before the validation

2008-11-12 Thread farmer2008
Hi all, I'm learning validator framework in struts 1.3.5. My first page contains a required field and now I'm facing a problem. Before the page is rendered, it fails to pass the validation so it always displays an error message. How to tell struts 1 to give user a chance to input data before i

RE: Validation causing me problems

2008-11-12 Thread Dave Newton
--- On Wed, 11/12/08, Martin Gainty wrote: > can we see the code for net.dg.oe.user.UserAction.java? > specifically which ActionForward (s) are returned from > net.dg.oe.user.UserAction class Hopefully no ActionForwards are returned in an S2 application. > > From: [EMAIL PROTECTED] > > Here is my

RE: Validation causing me problems

2008-11-12 Thread Martin Gainty
can we see the code for net.dg.oe.user.UserAction.java? specifically which ActionForward (s) are returned from net.dg.oe.user.UserAction class Thanks Martin __ Disclaimer and confidentiality note Everything in this e-mail and any attachments relates

Validation causing me problems

2008-11-12 Thread lathjer
I am new to Struts 2 and I can say that I am enjoying it but I am having a hurdle I can't seem to figure out. I am working on getting validation done within my application and when I try and use the validation frame work I keep getting this error whenever I try and hit any page in my "/user" name

Re: Problem with select

2008-11-12 Thread J J
OK that was I had to submit the form not only link with the action, thanks. De: Dave Newton <[EMAIL PROTECTED]> Para: Struts Users Mailing List Enviado: miércoles, 12 de noviembre, 2008 23:06:30 Asunto: Re: Problem with select --- On Wed, 11/12/08, J J <[EMAIL

Re: Problem with select

2008-11-12 Thread Dave Newton
--- On Wed, 11/12/08, J J <[EMAIL PROTECTED]> wrote: > in my jsp I receive correctly value and key, but I want to > get the selected Item in the action who follows the jsp > (myAction). I think that the value should be stored in the > attribute name (which has to be the same type as listkey), > but

Re: Struts 2 + Tiles 2

2008-11-12 Thread Antonio
2008/11/12 Carlos Curotto <[EMAIL PROTECTED]>: > > org.apache.tiles > tiles-jsp > 2.0.4 > I suggest to use version 2.0.6 Antonio - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:

Re: Problem with select

2008-11-12 Thread J J
in my jsp I receive correctly value and key, but I want to get the selected Item in the action who follows the jsp (myAction). I think that the value should be stored in the attribute name (which has to be the same type as listkey), but I get null in the action, I don't understand what's wrong.

RE: Problem with select

2008-11-12 Thread Peterson, Ryan
What is the field name that you want to have returned (defined by listKey) and what is the field name you want to display to the user (defined by listValue). If they're not "key" and "value" respectively then that's why you're getting null. They need to be named the same as the attributes on th

test

2008-11-12 Thread Chad Darby
test // Chád (shod) Darby - CONFIDENTIALITY NOTICE This e-mail is intended for the sole use of the individual(s) to whom it is addressed, and may contain information that is privileged, confidential and exempt from disclosure under applicable law. You

Re: Highlighting a field with a validation error in struts 2

2008-11-12 Thread Dave Newton
Sorry if this is a dupe; something funky is happening. --- On Wed, 11/12/08, Adam Lister wrote: > I took a look around, and I can't seem to find any way > to select an input that has an error associated with it using css. You should be able to use CSS selectors to get child elements of an element

Struts 2 Tiles plug-in

2008-11-12 Thread stanlick
I am reviewing Tiles 2.1 for an upcoming project. This recent version of tiles supports wildcard definitions, EL, and a few other features that nearly eliminate the XML-HELL that is tiles-defs.xml. It looks like the struts2-tiles-plugin-2.1.2.jar is not compatible with Tiles v 2.1.0 and I would

Problem with select

2008-11-12 Thread J J
Hello, I have this select but it is not working and I don't know what is missing: I have an myAction an attribute called MyList which contains Objects of the same type A. I also have an Attribute of type String in myAction called returnValue. Objects of A type have key and value as attributes

Second box of DoubleSeclect tag wont show the default value even though it's right here.

2008-11-12 Thread Jipu Jiang
Hello everyone, Can anyone help me to solve this issue with doubleselect box of struts2? I would like to display some database data on a page by using some struts2 tags. So we should go to the action class fist to fetch the data, then dispatch the request to the jsp page when success. Everything

Re: Highlighting a field with a validation error in struts 2

2008-11-12 Thread Adam Lister
I took a look around, and I can't seem to find any way to select an input that has an error associated with it using css. The samples I've looked at have ways to style the error message text, the label, etc, but no way to style an input. I'm not seeing this "red border" either... does anyone

Re: Struts 2 + Tiles 2

2008-11-12 Thread Carlos Curotto
Hi everyone, I solved my problem. Look at my pom file, i have the tiles-jsp dependency but version 2.1.0, and the struts2-tiles-plugin added the tiles-api jar but with version 2.0.4, so i have changed my dependency for this: org.apache.tiles tiles-jsp 2.0.4 And that's

Re: Struts 2 + Tiles 2

2008-11-12 Thread Carlos Curotto
Alberto, here are my configuration: *This is the complete stack trace of the excepcion i am getting:* HTTP Status 500 - type Exception report message description The server encountered an internal error () that p

Re: Highlighting a field with a validation error in struts 2

2008-11-12 Thread Dave Newton
--- On Wed, 11/12/08, Adam Lister <[EMAIL PROTECTED]> wrote: > I'm trying to figure out how apply a class or some kind > of style to a input field when there is a validation error > in struts 2. I generally just override the supplied CSS (which does things like giving text boxes with errors a red

Highlighting a field with a validation error in struts 2

2008-11-12 Thread Adam Lister
Hi, I'm trying to figure out how apply a class or some kind of style to a input field when there is a validation error in struts 2. I think this is a fairly common thing (apply a highlighted background color to an errored field to focus the user's attention) but it does not seem to be suppor

Re: Important ActionContext.getContext().getSession() error

2008-11-12 Thread Carlos Luis Zúñiga Sibaja
Having Map does not affect whether the session is null or not, it is just for the compiler to add type safety to the Map, and by the way, the Session Map is String --> Serializable not String --> String. You should probably implement the SessionAware ( http://struts.apache.org/2.0.11/struts2-core/

Re: Important ActionContext.getContext().getSession() error

2008-11-12 Thread Felipe Lorenz
Hi Francisco... I use it in many diferrents browser, and never got this error... but i use the following sentence: Map session = ActionContext.get.. I dont put this !!! On Wed, Nov 12, 2008 at 1:53 PM, Francisco Exposito <[EMAIL PROTECTED]> wrote: > > Hi, > > I have the next sentence in or

Important ActionContext.getContext().getSession() error

2008-11-12 Thread Francisco Exposito
Hi, I have the next sentence in order to get info from session: Map session = ActionContext.getContext().getSession(); And then i put or get info. It works properly in firefox local and remote and in ie local. But if I try to execute it in a remote ie, I get that session is null. Any help pl

Exception Fowarding

2008-11-12 Thread Timothy Orme
Hello, I have a somewhat complex form for user registration which has several dropdown lists that pull from a database. I created an action called "RegisterUserFORM" which creates the dao objects necessary for the dropdowns to be made on the JSP page. This form then submits to another actio

Re: Struts 2 - REST showcase

2008-11-12 Thread Felippe Scheidt
unpack file "struts-2.1.2-apps.zip" available in http://struts.apache.org/download.cgi inside you can find struts-rest-showcase war file. Felippe On Wed, Nov 12, 2008 at 11:29 AM, Narayana S <[EMAIL PROTECTED]> wrote: > Hi, > > can any one please let me know where can i download struts 2 R

Re: How traumatic is to migrate from struts version 1.2 to struts version 2.0 ???

2008-11-12 Thread Néstor Boscán
You can use any IDE. I understand that the new IDEA comes with Struts 2 that will make things easier, this is the first time I heard of Struts 2 support for an IDE. I don't know if there's an Eclipse plugin for Struts 2. Regards, Néstor Boscán On Wed, Nov 12, 2008 at 9:51 AM, Ariel <[EMAIL PROTE

Struts 2 - REST showcase

2008-11-12 Thread Narayana S
Hi, can any one please let me know where can i download struts 2 REST showcase examples zip? Thanks in advance.

Re: How traumatic is to migrate from struts version 1.2 to struts version 2.0 ???

2008-11-12 Thread Ariel
What IDE do you use to make aplications in struts 2 ??? On Fri, Nov 7, 2008 at 3:12 PM, hernan gonzalez <[EMAIL PROTECTED]> wrote: > S2 and S1 are entirely different frameworks. > The "migration" involves rewriting a lot, actions and jsp. > They can coexist, though, and you can migrate gradually,

Migrating to 2.0.12 General Availability Release

2008-11-12 Thread Tomi21
Hi everyone, I've migrated my web application to the last release 2.0.12 and all things that require 'dojo' are not working correctly(datetimepicker, tooltip, etc.). The error message is "dojo is not defined". Does anyone know how can I solve the problem? With version 2.0.11 everything was worki

RE: Multi org support with i18n

2008-11-12 Thread Manish Kumar Wadhwa
Thanks Paweł My requirement is to surve multiple customers in one application. All customers would have the different domain name and different UI. Back end functionality would be the same for all customers. For this I need to provide separate set of locale based resource boundle propertie