Re: [Wicket-user] SubmitLink and back button...

2006-09-14 Thread Johan Compagner
But also for input in the wicket side??convertInput(),getInput(),getConvertedInput,validate name themAren't really meant for a button as far as i know.johanOn 9/13/06, 
Martijn Dashorst [EMAIL PROTECTED] wrote:
I guess the reason that a button is a formcomponent is because abutton can receive input... the value of a submit is prettyimportant...MartijnOn 9/13/06, Igor Vaynberg 
[EMAIL PROTECTED] wrote: add an rfe for 2.0 :) -Igor On 9/13/06, Johan Compagner [EMAIL PROTECTED] wrote:
  yeah that a button is a FormComponent on the wicket side is maybe a bit strange.. Because almost all the things formcomponent has are not really used by a button.
 I get that on the markup side it is a form thing.. But to be a formcomponent in java is maybe not even needed. johan On 9/13/06, Igor Vaynberg  
[EMAIL PROTECTED] wrote:  yes, it doesnt make sense for form components that act on input, but this doesnt exactly apply to buttons. -Igor
On 9/13/06, Johan Compagner  [EMAIL PROTECTED] wrote:  what would you poll the form for? (calling isVersioned()) from the form
 components isVersioned()? That is pretty much already done in that method. i guess why we don't versioning formcomponents because it doesn't make much sense for the data (model) change.
 I guess the rest like visible it should work johan On 9/12/06, Igor Vaynberg [EMAIL PROTECTED]  wrote:
  not formcomponents, which i think is a bit weird/wrong. what we want is to let the form control the versioning of formcomponents, so inside formcomponent constructor we set it to false. and then form overrides
 setversioned() and replicates that call to the formcomponents. the problem is that during page constructor that wont do anything because form components might be added later - the chain is not yet complete - and also
 defaulting to false is wrong i think. johan you got any thoughts on this? in 2.0 we can fix this by overriding isversioned on formcomponent and polling the form directly instead of having the form push.
 -IgorOn 9/12/06, Erik Brakkee [EMAIL PROTECTED] wrote:  Can the call'addLink.setVersioned(true);' be left out? By default
  pages are versioned so components on pages are versioned too by default,  right?   -  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 listWicket-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 listWicket-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 

Re: [Wicket-user] SubmitLink and back button...

2006-09-13 Thread Johan Compagner
what would you poll the form for? (calling isVersioned()) from the form components isVersioned()?That is pretty much already done in that method.i guess why we don't versioning formcomponents because it doesn't make much sense for the data (model) change.
I guess the rest like visible it should workjohanOn 9/12/06, Igor Vaynberg [EMAIL PROTECTED]
 wrote:not formcomponents, which i think is a bit weird/wrong.what we want is to let the form control the versioning of formcomponents, so inside formcomponent constructor we set it to false. and then form overrides setversioned() and replicates that call to the formcomponents. the problem is that during page constructor that wont do anything because form components might be added later - the chain is not yet complete - and also defaulting to false is wrong i think. johan you got any thoughts on this?
in 2.0 we can fix this by overriding isversioned on formcomponent and polling the form directly instead of having the form push.-Igor
On 9/12/06, 
Erik Brakkee [EMAIL PROTECTED] wrote:

Can the call'addLink.setVersioned(true);' be left out? By defaultpages are versioned so components on pages are versioned too by default,right?-
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 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.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] SubmitLink and back button...

2006-09-13 Thread Igor Vaynberg
yes, it doesnt make sense for form components that act on input, but this doesnt exactly apply to buttons.-IgorOn 9/13/06, Johan Compagner 
[EMAIL PROTECTED] wrote:what would you poll the form for? (calling isVersioned()) from the form components isVersioned()?
That is pretty much already done in that method.i guess why we don't versioning formcomponents because it doesn't make much sense for the data (model) change.
I guess the rest like visible it should workjohanOn 9/12/06, 
Igor Vaynberg [EMAIL PROTECTED]
 wrote:
not formcomponents, which i think is a bit weird/wrong.what we want is to let the form control the versioning of formcomponents, so inside formcomponent constructor we set it to false. and then form overrides setversioned() and replicates that call to the formcomponents. the problem is that during page constructor that wont do anything because form components might be added later - the chain is not yet complete - and also defaulting to false is wrong i think. johan you got any thoughts on this?
in 2.0 we can fix this by overriding isversioned on formcomponent and polling the form directly instead of having the form push.-Igor
On 9/12/06, 
Erik Brakkee [EMAIL PROTECTED] wrote:

Can the call'addLink.setVersioned(true);' be left out? By defaultpages are versioned so components on pages are versioned too by default,right?-
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 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.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.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] SubmitLink and back button...

