[ htmlunit-Bugs-1587945 ] Problem in HtmlTableDateCell class

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[ htmlunit-Bugs-1587945 ] Problem in HtmlTableDateCell class

SourceForge.net
Bugs item #1587945, was opened at 2006-10-31 15:44
Message generated for change (Comment added) made by mguillem
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=448266&aid=1587945&group_id=47038

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: Latest code in SVN
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Lasar (samlasar)
Assigned to: Nobody/Anonymous (nobody)
Summary: Problem in HtmlTableDateCell class

Initial Comment:
I am facing problem in using the class
com.gargoylesoftware.htmlunit.html.HtmlTableDataCell.
I have a table enclosing the below row tag

<tr>
<td bgcolor=#345c8A
onmouseover='setStyle(this,"#345c8A","white");'
onmouseout='setStyle1(this,"white","#345c8A");'
style='text-decoration: none;  color:white; font:
normal bold 12px "Times New Roman" ';  z-index:100;  
title=''
onclick="document.garmentmenu.elements[getIndexByName('username')].value
 =
'Adjustments';formSubmit('HandlerBean',event,'MenuForm','no',false);return
false;" >&nbsp; Adjustments<br>
</td>
</tr>
       
        In my program, i am reading the
table>>>Row>>Cell. Piece of code is as below....
       
        ..............
        HtmlDivision div =
(HtmlDivision)page2.getHtmlElementById("Profilessubmenu");
        ArrayList arlObj =
(ArrayList)div.getHtmlElementsByTagName("table");
        HtmlTable table  = (HtmlTable)arlObj.get(0);
        HtmlTableRow row = table.getRow(0);
        HtmlTableDataCell cell =
(HtmlTableDataCell)row.getCell(0);
        .............
       
        When i call the getOnClickAttribute(), it return
an empty string though the td tag has an onclick event.
       
        So i called HtmlTableDataCell.toString() and it
returned the below string.
       
        HtmlTableDataCell[<td bgcolor=#345c8A
onmouseover='setStyle(this,"#345c8A","white");'
onmouseout='setStyle1(this,"white","#345c8A");'
style='text-decoration: none;  color:white; font:
normal bold 12px "Times New Roman" ">]
       
        Now i made some alteration in <tr> code as
below...
       
        <tr>
                <td bgcolor=#345c8A
onclick="document.garmentmenu.elements[getIndexByName('username')].value
 =
'Adjustments';formSubmit('HandlerBean',event,'MenuForm','no',false);return
false;"
onmouseover='setStyle(this,"#345c8A","white");'
onmouseout='setStyle1(this,"white","#345c8A");'
style='text-decoration: none;  color:white; font:
normal bold 12px "Times New Roman" ';  z-index:100;  
title=''  >&nbsp; Adjustments<br>
                </td>
        </tr>
       
                I just made the onclick attribute to
appear next to bgcolor attribute.
               
                Again i called the getOnClickAttribute()
and it return the expected result. But the
HtmlTableDataCell.toString() method returned me the
below string...
               
                HtmlTableDataCell[<td bgcolor=#345c8A
onclick="document.garmentmenu.elements[getIndexByName('username')].value
 =
'Adjustments';formSubmit('HandlerBean',event,'MenuForm','no',false);return
false;"
onmouseover='setStyle(this,"#345c8A","white");'
onmouseout='setStyle1(this,"white","#345c8A");'
style='text-decoration: none;  color:white; font:
normal bold 12px "Times New Roman" ">]
               
          It should be noted that in both the case, it
terminated at "Times New Roman".
         
          I want to knew whether it is due to my <tr>
code or implementation problem in HtmlTableDataCell..
         
          Please help me as early as possible....
               

----------------------------------------------------------------------

>Comment By: Marc Guillemot (mguillem)
Date: 2006-10-31 16:00

Message:
Logged In: YES
user_id=402164

can you reduce your example to the smallest one that doesn't
work as expected and provide it in a form of a unit test? If
you don't do that yourself, a committer has to do it from
the information you provide and you can imagine that it
won't be necessary be done really early.

----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=448266&aid=1587945&group_id=47038

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
HtmlUnit-develop mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/htmlunit-develop