[richfaces-issues] [JBoss JIRA] (RF-12103) onmouse events dont working on rich:notifyMessage

Lukáš Fryč (JIRA) jira-events at lists.jboss.org
Thu Apr 5 09:21:47 EDT 2012


    [ https://issues.jboss.org/browse/RF-12103?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12682050#comment-12682050 ] 

Lukáš Fryč commented on RF-12103:
---------------------------------

The events handler attributes are configured using {{events-mouse-props.xml}} and {{events-key-props.xml}} and propagated to DOM ({{<span class="rf-ntf-msgs" />}}).

However {{rich:notify}} does not use original {{span}} for displaying message. This {{span}} acts only as placeholder.

It creates new {{div}} element, absolutely positioned.

We have three options:


* propagate mouse events from dynamically created {{div}} to the placeholder ({{span}}) using JavaScript
** consequence: such events will bubble through DOM from {{span}} to the top
* declare all the event handler attributes to be encoded to the Notify constructor and registered
** consequence: it would be necessary to register each event separately, one-by-one
* remove all mouse/key event handlers
                
> onmouse events dont working on rich:notifyMessage
> -------------------------------------------------
>
>                 Key: RF-12103
>                 URL: https://issues.jboss.org/browse/RF-12103
>             Project: RichFaces
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>    Affects Versions: 4.2.0.Final
>            Reporter: Antonio Rodriguez
>            Assignee: Lukáš Fryč
>              Labels: notifyMessage, onclick, onmouseover, richfaces4
>
> Hi, im using rich:notifyStack and rich:notifyMessage to show erros of required=true h:inputText.
> All goes OK but i need that onclick event over the notifiyMessage, the cursor go focused on the h:inputText associated with the notifyMessage. I noticed that the events (onmouseover, onclick, onmouseout...) doesnt work on notifyMessages.
> However, this events goes OK on rich:message.
> Does anybody knows why the mouse events dont work with notifyMessages???
> Thanks

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       



More information about the richfaces-issues mailing list