it is even more strange.... if I point jetty-config.xml to wicket-examples.war the forminput example worx just fine in oth firefox and inet explorer...

--Is youre session gone or created with each submit?
I don´t quite know. But after I added this to My WebApplication class , it not worx the first time I press submit button, but second time it doesn´t.


/flemming


==========================
public ISessionFactory getSessionFactory()
       {
           return new ISessionFactory()
           {
               public Session newSession()
               {
                   return new WebSession(FPTApplication.this) {


                   };
               }
           };
       }

==========================

Johan Compagner wrote:

you have cookies disabled?
Is youre session gone or created with each submit?

flemming wrote:

After a little more investigation...it seems that both Firefox and Inet explorer looses the jsessionId... after the first page.


Flemming


flemming wrote:

I am driving myself crazy about this problem.

When running wicket in tomcat this small little HelloWorld works just fine. Pressing submit button updates Label and TextField.

but when running with Jetty both the label and the content of the textfield is empty after pressing submit


Do anybody know what I am doing wrong?

I am using jetty bundled with examples-1-1-b3 and all jar files ffrom that also


Regards
Flemming


===========================================
public class TestPage extends WebPage {
   public TestPage() {
       IModel helloWorldModel = new Model("Hellgo World!");
       add (new Label ("message", helloWorldModel));
       add (new TestInput("testform", helloWorldModel));

   }

   private class TestInput extends Form {
       public TestInput(final String id, IModel model) {
           super(id);
           add (new TextField("textfield", model));
       }

       protected void onSubmit() {
           //super.onSubmit();
       }
   }
    }
===========================================
public class FPTApplication extends WebApplication {

   public FPTApplication() {
       getSettings().configure("development");
       getSettings().setResourcePollFrequency(Duration.ONE_SECOND);
       getPages().setHomePage(TestPage.class);
       getPages().putClassAlias(TestPage.class, "application");

   }

   protected void init() {
ServletContext servletContext = this.getWicketServlet().getServletContext();
       if (servletContext.getInitParameter("deployment") != null) {
           // Use deployment settings
           getSettings().configure("deployment");
       } else {
           getSettings().configure("development");
       }
   }

}
==============================================
<html>


<body>


<h1><span wicket:id="message">hej verden</span></h1>


<p>
<form wicket:id="testform">
   <input type="text" wicket:id="textfield" value="test" />
   <input type="submit" value="submit" />
</form>

</body>
</html>



-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user





-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user



-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user




-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to