You are viewing a plain text version of this content. The canonical link for it is here.
Posted to xap-dev@incubator.apache.org by "Trevor Oldak (JIRA)" <xa...@incubator.apache.org> on 2007/03/07 21:21:24 UTC

[jira] Created: (XAP-327) Widgets: Button: Text of a button doesn't respond to clicks when button has an image.

Widgets: Button: Text of a button doesn't respond to clicks when button has an image.
-------------------------------------------------------------------------------------

                 Key: XAP-327
                 URL: https://issues.apache.org/jira/browse/XAP-327
             Project: XAP
          Issue Type: Bug
          Components: Widgets
            Reporter: Trevor Oldak
            Priority: Critical


1) Ooen the button widget component test
2) Click 'Add event listeners' to apply an onCommand listener to the button.
3) Click the text in the button. You see that the onCommand goes through.
4) Click the radio button to set the 'image' attribute to '../images/Foreground.JPG'
5) Click the text of the button. No event is fired, though the button appears to be clicked.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (XAP-327) Widgets: Button: Text of a button doesn't respond to clicks when button has an image.

Posted by "Trevor Oldak (JIRA)" <xa...@incubator.apache.org>.
     [ https://issues.apache.org/jira/browse/XAP-327?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Trevor Oldak updated XAP-327:
-----------------------------

    Description: 
1) Ooen the button widget component test
2) Click 'Add event listeners' to apply an onCommand listener to the button.
3) Click the text in the button. You see that the onCommand goes through.
4) Click the radio button to set the 'image' attribute to '../images/Foreground.JPG'
5) Click the text of the button. No onCommand event is fired, though the button appears to be clicked.

  was:
1) Ooen the button widget component test
2) Click 'Add event listeners' to apply an onCommand listener to the button.
3) Click the text in the button. You see that the onCommand goes through.
4) Click the radio button to set the 'image' attribute to '../images/Foreground.JPG'
5) Click the text of the button. No event is fired, though the button appears to be clicked.


> Widgets: Button: Text of a button doesn't respond to clicks when button has an image.
> -------------------------------------------------------------------------------------
>
>                 Key: XAP-327
>                 URL: https://issues.apache.org/jira/browse/XAP-327
>             Project: XAP
>          Issue Type: Bug
>          Components: Widgets
>            Reporter: Trevor Oldak
>            Priority: Critical
>
> 1) Ooen the button widget component test
> 2) Click 'Add event listeners' to apply an onCommand listener to the button.
> 3) Click the text in the button. You see that the onCommand goes through.
> 4) Click the radio button to set the 'image' attribute to '../images/Foreground.JPG'
> 5) Click the text of the button. No onCommand event is fired, though the button appears to be clicked.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Assigned: (XAP-327) Widgets: Button: Text of a button doesn't trigger an onCommand when button has had image added to it

Posted by "Scott Boyd (JIRA)" <xa...@incubator.apache.org>.
     [ https://issues.apache.org/jira/browse/XAP-327?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Scott Boyd reassigned XAP-327:
------------------------------

    Assignee: Turyn, Michael

> Widgets: Button: Text of a button doesn't trigger an onCommand when button has had image added to it
> ----------------------------------------------------------------------------------------------------
>
>                 Key: XAP-327
>                 URL: https://issues.apache.org/jira/browse/XAP-327
>             Project: XAP
>          Issue Type: Bug
>          Components: Widgets: Other
>            Reporter: Trevor Oldak
>         Assigned To: Turyn, Michael
>            Priority: Critical
>
> 1) Open the button widget component test
> 2) Click 'Add event listeners' to apply an onCommand listener to the button.
> 3) Click the text in the button. You see that the onCommand goes through.
> 4) Click the radio button to set the 'image' attribute to '../images/Foreground.JPG'
> 5) Click the text of the button. No onCommand event is fired, though the button appears to be clicked.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (XAP-327) Widgets: Button: Text of a button doesn't trigger an onCommand when button has had image added to it

Posted by "Turyn, Michael (JIRA)" <xa...@incubator.apache.org>.
    [ https://issues.apache.org/jira/browse/XAP-327?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12496135 ] 

Turyn, Michael commented on XAP-327:
------------------------------------

It doesn't work for a button created with a foreground image, either.

> Widgets: Button: Text of a button doesn't trigger an onCommand when button has had image added to it
> ----------------------------------------------------------------------------------------------------
>
>                 Key: XAP-327
>                 URL: https://issues.apache.org/jira/browse/XAP-327
>             Project: XAP
>          Issue Type: Bug
>          Components: Widgets: Other
>            Reporter: Trevor Oldak
>         Assigned To: James Margaris
>            Priority: Critical
>
> 1) Open the button widget component test
> 2) Click 'Add event listeners' to apply an onCommand listener to the button.
> 3) Click the text in the button. You see that the onCommand goes through.
> 4) Click the radio button to set the 'image' attribute to '../images/Foreground.JPG'
> 5) Click the text of the button. No onCommand event is fired, though the button appears to be clicked.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Assigned: (XAP-327) Widgets: Button: Text of a button doesn't trigger an onCommand when button has had image added to it

