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

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

(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): public class MyAction

[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

Re: [S2] Data entry form for nested beans

2007-04-23 Thread Mark Menard
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 do I allow for data entry into them? Yes, reading is more intuitive than writing

Problems with nested beans and displaying information in a dropdown box

2005-09-29 Thread Justin Galzic
option value=cust3000Amy Madigan/option /select The ActionForm contains the bean with nested beans and the error mesage I get from Tomcat is Cannot find bean under name customer. My form and bean classes are defined as: public CustomerFormBean extends ActionForm { CustomerBase getCustomerBase

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

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 form, then they fill out

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

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

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

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 % nested:root name=information nested:write property=name/br/ nested:write property=addr/br/ nested:iterate property=school nested:write property=schoolname/br/

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 % nested:root name=information nested:write property=name/br/ nested:write property=addr/br/ nested:iterate property=school nested:write

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 % nested:root name=information nested:write property=name/br/ nested:write property=addr/br/ nested:iterate property=school nested:write

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: Validating DynaBean nested beans with a custom validator.

2005-01-12 Thread Daffin, Miles (Company IT)
[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 bean, String property) throws

Validating DynaBean nested beans with a custom validator.

2005-01-11 Thread Daffin, Miles (Company IT)
Dear All, I have a DynaValidatorActionForm like this: form-beans form-bean name=theFormBean type=org.apache.struts.validator.DynaValidatorActionForm form-property name=simpleProperty type=java.lang.String / form-property name=personList type=java.util.ArrayList size=0 /

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); }

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

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

Re: Properties of Nested Beans

2004-10-08 Thread Yves Sy
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 across the entire application. Is this a usual quirk of the way Struts uses reflection

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