2006-09-13 Thread Johan Compagner
yeah that a button is a FormComponent on the wicket side is maybe a bit strange..Because almost all the things formcomponent has are not really used by a button.I get that on the markup side it is a form thing.. But to be a formcomponent in java is maybe not even needed.
johanOn 9/13/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
yes, it doesnt make sense for form components that act on input, but this doesnt exactly apply to buttons.-Igor
On 9/13/06, Johan Compagner 
[EMAIL PROTECTED] wrote:
what would you poll the form for? (calling isVersioned()) from the form components isVersioned()?
That is pretty much already done in that method.i guess why we don't versioning formcomponents because it doesn't make much sense for the data (model) change.
I guess the rest like visible it should workjohanOn 9/12/06, 
Igor Vaynberg [EMAIL PROTECTED]
 wrote:
not formcomponents, which i think is a bit weird/wrong.what we want is to let the form control the versioning of formcomponents, so inside formcomponent constructor we set it to false. and then form overrides setversioned() and replicates that call to the formcomponents. the problem is that during page constructor that wont do anything because form components might be added later - the chain is not yet complete - and also defaulting to false is wrong i think. johan you got any thoughts on this?
in 2.0 we can fix this by overriding isversioned on formcomponent and polling the form directly instead of having the form push.-Igor
On 9/12/06, 
Erik Brakkee [EMAIL PROTECTED] wrote:

Can the call'addLink.setVersioned(true);' be left out? By defaultpages are versioned so components on pages are versioned too by default,right?-
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 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.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.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.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] SubmitLink and back button...

2006-09-13 Thread Igor Vaynberg
add an rfe for 2.0 :)-IgorOn 9/13/06, Johan Compagner [EMAIL PROTECTED] wrote:
yeah that a button is a FormComponent on the wicket side is maybe a bit strange..Because almost all the things formcomponent has are not really used by a button.I get that on the markup side it is a form thing.. But to be a formcomponent in java is maybe not even needed.
johanOn 9/13/06, Igor Vaynberg 
[EMAIL PROTECTED] wrote:

yes, it doesnt make sense for form components that act on input, but this doesnt exactly apply to buttons.-Igor
On 9/13/06, Johan Compagner 
[EMAIL PROTECTED] wrote:

what would you poll the form for? (calling isVersioned()) from the form components isVersioned()?
That is pretty much already done in that method.i guess why we don't versioning formcomponents because it doesn't make much sense for the data (model) change.
I guess the rest like visible it should workjohanOn 9/12/06, 
Igor Vaynberg [EMAIL PROTECTED]
 wrote:
not formcomponents, which i think is a bit weird/wrong.what we want is to let the form control the versioning of formcomponents, so inside formcomponent constructor we set it to false. and then form overrides setversioned() and replicates that call to the formcomponents. the problem is that during page constructor that wont do anything because form components might be added later - the chain is not yet complete - and also defaulting to false is wrong i think. johan you got any thoughts on this?
in 2.0 we can fix this by overriding isversioned on formcomponent and polling the form directly instead of having the form push.-Igor
On 9/12/06, 
Erik Brakkee [EMAIL PROTECTED] wrote:

Can the call'addLink.setVersioned(true);' be left out? By defaultpages are versioned so components on pages are versioned too by default,right?-
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 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.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.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.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.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] SubmitLink and back button...

2006-09-13 Thread Martijn Dashorst
I guess the reason that a button is a formcomponent is because a
button can receive input... the value of a submit is pretty
important...

Martijn


On 9/13/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
 add an rfe for 2.0 :)

 -Igor



 On 9/13/06, Johan Compagner [EMAIL PROTECTED] wrote:
 

 yeah that a button is a FormComponent on the wicket side is maybe a bit
 strange..
 Because almost all the things formcomponent has are not really used by a
 button.

 I get that on the markup side it is a form thing.. But to be a formcomponent
 in java is maybe not even needed.

 johan



 On 9/13/06, Igor Vaynberg  [EMAIL PROTECTED] wrote:
 

 yes, it doesnt make sense for form components that act on input, but this
 doesnt exactly apply to buttons.

 -Igor



  On 9/13/06, Johan Compagner  [EMAIL PROTECTED] wrote:
 

 what would you poll the form for? (calling isVersioned()) from the form
 components isVersioned()?
 That is pretty much already done in that method.

 i guess why we don't versioning formcomponents because it doesn't make much
 sense for the data (model) change.
 I guess the rest like visible it should work

 johan



 On 9/12/06, Igor Vaynberg [EMAIL PROTECTED]  wrote:
 

 not formcomponents, which i think is a bit weird/wrong.

 what we want is to let the form control the versioning of formcomponents, so
 inside formcomponent constructor we set it to false. and then form overrides
 setversioned() and replicates that call to the formcomponents. the problem
 is that during page constructor that wont do anything because form
 components might be added later - the chain is not yet complete - and also
 defaulting to false is wrong i think. johan you got any thoughts on this?

 in 2.0 we can fix this by overriding isversioned on formcomponent and
 polling the form directly instead of having the form push.

 -Igor


  On 9/12/06, Erik Brakkee [EMAIL PROTECTED] wrote:

  Can the call  'addLink.setVersioned(true);' be left out? By default
  pages are versioned so components on pages are versioned too by default,
  right?
 
 
 -
  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




 -

 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




 -

 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 

