You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by LSomefun <oy...@gmail.com> on 2019/12/27 15:05:58 UTC

Wicket's error message-> java.lang.IllegalStateException: This container is already dequeing

I am trying out the Wicket framework using version 8. I have been battling
this strange error without success. I am using Payara application server on
Windows 10 The required info is below, any tips or help in finding out where
the problem is would be appreciated. I looked into stackoverflow, pretty
much any help sites  for similar questions but did not find any. 
It seems deque preamble is being called erroneously by wicket.

Java Source below



public class PrescientHome extends PrescientTemplateOriginalPage {

private Model<ZipManagedBean> zipManager;
private Form occForm;

private WebMarkupContainer tagFrame;
private Login login;
private Model<String> occupationListModel;
private List <String> occupationList;
private DropDownChoice<String> occupationChoices;
public PrescientHome()

{ super(); }
@Override
protected void onInitialize() {
super.onInitialize(); 
zipManager=Model.of(new ZipManagedBean());

login=new Login();
login.setResponsePage(Login.class);
occupationListModel= new Model<>();
occupationList=zipManager.getObject().getOccCode();
occupationChoices=new
DropDownChoice<>("occupationModel",occupationListModel, occupationList );

occForm=new Form("occupationForm"){
@Override
protected void onSubmit()

{ super.onSubmit();  }
};
occForm.add(occupationChoices);
add(occForm);
tagFrame=new WebMarkupContainer("TagFrame");
tagFrame.add(login);
add(tagFrame);

}







}


HTML Source below

<!DOCTYPE html>

<html>
<head>
<title>TODO supply a title</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
<wicket:extend>
<div wicket:id="TagFrame">

</div>
<div>
<form id="occupationForm">

 Doctors : 
<select name="occModel" wicket:id=":occupationModel">
<option selected="selected">Choose one</option>
<option value="0">Physician</option>
<option value="1">Dentist</option>
<option value="2">Optometrist</option>
</select>
<input type="submit" value="Submit" />.
</form>
</div>
</wicket:extend>
</body>
</html>


The error displayed below. 
java.lang.IllegalStateException: This container is already dequeing: [Page
class = 
org.prescients.prescientdocwicket.PrescientHome, id = 0, render count = 0]
at
org.apache.wicket.MarkupContainer.dequeuePreamble(MarkupContainer.java:1918)
at org.apache.wicket.MarkupContainer.dequeue(MarkupContainer.java:1856)
at org.apache.wicket.MarkupContainer.dequeueChild(MarkupContainer.java:2018)
at org.apache.wicket.MarkupContainer.dequeue(MarkupContainer.java:1983)
at
org.apache.wicket.MarkupContainer.dequeuePreamble(MarkupContainer.java:1931)
at org.apache.wicket.MarkupContainer.dequeue(MarkupContainer.java:1856)
at org.apache.wicket.MarkupContainer.onInitialize(MarkupContainer.java:1887)
at org.apache.wicket.Page.onInitialize(Page.java:298)
atorg.prescients.prescientdocwicket.PrescientTemplateOriginalPage.onInitialize(PrescientTemplateOrigi 
nalPage.java:36)
at
org.prescients.prescientdocwicket.PrescientHome.onInitialize(PrescientHome.java:48)

--
Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Wicket's error message-> java.lang.IllegalStateException: This container is already dequeing

Posted by LSomefun <oy...@gmail.com>.
PrescientTemplateOriginalPage is actually the parent class of PrescientHome
so that why PrescientTemplateOriginalPage had the <wicket:child/> tag, and
prescientHome had the <wicket:extend>.
I was able to solve the problem and your assistance was greatly appreciated.
The problem is seems was how I was referring my form id. I needed to put 
<form wicket:id="occupationForm">   and not <form id="occupationForm"> . 

Francois thank you so much for all your assistance.

--
Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Wicket's error message-> java.lang.IllegalStateException: This container is already dequeing

Posted by LSomefun <oy...@gmail.com>.
I don't think I have the privileges to do but let Martin Tzvetanov Grigorov
know to close the issue on Jira.

--
Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Wicket's error message-> java.lang.IllegalStateException: This container is already dequeing

