Re: Two forms on the same page

2007-11-02 Thread Cristi Manole
 = false]]
   
at org.apache.wicket.Page.checkRendering(Page.java:1057)
at org.apache.wicket.Page.renderPage(Page.java:871)
at
   
  
 org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.respond
(BookmarkablePageRequestTarget.java:225)
at
 org.apache.wicket.request.AbstractRequestCycleProcessor.respond(
AbstractRequestCycleProcessor.java:103)
at org.apache.wicket.RequestCycle.processEventsAndRespond(
RequestCycle.java:1097)
at org.apache.wicket.RequestCycle.step(RequestCycle.java:1166)
at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1245)
at org.apache.wicket.RequestCycle.request(RequestCycle.java:489)
at org.apache.wicket.protocol.http.WicketFilter.doGet(
   WicketFilter.java
:319)
at org.apache.wicket.protocol.http.WicketFilter.doFilter(
WicketFilter.java:169)
at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(
ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(
StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(
StandardContextValve.java:175)
at org.apache.catalina.core.StandardHostValve.invoke(
StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(
ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(
StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(
CoyoteAdapter.java:263)
at org.apache.coyote.http11.Http11Processor.process(
   Http11Processor.java
:844)
at
   
 org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(
Http11Protocol.java:584)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(
   JIoEndpoint.java
:447)
at java.lang.Thread.run(Unknown Source)
   
   
On 11/1/07, Dipu Seminlal [EMAIL PROTECTED] wrote:

 yes its  possible to have two forms in the same page.

 if you could provide some more details, you are likely to get
 more helpful response :)

 Cheers
 Dipu





 On 11/1/07, Cristi Manole [EMAIL PROTECTED] wrote:
 
  Hello,
 
  Simple question :) :
 
  Is it possible to have two forms on the same page, without
 having
   them
  imbricated?
 
  form wicket:id = form1
  ...
  /form
  form wicket:id = form2
  ...
  /form
 
 
  I'm asking because I get errors saying i did not add markup for
   form2
 when
  it is indeed in html code...  (and added to the page)
 
 
  Tks a lot
 

   
  
  
   --
   Buy Wicket in Action: http://manning.com/dashorst
   Apache Wicket 1.3.0-beta4 is released
   Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-beta4/
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  
 

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




Re: Two forms on the same page

2007-11-01 Thread Martijn Dashorst
Yes it is possible so the error is somewhere in your code.

Do you add the components for form2 to the form1?

Martijn

On 11/1/07, Cristi Manole [EMAIL PROTECTED] wrote:
 Hello,

 Simple question :) :

 Is it possible to have two forms on the same page, without having them
 imbricated?

 form wicket:id = form1
 ...
 /form
 form wicket:id = form2
 ...
 /form


 I'm asking because I get errors saying i did not add markup for form2 when
 it is indeed in html code...  (and added to the page)


 Tks a lot



-- 
Buy Wicket in Action: http://manning.com/dashorst
Apache Wicket 1.3.0-beta4 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-beta4/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Two forms on the same page

2007-11-01 Thread Dipu Seminlal
yes its  possible to have two forms in the same page.

if you could provide some more details, you are likely to get
more helpful response :)

Cheers
Dipu





On 11/1/07, Cristi Manole [EMAIL PROTECTED] wrote:

 Hello,

 Simple question :) :

 Is it possible to have two forms on the same page, without having them
 imbricated?

 form wicket:id = form1
 ...
 /form
 form wicket:id = form2
 ...
 /form


 I'm asking because I get errors saying i did not add markup for form2 when
 it is indeed in html code...  (and added to the page)


 Tks a lot



Re: Two forms on the same page

2007-11-01 Thread Cristi Manole
(
StandardContextValve.java:175)
at org.apache.catalina.core.StandardHostValve.invoke(
StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(
ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(
StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(
CoyoteAdapter.java:263)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
:844)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(
Http11Protocol.java:584)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java
:447)
at java.lang.Thread.run(Unknown Source)


On 11/1/07, Dipu Seminlal [EMAIL PROTECTED] wrote:

 yes its  possible to have two forms in the same page.

 if you could provide some more details, you are likely to get
 more helpful response :)

 Cheers
 Dipu





 On 11/1/07, Cristi Manole [EMAIL PROTECTED] wrote:
 
  Hello,
 
  Simple question :) :
 
  Is it possible to have two forms on the same page, without having them
  imbricated?
 
  form wicket:id = form1
  ...
  /form
  form wicket:id = form2
  ...
  /form
 
 
  I'm asking because I get errors saying i did not add markup for form2
 when
  it is indeed in html code...  (and added to the page)
 
 
  Tks a lot
 



