my suggestion is to use the body of the column tag instead of a decorator:
<display:column property="???">
<html:checkbox.../>
</display:column>
On Thu, 6 Nov 2003, [EMAIL PROTECTED] wrote:
>
> Hi,
> I have previously used checkbox as a struts tag:
> EG# <html:checkbox parameter="call(1)" />
> <html:checkbox parameter="call(21)" /> ... and they work fine
>
> Now I am trying to use the ColumnDecorator to paint a check box within a
> <display:column..>
>
> I keep on getting the Error:
> org.displaytag.util.LookupUtil = Exception: [.LookupUtil] Error looking up
> property "call" in object type "mypackage.MyForm"
> Cause: Property 'call' has no getter method
>
> But I have the getters defied in the form object.
>
> When using the Column decorator within the display:column tag, would any
> one know what would
> be the property value. EG# <display:column property= ??? title="Test"
> decorator="mypackage.CheckBoxColDecorator"/>
>
> Would someone have an example of using the ColumnDecorator. Here is my
> code.
> Any suggestion.
> THanks
> Abhijit
>
> /************************************************************************
> JSP - Trying to use ColumnDecorator to print checkbox in display:column
> ********************************************************************/
> <html:form action="/test.do" name="MyForm " type="mypackage">
> <display:table name="datalist" class="MyStyle" >
> <display:column property="call" title="Test" decorator
> ="mypackage.CheckBoxColDecorator"/>
> </display:table>
>
> <html:submit />
> </html:form>
>
> /*****************************************
> Simplyfied Form
> ******************************************/
> public class MyForm extends ActionForm
> {
> private HashMap call = new HashMap();
>
> public void setCall(String key, Object value)
> { call.put(key, value); }
>
> public Object getCall(String key)
> { return call.get(key); }
>
> public void setCalls(HashMap deleteCall)
> { this.call = deleteCall; }
>
> public HashMap getCalls()
> { return this.call;}
> }
>
> /**********************************************
> Column Decorator
> ***********************************************/
> public class CheckBoxColDecorator implements ColumnDecorator
> {
> public String decorate(Object obj)
> {
> \\MyForm myForm = (MyForm)obj;
>
> StringBuffer s = new StringBuffer();
> s = s.append("<html:checkbox property=\"call(AAA)\" \\>" );
> return s.toString();
> }
> }
>
>
> Abhijit Neogy
> Project: Order Management System (Money Market)
> Office:(617) 664-1766
>
>
>
>
>
>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: SF.net Giveback Program.
> Does SourceForge.net help you be more productive? Does it
> help you create better code? SHARE THE LOVE, and help us help
> YOU! Click Here: http://sourceforge.net/donate/
> _______________________________________________
> displaytag-devel mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/displaytag-devel
>
--
John York
Software Engineer
CareerSite Corporation
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive? Does it
help you create better code? SHARE THE LOVE, and help us help
YOU! Click Here: http://sourceforge.net/donate/
_______________________________________________
displaytag-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/displaytag-devel