Posted by Andrea Del Bene <an...@gmail.com>.
Please, if you manage to solve your problem here in the mailing list 
remember to close WICKET-6721 on Jira.

On 12/29/19 10:46 AM, francois meillet wrote:
> you are adding the header and the footer panels in the child page but the html tag is in the super class.
>
> François
>
>
>> Le 28 déc. 2019 à 22:35, LSomefun <oy...@gmail.com> a écrit :
>>
>> I do appreciate you looking at this while on holiday. The 2nd constructor of
>> PrescientTemplateOriginalPage I have deleted. Truth is it was not needed.
>> The HTML code of PrescientHome I initially submitted did not include the
>> HeaderPanel and footerPanel, was because of inheritance from
>> PrescientTemplateOriginalPage so did not need to include them.
>> The HTML Code from PrescientTemplateOriginalPage is below
>> <html>
>>     <head>
>>         <title>Template</title>
>>         <meta charset="UTF-8">
>>         <meta name="viewport" content="width=device-width,
>> initial-scale=1.0">
>>     </head>
>>
>>     <body>
>>         <div id="header" wicket:id="headerPanel"/>
>>         <wicket:child/>
>>
>>         <div id="footer" wicket:id="footerPanel"/>
>>
>>     </body>
>> </html>
>>
>> And the HTML code from PrecientHome is below
>> <html>
>>     <head>
>>         <title>TODO supply a title</title>
>>         <meta charset="UTF-8">
>>         <meta name="viewport" content="width=device-width,
>> initial-scale=1.0">
>>     </head>
>>     <body>
>>     <wicket:extend>
>>         <div>
>>        <form id="occupationForm">
>>
>>          Doctors :
>>         <select name="occModel"  wicket:id=":occupationModel">
>>             <option selected="selected">Choose one</option>
>>             <option value="0">Physician</option>
>>             <option value="1">Dentist</option>
>>             <option value="2">Optometrist</option>
>>         </select>
>>         <input type="submit" value="Submit" />.
>>         </form>
>>         </div>
>>     </wicket:extend>
>>     </body>
>> </html>
>>
>>
>> --
>> Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Wicket's error message-> java.lang.IllegalStateException: This container is already dequeing

Posted by francois meillet <fr...@gmail.com>.
you are adding the header and the footer panels in the child page but the html tag is in the super class.

François 


> Le 28 déc. 2019 à 22:35, LSomefun <oy...@gmail.com> a écrit :
> 
> I do appreciate you looking at this while on holiday. The 2nd constructor of
> PrescientTemplateOriginalPage I have deleted. Truth is it was not needed.
> The HTML code of PrescientHome I initially submitted did not include the
> HeaderPanel and footerPanel, was because of inheritance from
> PrescientTemplateOriginalPage so did not need to include them. 
> The HTML Code from PrescientTemplateOriginalPage is below
> <html>
>    <head>
>        <title>Template</title>
>        <meta charset="UTF-8">
>        <meta name="viewport" content="width=device-width,
> initial-scale=1.0">
>    </head>
> 
>    <body>
>        <div id="header" wicket:id="headerPanel"/>  
>        <wicket:child/> 
> 
>        <div id="footer" wicket:id="footerPanel"/>
> 
>    </body>
> </html>
> 
> And the HTML code from PrecientHome is below
> <html>
>    <head>
>        <title>TODO supply a title</title>
>        <meta charset="UTF-8">
>        <meta name="viewport" content="width=device-width,
> initial-scale=1.0">
>    </head>
>    <body>
>    <wicket:extend> 
>        <div>
>       <form id="occupationForm">     
> 
>         Doctors : 
>        <select name="occModel"  wicket:id=":occupationModel"> 
>            <option selected="selected">Choose one</option>
>            <option value="0">Physician</option>
>            <option value="1">Dentist</option>
>            <option value="2">Optometrist</option>
>        </select>
>        <input type="submit" value="Submit" />.     
>        </form> 
>        </div>
>    </wicket:extend> 
>    </body>
> </html>
> 
> 
> --
> Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Wicket's error message-> java.lang.IllegalStateException: This container is already dequeing

