Message:

  A new issue has been created in JIRA.

---------------------------------------------------------------------
View the issue:
  http://jira.codehaus.org/browse/DISPL-187

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: DISPL-187
    Summary: Adding JavaScript event attribute support to display:column
       Type: Improvement

     Status: Unassigned
   Priority: Major

 Original Estimate: 1 day
 Time Spent: Unknown
  Remaining: 1 day

    Project: DisplayTag
 Components: 
             HTML Generation
             Tag Library
   Versions:
             1.0

   Assignee: 
   Reporter: Ben Shectman

    Created: Mon, 14 Feb 2005 4:45 PM
    Updated: Mon, 14 Feb 2005 4:45 PM

Description:
I am attempting to extend the DisplayTag 1.0 library to include support for 
JavaScript event attributes (e.g. onmouseover, onclick, etc/) to the 
display:column tag.

However, I have hit something of a road block.  After modifying the TLD, 
ColumnTag.java and ColumnTagBeanInfo.java, I continue to receive an error 
"Cannot find setter for attribute [x]".  What am I missing?  What else needs to 
be changed?

Here are examples of the changes I have made so far:

In displaytag-12.tld, in the declarations for the column tag, I've added 
attribute definitions like the following:

        <attribute>
            <name>onmouseover</name>
            <required>false</required>
            <rtexprvalue>true</rtexprvalue>
            <type>java.lang.String</type>
            <description>
                JavaScript onmouseover event attribute.
            </description>
        </attribute>

In ColumnTag.java I've included setter methods for the various attributed, like 
the following:

    /**
     * setter for the "onmouseover" tag attribute.
     * @param value attribute value
     */
    public void setOnmouseover(String value)
    {
        this.attributeMap.put(TagConstants.ATTRIBUTE_ONMOUSEOVER, value);
    }

Finally, in the ColumnTagBeanInfo.java, I've included property descriptors, 
like the following:

    proplist.add(new PropertyDescriptor("onmouseover", //$NON-NLS-1$
        ColumnTag.class, null, "setOnmouseover")); //$NON-NLS-1$ 

Yet, I still get the setter not found exception when I try to use
     
     <display:column property="clientName" title="Company" sortable="true" 
headerClass="t4 tableHeader" class="t5 tableCell" onmouseover="someFunc()" />

Any help would be greatly appreciated!


---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
displaytag-devel mailing list
displaytag-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/displaytag-devel

Reply via email to