This sounds like an issue with your Action/Form, not with the displaytag
- are you sure your ActionForm is getting populated correctly?

Matt

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On 
> Behalf Of Michael Baedorf
> Sent: Wednesday, June 25, 2003 11:55 PM
> To: [EMAIL PROTECTED]
> Subject: RE: ActionForms containing textfields generated by a 
> decorator
> 
> 
> Sorry, I think I described my problem wrong.I know how to 
> fill the table using a decorator for generating the 
> inputfield. The scenario looks like this: 1. table is 
> (correctly) filled. 2. user enters data in the textfield 
> column(s) 3. user pushes the SUBMIT button After that a 
> struts action is called. I iterate on the list, which filled 
> the table before, and I print out the value(s) entered in the 
> editable column. But the value(s) in the editable column 
> is/are the same the table was filled with! No entered data! 
> Now I use a String array for storing the entered values, but 
> I'm not sure, if the order auf the inputs would always be correct.
> 
> 
> -----Urspr�ngliche Nachricht-----
> Von: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Im 
> Auftrag von Matt Raible Gesendet am: Mittwoch, 25. Juni 2003 13:06
> An: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Betreff: RE: [displaytag-user] ActionForms containing 
> textfields generated by a decorator
> 
> I'm assuming that your decorator has a getParametervalue() 
> method.  If so, this is probably what it should look like:
> 
>     public String getParametervalue() {
>         YourForm form = (YourForm) this.getObject();
> 
>         return "<input type=\"text\" name=\"parametervalue\" 
> value=\"" +
> form.getValue() + "\" />";
>     }
> 
> 
> HTH,
> 
> Matt
> 
> > -----Original Message-----
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED] On Behalf Of 
> > [EMAIL PROTECTED]
> > Sent: Wednesday, June 25, 2003 1:29 AM
> > To: [EMAIL PROTECTED]
> > Subject: [displaytag-user] ActionForms containing 
> textfields generated 
> > by a decorator
> >
> >
> > Hello,
> >
> > I'm using display 0.85 and Struts.
> > I created a table using a Struts ActionForm.
> > I used a list (serviceparams) containing (row) beans in my 
> ActionForm.
> > A decorator is used to generate an input field column.
> > After submitting I want the ActionForm to contain the entered
> > data in the input
> > column, but I couldn't manage.
> > JSP-Code:
> >   <display:table  name="policyAddForm"
> > property="serviceparams"  width="75%"
> >
> > decorator="com.ascertech.billingware.bwagent.struts.decorator.
> > PolicyAddDecorator">
> >     <display:column property="serviceid"  title="Service ID"/>
> >     <display:column property="parameterno"  title="Parameter No."/>
> >     <display:column property="parametertype"
> > title="Parameter Type"/>
> >     <display:column property="parametername" title="Parametername"/>
> >     <display:column property="parametervalue" 
> title="Parameterwert" />
> >   </display:table>
> > The decorator:
> > return "<input type=\"text\" name=\"parametervalue\"
> > value=\"" + value + "\">";
> >
> > What could be my mistake?
> >
> > --
> > +++ GMX - Mail, Messaging & more  http://www.gmx.net +++
> > Bitte l�cheln! Fotogalerie online mit GMX ohne eigene Homepage!
> >
> >
> >
> > -------------------------------------------------------
> > This SF.Net email is sponsored by: INetU
> > Attention Web Developers & Consultants: Become An INetU Hosting 
> > Partner. Refer Dedicated Servers. We Manage Them. You Get 
> 10% Monthly 
> > Commission! INetU Dedicated Managed Hosting 
> > http://www.inetu.net/partner/index.php
> >
> > _______________________________________________
> > displaytag-user mailing list [EMAIL PROTECTED]
> > https://lists.sourceforge.net/lists/listinfo/displaytag-user
> >
> 
> 
> 
> -------------------------------------------------------
> This SF.Net email is sponsored by: INetU
> Attention Web Developers & Consultants: Become An INetU 
> Hosting Partner. Refer Dedicated Servers. We Manage Them. You 
> Get 10% Monthly Commission! INetU Dedicated Managed Hosting 
> http://www.inetu.net/partner/index.php
> 
> _______________________________________________
> displaytag-user mailing list [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/displaytag-user
> 
> 
> 



-------------------------------------------------------
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
_______________________________________________
displaytag-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/displaytag-user

Reply via email to