Have to click save twice when in field with ppr trigger
-------------------------------------------------------

                 Key: ADFFACES-337
                 URL: http://issues.apache.org/jira/browse/ADFFACES-337
             Project: MyFaces ADF-Faces
          Issue Type: Bug
            Reporter: Peace Software


We have a problem where if you type into a field which will trigger a ppr and 
then click the save button with the mouse you have to do so twice for the 
submit to go through.  This is also occurrs if you type into the field and 
press ALT-S, our hotkey for save.

I have tried setting the firstClickPassed=true on the body tag but this is not 
working. Stepping through the javascript, _pprConsumeBlockedEvent,  I can see 
this is because it does not recognise our save and cancel buttons as submit 
elements as they are command inks.  Can you please extend this function to 
recognise links?

I have also noticed that the code is using the explicitOriginalTarget to get 
the target of the event, rather than the originalTarget which means when we use 
the hotkey to save the code is checking to see if the field typed in is a 
submit element rather than the link, also if we happen to click on the text of 
the link the originalTarget is a Text element.  I'm not sure why the code is 
using the explicitOriginalTarget but using just the originalTarget would solve 
a lot of issues for us.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to