Re: Populate nested properties

2018-01-03 Thread José Antonio Delgado Trujillo
ublic Class Bean_A{ >> private Bean_B beanB; >> ... >> } >> >> A form >> >> >> >> >> … >> >> >> When i submit the form the action class populate the nested properties text >> and number? > > If your act

Re: Populate nested properties

2018-01-02 Thread Yasser Zamani
an_B beanB; > ... > } > > A form > > > > > … > > > When i submit the form the action class populate the nested properties text > and number? If your action has getBeanA() method and your Bean_A class has getBeanB() method and your Bean_B cl

Populate nested properties

2018-01-02 Thread José Antonio Delgado Trujillo
Suppose that i have a nested Bean in a model class. public Class Bean_B{ private String text; private int number; ... } public Class Bean_A{ private Bean_B beanB; ... } A form … When i submit the form the action class populate the nested properties text

conversion is not happening for nested properties of action class; (XW-297

2007-12-21 Thread ravi_eze
he XW-297 issue puts forward the same issue but it seems like this is working partially now! any ideas where i am going wrong? pl: help. -- View this message in context: http://www.nabble.com/conversion-is-not-happening-for-nested-properties-of-action-class--%28XW-297-tp14466052p14466052.html Sent

Re: Indexed and Nested properties

2007-09-29 Thread Rick Reumann
On 9/29/07, Radha Krishna <[EMAIL PROTECTED]> wrote: > Hi, > > i am working on indexed,nested properties. i have following entries in my > ActionForm Radha, I think you are making this too complicated trying to use an index in your setter (I think if I recall correctly yo

Indexed and Nested properties

2007-09-29 Thread Radha Krishna
Hi, i am working on indexed,nested properties. i have following entries in my ActionForm private ArrayList countryNames = new ArrayList(); public void setCountryNames(int index,LabelValueBean val) { this.countryNames.add(index,val); } public LabelValueBean

override conversion error for nested properties in struts 2

2007-08-13 Thread pvongboupha
I'm having trouble overriding conversion errors for nested properties in struts 2. I've read the webworks documentation about overriding conversion errors for nested properties and it suggests to add the following to your resource bundle: invalid.fieldvalue.items[*].name=Some type

Re: Trouble with validation of nested properties - indexedListProperty?

2006-12-06 Thread Paul Niedenzu
John Tangney jdtangney.com> writes: > > Hi all, > > I have memorized the docs, scoured the archives, googled 'till my eyes were > crossed, experimented at great length, but have not been able to solve this > riddle. > > I have a JSP that looks like this: > > > > >

Re: [Shale - Clay] nested properties in @managed-bean-name can't work

2006-06-04 Thread Gary VanMatre
ntribute them. Your questions and feedback are welcome here. > Regards, > Phyo Gary > -- > View this message in context: > http://www.nabble.com/-Shale---Clay--nested-properties-in-%40managed-bean-name-c > > an%27t-work-t1727504.html#a4699691 > Sent from the Struts - User foru

Re: [Shale - Clay] nested properties in @managed-bean-name can't work

2006-06-03 Thread phyopiyo
providing a very good example in Rolodex, just a little bit hard for new comer to know what's going on inside that Rolodex example. Nonetheless, rolodex is the best example to explore. Regards, Phyo -- View this message in context: http://www.nabble.com/-Shale---Clay--nested-properti

[Shale - Clay] nested properties in @managed-bean-name can't work

2006-06-03 Thread phyopiyo
Hi I could not get/set property values of nested properties in my managed bean. I am using normal HTML to reference to JSF components defined in my clay-config.xml. Here is the code fragment. ...//supporing HTMLs code here Mock password Mock Error

Re: Nested Properties

2005-12-09 Thread Laurie Harper
Raghuveer wrote: In My web application I have one ActionForm and in that I have one getter setter method for other java bean. In my JSP i want to access the Java bean for display .Display is working fine as text box value and display with bean:write. But whene ever i submit the JSP page ..How t

Nested Properties

2005-12-09 Thread Raghuveer
In My web application I have one ActionForm and in that I have one getter setter method for other java bean. In my JSP i want to access the Java bean for display .Display is working fine as text box value and display with bean:write. But whene ever i submit the JSP page ..How to the value is set

Struts validator Nested properties problem!!!

2005-11-08 Thread Kanuri, Chand
. how can i validate these properties using struts validator(using validator-rules.xml,validation.xml and struts-config.xml). i can validate the simple properties in my action form but how can i validate the nested properties? the simple properties in my form are type and code. i am validating them as

Re: deal with nested properties

2005-07-01 Thread Dewitte Rémi
--- Original Message - > From: "Dewitte Rémi" <[EMAIL PROTECTED]> > To: "Struts Users Mailing List" > Sent: Friday, July 01, 2005 11:36 AM > Subject: Re: deal with nested properties > > > Thanks a lot. More precisely, i must do this to get it work ! > &

Re: deal with nested properties

2005-07-01 Thread Martin Gainty
Rémi- Which version JSTL are you implementing with? Bon Chance, Martin- - Original Message - From: "Dewitte Rémi" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Friday, July 01, 2005 11:36 AM Subject: Re: deal with nested properties Thanks a lot.

Re: deal with nested properties

2005-07-01 Thread Wendy Smoak
From: "Dewitte Rémi" <[EMAIL PROTECTED]> > Thanks a lot. More precisely, i must do this to get it work ! > > because gives me $ind} Do you have <%@ taglib uri="http://java.sun.com/jstl/core"; prefix="c" %> at the top of the page? really should work... assuming you don't just have a typo

Re: deal with nested properties

2005-07-01 Thread Dewitte Rémi
Thanks a lot. More precisely, i must do this to get it work ! because gives me $ind} Le Vendredi 1 Juillet 2005 14:01, Wendy Smoak a écrit : > From: "Dewitte Rémi" <[EMAIL PROTECTED]> > > > In my jsp, I try do do this : > > > > > property="numChild" type="java.

