[Struts 2.1.8] Has struts a problem with using own converts on nested beans?

2010-02-10 Thread Michael Obster
Hi, does Struts2 has a problem using own converters on nested beans? I created a file with -conversion.properties with following content: order.orderPart.property=de.eposcat.xyz.converter.MyOwnConverter When the action is running the converter is not called (sysout for testing on both

(SOLVED) Indexed nested beans

2008-04-21 Thread Scott Van Wart
I was missing the getPackages() method :( - Scott Scott Van Wart wrote: Hi all, I'm trying to get multiple levels of indexed, nested beans working. I've tried a variety of solutions but I keep getting xwork or ognl exceptions. Here's what I've tried (loosely): p

Indexed nested beans

2008-04-21 Thread Scott Van Wart
Hi all, I'm trying to get multiple levels of indexed, nested beans working. I've tried a variety of solutions but I keep getting xwork or ognl exceptions. Here's what I've tried (loosely): public class MyAction implements Action, StrutsStatics { private List p

Re: [S2] Data entry form for nested beans

2007-04-23 Thread Mark Menard
ditCardBean cc; > SinglePaymentBean[] singlePayment; > } > > I have tried several different ways in my AccountAction to populate this > bean from the data entered on the form. I can, of course, read > multiple layers down inside my nested beans and display it in a JSP, but > how I

[S2] Data entry form for nested beans

2007-04-23 Thread Skip Hollowell
the data entered on the form. I can, of course, read multiple layers down inside my nested beans and display it in a JSP, but how I do I allow for data entry into them? Does one create a simple form that has a bunch of simple text fields, and the action then uses all of these to populate the

Problems with nested beans and displaying information in a dropdown box

2005-09-29 Thread Justin Galzic
I have a form that contains a bean with a nested collection that I'd like to prepopulate but I'm having trouble displaying the correct information.. The output html wiould ideally look like this: Jon Doe Jeff Newworth Amy Madigan The ActionForm contains the bean with nested beans and

Re: validate nested beans part 2

2005-07-19 Thread Dave Newton
Scott Purcell wrote: I dug myself into a corner last night and cannot assemble a viable solution. I created a bean (usercheckout) which holds two nested beans (Shipping), and (Billing). Basically I have the user fill out a shipping form, then they fill out a Billing form. The problem is

Re: validate nested beans part 2

2005-07-19 Thread Michael Jouravlev
On 7/19/05, Scott Purcell <[EMAIL PROTECTED]> wrote: > I dug myself into a corner last night and cannot assemble a viable solution. > > I created a bean (usercheckout) which holds two nested beans (Shipping), and > (Billing). Basically I have the user fill out a shipping fo

validate nested beans part 2

2005-07-19 Thread Scott Purcell
I dug myself into a corner last night and cannot assemble a viable solution. I created a bean (usercheckout) which holds two nested beans (Shipping), and (Billing). Basically I have the user fill out a shipping form, then they fill out a Billing form. The problem is, when I am trying to

Nested Beans and Validation

2005-07-09 Thread Scott Purcell
Hello, I have been using struts for a bit now, and I am trying to see if the following situation is possible. In a merchant checkout situation, I would like to be able to create a bean that has nested beans inside. Eg: This will be a shopping cart checkout, and I have the need for an overall

Re: Nested Beans

2005-05-20 Thread Hubert Rabago
Works for me. If you want, I can send you code later in the day. (Will be busy for most of the afternoon). Or, you can post more of your code and maybe someone else will spot something. Hubert On 5/20/05, Brandon Mercer <[EMAIL PROTECTED]> wrote: > Hubert Rabago wrote: > > >You might find the

Re: Nested Beans

2005-05-20 Thread Brandon Mercer
Hubert Rabago wrote: >You might find the nested tags interesting: > ><%@ taglib uri="/WEB-INF/struts-nested.tld" prefix="nested" %> > > > > > > > > > > > > Still a bit miffed. I'm not sure if it's beanutils that is not copying the List into the new bean... or i

Re: Nested Beans

2005-05-20 Thread Brandon Mercer
Hubert Rabago wrote: >You might find the nested tags interesting: > ><%@ taglib uri="/WEB-INF/struts-nested.tld" prefix="nested" %> > > > > > > > > > > > >Hubert > > Looks like what I want to do. I'll go check it out, thanks for the link. Brandon

Re: Nested Beans

2005-05-20 Thread Hubert Rabago
You might find the nested tags interesting: <%@ taglib uri="/WEB-INF/struts-nested.tld" prefix="nested" %> Hubert On 5/20/05, Brandon Mercer <[EMAIL PROTECTED]> wrote: > Hello Everyone, > I've got an easy one, that is stupifying me because of my tiredn

Nested Beans

2005-05-20 Thread Brandon Mercer
Hello Everyone, I've got an easy one, that is stupifying me because of my tiredness. I've got a POJO with a List in it. The List is a list of beans. In my JSP page I'm trying to iterate over the list of beans. Here goes: public class Information { private String name = null; private St

RE: Validating DynaBean nested beans with a custom validator.

2005-01-12 Thread Daffin, Miles (Company IT)
ishore Senji [mailto:[EMAIL PROTECTED] > Sent: 11 January 2005 18:58 > To: Struts Users Mailing List > Subject: Re: Validating DynaBean nested beans with a custom validator. > > This shoud do it. Isn't it? > > private static PersonFormBean getPersonFormBean(Object

Re: Validating DynaBean nested beans with a custom validator.

2005-01-11 Thread Kishore Senji
This shoud do it. Isn't it? private static PersonFormBean getPersonFormBean(Object bean, String property) throws java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException, java.lang.NoSuchMethodException{ return (PersonFormBean) BeanUtils.getProperty(bean, property); }

Validating DynaBean nested beans with a custom validator.

2005-01-11 Thread Daffin, Miles (Company IT)
Dear All, I have a DynaValidatorActionForm like this: When the related form is submitted the action adds the 'newPerson' to the 'personList' and replaces newPerson, on the DynaBean, with a new PersonFormBean. This all works fine. Now I want to add declara

Re: Struts Validator and Nested Beans

2004-11-22 Thread Hubert Rabago
The Validator plug in can recognize fields names such as "employee.name", and that's the extent of my experience with it. Nested forms/tags allow you to go much deeper than that, and everytime I do, I choose to use my own validate() implementation instead of using Validator. On Mon, 22 Nov 2004 0

Struts Validator and Nested Beans

2004-11-22 Thread David McReynolds
I've not been able to find any examples so I was hoping someone may have tried this before. I am making copious use of nesting on my forms and I was wondering if this will prevent me from using the Struts validation framework? --dlm

Re: Properties of Nested Beans

2004-10-08 Thread Chris Stavrianou
I have narrowed the behaviour down somewhat - it appears to be related to using capital letters in properties. If I change the name of the LocationID String in the LocationBean from locationID to LocationID I get the following error: [ServletException in:/WEB-INF/jsp/admin/location/locselect.jsp]

Re: Properties of Nested Beans

2004-10-08 Thread Yves Sy
t; -Bill Siggelkow > > > > Chris Stavrianou wrote: > > HI all, > > > > I am having a problem with collections of beans nested within beans. > > > > I have found that I can only nested beans and get property names if > > the property names are unique acros

Re: Properties of Nested Beans

2004-10-08 Thread Bill Siggelkow
There is no such restriction -- please provide some code so we can help diagnose your problem. -Bill Siggelkow Chris Stavrianou wrote: HI all, I am having a problem with collections of beans nested within beans. I have found that I can only nested beans and get property names if the property

Properties of Nested Beans

2004-10-08 Thread Chris Stavrianou
HI all, I am having a problem with collections of beans nested within beans. I have found that I can only nested beans and get property names if the property names are unique across the entire application. Is this a usual quirk of the way Struts uses reflection? Are there restrictions on

nested beans and validation?

2004-05-06 Thread Simon Pett
Hi I have a subclass of DynaValidatorForm with nested Forms, some in a list others just singular This works ok however I want to sort the validation out. After searching the list the only solution I have found is to add each nested form's validation to the top level form in the valida