Posted by LSomefun <oy...@gmail.com>.
I do appreciate you looking at this while on holiday. The 2nd constructor of
PrescientTemplateOriginalPage I have deleted. Truth is it was not needed.
The HTML code of PrescientHome I initially submitted did not include the
HeaderPanel and footerPanel, was because of inheritance from
PrescientTemplateOriginalPage so did not need to include them. 
The HTML Code from PrescientTemplateOriginalPage is below
<html>
    <head>
        <title>Template</title>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width,
initial-scale=1.0">
    </head>
    
    <body>
        <div id="header" wicket:id="headerPanel"/>  
        <wicket:child/> 
       
        <div id="footer" wicket:id="footerPanel"/>
            
    </body>
</html>

And the HTML code from PrecientHome is below
<html>
    <head>
        <title>TODO supply a title</title>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width,
initial-scale=1.0">
    </head>
    <body>
    <wicket:extend> 
        <div>
       <form id="occupationForm">     
              
         Doctors : 
        <select name="occModel"  wicket:id=":occupationModel"> 
            <option selected="selected">Choose one</option>
            <option value="0">Physician</option>
            <option value="1">Dentist</option>
            <option value="2">Optometrist</option>
        </select>
        <input type="submit" value="Submit" />.     
        </form> 
        </div>
    </wicket:extend> 
    </body>
</html>


--
Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Wicket's error message-> java.lang.IllegalStateException: This container is already dequeing

Posted by francois meillet <fr...@gmail.com>.
There are few problems I can see (from my mobile, being on hollidays )
First you should not pass component to  PrescientTemplateOriginalPage constructor's argument.
Second : in the second constructor you do not add the panels to the page
Third : in the html code the header and footer tags are not presents

Francois

