[ 
https://issues.apache.org/jira/browse/TOMAHAWK-915?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12478102
 ] 

Mike Kienenberger commented on TOMAHAWK-915:
--------------------------------------------

Close, but not correct.

You need to use triggerComponent instead of forComponent. 

-                       if (forComponent != null
-                               && forComponent.getFamily() != null
-                               && 
ON_CHANGE_FAMILY.contains(forComponent.getFamily()))
+                       if (triggerComponent != null
+                               && triggerComponent .getFamily() != null
+                               && ON_CHANGE_FAMILY.contains(triggerComponent 
.getFamily()))

I tested this change and it works on my local copy.

> Base default event used by submitOnEvent on enclosing component type
> --------------------------------------------------------------------
>
>                 Key: TOMAHAWK-915
>                 URL: https://issues.apache.org/jira/browse/TOMAHAWK-915
>             Project: MyFaces Tomahawk
>          Issue Type: Improvement
>          Components: submitOnEvent
>    Affects Versions: 1.1.5-SNAPSHOT
>            Reporter: Mike Kienenberger
>            Priority: Minor
>
> One thing that I had issues with for submitOnEvent is that the default
> event is keyPress.   I didn't realize that the default event wouldn't work 
> for a selectOneUI.
> Let's add intelligent default event values.
> "keyPress" for a UIInput, "change" for a UISelectOne, and so on.

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

Reply via email to