[ https://issues.apache.org/jira/browse/TRINIDAD-355?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Matthias Weßendorf resolved TRINIDAD-355. ----------------------------------------- Resolution: Duplicate > Have to click save twice when in field with ppr trigger > ------------------------------------------------------- > > Key: TRINIDAD-355 > URL: https://issues.apache.org/jira/browse/TRINIDAD-355 > Project: MyFaces Trinidad > Issue Type: Bug > Affects Versions: 1.0.1-incubating-core-SNAPSHOT > 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. - You can reply to this email to add a comment to the issue online.