> Le 28 déc. 2019 à 15:19, LSomefun <oy...@gmail.com> a écrit :
> 
> Thanks for you reply. Included more codes below.
> 
> Code for PrescientTemplateOriginalPage below
> package org.possible.bug;
> 
> import org.apache.wicket.markup.html.WebPage;
> import org.apache.wicket.markup.html.basic.Label;
> import org.apache.wicket.model.Model;
> 
> /**
> *
> * @author oyeso
> */
> public class PrescientTemplateOriginalPage extends WebPage {
> 
>    private final String footerId="footerPanel";
>    private final String headerId="headerPanel";
> 
> 
> 
> 
>    private FooterPanel footer;
>    private HeaderPanel header;
> 
>    public PrescientTemplateOriginalPage() {
>           this.header = new HeaderPanel(headerId);
> 
>        this.footer = new FooterPanel(footerId);
> 
>         add(header);
>         add(footer);
>    }
> 
> 
> 
> 
> 
>    public PrescientTemplateOriginalPage( FooterPanel footer, HeaderPanel
> header) {
> 
>        this.footer = footer;
>        this.header = header;
> 
>    }
> 
> 
> }
> 
> Code for HeaderPanel below
> 
> import org.apache.wicket.Component;
> import org.apache.wicket.MarkupContainer;
> import org.apache.wicket.behavior.Behavior;
> import org.apache.wicket.markup.html.basic.Label;
> import org.apache.wicket.markup.html.image.Image;
> import org.apache.wicket.markup.html.panel.Panel;
> import org.apache.wicket.model.Model;
> 
> public class HeaderPanel extends Panel{
>   private Label header;
>   private Image imgHeader;
>    public HeaderPanel(String id) {
>        super(id);
>          header=new Label("prescientDoctorsLabel",Model.of("Prescient
> Doctors") );
> 
>        add(header);
> 
>    }
> 
> 
> 
> 
> 
> 
> }
> 
> Code for FooterPanel Below
> 
> import org.apache.wicket.markup.html.basic.Label;
> import org.apache.wicket.markup.html.panel.Panel;
> import org.apache.wicket.model.Model;
> 
> public class FooterPanel extends Panel{
> 
>    public FooterPanel(String id) {
>        super(id);
>        add(new Label("footerLabel",Model.of("Footer Label Here")));
>    }
> 
> }
> 
> Code for PrecientHome below
> 
> package org.possible.bug;
> 
> import java.io.IOException;
> import java.util.List;
> import java.util.logging.Level;
> import java.util.logging.Logger;
> import org.apache.wicket.markup.html.MarkupUtil;
> import org.apache.wicket.markup.html.WebMarkupContainer;
> import org.apache.wicket.markup.html.WebPage;
> import org.apache.wicket.markup.html.basic.Label;
> import org.apache.wicket.markup.html.form.DropDownChoice;
> import org.apache.wicket.markup.html.form.Form;
> import org.apache.wicket.markup.html.form.FormComponentUpdatingBehavior;
> import org.apache.wicket.model.Model;
> import org.apache.wicket.model.PropertyModel;
> 
> /**
> *
> * @author oyeso
> */
> 
> 
> public class PrescientHome  extends PrescientTemplateOriginalPage {
> 
>    private Model<ZipManagedBean> zipManager;
>    private Form occForm;
> 
>    private WebMarkupContainer tagFrame;
> 
>    private Model<String> occupationListModel;
>    private List <String> occupationList;
>    private DropDownChoice<String> occupationChoices;
> 
>    public PrescientHome() {
> 
>            zipManager=Model.of(new ZipManagedBean());
> 
> 
> 
>     occupationListModel= new Model<>();
>     occupationList=zipManager.getObject().getOccCode();
>     occupationChoices=new
> DropDownChoice<>("occupationModel",occupationListModel, occupationList );
> 
>        //queue(occForm);
>        occForm=new Form("occupationForm"){
>           @Override
>           protected void onSubmit() {
> 
>               //Do the next thing
>           }
> 
>        };
>       occForm.add(occupationChoices);
>       add(occForm);
> 
> 
>    }
> 
> 
> New Stack Trace below
> java.lang.IllegalStateException: This container is already dequeing: [Page
> class = org.possible.bug.PrescientHome, id = 0, render count = 0]
>    at
> org.apache.wicket.MarkupContainer.dequeuePreamble(MarkupContainer.java:1918)
>    at org.apache.wicket.MarkupContainer.dequeue(MarkupContainer.java:1856)
>    at
> org.apache.wicket.MarkupContainer.dequeueChild(MarkupContainer.java:2018)
>    at org.apache.wicket.MarkupContainer.dequeue(MarkupContainer.java:1983)
>    at
> org.apache.wicket.MarkupContainer.dequeuePreamble(MarkupContainer.java:1931)
>    at org.apache.wicket.MarkupContainer.dequeue(MarkupContainer.java:1856)
>    at
> org.apache.wicket.MarkupContainer.onInitialize(MarkupContainer.java:1887)
>    at org.apache.wicket.Page.onInitialize(Page.java:298)
>    at org.apache.wicket.Component.fireInitialize(Component.java:873)
>    at
> org.apache.wicket.MarkupContainer.internalInitialize(MarkupContainer.java:1038)
>    at org.apache.wicket.Page.isPageStateless(Page.java:461)
>    at
> org.apache.wicket.core.request.mapper.AbstractBookmarkableMapper.getPageInfo(AbstractBookmarkableMapper.java:473)
>    at
> org.apache.wicket.core.request.mapper.AbstractBookmarkableMapper.mapHandler(AbstractBookmarkableMapper.java:420)
>    at
> org.apache.wicket.core.request.mapper.MountedMapper.mapHandler(MountedMapper.java:155)
>    at
> org.apache.wicket.request.mapper.CompoundRequestMapper.mapHandler(CompoundRequestMapper.java:210)
>    at
> org.apache.wicket.request.cycle.RequestCycle.mapUrlFor(RequestCycle.java:451)
>    at
> org.apache.wicket.request.handler.render.WebPageRenderer.respond(WebPageRenderer.java:233)
>    at
> org.apache.wicket.core.request.handler.RenderPageRequestHandler.respond(RenderPageRequestHandler.java:202)
>    at
> org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:914)
>    at
> org.apache.wicket.request.RequestHandlerExecutor.execute(RequestHandlerExecutor.java:65)
>    at
> org.apache.wicket.request.cycle.RequestCycle.execute(RequestCycle.java:282)
>    at
> org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:253)
>    at
> org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:221)
>    at
> org.apache.wicket.protocol.http.WicketFilter.processRequestCycle(WicketFilter.java:275)
>    at
> org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:206)
>    at
> org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:299)
>    at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:251)
>    at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:209)
>    at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
>    at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:160)
>    at
> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:755)
>    at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:575)
>    at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:99)
>    at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:159)
>    at
> org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:371)
>    at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:238)
>    at
> com.sun.enterprise.v3.services.impl.ContainerMapper$HttpHandlerCallable.call(ContainerMapper.java:520)
>    at
> com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:217)
>    at
> org.glassfish.grizzly.http.server.HttpHandler.runService(HttpHandler.java:182)
>    at
> org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:156)
>    at
> org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:218)
>    at
> org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:95)
>    at
> org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:260)
>    at
> org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:177)
>    at
> org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:109)
>    at
> org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:88)
>    at
> org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:53)
>    at
> org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:524)
>    at
> org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:89)
>    at
> org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:94)
>    at
> org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:33)
>    at
> org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:114)
>    at
> org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:569)
>    at
> org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:549)
>    at java.base/java.lang.Thread.run(Thread.java:834)
> |#]
> 
> --
> Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Wicket's error message-> java.lang.IllegalStateException: This container is already dequeing