Re: [Wicket-user] SubmitLink and back button...

2006-09-13 Thread Erik Brakkee
Johan Compagner wrote:
 what would you poll the form for? (calling isVersioned()) from the
 form components isVersioned()?
 That is pretty much already done in that method.
So I don't need to wait until all components are added to the form to
call setVersioned(true)?

 i guess why we don't versioning formcomponents because it doesn't make
 much sense for the data (model) change.
 I guess the rest like visible it should work
I don't understand this. I just ran into a practical situation where
versioning is needed. There is a form that has two lists inside it. One
for items added to a list (say shopping cart) and another for items to
choose (say products) (my actual case was different). The items in the
shopping card used SubmitLinks for removing them, and the products have
submit links for adding them to the cart. This case will fail with the
current default settings.

In my opinion consistency is everything. The fact that a form is not
versioned is really surprising. Why don't you just set versioning to
true by default, and leave setting it to false to the people who want to
do performance optimization and know that it is safe for their problem
to turn it off?


 johan


-
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] SubmitLink and back button...

2006-09-13 Thread Igor Vaynberg
we are talking about form components that take their input off form submissions - like textfield - its not very practical to version it because on backbutton you would resubmit the form and it would once again pull its value from the request params.
it doesnt work right now on buttons - i am going to fix that momentarily.-IgorOn 9/13/06, Erik Brakkee 
[EMAIL PROTECTED] wrote:Johan Compagner wrote: what would you poll the form for? (calling isVersioned()) from the
 form components isVersioned()? That is pretty much already done in that method.So I don't need to wait until all components are added to the form tocall setVersioned(true)? i guess why we don't versioning formcomponents because it doesn't make
 much sense for the data (model) change. I guess the rest like visible it should workI don't understand this. I just ran into a practical situation whereversioning is needed. There is a form that has two lists inside it. One
for items added to a list (say shopping cart) and another for items tochoose (say products) (my actual case was different). The items in theshopping card used SubmitLinks for removing them, and the products have
submit links for adding them to the cart. This case will fail with thecurrent default settings.In my opinion consistency is everything. The fact that a form is notversioned is really surprising. Why don't you just set versioning to
true by default, and leave setting it to false to the people who want todo performance optimization and know that it is safe for their problemto turn it off? johan-
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
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] SubmitLink and back button...

2006-09-13 Thread Erik Brakkee
Igor Vaynberg wrote:
 we are talking about form components that take their input off form
 submissions - like textfield - its not very practical to version it
 because on backbutton you would resubmit the form and it would once
 again pull its value from the request params.
Ok, I didn't get that. But will the default for Forms be changed to
isVersioned = true in wicket 2?

 it doesnt work right now on buttons - i am going to fix that momentarily.

 -Igor



-
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] SubmitLink and back button...

2006-09-13 Thread Igor Vaynberg
Forms themselves are versioned by default afaik, its the form components that are not. and now buttons are versioned by default.-IgorOn 9/13/06, Erik Brakkee
 [EMAIL PROTECTED] wrote:Igor Vaynberg wrote:
 we are talking about form components that take their input off form submissions - like textfield - its not very practical to version it because on backbutton you would resubmit the form and it would once
 again pull its value from the request params.Ok, I didn't get that. But will the default for Forms be changed toisVersioned = true in wicket 2? it doesnt work right now on buttons - i am going to fix that momentarily.
 -Igor-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 Geronimohttp://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 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] SubmitLink and back button...

2006-09-12 Thread Erik Brakkee
Have you seen the test case I posted on the mailing list?
Can you confirm that you see the problem too and that it is indeed a
wicket problem and not a problem with the way I use wicket?

-
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] SubmitLink and back button...

2006-09-12 Thread Johan Compagner
best thing is to make a bug report and attach the testcase.Because in the traffic ammount of the mailing list it can be forgotton..johanOn 9/12/06, 
Erik Brakkee [EMAIL PROTECTED] wrote:
Have you seen the test case I posted on the mailing list?Can you confirm that you see the problem too and that it is indeed awicket problem and not a problem with the way I use wicket?-
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
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] SubmitLink and back button...

