I am getting a serious problem with gwt. When I am first launching the server, I am viewing the page but later when refreshing the browser, I am getting a blank page. When I do view source, I see all the required tags such nocache.js and history frame but i get a blank screen
According to me, When you refresh the page, you are not on the home page. So you replace panels on onmodulLoad on the home page, but in other pages main panels is not generated and replaced in browser.
To check my theory. Please insert a System.out.println("isLoading"); start point of onModuleLoad. Be sure In initial case "isLoading" written to console. After try to refresh page. It it isn't written you must load your homepage whenever refreshed browser.
I hope, my solution is clear.
Related
When we use JAWs for accessibility purpose we find an issue with Tab button. It's work correct for IE browser, but wrong for Edge. When SWT Edge browser widget display and we use Tab button JAWs pronounce wrong Link/Button label, (it repeat the previous one, but if we click Enter right link will open).The issue is random, sometimes it's work correct but sometimes simply repeat the previous Link title/label. It's work ok if I use U button but wrong for Tab. I've tested browser's part locally running it at Edge browser and found that Tab button work correct with JAWs. But when I run application as a part of Eclipse RCP application with SWT Edge browser I found an error. It seems like we have some conflict/problem between SWT Edge and Jaws. May be some one understand the problem and can help with it? Thank you
I'm trying to reach a point where my extension can show not only a notification that a website is updated, but also a small image that represents this update from that site. The only way I seem to get this to work is if the user has the updated page in a tab. In this case, I just reference the document.ImageSrc
img[i] = document.images[i].src;
or iFrame and it will show the first image of that page.
The problemis that an update extension that forces the user to click on the page is useless; download an extension to show updates of a page they'd have to open anyway.
Is there a way around this?
A way to show a preview of the page without being on it? Or to display the first image of a page? Or first tweet without being on twitter?
Other question wasn't answered.
I am using DJBrowser in my swing application to show a static html page with style sheets.
The JWebBrowser instance is added inside the panel and the panel is inside JFrame. The issue is with focus not coming back inside the browser when the browser frame regains the focus.
I am using java 6 (jdk 1.6.0_21 to be specific).
I have tried the SimpleWebBrowserExample inside the DJProject. After opening the JWebBrowser, the focus/cursor will go inside the browser content e.g. google search text field. When the screen is de-focused by ALT+TAB and refocused using the same keys, focus does not come inside the text field again (Not sure where the focus is going).
In my application, after opening the html page in the browser user generally wants to find some words inside the page using CTRL+F option then switch between the application and browser often. But after switching to browser user cannot access CTRL+F option as there is no focus on the native browser. (Unless he/she clicks on the browser by mouse).
After reading other similar posts I have tried setting the focus to the native component like - getNativeComponent().requestFocus(), but this did not work.
Could someone please help?
I got the answer to my question above from Christopher Deckers.
If you control the web page, you could keep track of the focused control, and maybe execute Javascript code to restore focus when you detect it should re-acquire it. Javascript code could be something like:
document.getElementById("mytext").focus();
This helped me. Now the web component is getting focus when the window is focused.
Just sharing with you all.
Thanks,
Tushar
I have rich:datascroller as header and footer to rich:datatable in JSF.It works well when click on datascroller to page navigation when run on google chrome but when same run on internet explorer doesnt show data in datatable when f5 is pressed then it shows the data in datatable.
In my case was same plugin added that generates error when I tried click to change to other view. I reset browser's configuration to uninstall all pluggins and the navegation between pages back to work.
P.S: Sorry my poor English :-)
This is Vaadin's official solution to multi-tabs and out of sync problem:
https://vaadin.com/web/joonas/wiki/-/wiki/Main/Supporting+Multible+Tabs#_36_messageScroll1791001
If I remove the line
w.open(new ExternalResource(w.getURL()));
in the presented code, the application webpage is not refreshed when opening additional tabs, I don't get a different url for application tab and I got no "out of sync" errors so far.
I don't see the relation between having a separate window class (and isolating window-specific state in this class) to the fact of having a different app url for each tab that opens the application.
Is the code above required?
Thanks in advance.