Posted by LSomefun <oy...@gmail.com>.
Thanks for you reply. Included more codes below.

Code for PrescientTemplateOriginalPage below
package org.possible.bug;

import org.apache.wicket.markup.html.WebPage;
import org.apache.wicket.markup.html.basic.Label;
import org.apache.wicket.model.Model;

/**
 *
 * @author oyeso
 */
public class PrescientTemplateOriginalPage extends WebPage {
  
    private final String footerId="footerPanel";
    private final String headerId="headerPanel";
    
    
    
    
    private FooterPanel footer;
    private HeaderPanel header;

    public PrescientTemplateOriginalPage() {
           this.header = new HeaderPanel(headerId);
       
        this.footer = new FooterPanel(footerId);
       
         add(header);
         add(footer);
    }

 

   

    public PrescientTemplateOriginalPage( FooterPanel footer, HeaderPanel
header) {
       
        this.footer = footer;
        this.header = header;
       
    }
    
    
}

Code for HeaderPanel below

import org.apache.wicket.Component;
import org.apache.wicket.MarkupContainer;
import org.apache.wicket.behavior.Behavior;
import org.apache.wicket.markup.html.basic.Label;
import org.apache.wicket.markup.html.image.Image;
import org.apache.wicket.markup.html.panel.Panel;
import org.apache.wicket.model.Model;