2006-09-12 Thread Igor Vaynberg
yeah i can reproduce it to, the problem is that the submitlink changes the form's value using _javascript_ - and the browser remembers it in its cache! so when you go back that cahnged url is present. ugly, im going to look for a solution.
-IgorOn 9/12/06, Johan Compagner [EMAIL PROTECTED] wrote:
best thing is to make a bug report and attach the testcase.Because in the traffic ammount of the mailing list it can be forgotton..johan
On 9/12/06, 
Erik Brakkee [EMAIL PROTECTED] wrote:

Have you seen the test case I posted on the mailing list?Can you confirm that you see the problem too and that it is indeed awicket problem and not a problem with the way I use wicket?-
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 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.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] SubmitLink and back button...

2006-09-12 Thread Igor Vaynberg
ok, should be fixed in 1.2.3, you can try the wicket-1.x branch now if you wantfor the versioning to work properly though you need to remember changes done against your dataprovider because it keeps its own state that needs to be rolled back. attached is the 
submitlinkpage.java that shows you how to do that.-IgorOn 9/12/06, Igor Vaynberg [EMAIL PROTECTED]
 wrote:yeah i can reproduce it to, the problem is that the submitlink changes the form's value using _javascript_ - and the browser remembers it in its cache! so when you go back that cahnged url is present. ugly, im going to look for a solution.
-IgorOn 9/12/06, Johan Compagner 
[EMAIL PROTECTED] wrote:

best thing is to make a bug report and attach the testcase.Because in the traffic ammount of the mailing list it can be forgotton..johan
On 9/12/06, 
Erik Brakkee [EMAIL PROTECTED] wrote:


Have you seen the test case I posted on the mailing list?Can you confirm that you see the problem too and that it is indeed awicket problem and not a problem with the way I use wicket?-
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 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.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user



package wicket.quickstart;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;

import wicket.extensions.markup.html.repeater.data.DataView;
import wicket.extensions.markup.html.repeater.data.IDataProvider;
import wicket.extensions.markup.html.repeater.refreshing.Item;
import wicket.markup.html.WebPage;
import wicket.markup.html.basic.Label;
import wicket.markup.html.form.Form;
import wicket.markup.html.form.SubmitLink;
import wicket.model.IModel;
import wicket.model.Model;
import wicket.version.undo.Change;

public class SubmitLinkPage extends WebPage
{

	private int _counter = 0;

	public SubmitLinkPage()
	{

		System.out.println(New page);

		final Form form = new Form(form);
		add(form);

		final LinkProvider provider = new LinkProvider();
		DataView view = new DataView(links, provider)
		{

			protected void populateItem(Item aItem)
			{
String text = (String) aItem.getModelObject();
SubmitLink link = new SubmitLink(link);
link.setDefaultFormProcessing(false);
aItem.add(link);
link.add(new Label(text, text));
			}
		};
		form.add(view);

		SubmitLink addLink = new SubmitLink(add)
		{

			protected void onSubmit()
			{
System.out.println(Hallo!);

final int index = provider.add(Look ma, a new link!  + _counter++)-1;
addStateChange(new Change()
{

	@Override
	public void undo()
	{
		provider.remove(index-1);
	}

});

System.out.println(no. items =  + provider.size());

			}
		};
		addLink.setVersioned(true);
		form.add(addLink);
	}
}

class LinkProvider implements IDataProvider
{
	private ListString _links;

	public LinkProvider()
	{
		_links = new ArrayListString();
	}

	public int add(String aLink)
	{
		_links.add(aLink);
		return _links.size();
	}

	public void remove(int index)
	{
		_links.remove(index);
	}

	public Iterator iterator(int aFirst, int aCount)
	{
		Iterator iterator = _links.iterator();
		for (int i = 0; i  aFirst; i++)
		{
			iterator.next();
		}
		return iterator;
	}

	public IModel model(Object aObject)
	{
		return new Model((Serializable) aObject);
	}

	public int size()
	{
		return _links.size();
	}
}
-
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] SubmitLink and back button...

2006-09-12 Thread Erik Brakkee
Igor Vaynberg wrote:
 ok, should be fixed in 1.2.3, you can try the wicket-1.x branch now if
 you want
Thanks! I can wait for version 1.2.3 since the problem is not that
critical for us.

 for the versioning to work properly though you need to remember
 changes done against your dataprovider because it keeps its own state
 that needs to be rolled back. attached is the submitlinkpage.java that
 shows you how to do that.
Thanks for the example. It is getting more and more clear to me how
versioning and back button support works.

 -Igor
By the way, I am really impressed about this mailinglist (and about
wicket!).  We are developing a commercial application with it and it
would be nice to post a link to it on the wiki when it is finished.



-
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] SubmitLink and back button...

