From: SourceForge.net <no...@so...> - 2003-06-13 07:15:32
|
Bugs item #753776, was opened at 2003-06-13 09:15 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=448266&aid=753776&group_id=47038 Category: Interface (example) Group: None Status: Open Resolution: None Priority: 5 Submitted By: JHoltman (jholtman) Assigned to: Nobody/Anonymous (nobody) Summary: Refreshing a frame in a frameset Initial Comment: Hi, I guess that refreshing frames in a frameset is not working as expected. I have a frameset with a "contents" frame on the left (with 2 hypertext links "Second" and "Third") and on the right another "maincontents" frame. Initially the "maincontents" frame contains a "maincontents_initial.html" page. OK, works for me. If I click on the "Second" link (on the contents frame), the "maincontents" frame should be refreshed with the "maincontents_second.html" file. I expect a webwindow event with a webwindow of type "HtmlFrame", but I get "ToplevelWindow". I expect the webwindow (via newPage().getEnclosingWindow()) to be pointing to a previous initialized "maincontents" frame. Not so. There is also no name of the webwindow (via getName). The output of the test program: =======================8<================= [1] - access the frameset WinEvent: name=Contents, class=com.gargoylesoftware.htmlunit.html.HtmlFrame, new page title=Contents Contents frame with page title: Contents WinEvent: name=maincontents, class=com.gargoylesoftware.htmlunit.html.HtmlFrame, new page title=Initial Main Contents MainContents frame with page title: Initial Main Contents WinEvent: name=, class=com.gargoylesoftware.htmlunit.TopLevelWindow, new page title=Frameset test Unknown webwindow not equal to other webwindows [2] - check the contents frame [3] - check the maincontents frame [4] - push the "Second" html-link WinEvent: name=, class=com.gargoylesoftware.htmlunit.TopLevelWindow, new page title=Second Main Contents Unknown webwindow not equal to other webwindows [5] - check the maincontents frame - should be HtmlFrame update with Second Main Contents Expected "second" main contents page =======================8<================= (For me less important) When adding the getOldPage() in the code (see NOTICE) the an exception occurs. Attached: (1) HTML code: - frameset.html (with the frameset) - contents.html (the left frame of the frameset with 2 links) - maincontents_initial.html (the initial contents of the maincontents / right frame) - maincontents_second.html (after clicking on the "Second" this shoudl be in maincontents - maincontents_third.html (also for "Third" link) (2) Java code: - TestWindowReload.java (main test program) - TestWebWindowEventListener.java (simple web window event listener) I hope you can spend some time on this one because framesets are quite important in a number of websites. And by removing the NOTICE the stack trace is shown. Greetings, Johan Holtman ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=448266&aid=753776&group_id=47038 |