public class HeaderPanel extends Panel{
   private Label header;
   private Image imgHeader;
    public HeaderPanel(String id) {
        super(id);
          header=new Label("prescientDoctorsLabel",Model.of("Prescient
Doctors") );
          
        add(header);
        
    }

   

   
    
    
}

Code for FooterPanel Below

import org.apache.wicket.markup.html.basic.Label;
import org.apache.wicket.markup.html.panel.Panel;
import org.apache.wicket.model.Model;

public class FooterPanel extends Panel{

    public FooterPanel(String id) {
        super(id);
        add(new Label("footerLabel",Model.of("Footer Label Here")));
    }
    
}

Code for PrecientHome below

package org.possible.bug;

import java.io.IOException;
import java.util.List;
import java.util.logging.Level;
import java.util.logging.Logger;
import org.apache.wicket.markup.html.MarkupUtil;
import org.apache.wicket.markup.html.WebMarkupContainer;
import org.apache.wicket.markup.html.WebPage;
import org.apache.wicket.markup.html.basic.Label;
import org.apache.wicket.markup.html.form.DropDownChoice;
import org.apache.wicket.markup.html.form.Form;
import org.apache.wicket.markup.html.form.FormComponentUpdatingBehavior;
import org.apache.wicket.model.Model;
import org.apache.wicket.model.PropertyModel;

/**
 *
 * @author oyeso
 */

        
public class PrescientHome  extends PrescientTemplateOriginalPage {
 
    private Model<ZipManagedBean> zipManager;
    private Form occForm;
    
    private WebMarkupContainer tagFrame;
   
    private Model<String> occupationListModel;
    private List <String> occupationList;
    private DropDownChoice<String> occupationChoices;

    public PrescientHome() {
          
            zipManager=Model.of(new ZipManagedBean());
    
    
    
     occupationListModel= new Model<>();
     occupationList=zipManager.getObject().getOccCode();
     occupationChoices=new
DropDownChoice<>("occupationModel",occupationListModel, occupationList );
   
        //queue(occForm);
        occForm=new Form("occupationForm"){
           @Override
           protected void onSubmit() {
               
               //Do the next thing
           }
            
        };
       occForm.add(occupationChoices);
       add(occForm);
     
   
    }
    

New Stack Trace below
java.lang.IllegalStateException: This container is already dequeing: [Page
class = org.possible.bug.PrescientHome, id = 0, render count = 0]
	at
org.apache.wicket.MarkupContainer.dequeuePreamble(MarkupContainer.java:1918)
	at org.apache.wicket.MarkupContainer.dequeue(MarkupContainer.java:1856)
	at
org.apache.wicket.MarkupContainer.dequeueChild(MarkupContainer.java:2018)
	at org.apache.wicket.MarkupContainer.dequeue(MarkupContainer.java:1983)
	at
org.apache.wicket.MarkupContainer.dequeuePreamble(MarkupContainer.java:1931)
	at org.apache.wicket.MarkupContainer.dequeue(MarkupContainer.java:1856)
	at
org.apache.wicket.MarkupContainer.onInitialize(MarkupContainer.java:1887)
	at org.apache.wicket.Page.onInitialize(Page.java:298)
	at org.apache.wicket.Component.fireInitialize(Component.java:873)
	at
org.apache.wicket.MarkupContainer.internalInitialize(MarkupContainer.java:1038)
	at org.apache.wicket.Page.isPageStateless(Page.java:461)
	at
org.apache.wicket.core.request.mapper.AbstractBookmarkableMapper.getPageInfo(AbstractBookmarkableMapper.java:473)
	at
org.apache.wicket.core.request.mapper.AbstractBookmarkableMapper.mapHandler(AbstractBookmarkableMapper.java:420)
	at
org.apache.wicket.core.request.mapper.MountedMapper.mapHandler(MountedMapper.java:155)
	at
org.apache.wicket.request.mapper.CompoundRequestMapper.mapHandler(CompoundRequestMapper.java:210)
	at
org.apache.wicket.request.cycle.RequestCycle.mapUrlFor(RequestCycle.java:451)
	at
org.apache.wicket.request.handler.render.WebPageRenderer.respond(WebPageRenderer.java:233)
	at
org.apache.wicket.core.request.handler.RenderPageRequestHandler.respond(RenderPageRequestHandler.java:202)
	at
org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:914)
	at
org.apache.wicket.request.RequestHandlerExecutor.execute(RequestHandlerExecutor.java:65)
	at
org.apache.wicket.request.cycle.RequestCycle.execute(RequestCycle.java:282)
	at
org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:253)
	at
org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:221)
	at
org.apache.wicket.protocol.http.WicketFilter.processRequestCycle(WicketFilter.java:275)
	at
org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:206)
	at
org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:299)
	at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:251)
	at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:209)
	at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
	at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:160)
	at
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:755)
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:575)
	at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:99)
	at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:159)
	at
org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:371)
	at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:238)
	at
com.sun.enterprise.v3.services.impl.ContainerMapper$HttpHandlerCallable.call(ContainerMapper.java:520)
	at
com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:217)
	at
org.glassfish.grizzly.http.server.HttpHandler.runService(HttpHandler.java:182)
	at
org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:156)
	at
org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:218)
	at
org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:95)
	at
org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:260)
	at
org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:177)
	at
org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:109)
	at
org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:88)
	at
org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:53)
	at
org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:524)
	at
org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:89)
	at
org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:94)
	at
org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:33)
	at
org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:114)
	at
org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:569)
	at
org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:549)
	at java.base/java.lang.Thread.run(Thread.java:834)
|#]

--
Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Wicket's error message-> java.lang.IllegalStateException: This container is already dequeing

Posted by Francois Meillet <fr...@gmail.com>.
Could you show us the new stacktrace and the PrescientTemplateOriginalPage code ?

François