2006-09-12 Thread Igor Vaynberg
sure, wiki registration is open so feel free :)-IgorOn 9/12/06, Erik Brakkee [EMAIL PROTECTED] wrote:
Igor Vaynberg wrote: ok, should be fixed in 1.2.3, you can try the wicket-1.x
 branch now if you wantThanks! I can wait for version 1.2.3 since the problem is not thatcritical for us. for the versioning to work properly though you need to remember changes done against your dataprovider because it keeps its own state
 that needs to be rolled back. attached is the submitlinkpage.java that shows you how to do that.Thanks for the example. It is getting more and more clear to me howversioning and back button support works.
 -IgorBy the way, I am really impressed about this mailinglist (and aboutwicket!).We are developing a commercial application with it and itwould be nice to post a link to it on the wiki when it is finished.
-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 Geronimohttp://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 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] SubmitLink and back button...

2006-09-12 Thread Martijn Dashorst
Go ahead with the commercial applications on the wiki. As long as they
are developed using Wicket.

Martijn

On 9/12/06, Erik Brakkee [EMAIL PROTECTED] wrote:
 Igor Vaynberg wrote:
  ok, should be fixed in 1.2.3, you can try the wicket-1.x branch now if
  you want
 Thanks! I can wait for version 1.2.3 since the problem is not that
 critical for us.
 
  for the versioning to work properly though you need to remember
  changes done against your dataprovider because it keeps its own state
  that needs to be rolled back. attached is the submitlinkpage.java that
  shows you how to do that.
 Thanks for the example. It is getting more and more clear to me how
 versioning and back button support works.
 
  -Igor
 By the way, I am really impressed about this mailinglist (and about
 wicket!).  We are developing a commercial application with it and it
 would be nice to post a link to it on the wiki when it is finished.



 -
 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



-- 
Download Wicket 1.2.2 now! New Ajax components: Tree, TreeTable and ModalWindow
-- http://wicketframework.org

-
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] SubmitLink and back button...

2006-09-12 Thread Erik Brakkee
Can the call  'addLink.setVersioned(true);' be left out? By default
pages are versioned so components on pages are versioned too by default,
right?

-
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] SubmitLink and back button...

2006-09-12 Thread Igor Vaynberg
not formcomponents, which i think is a bit weird/wrong.what we want is to let the form control the versioning of formcomponents, so inside formcomponent constructor we set it to false. and then form overrides setversioned() and replicates that call to the formcomponents. the problem is that during page constructor that wont do anything because form components might be added later - the chain is not yet complete - and also defaulting to false is wrong i think. johan you got any thoughts on this?
in 2.0 we can fix this by overriding isversioned on formcomponent and polling the form directly instead of having the form push.-IgorOn 9/12/06, 
Erik Brakkee [EMAIL PROTECTED] wrote:
Can the call'addLink.setVersioned(true);' be left out? By defaultpages are versioned so components on pages are versioned too by default,right?-
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
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] SubmitLink and back button...

2006-09-12 Thread Erik Brakkee
Igor Vaynberg wrote:
 not formcomponents, which i think is a bit weird/wrong.
Aha.

 what we want is to let the form control the versioning of
 formcomponents, so inside formcomponent constructor we set it to
 false. and then form overrides setversioned() and replicates that call
 to the formcomponents. the problem is that during page constructor
 that wont do anything because form components might be added later -
 the chain is not yet complete - and also defaulting to false is wrong
 i think. johan you got any thoughts on this?
In my opinion setting it to true by default is also more natural and
consistent with pages. This is unexpected behavior and one of the key
things I have with wicket is its predictability: Components usually just
behave as you expect, so making it consistent in wicket 2 would be a
good idea.

 in 2.0 we can fix this by overriding isversioned on formcomponent and
 polling the form directly instead of having the form push.
I think the polling behavior should be the default. Why shouldn't a form
be versioned?

Unfortunately, the book 'Pro Wicket' does not cover anything at all
about versioning and back button support (a search of the document for
'back button', 'modelChanging', and 'modelChanged' did not return any
results. I just hope that 'Wicket in Action' will cover versioning and
back button support in detail since it is such a major point of wicket
(one of the selling points).


 -Igor


-
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] SubmitLink and back button...

2006-09-12 Thread Igor Vaynberg
On 9/12/06, Erik Brakkee [EMAIL PROTECTED] wrote:
Igor Vaynberg wrote: not formcomponents, which i think is a bit weird/wrong.Aha. what we want is to let the form control the versioning of formcomponents, so inside formcomponent constructor we set it to
 false. and then form overrides setversioned() and replicates that call to the formcomponents. the problem is that during page constructor that wont do anything because form components might be added later -
 the chain is not yet complete - and also defaulting to false is wrong i think. johan you got any thoughts on this?In my opinion setting it to true by default is also more natural andconsistent with pages. This is unexpected behavior and one of the key