Posted by "Rob Gagne (JIRA)" <xa...@incubator.apache.org>.
     [ https://issues.apache.org/jira/browse/XAP-327?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rob Gagne reassigned XAP-327:
-----------------------------

    Assignee: James Margaris  (was: Turyn, Michael)

> Widgets: Button: Text of a button doesn't trigger an onCommand when button has had image added to it
> ----------------------------------------------------------------------------------------------------
>
>                 Key: XAP-327
>                 URL: https://issues.apache.org/jira/browse/XAP-327
>             Project: XAP
>          Issue Type: Bug
>          Components: Widgets: Other
>            Reporter: Trevor Oldak
>         Assigned To: James Margaris
>            Priority: Critical
>
> 1) Open the button widget component test
> 2) Click 'Add event listeners' to apply an onCommand listener to the button.
> 3) Click the text in the button. You see that the onCommand goes through.
> 4) Click the radio button to set the 'image' attribute to '../images/Foreground.JPG'
> 5) Click the text of the button. No onCommand event is fired, though the button appears to be clicked.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (XAP-327) Widgets: Button: Text of a button doesn't respond to clicks when button has had events added to it.

Posted by "Turyn, Michael (JIRA)" <xa...@incubator.apache.org>.
     [ https://issues.apache.org/jira/browse/XAP-327?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Turyn, Michael updated XAP-327:
-------------------------------

    Description: 
1) Open the button widget component test
2) Click 'Add event listeners' to apply an onCommand listener to the button.
3) Click the text in the button. You see that the onCommand goes through.
<strikethrough>4) Click the radio button to set the 'image' attribute to '../images/Foreground.JPG'</strikethrough>
5) Click the text of the button. No onCommand event is fired, though the button appears to be clicked.

(The problem appears whether there is a [foreground] image or not.)

  was:
1) Ooen the button widget component test
2) Click 'Add event listeners' to apply an onCommand listener to the button.
3) Click the text in the button. You see that the onCommand goes through.
4) Click the radio button to set the 'image' attribute to '../images/Foreground.JPG'
5) Click the text of the button. No onCommand event is fired, though the button appears to be clicked.

        Summary: Widgets: Button: Text of a button doesn't respond to clicks when button has had events added to it.  (was: Widgets: Button: Text of a button doesn't respond to clicks when button has an image.)

My guess is that the event attributes are added, but not attached to the actual mouse events.

> Widgets: Button: Text of a button doesn't respond to clicks when button has had events added to it.
> ---------------------------------------------------------------------------------------------------
>
>                 Key: XAP-327
>                 URL: https://issues.apache.org/jira/browse/XAP-327
>             Project: XAP
>          Issue Type: Bug
>          Components: Widgets
>            Reporter: Trevor Oldak
>            Priority: Critical
>
> 1) Open the button widget component test
> 2) Click 'Add event listeners' to apply an onCommand listener to the button.
> 3) Click the text in the button. You see that the onCommand goes through.
> <strikethrough>4) Click the radio button to set the 'image' attribute to '../images/Foreground.JPG'</strikethrough>
> 5) Click the text of the button. No onCommand event is fired, though the button appears to be clicked.
> (The problem appears whether there is a [foreground] image or not.)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (XAP-327) Widgets: Button: Text of a button doesn't trigger an onCommand when button has had image added to it

Posted by "James Margaris (JIRA)" <xa...@incubator.apache.org>.
     [ https://issues.apache.org/jira/browse/XAP-327?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

James Margaris resolved XAP-327.
--------------------------------

    Resolution: Fixed

Whenever you clicked on a button, it would remove the text node and immediately re-add it, which would interfere with the onClick tracking.

If anything is going to break because of this fix it would be text/image alignment. I messed around in the widget tests and didn't see any problem.

> Widgets: Button: Text of a button doesn't trigger an onCommand when button has had image added to it
> ----------------------------------------------------------------------------------------------------
>
>                 Key: XAP-327
>                 URL: https://issues.apache.org/jira/browse/XAP-327
>             Project: XAP
>          Issue Type: Bug
>          Components: Widgets: Other
>            Reporter: Trevor Oldak
>         Assigned To: James Margaris
>            Priority: Critical
>
> 1) Open the button widget component test
> 2) Click 'Add event listeners' to apply an onCommand listener to the button.
> 3) Click the text in the button. You see that the onCommand goes through.
> 4) Click the radio button to set the 'image' attribute to '../images/Foreground.JPG'
> 5) Click the text of the button. No onCommand event is fired, though the button appears to be clicked.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (XAP-327) Widgets: Button: Text of a button doesn't trigger an onCommand when button has had image added to it