> Le 27 déc. 2019 à 22:51, LSomefun <oy...@gmail.com> a écrit :
> 
> Thanks for your reply Francois, much appreciated. Even when I adjust my code
> and remove the login object from the source code and from the html tag like
> the code below I still get the same error I was encountering. I definitely
> will try version 9 in the near future  as soon as I can solve the current
> problem the framework is showing.
> 
> Java Source below
>> 
>> 
>> 
>> public class PrescientHome extends PrescientTemplateOriginalPage {
>> 
>> private Model<ZipManagedBean> zipManager;
>> private Form occForm;
>> 
>> private WebMarkupContainer tagFrame;
>> private Login login;
>> private Model<String> occupationListModel;
>> private List <String> occupationList;
>> private DropDownChoice<String> occupationChoices;
>> public PrescientHome()
>> 
>> { super(); }
>> @Override
>> protected void onInitialize() {
>> super.onInitialize();
>> zipManager=Model.of(new ZipManagedBean());
>> 
>> 
>> occupationListModel= new Model<>();
>> occupationList=zipManager.getObject().getOccCode();
>> occupationChoices=new
>> DropDownChoice<>("occupationModel",occupationListModel, occupationList );
>> 
>> occForm=new Form("occupationForm"){
>> @Override
>> protected void onSubmit()
>> 
>> { super.onSubmit();  }
>> };
>> occForm.add(occupationChoices);
>> add(occForm);
> 
>> 
>> }
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> }
>> 
>> 
>> HTML Source below
>> 
>> <!DOCTYPE html>
>> 
>> <html>
>> <head>
>> <title>TODO supply a title</title>
>> <meta charset="UTF-8">
>> <meta name="viewport" content="width=device-width, initial-scale=1.0">
>> </head>
>> <body>
>> <wicket:extend>
>> 
>> <div>
>> <form id="occupationForm">
>> 
>> Doctors :
>> <select name="occModel" wicket:id=":occupationModel">
>> <option selected="selected">Choose one</option>
>> <option value="0">Physician</option>
>> <option value="1">Dentist</option>
>> <option value="2">Optometrist</option>
>> </select>
>> <input type="submit" value="Submit" />.
>> </form>
>> </div>
>> </wicket:extend>
>> </body>
>> </html>
> 
> --
> Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Wicket's error message-> java.lang.IllegalStateException: This container is already dequeing

Posted by LSomefun <oy...@gmail.com>.
Thanks for your reply Francois, much appreciated. Even when I adjust my code
and remove the login object from the source code and from the html tag like
the code below I still get the same error I was encountering. I definitely
will try version 9 in the near future  as soon as I can solve the current
problem the framework is showing.

Java Source below
>
>
>
> public class PrescientHome extends PrescientTemplateOriginalPage {
>
> private Model<ZipManagedBean> zipManager;
> private Form occForm;
>
> private WebMarkupContainer tagFrame;
> private Login login;
> private Model<String> occupationListModel;
> private List <String> occupationList;
> private DropDownChoice<String> occupationChoices;
> public PrescientHome()
>
> { super(); }
> @Override
> protected void onInitialize() {
> super.onInitialize();
> zipManager=Model.of(new ZipManagedBean());
>
>
> occupationListModel= new Model<>();
> occupationList=zipManager.getObject().getOccCode();
> occupationChoices=new
> DropDownChoice<>("occupationModel",occupationListModel, occupationList );
>
> occForm=new Form("occupationForm"){
> @Override
> protected void onSubmit()
>
> { super.onSubmit();  }
> };
> occForm.add(occupationChoices);
> add(occForm);

>
> }
>
>
>
>
>
>
>
> }
>
>
> HTML Source below
>
> <!DOCTYPE html>
>
> <html>
> <head>
> <title>TODO supply a title</title>
> <meta charset="UTF-8">
> <meta name="viewport" content="width=device-width, initial-scale=1.0">
> </head>
> <body>
> <wicket:extend>
>
> <div>
> <form id="occupationForm">
>
> Doctors :
> <select name="occModel" wicket:id=":occupationModel">
> <option selected="selected">Choose one</option>
> <option value="0">Physician</option>
> <option value="1">Dentist</option>
> <option value="2">Optometrist</option>
> </select>
> <input type="submit" value="Submit" />.
> </form>
> </div>
> </wicket:extend>
> </body>
> </html>

--
Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Wicket's error message-> java.lang.IllegalStateException: This container is already dequeing