Re: Two forms on the same page

2007-11-01 Thread Cristi Manole
)
  at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1245)
  at org.apache.wicket.RequestCycle.request(RequestCycle.java:489)
  at org.apache.wicket.protocol.http.WicketFilter.doGet(
 WicketFilter.java
  :319)
  at org.apache.wicket.protocol.http.WicketFilter.doFilter(
  WicketFilter.java:169)
  at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
  ApplicationFilterChain.java:235)
  at org.apache.catalina.core.ApplicationFilterChain.doFilter(
  ApplicationFilterChain.java:206)
  at org.apache.catalina.core.StandardWrapperValve.invoke(
  StandardWrapperValve.java:233)
  at org.apache.catalina.core.StandardContextValve.invoke(
  StandardContextValve.java:175)
  at org.apache.catalina.core.StandardHostValve.invoke(
  StandardHostValve.java:128)
  at org.apache.catalina.valves.ErrorReportValve.invoke(
  ErrorReportValve.java:102)
  at org.apache.catalina.core.StandardEngineValve.invoke(
  StandardEngineValve.java:109)
  at org.apache.catalina.connector.CoyoteAdapter.service(
  CoyoteAdapter.java:263)
  at org.apache.coyote.http11.Http11Processor.process(
 Http11Processor.java
  :844)
  at
  org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(
  Http11Protocol.java:584)
  at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(
 JIoEndpoint.java
  :447)
  at java.lang.Thread.run(Unknown Source)
 
 
  On 11/1/07, Dipu Seminlal [EMAIL PROTECTED] wrote:
  
   yes its  possible to have two forms in the same page.
  
   if you could provide some more details, you are likely to get
   more helpful response :)
  
   Cheers
   Dipu
  
  
  
  
  
   On 11/1/07, Cristi Manole [EMAIL PROTECTED] wrote:
   
Hello,
   
Simple question :) :
   
Is it possible to have two forms on the same page, without having
 them
imbricated?
   
form wicket:id = form1
...
/form
form wicket:id = form2
...
/form
   
   
I'm asking because I get errors saying i did not add markup for
 form2
   when
it is indeed in html code...  (and added to the page)
   
   
Tks a lot
   
  
 


 --
 Buy Wicket in Action: http://manning.com/dashorst
 Apache Wicket 1.3.0-beta4 is released
 Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-beta4/

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




Re: Two forms on the same page

2007-11-01 Thread Martijn Dashorst
(
 ApplicationFilterChain.java:235)
 at org.apache.catalina.core.ApplicationFilterChain.doFilter(
 ApplicationFilterChain.java:206)
 at org.apache.catalina.core.StandardWrapperValve.invoke(
 StandardWrapperValve.java:233)
 at org.apache.catalina.core.StandardContextValve.invoke(
 StandardContextValve.java:175)
 at org.apache.catalina.core.StandardHostValve.invoke(
 StandardHostValve.java:128)
 at org.apache.catalina.valves.ErrorReportValve.invoke(
 ErrorReportValve.java:102)
 at org.apache.catalina.core.StandardEngineValve.invoke(
 StandardEngineValve.java:109)
 at org.apache.catalina.connector.CoyoteAdapter.service(
 CoyoteAdapter.java:263)
 at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
 :844)
 at
 org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(
 Http11Protocol.java:584)
 at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java
 :447)
 at java.lang.Thread.run(Unknown Source)


 On 11/1/07, Dipu Seminlal [EMAIL PROTECTED] wrote:
 
  yes its  possible to have two forms in the same page.
 
  if you could provide some more details, you are likely to get
  more helpful response :)
 
  Cheers
  Dipu
 
 
 
 
 
  On 11/1/07, Cristi Manole [EMAIL PROTECTED] wrote:
  
   Hello,
  
   Simple question :) :
  
   Is it possible to have two forms on the same page, without having them
   imbricated?
  
   form wicket:id = form1
   ...
   /form
   form wicket:id = form2
   ...
   /form
  
  
   I'm asking because I get errors saying i did not add markup for form2
  when
   it is indeed in html code...  (and added to the page)
  
  
   Tks a lot
  
 



-- 
Buy Wicket in Action: http://manning.com/dashorst
Apache Wicket 1.3.0-beta4 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-beta4/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Two forms on the same page