Posted by "Turyn, Michael (JIRA)" <xa...@incubator.apache.org>.
    [ https://issues.apache.org/jira/browse/XAP-327?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12480629 ] 

Turyn, Michael commented on XAP-327:
------------------------------------

Verified:  the area filled by the <span/> holding the button text doesn't seem to register click events; why this isn't a problem normally is mysterious. so far

> Widgets: Button: Text of a button doesn't trigger an onCommand when button has had image added to it
> ----------------------------------------------------------------------------------------------------
>
>                 Key: XAP-327
>                 URL: https://issues.apache.org/jira/browse/XAP-327
>             Project: XAP
>          Issue Type: Bug
>          Components: Widgets
>            Reporter: Trevor Oldak
>            Priority: Critical
>
> 1) Open the button widget component test
> 2) Click 'Add event listeners' to apply an onCommand listener to the button.
> 3) Click the text in the button. You see that the onCommand goes through.
> 4) Click the radio button to set the 'image' attribute to '../images/Foreground.JPG'
> 5) Click the text of the button. No onCommand event is fired, though the button appears to be clicked.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Closed: (XAP-327) Widgets: Button: Text of a button doesn't trigger an onCommand when button has had image added to it

Posted by "Trevor Oldak (JIRA)" <xa...@incubator.apache.org>.
     [ https://issues.apache.org/jira/browse/XAP-327?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Trevor Oldak closed XAP-327.
----------------------------


> Widgets: Button: Text of a button doesn't trigger an onCommand when button has had image added to it
> ----------------------------------------------------------------------------------------------------
>
>                 Key: XAP-327
>                 URL: https://issues.apache.org/jira/browse/XAP-327
>             Project: XAP
>          Issue Type: Bug
>          Components: Widgets: Other
>            Reporter: Trevor Oldak
>         Assigned To: James Margaris
>            Priority: Critical
>
> 1) Open the button widget component test
> 2) Click 'Add event listeners' to apply an onCommand listener to the button.
> 3) Click the text in the button. You see that the onCommand goes through.
> 4) Click the radio button to set the 'image' attribute to '../images/Foreground.JPG'
> 5) Click the text of the button. No onCommand event is fired, though the button appears to be clicked.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (XAP-327) Widgets: Button: Text of a button doesn't trigger an onCommand when button has had image added to it

Posted by "Turyn, Michael (JIRA)" <xa...@incubator.apache.org>.
     [ https://issues.apache.org/jira/browse/XAP-327?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Turyn, Michael updated XAP-327:
-------------------------------

    Description: 
1) Open the button widget component test
2) Click 'Add event listeners' to apply an onCommand listener to the button.
3) Click the text in the button. You see that the onCommand goes through.
4) Click the radio button to set the 'image' attribute to '../images/Foreground.JPG'
5) Click the text of the button. No onCommand event is fired, though the button appears to be clicked.



  was:
1) Open the button widget component test
2) Click 'Add event listeners' to apply an onCommand listener to the button.
3) Click the text in the button. You see that the onCommand goes through.
<strikethrough>4) Click the radio button to set the 'image' attribute to '../images/Foreground.JPG'</strikethrough>
5) Click the text of the button. No onCommand event is fired, though the button appears to be clicked.

(The problem appears whether there is a [foreground] image or not.)

        Summary: Widgets: Button: Text of a button doesn't trigger an onCommand when button has had image added to it  (was: Widgets: Button: Text of a button doesn't respond to clicks when button has had events added to it.)

Sorry for the incorrect change; I think I must have not been clicking on the button the right way---sometimes buttons seem unresponsive in general.

If you click on the very edge of the button, outside the boundary of the tbody[?], we get the onCommand event.  

> Widgets: Button: Text of a button doesn't trigger an onCommand when button has had image added to it
> ----------------------------------------------------------------------------------------------------
>
>                 Key: XAP-327
>                 URL: https://issues.apache.org/jira/browse/XAP-327
>             Project: XAP
>          Issue Type: Bug
>          Components: Widgets
>            Reporter: Trevor Oldak
>            Priority: Critical
>
> 1) Open the button widget component test
> 2) Click 'Add event listeners' to apply an onCommand listener to the button.
> 3) Click the text in the button. You see that the onCommand goes through.
> 4) Click the radio button to set the 'image' attribute to '../images/Foreground.JPG'
> 5) Click the text of the button. No onCommand event is fired, though the button appears to be clicked.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.