Posted by Francois Meillet <fr...@gmail.com>.
If what you want is redirecting the user to the Login page after the form submit,
you need to remove all references to the Login class in the PrescientHome class, 
then in the form # onSubmit you can use the code setResponsePage(Login.class).

Have a look at wicket links and wicket forms

https://ci.apache.org/projects/wicket/guide/8.x/single.html#_wicket_links

https://ci.apache.org/projects/wicket/guide/8.x/single.html#_wicket_forms

By the way you should give a try to Wicket 9 !

Hope this help

François



> Le 27 déc. 2019 à 16:05, LSomefun <oy...@gmail.com> a écrit :
> 
> I am trying out the Wicket framework using version 8. I have been battling
> this strange error without success. I am using Payara application server on
> Windows 10 The required info is below, any tips or help in finding out where
> the problem is would be appreciated. I looked into stackoverflow, pretty
> much any help sites  for similar questions but did not find any. 
> It seems deque preamble is being called erroneously by wicket.
> 
> Java Source below
> 
> 
> 
> public class PrescientHome extends PrescientTemplateOriginalPage {
> 
> private Model<ZipManagedBean> zipManager;
> private Form occForm;
> 
> private WebMarkupContainer tagFrame;
> private Login login;
> private Model<String> occupationListModel;
> private List <String> occupationList;
> private DropDownChoice<String> occupationChoices;
> public PrescientHome()
> 
> { super(); }
> @Override
> protected void onInitialize() {
> super.onInitialize(); 
> zipManager=Model.of(new ZipManagedBean());
> 
> login=new Login();
> login.setResponsePage(Login.class);
> occupationListModel= new Model<>();
> occupationList=zipManager.getObject().getOccCode();
> occupationChoices=new
> DropDownChoice<>("occupationModel",occupationListModel, occupationList );
> 
> occForm=new Form("occupationForm"){
> @Override
> protected void onSubmit()
> 
> { super.onSubmit();  }
> };
> occForm.add(occupationChoices);
> add(occForm);
> tagFrame=new WebMarkupContainer("TagFrame");
> tagFrame.add(login);
> add(tagFrame);
> 
> }
> 
> 
> 
> 
> 
> 
> 
> }
> 
> 
> HTML Source below
> 
> <!DOCTYPE html>
> 
> <html>
> <head>
> <title>TODO supply a title</title>
> <meta charset="UTF-8">
> <meta name="viewport" content="width=device-width, initial-scale=1.0">
> </head>
> <body>
> <wicket:extend>
> <div wicket:id="TagFrame">
> 
> </div>
> <div>
> <form id="occupationForm">
> 
> Doctors : 
> <select name="occModel" wicket:id=":occupationModel">
> <option selected="selected">Choose one</option>
> <option value="0">Physician</option>
> <option value="1">Dentist</option>
> <option value="2">Optometrist</option>
> </select>
> <input type="submit" value="Submit" />.
> </form>
> </div>
> </wicket:extend>
> </body>
> </html>
> 
> 
> The error displayed below. 
> java.lang.IllegalStateException: This container is already dequeing: [Page
> class = 
> org.prescients.prescientdocwicket.PrescientHome, id = 0, render count = 0]
> at
> org.apache.wicket.MarkupContainer.dequeuePreamble(MarkupContainer.java:1918)
> at org.apache.wicket.MarkupContainer.dequeue(MarkupContainer.java:1856)
> at org.apache.wicket.MarkupContainer.dequeueChild(MarkupContainer.java:2018)
> at org.apache.wicket.MarkupContainer.dequeue(MarkupContainer.java:1983)
> at
> org.apache.wicket.MarkupContainer.dequeuePreamble(MarkupContainer.java:1931)
> at org.apache.wicket.MarkupContainer.dequeue(MarkupContainer.java:1856)
> at org.apache.wicket.MarkupContainer.onInitialize(MarkupContainer.java:1887)
> at org.apache.wicket.Page.onInitialize(Page.java:298)
> atorg.prescients.prescientdocwicket.PrescientTemplateOriginalPage.onInitialize(PrescientTemplateOrigi 
> nalPage.java:36)
> at
> org.prescients.prescientdocwicket.PrescientHome.onInitialize(PrescientHome.java:48)
> 
> --
> Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org