History | Log In     View a printable version of the current page. Get help!  
Issue Details (XML | Word)

Key: WT-301
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Assignee: Denis N. Antonioli
Reporter: Juergen Zimmermann
Votes: 0
Watchers: 2
Operations

If you were logged in you would be able to see more operations.
WebTest

setCheckbox documentation wrong: step shouldn't accept attribute "value"

Created: 03/May/07 11:07:50   Updated: 18/May/07 14:10:10
Affects Version/s: 2.5
Fix Version/s: 2.6

File Attachments: 1. Text File html.txt (11 kb)

Environment: WebTest R_1550, WinXP SP2, JBoss 4.2.0CR2 with JSF RI 1.2_04 P01


 Description   
In build.xml I have these steps:
<selectForm description="..." name="deleteForm"/>
<setCheckbox description="..." htmlId="kundenTabelle:1" value="1"/>

The HTML page was generated via JSF RI and looks as follows:

<form id="deleteForm" name="deleteForm" method="post" action="/hska/faces/kundenverwaltung/checkboxDelete.jsp" enctype="application/x-www-form-urlencoded">
<input type="hidden" name="deleteForm" value="deleteForm" />
<table id="kundenTabelle">
<tr>
<td>
<input name="kundenTabelle" id="kundenTabelle:0" value="0" type="checkbox" /><label for="kundenTabelle:0"> 21: N&uuml;, Nb</label></td>
</tr>
<tr>
<td>
<input name="kundenTabelle" id="kundenTabelle:1" value="1" type="checkbox" /><label for="kundenTabelle:1"> 26: N&uuml;, Ng</label></td>
</tr>
...

However, WebTest R_1550 yields this error message:
Found input when looking for checkbox

 All   Comments   Change History      Sort Order:
Comment by Marc Guillemot [03/May/07 11:16:14]
This is a documentation problem: value is not legal for setCheckBox. You should use checked="true/false".

Comment by Juergen Zimmermann [03/May/07 11:55:31]
Also WebTest.dtd is wrong:

<!ELEMENT setCheckbox ( #PCDATA )* >
<!ATTLIST setCheckbox
...
value CDATA #REQUIRED

Comment by Juergen Zimmermann [03/May/07 12:10:22]
I replaced: value="1"
with: checked="true"

However, the error message still remains the same.

Comment by Marc Guillemot [03/May/07 12:57:52]
Is it possible that you have many inputs with this id in the page (what would be incorrect)

Comment by Juergen Zimmermann [03/May/07 16:02:23]
The id is unique. There are not several inputs with the same id (see attached HTML file)

Comment by Marc Guillemot [03/May/07 16:43:20]
Just tested without problem a minimal test on the file you attached.

Are you sure to be on the right response?

Comment by Juergen Zimmermann [04/May/07 09:23:22]
Sorry, yes I wasn't on the right response.

Will the DTD and doc be corrected in 2.5?

Comment by Denis N. Antonioli [18/May/07 12:29:11]
As of version 16269, which is HEAD for 2.5, value, if available, _is_ used to select the desired checkbox.

But the value should be optional.

Comment by Denis N. Antonioli [18/May/07 14:10:10]
Documentation corrected in R_1565.