things I have with wicket is its predictability: Components usually justbehave as you expect, so making it consistent in wicket 2 would be agood idea.well, as i said i think this is somewhat of a bug. johan you implemented this, are you reading with us?
 in 2.0 we can fix this by overriding isversioned on formcomponent and
 polling the form directly instead of having the form push.I think the polling behavior should be the default. Why shouldn't a formbe versioned?because in 1.x we cannot do it because the component hierarchy is not always available.
Unfortunately, the book 'Pro Wicket' does not cover anything at allabout versioning and back button support (a search of the document for
'back button', 'modelChanging', and 'modelChanged' did not return anyresults. I just hope that 'Wicket in Action' will cover versioning andback button support in detail since it is such a major point of wicket
(one of the selling points).there really isnt that much to it. if you have an object inside the model it is versioned for you through modelchanging/changed calls.if you have state outside the model you version it yourself using addStateChange which is trivial - just have to remember to do it.
the book is still in beta, get in touch with the author maybe its not too late to add?-Igor
 -Igor-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 Geronimohttp://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 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] SubmitLink and back button...

2006-09-12 Thread Erik Brakkee
Igor Vaynberg wrote:
 there really isnt that much to it. if you have an object inside the
 model it is versioned for you through modelchanging/changed calls.

 if you have state outside the model you version it yourself using
 addStateChange which is trivial - just have to remember to do it.

I agree that it is basically very easy, but not everything is obvious.
Therefore, I have taken the liberty to extend the wiki page on the back
button (http://www.wicket-wiki.org.uk/wiki/index.php/Backbutton) with
the information I got from this discussion. Please have a look at it to
see if I am not writing nonsense :-)


-
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] SubmitLink and back button...

2006-09-12 Thread Igor Vaynberg
thanks for the contribution-IgorOn 9/12/06, Erik Brakkee [EMAIL PROTECTED] wrote:
Igor Vaynberg wrote: there really isnt that much to it. if you have an object inside the model it is versioned for you through modelchanging/changed calls. if you have state outside the model you version it yourself using
 addStateChange which is trivial - just have to remember to do it.I agree that it is basically very easy, but not everything is obvious.Therefore, I have taken the liberty to extend the wiki page on the back
button (http://www.wicket-wiki.org.uk/wiki/index.php/Backbutton) withthe information I got from this discussion. Please have a look at it to
see if I am not writing nonsense :-)-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 Geronimohttp://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 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] SubmitLink and back button...

2006-09-11 Thread Erik Brakkee




Hi, 


I am having a problem with submit link. I used to have a form with a
regular link on it but then the form data would not get submitted. Now
I have replaced this by a SubmitLink and in my onSubmit() I do: 

 validate(); 
  updateFormComponentModels();
  // Remove messages cause by validation. 
  getPage().getFeedbackMessages().clear();


This is done to make sure all field values are available and that
validation is suppressed. The problem (see below) also occurs when I
don't execute the above statements in my onSubmit().

Now back button support is broken. The problem occurs when I click on a
link to edit an item to a collection. The result of clicking a link for
adding an item is that a new item is added to a list displayed on the
screen with a SubmitLink next to it for deleting it.

The problem occurs when I do the following:

  click on a link to add an item to a set, the item is now added to
the list on the screen. 
  
  press the back button, the item is now not present in the list
(as it was before adding it).
  submit the form

The error I get is: 
WicketMessage: Attempt to access unknown request listener interface null


Root cause:


wicket.WicketRuntimeException: Attempt to access unknown request
listener interface null
 at wicket.markup.html.form.Form.dispatchEvent(Form.java:1205)
 at wicket.markup.html.form.Form.onFormSubmitted(Form.java:293)
 at java.lang.reflect.Method.invoke(Method.java:585)
 at
wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:163)
 at
wicket.request.target.component.listener.ListenerInterfaceRequestTarget.processEvents(ListenerInterfaceRequestTarget.java:74)
 at
wicket.request.compound.DefaultEventProcessorStrategy.processEvents(DefaultEventProcessorStrategy.java:65)
 at
wicket.request.compound.AbstractCompoundRequestCycleProcessor.processEvents(AbstractCompoundRequestCycleProcessor.java:57)
 at
wicket.RequestCycle.doProcessEventsAndRespond(RequestCycle.java:852)
 at
wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:885)
 at wicket.RequestCycle.step(RequestCycle.java:966)
 at wicket.RequestCycle.steps(RequestCycle.java:1040)
 at wicket.RequestCycle.request(RequestCycle.java:454)
 at wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:216)
 at
