You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Maxim Solodovnik (Jira)" <ji...@apache.org> on 2019/12/30 06:38:00 UTC

[jira] [Resolved] (WICKET-6721) Container is already dequeing

     [ https://issues.apache.org/jira/browse/WICKET-6721?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Maxim Solodovnik resolved WICKET-6721.
--------------------------------------
    Resolution: Not A Problem

> Container is already dequeing
> -----------------------------
>
>                 Key: WICKET-6721
>                 URL: https://issues.apache.org/jira/browse/WICKET-6721
>             Project: Wicket
>          Issue Type: Bug
>         Environment: Noted I use a Payara application server on Windows 10
>            Reporter: Lanre oye-somefun
>            Priority: Major
>         Attachments: FooterPanel.html, FooterPanel.java, HeaderPanel.html, HeaderPanel.java, HomePage.html, HomePage.java, PrecientApplication.java, PrescientHome.html, PrescientHome.java, PrescientTemplateOriginalPage.html, PrescientTemplateOriginalPage.java, Start.java, TestHomePage.java, ZipManagedBean.java, bug.zip, myproject-1.0-SNAPSHOT.war, pom.xml, web.xml
>
>
> Java Source
> package org.prescients.prescientdocwicket;
> import java.io.IOException;
> import java.util.List;
> import java.util.logging.Level;
> import java.util.logging.Logger;
> import javax.persistence.EntityManager;
> 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 Login login;
>  private Model<String> occupationListModel;
>  private List <String> occupationList;
>  private DropDownChoice<String> occupationChoices;
>  public PrescientHome() {
>  super();
>  
>  
>  
>  }
> @Override
>  protected void onInitialize() {
>  super.onInitialize(); //To change body of generated methods, choose Tools | Templates.
>  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
> <!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"> 
>  
>  <span> Doctors : </span>
>  <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]  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) at org.prescients.prescientdocwicket.PrescientTemplateOriginalPage.onInitialize(PrescientTemplateOriginalPage.java:36) at org.prescients.prescientdocwicket.PrescientHome.onInitialize(PrescientHome.java:48)



--
This message was sent by Atlassian Jira
(v8.3.4#803005)