Re: [Wicket-user] Form submit from outside Wicket
in 2.0 you can submit to a stateless form. Then you have all your validation and converting.Maybe we will backport this to 1.3johanOn 8/23/06, Nili Adoram [EMAIL PROTECTED] wrote: But then I would not have the Form.process() method called with all itsbenefits (form validation etc).Is it valid to invoke it from page constructor?Frank Bille wrote: Bookmarkable pages has a PageParameters constructor. From these parameters can you get the form values. You would now that it would be a submit because the pageparameters contains the expected values. - Frank On 8/22/06, *Nili Adoram* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: But how would the bookmarkable page would know it is supposed to submit its form instead of rendering ? Johan Compagner wrote: i would submit to a bookmarkable page yes. That would be the easiest thing to do. johanOn 3/29/06, *Sven Meier* [EMAIL PROTECTED] mailto: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: How would you handle a submit of a form that originates from outside of Wicket? Let me explain: In many web applications some forms (e.g. 'search a product') are replicated on other pages of the same application or even on other sites of business partners or advertisers. For our actionframework-brethren this poses no problem, because an action (e.g. a Struts action) can usally be initated with a form post. But I don't have a clue how to do something similar in wicket. AFAIK a form has to be rendered first, before being able to accept incoming data on the next request. Does somebody have a suggestion for this, something like 'open a page with a bookmarkable link and immediately submit its contained form with the transmitted parameters'? Thanks Sven--- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net mailto:Wicket-user@lists.sourceforge.net mailto: Wicket-user@lists.sourceforge.net mailto:Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net mailto:Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user- Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easierDownload IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ Wicket-user mailing listWicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ Wicket-user mailing list
Re: [Wicket-user] Form submit from outside Wicket
i guess the most pita thing about this would be to properly map your request parameters to component paths of form components so wicket can properly associate request parameters with the proper form components.maybe some util methods in statelessform to help with this somewhoe - since its sucha a damn bare class :) -IgorOn 8/22/06, Johan Compagner [EMAIL PROTECTED] wrote: in 2.0 you can submit to a stateless form. Then you have all your validation and converting.Maybe we will backport this to 1.3johan On 8/23/06, Nili Adoram [EMAIL PROTECTED] wrote: But then I would not have the Form.process() method called with all itsbenefits (form validation etc).Is it valid to invoke it from page constructor?Frank Bille wrote: Bookmarkable pages has a PageParameters constructor. From these parameters can you get the form values. You would now that it would be a submit because the pageparameters contains the expected values. - Frank On 8/22/06, *Nili Adoram* [EMAIL PROTECTED] mailto: [EMAIL PROTECTED] wrote: But how would the bookmarkable page would know it is supposed to submit its form instead of rendering ? Johan Compagner wrote: i would submit to a bookmarkable page yes. That would be the easiest thing to do. johanOn 3/29/06, *Sven Meier* [EMAIL PROTECTED] mailto: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto: [EMAIL PROTECTED] wrote: How would you handle a submit of a form that originates from outside of Wicket? Let me explain: In many web applications some forms (e.g. 'search a product') are replicated on other pages of the same application or even on other sites of business partners or advertisers. For our actionframework-brethren this poses no problem, because an action (e.g. a Struts action) can usally be initated with a form post. But I don't have a clue how to do something similar in wicket. AFAIK a form has to be rendered first, before being able to accept incoming data on the next request. Does somebody have a suggestion for this, something like 'open a page with a bookmarkable link and immediately submit its contained form with the transmitted parameters'? Thanks Sven--- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net mailto: Wicket-user@lists.sourceforge.net mailto: Wicket-user@lists.sourceforge.net mailto: Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net mailto: Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easierDownload IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing listWicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -Using
Re: [Wicket-user] Form submit from outside Wicket
override:FormComponent.getInputName()and make sure they are in sync.johanOn 8/23/06, Igor Vaynberg [EMAIL PROTECTED] wrote:i guess the most pita thing about this would be to properly map your request parameters to component paths of form components so wicket can properly associate request parameters with the proper form components. maybe some util methods in statelessform to help with this somewhoe - since its sucha a damn bare class :) -IgorOn 8/22/06, Johan Compagner [EMAIL PROTECTED] wrote: in 2.0 you can submit to a stateless form. Then you have all your validation and converting.Maybe we will backport this to 1.3johan On 8/23/06, Nili Adoram [EMAIL PROTECTED] wrote: But then I would not have the Form.process() method called with all itsbenefits (form validation etc).Is it valid to invoke it from page constructor?Frank Bille wrote: Bookmarkable pages has a PageParameters constructor. From these parameters can you get the form values. You would now that it would be a submit because the pageparameters contains the expected values. - Frank On 8/22/06, *Nili Adoram* [EMAIL PROTECTED] mailto: [EMAIL PROTECTED] wrote: But how would the bookmarkable page would know it is supposed to submit its form instead of rendering ? Johan Compagner wrote: i would submit to a bookmarkable page yes. That would be the easiest thing to do. johanOn 3/29/06, *Sven Meier* [EMAIL PROTECTED] mailto: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto: [EMAIL PROTECTED] wrote: How would you handle a submit of a form that originates from outside of Wicket? Let me explain: In many web applications some forms (e.g. 'search a product') are replicated on other pages of the same application or even on other sites of business partners or advertisers. For our actionframework-brethren this poses no problem, because an action (e.g. a Struts action) can usally be initated with a form post. But I don't have a clue how to do something similar in wicket. AFAIK a form has to be rendered first, before being able to accept incoming data on the next request. Does somebody have a suggestion for this, something like 'open a page with a bookmarkable link and immediately submit its contained form with the transmitted parameters'? Thanks Sven--- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net mailto: Wicket-user@lists.sourceforge.net mailto: Wicket-user@lists.sourceforge.net mailto: Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net mailto: Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easierDownload IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing listWicket-user@lists.sourceforge.net
Re: [Wicket-user] Form submit from outside Wicket
But how would the bookmarkable page would know it is supposed to submit its form instead of rendering ? Johan Compagner wrote: i would submit to a bookmarkable page yes. That would be the easiest thing to do. johan On 3/29/06, *Sven Meier* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: How would you handle a submit of a form that originates from outside of Wicket? Let me explain: In many web applications some forms (e.g. 'search a product') are replicated on other pages of the same application or even on other sites of business partners or advertisers. For our actionframework-brethren this poses no problem, because an action (e.g. a Struts action) can usally be initated with a form post. But I don't have a clue how to do something similar in wicket. AFAIK a form has to be rendered first, before being able to accept incoming data on the next request. Does somebody have a suggestion for this, something like 'open a page with a bookmarkable link and immediately submit its contained form with the transmitted parameters'? Thanks Sven --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net mailto:Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Form submit from outside Wicket
Bookmarkable pages has a PageParameters constructor. From these parameters can you get the form values. You would now that it would be a submit because the pageparameters contains the expected values.- Frank On 8/22/06, Nili Adoram [EMAIL PROTECTED] wrote: But how would the bookmarkable page would know it is supposed to submitits form instead of rendering ?Johan Compagner wrote: i would submit to a bookmarkable page yes. That would be the easiest thing to do. johan On 3/29/06, *Sven Meier* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: How would you handle a submit of a form that originates from outside of Wicket? Let me explain: In many web applications some forms (e.g. 'search a product') are replicated on other pages of the same application or even on other sites of business partners or advertisers. For our actionframework-brethren this poses no problem, because an action (e.g. a Struts action) can usally be initated with a form post. But I don't have a clue how to do something similar in wicket. AFAIK a form has to be rendered first, before being able to accept incoming data on the next request. Does somebody have a suggestion for this, something like 'open a page with a bookmarkable link and immediately submit its contained form with the transmitted parameters'? Thanks Sven --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net mailto:Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user-Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easierDownload IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___Wicket-user mailing list Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Form submit from outside Wicket
But then I would not have the Form.process() method called with all its benefits (form validation etc). Is it valid to invoke it from page constructor? Frank Bille wrote: Bookmarkable pages has a PageParameters constructor. From these parameters can you get the form values. You would now that it would be a submit because the pageparameters contains the expected values. - Frank On 8/22/06, *Nili Adoram* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: But how would the bookmarkable page would know it is supposed to submit its form instead of rendering ? Johan Compagner wrote: i would submit to a bookmarkable page yes. That would be the easiest thing to do. johan On 3/29/06, *Sven Meier* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: How would you handle a submit of a form that originates from outside of Wicket? Let me explain: In many web applications some forms (e.g. 'search a product') are replicated on other pages of the same application or even on other sites of business partners or advertisers. For our actionframework-brethren this poses no problem, because an action (e.g. a Struts action) can usally be initated with a form post. But I don't have a clue how to do something similar in wicket. AFAIK a form has to be rendered first, before being able to accept incoming data on the next request. Does somebody have a suggestion for this, something like 'open a page with a bookmarkable link and immediately submit its contained form with the transmitted parameters'? Thanks Sven --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net mailto:Wicket-user@lists.sourceforge.net mailto:Wicket-user@lists.sourceforge.net mailto:Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net mailto:Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Form submit from outside Wicket
How would you handle a submit of a form that originates from outside of Wicket? Let me explain: In many web applications some forms (e.g. 'search a product') are replicated on other pages of the same application or even on other sites of business partners or advertisers. For our actionframework-brethren this poses no problem, because an action (e.g. a Struts action) can usally be initated with a form post. But I don't have a clue how to do something similar in wicket. AFAIK a form has to be rendered first, before being able to accept incoming data on the next request. Does somebody have a suggestion for this, something like 'open a page with a bookmarkable link and immediately submit its contained form with the transmitted parameters'? Thanks Sven --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Form submit from outside Wicket
i would submit to a bookmarkable page yes.That would be the easiest thing to do.johanOn 3/29/06, Sven Meier [EMAIL PROTECTED] wrote:How would you handle a submit of a form that originates from outside of Wicket?Let me explain:In many web applications some forms (e.g. 'search a product') arereplicated on other pages of the same application or even on other sitesof business partners or advertisers. For our actionframework-brethren this poses no problem, because anaction (e.g. a Struts action) can usally be initated with a form post.But I don't have a clue how to do something similar in wicket. AFAIK a form has to be rendered first, before being able to accept incoming dataon the next request.Does somebody have a suggestion for this, something like 'open a pagewith a bookmarkable link and immediately submit its contained form with the transmitted parameters'?ThanksSven---This SF.Net email is sponsored by xPML, a groundbreaking scripting languagethat extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory!http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___Wicket-user mailing listWicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user