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

Reply via email to