wicket.protocol.http.WicketServlet.doPost(WicketServlet.java:259)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
 at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
 at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
 at
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
 at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
 at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
 at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
 at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
 at
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
 at
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
 at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
 at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
 at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
 at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
 at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
 at
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
 at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
 at
org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
 at java.lang.Thread.run(Thread.java:595)

This could be a problem with versioning of the submit link. It occurs
with wicket 1.2.2. Any ideas anyone? 

Cheers
 Erik



-
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] SubmitLink and back button...

2006-09-11 Thread Erik Brakkee




Johan Compagner wrote:
Hmm can you give us a test case for this?
Because if you click on the submitlink that call:
wicket.markup.html.form.Form.dispatchEvent(Form.java:1205)
  
shouldn't happen at all. Because there shouldn't be something in this
url:
  
  
 String url = "">
   if (!Strings.isEmpty(url))
   {
dispatchEvent(getPage(), url);
   }
  
because the hidden field id is replaced with the button name.
  
  
So i dont know why you get an url or a string there.

The problem does not occur while clicking on the submit link itself. It
happens while pressing the regular submit button of the form. Basically
what happens is:

  user clicks on a submit link to add an item, as a result a new
item appears in a list on the form with a new submit link next to it
  user presses browser back button
  user presses submit of the form. 
  

Cheers
 Erik

johan
  
  
  
  
  
  
  
  
  
  On 9/11/06, 
Erik Brakkee [EMAIL PROTECTED]
wrote:
  

Hi, 


I am having a problem with submit link. I used to have a form with a
regular link on it but then the form data would not get submitted. Now
I have replaced this by a SubmitLink and in my onSubmit() I do: 

 validate(); 
  updateFormComponentModels();
  // Remove messages cause by validation. 
  getPage().getFeedbackMessages().clear();


This is done to make sure all field values are available and that
validation is suppressed. The problem (see below) also occurs when I
don't execute the above statements in my onSubmit().

Now back button support is broken. The problem occurs when I click on a
link to edit an item to a collection. The result of clicking a link for
adding an item is that a new item is added to a list displayed on the
screen with a SubmitLink next to it for deleting it.

The problem occurs when I do the following:

  click on a link to add an item to a set, the item is now
added to
the list on the screen. 
  
  press the back button, the item is now not present in the
list
(as it was before adding it).
  submit the form

The error I get is: 
WicketMessage: Attempt to access unknown request listener interface null


Root cause:


wicket.WicketRuntimeException: Attempt to access unknown request
listener interface null
 at wicket.markup.html.form.Form.dispatchEvent(Form.java:1205)
 at wicket.markup.html.form.Form.onFormSubmitted(Form.java:293)
 at java.lang.reflect.Method.invoke(Method.java:585)
 at
wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:163)
 at
wicket.request.target.component.listener.ListenerInterfaceRequestTarget.processEvents(ListenerInterfaceRequestTarget.java:74)
 at
wicket.request.compound.DefaultEventProcessorStrategy.processEvents(DefaultEventProcessorStrategy.java:65)
 at
wicket.request.compound.AbstractCompoundRequestCycleProcessor.processEvents(AbstractCompoundRequestCycleProcessor.java:57)
 at
wicket.RequestCycle.doProcessEventsAndRespond(RequestCycle.java:852)
 at
wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:885)
 at wicket.RequestCycle.step(RequestCycle.java:966)
 at wicket.RequestCycle.steps(RequestCycle.java:1040)
 at wicket.RequestCycle.request(RequestCycle.java:454)
 at wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:216)
 at
wicket.protocol.http.WicketServlet.doPost(WicketServlet.java:259)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
 at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
 at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
 at
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
 at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
 at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
 at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
 at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
 at
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
 at
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
 at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
 at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
 at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
 at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
 at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
 at
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
 at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
 at

Re: [Wicket-user] SubmitLink and back button...

2006-09-11 Thread Erik Brakkee
Johan Compagner wrote:
 if you could make a case where we can look at?
I will try to make a small example tonight.

 What is the hidden fields value (that is an hidden input field
 appended to the form)
 right before you get the error?
The hidden form field is:
input type=hidden name=addEvenement_evenementForm:hf:0
id=addEvenement_evenementForm:hf:0 /

 johan




-
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] SubmitLink and back button...

2006-09-11 Thread Igor Vaynberg
is the submit link ajax? that would do it. that link has to reset the value when it is done processing.-IgorOn 9/11/06, Johan Compagner 
[EMAIL PROTECTED] wrote:ok so the value == null so the value shouldn't be something when you submit it.
Please set a breakpoint on Form.onFormSubmitted linenr: 190johanOn 9/11/06, 

Erik Brakkee [EMAIL PROTECTED] wrote:

Johan Compagner wrote: if you could make a case where we can look at?I will try to make a small example tonight. What is the hidden fields value (that is an hidden input field appended to the form)
 right before you get the error?The hidden form field is:input type=hidden name=addEvenement_evenementForm:hf:0id=addEvenement_evenementForm:hf:0 /

 johan-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 listWicket-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.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] SubmitLink and back button...

2006-09-11 Thread Erik Brakkee
Igor Vaynberg wrote:
 is the submit link ajax? that would do it. that link has to reset the
 value when it is done processing.
I used the standard SubmitLink. Nothing special here. Is there also an
ajax version?

 -Igor



-
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] SubmitLink and back button...

2006-09-11 Thread Igor Vaynberg
AjaxSubmitLink/Button -IgorOn 9/11/06, Erik Brakkee [EMAIL PROTECTED] wrote:
Igor Vaynberg wrote: is the submit link ajax? that would do it. that link has to reset the value when it is done processing.I used the standard SubmitLink. Nothing special here. Is there also anajax version?
 -Igor-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 Geronimohttp://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 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] SubmitLink and back button...

2006-09-11 Thread Erik Brakkee
Johan Compagner wrote:
 if you could make a case where we can look at?
I have managed to reproduce the problem using a very simple example. I
have a list of submit links with a form. Initially, the list is empty.
In addition, there is one link by which an additional submit link can be
added to the form. To reproduce the problem, simply click this link a
number of times, press your browser's back button, and then submit the
form by pressing the 'submit' button.

The problem occurs with wicket 1.2.2.

 What is the hidden fields value (that is an hidden input field
 appended to the form)
 right before you get the error?

 johan

Title: Nieuwe Artiest

	
	
		
		
		
		
		  Link text
		  
		
		
		Add a new link
		
		
		
	


package nl.jmonks.bonloon.app.pages;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;

import wicket.extensions.markup.html.repeater.data.DataView;
import wicket.extensions.markup.html.repeater.data.IDataProvider;
import wicket.extensions.markup.html.repeater.refreshing.Item;
import wicket.markup.html.WebPage;
import wicket.markup.html.basic.Label;
import wicket.markup.html.form.Form;
import wicket.markup.html.form.SubmitLink;
import wicket.model.IModel;
import wicket.model.Model;

public class SubmitLinkPage extends WebPage {
	
	private int _counter = 0; 

	public SubmitLinkPage() {
		
		System.out.println(New page);
		
		final Form form = new Form(form);
		add(form);
		
		final LinkProvider provider = new LinkProvider(); 
		DataView view = new DataView(links, provider) { 
			@Override
			protected void populateItem(Item aItem) {
String text = (String)aItem.getModelObject();
SubmitLink link = new SubmitLink(link);
link.setDefaultFormProcessing(false);
aItem.add(link);
link.add(new Label(text, text));
			}
		};
		form.add(view);
		
		SubmitLink addLink = new SubmitLink(add) { 
@Override
protected void onSubmit() {
	System.out.println(Hallo!);
	form.modelChanging();
provider.add(Look ma, a new link!  + _counter++);
System.out.println(no. items =  + provider.size());
form.modelChanged();
}			
		};
		form.add(addLink);
	}
}


class LinkProvider implements IDataProvider { 
	private ListString _links; 
	
	public LinkProvider() { 
		_links = new ArrayListString();
	}
	
	public void add(String aLink) { 
		_links.add(aLink);
	}
	
	public Iterator iterator(int aFirst, int aCount) {
	Iterator iterator = _links.iterator(); 
	for (int i = 0; i  aFirst; i++) { 
		iterator.next();
	}
	return iterator;
	}
	
	public IModel model(Object aObject) {
		return new Model((Serializable)aObject);
	}
	
	public int size() {
		return _links.size();
	}
}
-
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] SubmitLink and back button...

2006-09-11 Thread Erik Brakkee
Igor Vaynberg wrote:
 AjaxSubmitLink/Button
AjaxSubmitLink also fails in exactly the same way.

 -Igor


-
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] SubmitLink and back button...

2006-09-11 Thread Igor Vaynberg
yes, i would imagine that would unless you repaint the form-IgorOn 9/11/06, Erik Brakkee [EMAIL PROTECTED]
 wrote:Igor Vaynberg wrote: AjaxSubmitLink/ButtonAjaxSubmitLink also fails in exactly the same way.
 -Igor-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 Geronimohttp://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 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] SubmitLink and back button...

2006-09-11 Thread Erik Brakkee
Igor Vaynberg wrote:
 yes, i would imagine that would unless you repaint the form
I am still relatively new with wicket and I haven't got a clue what you
are talking about :-) Anyway, I managed to reproduce the problem with a
very simple example so lets see what comes out of this.

 -Igor

-
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