Re: deal with nested properties

2005-07-01 Thread Wendy Smoak
From: "Dewitte Rémi" <[EMAIL PROTECTED]> In my jsp, I try do do this : I took out the table tags and reformatted a bit. Where are the form tags? only works inside a . Assuming you just left them out... I don't think this will be exactly right, but maybe

Re: deal with nested properties

2005-07-01 Thread Dewitte Rémi
; > > > HTH > Nitesh > > > -Original Message- > From: Dewitte Rémi [mailto:[EMAIL PROTECTED] > Sent: Friday, July 01, 2005 5:54 PM > To: Struts Users Mailing List > Subject: deal with nested properties > > Hi all ! > I have another prob

RE: deal with nested properties

2005-07-01 Thread Nitesh Naveen
You should probably have... HTH Nitesh -Original Message- From: Dewitte Rémi [mailto:[EMAIL PROTECTED] Sent: Friday, July 01, 2005 5:54 PM To: Struts Users Mailing List Subject: deal with nested properties Hi all ! I have another problem to

deal with nested properties

2005-07-01 Thread Dewitte Rémi
Hi all ! I have another problem to submit : Here is my bean where Personne is a class of two attributes {name,age} with their getters and setters. In my jsp, I try do do this : And i get this error : No getter method for property children[0].name

Re: Accessing nested properties

2005-06-21 Thread Nitesh
AIL PROTECTED]> To: "Struts Users Mailing List" Sent: Wednesday, June 22, 2005 11:31 AM Subject: Re: Accessing nested properties Guess this is not standard way of doing it... kinda wicked way... try this... might work <% pageContext.setAttribute("fooBar",foos.getBar

Re: Accessing nested properties

2005-06-21 Thread Nitesh
Guess this is not standard way of doing it... kinda wicked way... try this... might work <% pageContext.setAttribute("fooBar",foos.getBar()); %> //do something HTH Nitesh > Fredrik Bostrom wrote: > >> Hi list, >> >> How do I access a nested property in an iterated object? >> >>

Re: Accessing nested properties

2005-06-21 Thread Fredrik Boström
Thanks, but I couldn't wait any longer for a solution, so I rewrote the whole page with jstl instead. Works like a charm :) Regards, Fredrik rajiv verma wrote: Try adding the "type" attribute to the logic:iterate tag. I always do something like this: and it works for me. -Rajiv On 6/2

Re: Accessing nested properties

2005-06-21 Thread rajiv verma
Try adding the "type" attribute to the logic:iterate tag. I always do something like this: and it works for me. -Rajiv On 6/21/05, Fredrik Boström <[EMAIL PROTECTED]> wrote: > No, the foo_array is an array of Foo. Each Foo object holds a Bar object > wich holds a test field (see sample code). I

Re: Accessing nested properties

2005-06-21 Thread Fredrik Boström
No, the foo_array is an array of Foo. Each Foo object holds a Bar object wich holds a test field (see sample code). I'm trying to access the test-field's value from within the iteration over Foo objects. Regards, Fredrik Laurie Harper wrote: Change property="bar.test" to property="test"; as

Re: Accessing nested properties

2005-06-21 Thread Laurie Harper
Change property="bar.test" to property="test"; assuming foos_array is an array of Bar then, within the iterate tag body, 'foos' is bound to an instance of Bar on each iteration. L. Fredrik Bostrom wrote: Hi list, How do I access a nested property in an iterated object? I've got two classes

Accessing nested properties

2005-06-20 Thread Fredrik Bostrom
Hi list, How do I access a nested property in an iterated object? I've got two classes like this (heavily simplified and stripped): class Foo { Bar bar = new Bar(); } class Bar { int test = 10; //any value } In my jsp-page, I'm iterating an array of foo-objects and I want to access the t

Re: Nested properties in DynaActionForm

2005-06-08 Thread Laurie Harper
But I set up iterationLength as a HashMap; I thought BeanUtils could handle maps, so it'd do getIterationLength.get("time"). Perhaps I'm mixing up BeanUtils and JSTL semantics. L. Hubert Rabago wrote: Nested properties with DynaActionForms actually require you to nest o

Re: Nested properties in DynaActionForm

2005-06-08 Thread Hubert Rabago
Nested properties with DynaActionForms actually require you to nest objects. :) Using a property name like "iterationLength.time" would be like saying "getIterationLength().getTime()", and this is what BeanUtils would try to do. Hubert On 6/7/05, Laurie Harper <[EMAIL P

Nested properties in DynaActionForm

2005-06-07 Thread Laurie Harper
I'm probably missing something really obvious but I've been fiddling about with this for a while now. Maybe someone can spot what I'm doing wrong... I'm using DynaActionForms in my Struts app and I'd like to be able to reference a property like this: I tried a form declaration like this:

Nested properties using

2005-01-20 Thread Simon MARTIN
Hi, I'm using an array of SchuelerMatura-Objects in a DynaValidatorForm, being defined like this in struts-config: I want to show and edit those elements in a table, whereas I iterate through the array as follows: This works quite fine for schueler.*n

Re: Nested properties with javascript

2004-11-17 Thread Mark Lowe
2004 11:24:36 -0600, Apte, Dhanashree (Noblestar) > <[EMAIL PROTECTED]> wrote: > > Hi, > > > > In my jsp, i am using nested properties of a form. > > > > RoleForm has UserForm which has agencies, agencyName and agencyId within it. > > The agencies and divisions

Re: Nested properties with javascript

2004-11-17 Thread Mark Lowe
gt; In my jsp, i am using nested properties of a form. > > RoleForm has UserForm which has agencies, agencyName and agencyId within it. > The agencies and divisions need to be displayed in dropdown boxes. > > I got this to display correctly on my jsp using: > > > > &g

Nested properties with javascript

2004-11-17 Thread Apte, Dhanashree (Noblestar)
Hi, In my jsp, i am using nested properties of a form. RoleForm has UserForm which has agencies, agencyName and agencyId within it. The agencies and divisions need to be displayed in dropdown boxes. I got this to display correctly on my jsp using: However, in the javascript for

RE: Nested Properties in ActionForms

2004-11-02 Thread Apte, Dhanashree (Noblestar)
Properties in ActionForms Your accessors on the Form class are private. Make them public. > -Original Message- > From: Apte, Dhanashree (Noblestar) [mailto:[EMAIL PROTECTED] > Sent: Monday, November 01, 2004 9:26 AM > To: 'Struts Users Mailing List' > Subj

RE: Nested Properties in ActionForms

2004-11-02 Thread Karr, David
Your accessors on the Form class are private. Make them public. > -Original Message- > From: Apte, Dhanashree (Noblestar) [mailto:[EMAIL PROTECTED] > Sent: Monday, November 01, 2004 9:26 AM > To: 'Struts Users Mailing List' > Subject: Nested Properties in A

RE: Nested Properties in ActionForms

2004-11-01 Thread David G. Friedman
x27;Struts Users Mailing List' Subject: Nested Properties in ActionForms Hi All, I need to know the correct way to display nested properties of a form on my jsp using struts. I have an ActionForm of type: public class EmployeeInfoForm extends ActionForm { private Name empName;

RE: Nested Properties in ActionForms

2004-11-01 Thread Apte, Dhanashree (Noblestar)
With this, I get: No getter method for property empName.firstName of bean employeeForm. Thanks! -Original Message- From: Ankur Gupta [mailto:[EMAIL PROTECTED] Sent: Monday, November 01, 2004 11:47 AM To: 'Struts Users Mailing List' Subject: RE: Nested Properties in A

RE: Nested Properties in ActionForms

2004-11-01 Thread Ankur Gupta
- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Nested Properties in ActionForms

2004-11-01 Thread Apte, Dhanashree (Noblestar)
Hi All, I need to know the correct way to display nested properties of a form on my jsp using struts. I have an ActionForm of type: public class EmployeeInfoForm extends ActionForm { private Name empName; private Name spouseName; private String getFirstName

Nested properties do not work with html-el:image/html-el:submit ?

2004-10-08 Thread Thomas Dudziak
Hi, I wanted to apply the ideas of the "Html Buttons and Struts - The Right Way" tutorial (http://j2ee-01.lagnada.com/struts/html-buttons.htm) to my struts app, but it does not work at all. Here's the JSP snippet : <%@ taglib uri="http://java.sun.com/jstl/core"; prefix="c" %> <%@ taglib uri="/WE

[repost] Accessing nested properties

2004-09-28 Thread Boukovska, Danielle
Hi all I have a problem with setting the values on a hierarchy of nested properties. I have an ActionForm which has a property A of type HashMap. A is keyed on Strings, and each value of A is a Collection (ArrayList). This collection contains objects of type B. I am trying to iterate through

Accessing nested properties

2004-09-28 Thread Boukovska, Danielle
Hi all I have a problem with getting a hierarchy of nested properties to display. I have an ActionForm which has a property A of type HashMap. A is keyed on Strings, and each value of A is a Collection (ArrayList). This collection contains objects of type B. I am trying to iterate through the

RequiredIf Validator Doesn't Seem To Work With Nested Properties

2004-06-02 Thread Pacheco, Brent
Howdy! I'm just wondering if anyone has run across this issue and if so, is there a workaround? It appears that the requiredif validator does not work correctly when using nested properties. Here

RequiredIf Validator Doesn't Seem To Work With Nested Properties

2004-06-02 Thread Nifty Music
Howdy! I'm just wondering if anyone has run across this issue and if so, is there a workaround? It appears that the requiredif validator does not work correctly when using nested properties. Here

RequiredIf Validator Doesn't Seem To Work With Nested Properties

2004-06-02 Thread Nifty Music
Howdy! I'm just wondering if anyone has run across this issue and if so, is there a workaround? It appears that the requiredif validator does not work correctly when using nested properties. Here