Well, it would be much easier if pages SubPage1 and SubPage2 were
bookmarkable and you would define your frameset just in HTML.

Is there any reason why you want to do that dynamically/ not with
bookmarkable pages? Also, you should put the different frames in
different page maps so that using one frame doesn't result in expiring
the other.

Eelco


On 2/7/06, Marieke Vandamme <[EMAIL PROTECTED]> wrote:
>
> I have a problem using multiple iframes on one WebPage. This error only 
> occured when using the 1.2 SNAPSHOT (now using 1.2-20060206) and worked fine 
> in 1.1.
>
> - - - MainPage.html - - -
>     <a wicket:id="lnkSubPage1" style="position:absolute;top:-100px;"></a>
>     <a wicket:id="lnkSubPage2" style="position:absolute;top:-100px;"></a>
>
>     <iframe wicket:id="iSubPage1"></iframe>
>     <iframe wicket:id="iSubPage2"></iframe>
>
>
> I don't know if this is a correct way of filling the src of the iframes. 
> Maybe this is why i get the error. If so, how can i change the src of an 
> iframe correctly?
> - - - MainPage.java - - -
>         final PageLink lnkSubPage1 = new PageLink("lnkSubPage1", 
> SubPage1.class);
>         add(lnkSubPage1);
>         WebMarkupContainer iSubPage1 = new WebMarkupContainer("iSubPage1");
>         iSubPage1.add(new AttributeModifier("src", true, new Model() {
>             public Object getObject(Component c) {
>                 return lnkSubPage1.urlFor(ILinkListener.class);
>             }
>         }));
>         add(iSubPage1);
>
>
>         final PageLink lnkSubPage2 = new PageLink("lnkSubPage2", 
> SubPage2.class);
>         add(lnkSubPage2);
>         WebMarkupContainer iSubPage2 = new WebMarkupContainer("iSubPage2");
>         iSubPage2.add(new AttributeModifier("src", true, new Model() {
>             public Object getObject(Component c) {
>                 return lnkSubPage2.urlFor(ILinkListener.class);
>             }
>         }));
>         add(iSubPage2);
>
> When loading the MainPage, I get the following stacktrace. This occurs on 
> both subpages, only on SubPage1 or only on SubPage2. When the error doesn't 
> occur, it's enough to simply refresh the page to get the error. :
> - - - StackTrace - - -
>         java.util.ConcurrentModificationException
>         at 
> java.util.AbstractList$Itr.checkForComodification(AbstractList.java:449)
>         at java.util.AbstractList$Itr.next(AbstractList.java:420)
>         at wicket.Session.update(Session.java:767)
>         at wicket.protocol.http.WebSession.update(WebSession.java:117)
>         at wicket.RequestCycle.cleanUp(RequestCycle.java:787)
>         at wicket.RequestCycle.steps(RequestCycle.java:1059)
>         at wicket.RequestCycle.request(RequestCycle.java:524)
>         at wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:205)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>         at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
>         at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
>         at 
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
>         at 
> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
>         at 
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
>         at 
> org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
>         at 
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
>         at 
> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
>         at 
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
>         at 
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
>         at 
> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
>         at 
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
>         at 
> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
>         at 
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
>         at 
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
>         at 
> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
>         at 
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
>         at 
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
>         at 
> org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
>         at 
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
>         at 
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
>         at 
> org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
>         at 
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
>         at java.lang.Thread.run(Thread.java:595)
> ____________________________________________________________________________________________________________________________________
>
>  ATTENTION !!
>
>  This email and any files transmitted with it are confidential and intended 
> solely for the use of the individual or entity to whom they are addressed.
>  If you are not the intended recipient of this message you are hereby 
> notified that any use, distribution or reproduction of this message and any 
> files is prohibited.
>  If you have received this email in error please notify the system manager by 
> sending this email to [EMAIL PROTECTED]
>  Any views expressed in this email are those of the  individual sender and 
> may not necessarily reflect the views of TVH - Group Thermote & Vanhalst.
>
>  This footnote also confirms that this email message has been swept by our 
> virus-scanning software for the presence of computer viruses.
>  
> ____________________________________________________________________________________________________________________________________
>


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to