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

Key: LPP-4271
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: -- --
Assignee: Unassigned
Reporter: Mamye Kratt
Votes: 0
Watchers: 1
Operations

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

Flash and DHTML: Problem selecting editable and non-editable combobox (Regression)

Created: 10/Jul/07 03:47 PM   Updated: 13/Jul/07 12:44 PM
Component/s: SA - Amazon, SA - Examples, SA - Laszlo in 10
Affects Version/s: 4.0.3
Fix Version/s: 4.0.3

Time Tracking:
Not Specified

Severity: Minor
Fixed in Change#: 5,663
Runtime: N/A
Fix in hand: False


 Description  « Hide
Seems editable and non-editable combobox.

(4.0 branch (4.0.3RC) build r5640)
Having difficult time selecting the credit card type in swf and dhtml on OS X and XP. Double clicking sometimes selects the credit card type.

Problem not seen in the following releases.
(4.0.2 release build)
(legals branch build r5405)
(legals branch build r5638)



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Frisco Del Rosario - 10/Jul/07 10:50 PM
<<Having difficult time selecting the credit card type in swf and dhtml on OS X and XP. Double clicking sometimes selects the credit card type.>>

There are no steps to follow there.

Open Amazon demo.
Select Check Out.
Select Payment Method?
Click edit card?
Now the Edit Card combobox named Type is misbehaving?

Frisco Del Rosario - 11/Jul/07 11:39 AM
Aha. I see the misbehavior in explorer -> Components -> Form Components -> Combobox.

Mamye Kratt - 11/Jul/07 12:21 PM
Also a problem in L-in-10
L-in-10 -> Introduction -> Form

Mamye Kratt - 11/Jul/07 12:28 PM
Components - > Sampler also

Mamye Kratt - 11/Jul/07 12:32 PM
Components -> combobox

Mamye Kratt - 11/Jul/07 12:37 PM
Components -> Form Components -> Form

Mamye Kratt - 11/Jul/07 12:40 PM
Components -> Form Components -> List

Mamye Kratt - 11/Jul/07 12:46 PM
Components -> General Components -> Tabslider

Mamye Kratt - 11/Jul/07 02:59 PM
Components -> General Components -> Date Picker

Frisco Del Rosario - 11/Jul/07 11:43 PM
I believe the bug has to do with the physical selection of the combobox, because a Selenium test that selects a combobox item has no difficulty:

LZX (myCombobox.lzx)
<canvas debug="true" oninit="cx.setOpen(true)">

<combobox id="cx" width="100" editable="false">
             <textlistitem text="kenny" value="1" />
              <textlistitem text="cartman" value="2"/>
</combobox>

</canvas>

Selenium (root URL http://localhost:8080/)
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>test-myCombobox</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
<tr><td rowspan="1" colspan="3">test-myCombobox</td></tr>
</thead><tbody>
<tr>
<td>open</td>
<td>/lps-4.0.3/my-apps/myCombobox.lzx?lzr=dhtml</td>
<td></td>
</tr>
<tr>
<td>selectWindow</td>
<td>null</td>
<td></td>
</tr>
<tr>
<td>assertElementPresent</td>
<td>LaszloDebuggerInput</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>LaszloDebuggerInput</td>
<td>cx.text=='kenny'</td>
</tr>
<tr>
<td>click</td>
<td>//input[@value='eval']</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>true</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>//input[@value='clear']</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>LaszloDebuggerInput</td>
<td>cx.selectItem(2);</td>
</tr>
<tr>
<td>click</td>
<td>//input[@value='eval']</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>LaszloDebuggerInput</td>
<td>cx.text=='cartman'</td>
</tr>
<tr>
<td>click</td>
<td>//input[@value='eval']</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>true</td>
<td></td>
</tr>
</tbody></table>
</body>
</html>

Philip Romanik - 13/Jul/07 06:26 AM
Change 20070712-Philip-0 by Philip@Philip-DC on 2007-07-12 20:49:26 EST
     in /cygdrive/f/laszlo/svn/src/svn/openlaszlo/branches/4.0
     for http://svn.openlaszlo.org/openlaszlo/branches/4.0

Summary: Moved LzTrack from legals to 4.0

New Features:

Bugs Fixed: LPP-4271

Technical Reviewer: ben
QA Reviewer: (pending)
Doc Reviewer: (pending)

Documentation:

Release Notes:

Details:
The current 4.0 version of /services/LzTrack.lzs is the original merge of
LzTrack.js and LzTrack.as. There was a fix to help mouse click that didn't
make it to 4.0 (r5190). I ported LzTrack to the new class system (r5298)
and this is the version I'm submitting for review. This brings this file up
to the latest legals version.

I wouldn't worry too much about reviewing the code as it has already been
reviewed by Tucker. The important thing is that it greatly improves mouse
click behavior in components.


Tests:
combobox: components_sampler in dhtml/swf
list: list_example in dhtml/swf

Files:
M WEB-INF/lps/lfc/services/LzTrack.lzs


Changeset: http://svn.openlaszlo.org/openlaszlo/patches/20070712-Philip-0.tar



Mamye Kratt - 13/Jul/07 12:44 PM
(4.0 branch (4.0.3) build r5665)
Fixed