2007-11-01 Thread Igor Vaynberg
)
   at org.apache.wicket.request.AbstractRequestCycleProcessor.respond(
   AbstractRequestCycleProcessor.java:103)
   at org.apache.wicket.RequestCycle.processEventsAndRespond(
   RequestCycle.java:1097)
   at org.apache.wicket.RequestCycle.step(RequestCycle.java:1166)
   at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1245)
   at org.apache.wicket.RequestCycle.request(RequestCycle.java:489)
   at org.apache.wicket.protocol.http.WicketFilter.doGet(
  WicketFilter.java
   :319)
   at org.apache.wicket.protocol.http.WicketFilter.doFilter(
   WicketFilter.java:169)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
   ApplicationFilterChain.java:235)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(
   ApplicationFilterChain.java:206)
   at org.apache.catalina.core.StandardWrapperValve.invoke(
   StandardWrapperValve.java:233)
   at org.apache.catalina.core.StandardContextValve.invoke(
   StandardContextValve.java:175)
   at org.apache.catalina.core.StandardHostValve.invoke(
   StandardHostValve.java:128)
   at org.apache.catalina.valves.ErrorReportValve.invoke(
   ErrorReportValve.java:102)
   at org.apache.catalina.core.StandardEngineValve.invoke(
   StandardEngineValve.java:109)
   at org.apache.catalina.connector.CoyoteAdapter.service(
   CoyoteAdapter.java:263)
   at org.apache.coyote.http11.Http11Processor.process(
  Http11Processor.java
   :844)
   at
   org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(
   Http11Protocol.java:584)
   at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(
  JIoEndpoint.java
   :447)
   at java.lang.Thread.run(Unknown Source)
  
  
   On 11/1/07, Dipu Seminlal [EMAIL PROTECTED] wrote:
   
yes its  possible to have two forms in the same page.
   
if you could provide some more details, you are likely to get
more helpful response :)
   
Cheers
Dipu
   
   
   
   
   
On 11/1/07, Cristi Manole [EMAIL PROTECTED] wrote:

 Hello,

 Simple question :) :

 Is it possible to have two forms on the same page, without having
  them
 imbricated?

 form wicket:id = form1
 ...
 /form
 form wicket:id = form2
 ...
 /form


 I'm asking because I get errors saying i did not add markup for
  form2
when
 it is indeed in html code...  (and added to the page)


 Tks a lot

   
  
 
 
  --
  Buy Wicket in Action: http://manning.com/dashorst
  Apache Wicket 1.3.0-beta4 is released
  Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-beta4/
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Removed Validator? (was Re: Two forms on the same page)

2007-11-01 Thread Gwyn Evans
Thursday, November 1, 2007, 4:26:24 PM, you wrote:

IV wait until you discover we support embedded forms, that will really
IV screw with your mind...

Talking of which, are there any Best Practices for dynamic instances
of that?

The specific issue I've just run across is where I have a outer form
and, depending upon a checkbox, might have an inner form being enabled
of not.  (It's an inner form, rather than just a part of the main form
as it's off as a component with it's own panel.)

Anyway, the inner form has password/confirmPassword fields and an
EqualInputValidator, but if the form is displayed but then disabled
again (via Ajax, if significant,) when the form's finally submitted I
get a warning, saying IFormValidator in form '...' depends on a
component that has been removed from the page or is no longer visible.
Offending component id `password`.

Any thoughts on the best approach to this?

-- 
/Gwyn



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Removed Validator? (was Re: Two forms on the same page)

2007-11-01 Thread Igor Vaynberg
looks like we need to update form processing code to skip inner
disabled forms, mind making a jira issue?

the whole concept is somewhat radical and we havent been able to think
through it completely just because its new. so there are still a few
caveats here and there for embedded forms.

-igor


On 11/1/07, Gwyn Evans [EMAIL PROTECTED] wrote:
 Thursday, November 1, 2007, 4:26:24 PM, you wrote:

 IV wait until you discover we support embedded forms, that will really
 IV screw with your mind...

 Talking of which, are there any Best Practices for dynamic instances
 of that?

 The specific issue I've just run across is where I have a outer form
 and, depending upon a checkbox, might have an inner form being enabled
 of not.  (It's an inner form, rather than just a part of the main form
 as it's off as a component with it's own panel.)

 Anyway, the inner form has password/confirmPassword fields and an
 EqualInputValidator, but if the form is displayed but then disabled
 again (via Ajax, if significant,) when the form's finally submitted I
 get a warning, saying IFormValidator in form '...' depends on a
 component that has been removed from the page or is no longer visible.
 Offending component id `password`.

 Any thoughts on the best approach to this?

 --
 /Gwyn



 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]