Re: How Smart is DynaActionForm?
If you take an example of a traditional action form, the same would happen with that. If you've populated the form in the referring action then you should have an insight into how action forms and actions work together. The form bean should always be there, but know it won't self populate just like a standard action form. You can scope the form to session or repopulate as part of the action invoked via the form submission. cheers mark On Thursday, Jun 5, 2003, at 07:35 Europe/London, Dan Tran wrote: hmm, I thought the topic was designed to catch attention ;) -D - Original Message - From: Dan Tran [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Wednesday, June 04, 2003 2:40 PM Subject: How Smart is DynaActionForm? Hello, I have an ArrayList as a element of an DyanActionForm. The list contains elements of another bean that has properties as strings. I can populate the DynaActionForm in my action and have the JSP to display it . The question here is does DynaActionForm has the intelligent to reconstruct itself after the form is submited back to the server? I tried but the ArrayList always come back emtpy.. Any suggestion? -Dan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How Smart is DynaActionForm?
Hi Mark, thanks for reply. I knew it is a popular topic but at the time, I was not able to think of good search key for looking into the archive. Until I tumbled on a old post regarding lazyList. and the answer is there just like you have explained ;-) I hope Struts 1.2 will incorporate the patch submit by Goodwin to solve this scenario since I know lots of people have to create their own form bean to handle dynamic collection. Thanks and thanks ;-) -Dan - Original Message - From: Mark Lowe [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Saturday, June 07, 2003 10:52 AM Subject: Re: How Smart is DynaActionForm? If you take an example of a traditional action form, the same would happen with that. If you've populated the form in the referring action then you should have an insight into how action forms and actions work together. The form bean should always be there, but know it won't self populate just like a standard action form. You can scope the form to session or repopulate as part of the action invoked via the form submission. cheers mark On Thursday, Jun 5, 2003, at 07:35 Europe/London, Dan Tran wrote: hmm, I thought the topic was designed to catch attention ;) -D - Original Message - From: Dan Tran [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Wednesday, June 04, 2003 2:40 PM Subject: How Smart is DynaActionForm? Hello, I have an ArrayList as a element of an DyanActionForm. The list contains elements of another bean that has properties as strings. I can populate the DynaActionForm in my action and have the JSP to display it . The question here is does DynaActionForm has the intelligent to reconstruct itself after the form is submited back to the server? I tried but the ArrayList always come back emtpy.. Any suggestion? -Dan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How Smart is DynaActionForm?
I'm still not beard-sporting on these types of issues... but... wouldn't that start to cloud the demarcation between model and controller? On Saturday, Jun 7, 2003, at 19:02 Europe/London, Dan Tran wrote: Hi Mark, thanks for reply. I knew it is a popular topic but at the time, I was not able to think of good search key for looking into the archive. Until I tumbled on a old post regarding lazyList. and the answer is there just like you have explained ;-) I hope Struts 1.2 will incorporate the patch submit by Goodwin to solve this scenario since I know lots of people have to create their own form bean to handle dynamic collection. Thanks and thanks ;-) -Dan - Original Message - From: Mark Lowe [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Saturday, June 07, 2003 10:52 AM Subject: Re: How Smart is DynaActionForm? If you take an example of a traditional action form, the same would happen with that. If you've populated the form in the referring action then you should have an insight into how action forms and actions work together. The form bean should always be there, but know it won't self populate just like a standard action form. You can scope the form to session or repopulate as part of the action invoked via the form submission. cheers mark On Thursday, Jun 5, 2003, at 07:35 Europe/London, Dan Tran wrote: hmm, I thought the topic was designed to catch attention ;) -D - Original Message - From: Dan Tran [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Wednesday, June 04, 2003 2:40 PM Subject: How Smart is DynaActionForm? Hello, I have an ArrayList as a element of an DyanActionForm. The list contains elements of another bean that has properties as strings. I can populate the DynaActionForm in my action and have the JSP to display it . The question here is does DynaActionForm has the intelligent to reconstruct itself after the form is submited back to the server? I tried but the ArrayList always come back emtpy.. Any suggestion? -Dan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How Smart is DynaActionForm?
Mark, I think Brandon Goodin proposed a batch to enhance DyanActionForm to automaticly pupolating dyanamic list with a known element type It has nothting to do controller and model. Just an enhancement to the tool. Am I wrong? -Dan - Original Message - From: Mark Lowe [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Saturday, June 07, 2003 11:28 AM Subject: Re: How Smart is DynaActionForm? I'm still not beard-sporting on these types of issues... but... wouldn't that start to cloud the demarcation between model and controller? On Saturday, Jun 7, 2003, at 19:02 Europe/London, Dan Tran wrote: Hi Mark, thanks for reply. I knew it is a popular topic but at the time, I was not able to think of good search key for looking into the archive. Until I tumbled on a old post regarding lazyList. and the answer is there just like you have explained ;-) I hope Struts 1.2 will incorporate the patch submit by Goodwin to solve this scenario since I know lots of people have to create their own form bean to handle dynamic collection. Thanks and thanks ;-) -Dan - Original Message - From: Mark Lowe [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Saturday, June 07, 2003 10:52 AM Subject: Re: How Smart is DynaActionForm? If you take an example of a traditional action form, the same would happen with that. If you've populated the form in the referring action then you should have an insight into how action forms and actions work together. The form bean should always be there, but know it won't self populate just like a standard action form. You can scope the form to session or repopulate as part of the action invoked via the form submission. cheers mark On Thursday, Jun 5, 2003, at 07:35 Europe/London, Dan Tran wrote: hmm, I thought the topic was designed to catch attention ;) -D - Original Message - From: Dan Tran [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Wednesday, June 04, 2003 2:40 PM Subject: How Smart is DynaActionForm? Hello, I have an ArrayList as a element of an DyanActionForm. The list contains elements of another bean that has properties as strings. I can populate the DynaActionForm in my action and have the JSP to display it . The question here is does DynaActionForm has the intelligent to reconstruct itself after the form is submited back to the server? I tried but the ArrayList always come back emtpy.. Any suggestion? -Dan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How Smart is DynaActionForm?
Dan Lets find out... I suppose having some way of mapping a bean to form property in struts xml could be handy. Although I start getting confused when i think of this in terms of non dyna action forms... Populating the ArrayList in the form bean I believe could compromise MVC, at least as struts implements it (feedback on this stuff would be appreciated from any beard-sporters).. But the idea of mapping stuff to a form property in the form-property.. tag and thus moving it out of the html:select or options tags in the jsp page does have an appeal. Could be like the controlerClass or Url attributes in tiles. I'll go read the proposal and think a little more... Mark On Saturday, Jun 7, 2003, at 19:43 Europe/London, Dan Tran wrote: Mark, I think Brandon Goodin proposed a batch to enhance DyanActionForm to automaticly pupolating dyanamic list with a known element type It has nothting to do controller and model. Just an enhancement to the tool. Am I wrong? -Dan - Original Message - From: Mark Lowe [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Saturday, June 07, 2003 11:28 AM Subject: Re: How Smart is DynaActionForm? I'm still not beard-sporting on these types of issues... but... wouldn't that start to cloud the demarcation between model and controller? On Saturday, Jun 7, 2003, at 19:02 Europe/London, Dan Tran wrote: Hi Mark, thanks for reply. I knew it is a popular topic but at the time, I was not able to think of good search key for looking into the archive. Until I tumbled on a old post regarding lazyList. and the answer is there just like you have explained ;-) I hope Struts 1.2 will incorporate the patch submit by Goodwin to solve this scenario since I know lots of people have to create their own form bean to handle dynamic collection. Thanks and thanks ;-) -Dan - Original Message - From: Mark Lowe [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Saturday, June 07, 2003 10:52 AM Subject: Re: How Smart is DynaActionForm? If you take an example of a traditional action form, the same would happen with that. If you've populated the form in the referring action then you should have an insight into how action forms and actions work together. The form bean should always be there, but know it won't self populate just like a standard action form. You can scope the form to session or repopulate as part of the action invoked via the form submission. cheers mark On Thursday, Jun 5, 2003, at 07:35 Europe/London, Dan Tran wrote: hmm, I thought the topic was designed to catch attention ;) -D - Original Message - From: Dan Tran [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Wednesday, June 04, 2003 2:40 PM Subject: How Smart is DynaActionForm? Hello, I have an ArrayList as a element of an DyanActionForm. The list contains elements of another bean that has properties as strings. I can populate the DynaActionForm in my action and have the JSP to display it . The question here is does DynaActionForm has the intelligent to reconstruct itself after the form is submited back to the server? I tried but the ArrayList always come back emtpy.. Any suggestion? -Dan --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How Smart is DynaActionForm?
Hello, I have an ArrayList as a element of an DyanActionForm. The list contains elements of another bean that has properties as strings. I can populate the DynaActionForm in my action and have the JSP to display it . The question here is does DynaActionForm has the intelligent to reconstruct itself after the form is submited back to the server? I tried but the ArrayList always come back emtpy.. Any suggestion? -Dan
Re: How Smart is DynaActionForm?
hmm, I thought the topic was designed to catch attention ;) -D - Original Message - From: Dan Tran [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Wednesday, June 04, 2003 2:40 PM Subject: How Smart is DynaActionForm? Hello, I have an ArrayList as a element of an DyanActionForm. The list contains elements of another bean that has properties as strings. I can populate the DynaActionForm in my action and have the JSP to display it . The question here is does DynaActionForm has the intelligent to reconstruct itself after the form is submited back to the server? I tried but the ArrayList always come back emtpy.. Any suggestion? -Dan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]