You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pivot.apache.org by "Sandro Martini (Updated) (JIRA)" <ji...@apache.org> on 2012/03/22 16:02:22 UTC
[jira] [Updated] (PIVOT-686) pivot applet doesn't gain focus on
page load
[ https://issues.apache.org/jira/browse/PIVOT-686?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sandro Martini updated PIVOT-686:
---------------------------------
Attachment: pivot686_test.html
kitchen-sink_test.html
Add two sample HTML pages to try both Kitchen Sink and Pivot686 as applets.
Note that it's required to have all pivot-2.0.2 jars in the same folder of the page.
And even a pivot-tests-2.0.2.jar generated by the tests subproject (I'll commit asap a small change in our build.xml to enable its generation if/when needed, by a dedicated ant task).
Using the current version of the code (from trunk) all seems to work (issue resolved), but note that in my Pivot686 test I force the focus on the TextFiled, using something like this:
textInput.requestFocus(); // force focus on TextInput, Ok when run as a Java Application
System.out.println("textInput has focus: " + textInput.isFocused());
So now we have to see if mark this as won't fix (there is a workaround), or resolved (now I'll retry the same test but without force the focus).
Comments ?
Sandro
> pivot applet doesn't gain focus on page load
> --------------------------------------------
>
> Key: PIVOT-686
> URL: https://issues.apache.org/jira/browse/PIVOT-686
> Project: Pivot
> Issue Type: Bug
> Affects Versions: 1.5.1
> Environment: Tested on Windows XP with Firefox 3.6.13 and 8.0.552.224
> Reporter: Felix
> Assignee: Sandro Martini
> Priority: Minor
> Fix For: 2.0.2
>
> Attachments: kitchen-sink_test.html, pivot686_test.html
>
>
> A pivot applet will never gain focus after a page load. You always have to click on the applet, before it accepts key events. It seems not to be a JDK issue.
> I've created to examples which include textfield in the applet. One applet with pivot and one without. Only in the native applet the textfield gains the focus (works with Firefox and Chrome). The pivot never gains automaticly the focus without clicking the applet.
> Applet Version (immediate focus works):
> http://betrunken.de/media/appletFocusDemo/appletPlainDemo.html
>
> Pivot Version (immediate focus doesn't work):
> http://betrunken.de/media/appletFocusDemo/pivotPlainDemo.html
>
> Try to start typing after reload. It works only for the applet version.
>
> You can download the source from:
> http://betrunken.de/media/appletFocusDemo/demoApplet.jar
> The discussion thread can be found at:
> http://apache-pivot-users.399431.n3.nabble.com/request-focus-in-my-pivot-applet-on-page-load-td2085547.html
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira