Re: logout
session.invalidate() and use setResponsePage to navigate to where you want when pressing back button (Thinking its not the browser button?) -Nino tbt wrote: Hi I'm a newbie to wicket and i'm currently using a Session to log users into my application. When the users click a logout button a new page is shown. But they can click the back button in the browser and go into the application. Is there a wicket way of expiring the session when the logout button is clicked and showing a seperate page when the back button is clicked. thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
logout
Hi I'm a newbie to wicket and i'm currently using a Session to log users into my application. When the users click a logout button a new page is shown. But they can click the back button in the browser and go into the application. Is there a wicket way of expiring the session when the logout button is clicked and showing a seperate page when the back button is clicked. thanks -- View this message in context: http://www.nabble.com/logout-tf4592416.html#a13110247 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: AutoCompleteTextfield - how to populate two input fields
No what I meant was that when a user selects something in one of your auto complete fields they'll automatickly select something in both, might have been a little scares on information: IModel commonModel=new Model(); AbstractModel() Text=new AbstractModel(){ getObject{ return commonModel.getObject.Text; } setObject(obj){ commonModel.setObject(obj) } } AbstractModel() name=new AbstractModel(){ getObject{ return commonModel.getObject.name; } setObject(obj){ commonModel.setObject(obj) } } AutoCompleteTextField phoneName = new AutoCompleteTextField( "phoneName", name, new BestEffortRendererAutoCompleteRenderer()) { @Override protected Iterator getChoices(String input) { return findItems(input); } }; AutoCompleteTextField phoneSeries = new AutoCompleteTextField( "phoneName", text, new BestEffortRendererAutoCompleteRenderer()) { @Override protected Iterator getChoices(String input) { return findItems(input); } }; And ofcourse you need to add the other completefield to the ajaxresponse... Hope this pseudo code works a little better... Was on my way out the door before... Oliver Lieven wrote: Hi Nino, thanks for your fast reply. Yes, a shared PropertyModel would help to keep both fields synchronized. I still can't see how this could help me to determine the value selected by the user. The AutoComplete works like 1. getChoices() is called to populate the autocomplete list with my "zipcode - city" options 2. when user selects a value from the autocomplete list, the corresponding field is set with the "textvalue" (e.g. the 'city' field is filled with the city's name) 3. because of this update, the city-field's AjaxFormComponentUpdatingBehavior.onUpdate() is called 4. in onUpdate() the getConvertedInput() method returns the city name, which is insufficient to determine the corresponding zipcode (because of the n:1 relation (city may have many zipcodes)). So I'm still looking for a way to determine the exact combination selected by the user... regards, Oliver Nino.Martinez wrote: Quick answer, why not use property models and use both in the fiields you mention? Oliver Lieven wrote: Hi, in an address edit panel I've got the two AutoCompleteText fields 'zipcode' and 'city'. When a users begins typing into the zipcode-field, the autocomplete shows up and offers valid "zipcode - city" combinations. After selecting a value from the autocomplete the 'zipcode' is set. Same for 'city' field, i.e. after selecting a "zipcode - city" from the city's autocomplete the "city"-field is set accordingly. (Thanks for the great autocomplete-support in Wicket which allows separation of displayvalue and textvalue!) Now to my question: after selection of a "zipcode - city" combination from either autocomplete list I would like to set both fields (zipcode and city). I already attached an AjaxFormComponentUpdatingBehavior which gets called after a selection in the autocomplete list, but it just gets the zipcode/city currently set. Since the zipcode-city relation is 1:n (e.g. Berlin has many zipcodes) I'm wondering if there is a way to access the full selected value (and not only the AbstractAutoCompleteTextRenderer.textvalue set). Thanks for any help and tips! Oliver - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: AutoCompleteTextfield - how to populate two input fields
Hi Nino, thanks for your fast reply. Yes, a shared PropertyModel would help to keep both fields synchronized. I still can't see how this could help me to determine the value selected by the user. The AutoComplete works like 1. getChoices() is called to populate the autocomplete list with my "zipcode - city" options 2. when user selects a value from the autocomplete list, the corresponding field is set with the "textvalue" (e.g. the 'city' field is filled with the city's name) 3. because of this update, the city-field's AjaxFormComponentUpdatingBehavior.onUpdate() is called 4. in onUpdate() the getConvertedInput() method returns the city name, which is insufficient to determine the corresponding zipcode (because of the n:1 relation (city may have many zipcodes)). So I'm still looking for a way to determine the exact combination selected by the user... regards, Oliver Nino.Martinez wrote: > > Quick answer, why not use property models and use both in the fiields > you mention? > > Oliver Lieven wrote: >> Hi, >> >> in an address edit panel I've got the two AutoCompleteText fields >> 'zipcode' >> and 'city'. >> >> When a users begins typing into the zipcode-field, the autocomplete shows >> up >> and offers valid "zipcode - city" combinations. After selecting a value >> from >> the autocomplete the 'zipcode' is set. Same for 'city' field, i.e. after >> selecting a "zipcode - city" from the city's autocomplete the >> "city"-field >> is set accordingly. >> (Thanks for the great autocomplete-support in Wicket which allows >> separation >> of displayvalue and textvalue!) >> >> Now to my question: after selection of a "zipcode - city" combination >> from >> either autocomplete list I would like to set both fields (zipcode and >> city). >> I already attached an AjaxFormComponentUpdatingBehavior which gets called >> after a selection in the autocomplete list, but it just gets the >> zipcode/city currently set. >> Since the zipcode-city relation is 1:n (e.g. Berlin has many zipcodes) >> I'm >> wondering if there is a way to access the full selected value (and not >> only >> the AbstractAutoCompleteTextRenderer.textvalue set). >> >> >> Thanks for any help and tips! >> Oliver >> >> >> > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/AutoCompleteTextfield---how-to-populate-two-input-fields-tf4592192.html#a13109927 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Wicket Example
instead of doing that, i'd suggest that you call the archetype correctly with the right parameters then you should not need to change anything afterwards : mvn *archetype*:create -DarchetypeGroupId=org.apache.*wicket* -DarchetypeArtifactId=*wicket*-*archetype*-quickstart -DarchetypeVersion=1.3.0-beta3 -DgroupId=com.mycompany -DartifactId=myproject like this mvn *archetype*:create -DarchetypeGroupId=org.apache.*wicket* -DarchetypeArtifactId=*wicket*-*archetype*-quickstart -DarchetypeVersion=1.3.0-beta3 -DgroupId=com.anitascompany -DartifactId=bestprojectever and replace com.anitascompany and bestprojectever with whater gives best meaning for you. anita nichols wrote: Ok I have my wicket 1.3 running smoothly, how do try the wicket example? Do I need to remove all the files from com.mycompany folder? or can I just create a new one and redirect the page to my new application? how to redirect? Thanks, Anita - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Google Maps and AJAX
Yep tried that... it compiles and deploys fine, but as soon as I try to access an Ajaxified panel with the headerContributor that points to google, it doesn't work. Nino.Martinez wrote: > > You are using header contributor right? > > Ballist1c wrote: >> Okay. this is a follow up from my initial google maps query.. >> >> i just figured out the problem ... what I am attempting to do is load >> googles external javascript on AJAX page loads, and google does not like >> it. >> I get this XMLHttpRequestOpen error which seems like google itself is >> denying the request for their JS when the AJAX page gets loaded. >> >> I have made a work around and loaded Googles Javascript from the absolute >> parent Panel that initially gets loaded and all is fine. >> >> I am curious however, has anyone figured out how to load the googlemaps >> Javascript API only when its needed with AJAX panel loads... rather than >> loading it from the entire web site regardless of its its being used or >> not. >> > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/Google-Maps-and-AJAX-tf4591408.html#a13109926 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Google Maps and AJAX
You are using header contributor right? Ballist1c wrote: Okay. this is a follow up from my initial google maps query.. i just figured out the problem ... what I am attempting to do is load googles external javascript on AJAX page loads, and google does not like it. I get this XMLHttpRequestOpen error which seems like google itself is denying the request for their JS when the AJAX page gets loaded. I have made a work around and loaded Googles Javascript from the absolute parent Panel that initially gets loaded and all is fine. I am curious however, has anyone figured out how to load the googlemaps Javascript API only when its needed with AJAX panel loads... rather than loading it from the entire web site regardless of its its being used or not. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: AutoCompleteTextfield - how to populate two input fields
Quick answer, why not use property models and use both in the fiields you mention? Oliver Lieven wrote: Hi, in an address edit panel I've got the two AutoCompleteText fields 'zipcode' and 'city'. When a users begins typing into the zipcode-field, the autocomplete shows up and offers valid "zipcode - city" combinations. After selecting a value from the autocomplete the 'zipcode' is set. Same for 'city' field, i.e. after selecting a "zipcode - city" from the city's autocomplete the "city"-field is set accordingly. (Thanks for the great autocomplete-support in Wicket which allows separation of displayvalue and textvalue!) Now to my question: after selection of a "zipcode - city" combination from either autocomplete list I would like to set both fields (zipcode and city). I already attached an AjaxFormComponentUpdatingBehavior which gets called after a selection in the autocomplete list, but it just gets the zipcode/city currently set. Since the zipcode-city relation is 1:n (e.g. Berlin has many zipcodes) I'm wondering if there is a way to access the full selected value (and not only the AbstractAutoCompleteTextRenderer.textvalue set). Thanks for any help and tips! Oliver - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AutoCompleteTextfield - how to populate two input fields
Hi, in an address edit panel I've got the two AutoCompleteText fields 'zipcode' and 'city'. When a users begins typing into the zipcode-field, the autocomplete shows up and offers valid "zipcode - city" combinations. After selecting a value from the autocomplete the 'zipcode' is set. Same for 'city' field, i.e. after selecting a "zipcode - city" from the city's autocomplete the "city"-field is set accordingly. (Thanks for the great autocomplete-support in Wicket which allows separation of displayvalue and textvalue!) Now to my question: after selection of a "zipcode - city" combination from either autocomplete list I would like to set both fields (zipcode and city). I already attached an AjaxFormComponentUpdatingBehavior which gets called after a selection in the autocomplete list, but it just gets the zipcode/city currently set. Since the zipcode-city relation is 1:n (e.g. Berlin has many zipcodes) I'm wondering if there is a way to access the full selected value (and not only the AbstractAutoCompleteTextRenderer.textvalue set). Thanks for any help and tips! Oliver -- View this message in context: http://www.nabble.com/AutoCompleteTextfield---how-to-populate-two-input-fields-tf4592192.html#a13109510 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Custom URL strategy
Hi, I want to build a custom url encoder fro bookmarkable pages and have been looking at BookmarkablePageRequestTargetUrlCodingStrategy. Can someone quickly contrast the responsibilities of IRequestTargetUrlCodingStrategy and WebRequestCodingStrategy. From a quick look it seems like they duplicate some of the encoding/decoding functionality. If I want to change the way URL's are translated for every bookmarkable page (including which page to create) should I override WebRequestCodingStrategy.encode()/decode()? Cheers, John - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Decouple parts of a form
Hi folks, I've been fiddling around with JCaptcha, Wicket and Spring these days. Now I'm trying to decouple the captcha part of the GUI from the rest. I.e. I'm trying to construct a captcha-component that can easily be nested into a form (into any form basically). The captcha class should look something like that public abstract class CaptchaPanel extends Panel { public CaptchaPanel() { Form form; add(form = new Form("captchaForm") { protected void onSubmit() { // do the captcha validation stuff // call on error if the entered tet Captcha.this.onError(); } }); // add the components form.add(new RequiredTextField("captchaInput" ); form.add(new Image()); } protected abstract void onError(); } I know from the wicket 1.3 API that forms can be nested and I also know that each form has to be submitted separately. My problem therefore is that the captcha-form's onSubmit button doesn't get called if someone submits the outside form (= the form the component is nested in). Is there a possibility to submit the 'inner' form as well when the 'outer' form is submitted? I'm also open for other suggestions, maybe there's already a Wicket best-practise solution, which would be nice :-) I'm kinda stuck, it's late at night and I really hope someone is able to give me a hint. Thanks in advance Michael -- View this message in context: http://www.nabble.com/Decouple-parts-of-a-form-tf4591493.html#a13107429 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Google Maps and AJAX
Okay. this is a follow up from my initial google maps query.. i just figured out the problem ... what I am attempting to do is load googles external javascript on AJAX page loads, and google does not like it. I get this XMLHttpRequestOpen error which seems like google itself is denying the request for their JS when the AJAX page gets loaded. I have made a work around and loaded Googles Javascript from the absolute parent Panel that initially gets loaded and all is fine. I am curious however, has anyone figured out how to load the googlemaps Javascript API only when its needed with AJAX panel loads... rather than loading it from the entire web site regardless of its its being used or not. -- View this message in context: http://www.nabble.com/Google-Maps-and-AJAX-tf4591408.html#a13107177 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Wicket Example
Ok I have my wicket 1.3 running smoothly, how do try the wicket example? Do I need to remove all the files from com.mycompany folder? or can I just create a new one and redirect the page to my new application? how to redirect? Thanks, Anita
Re: Portlet howto
Gwyn Evans wrote: On Monday, October 8, 2007, 11:45:39 AM, Ate <[EMAIL PROTECTED]> wrote: To get you started, I'll give the important configuration (and portal runtime) settings/requirements inline here. These will eventually end up on a Wiki page, but I'm afraid I won't have time to write that before next week. http://cwiki.apache.org/WICKET/portal-howto.html :-) Nice ;) Thanks Gwyn /Gwyn - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Custom URL strategy
Hi, I want to build a custom url encoder fro bookmarkable pages and have been looking at BookmarkablePageRequestTargetUrlCodingStrategy. Can someone quickly contrast the responsibilities of IRequestTargetUrlCodingStrategy and WebRequestCodingStrategy. From a quick look it seems like they duplicate some of the encoding/decoding functionality. If I want to change the way URL's are translated for every bookmarkable page (including which page to create) should I override WebRequestCodingStrategy.encode()/decode()? Cheers, John - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Quickstart 1.2 upgrade to 1.3
After I restarted my computer everything is working fine On 10/8/07, jweekend <[EMAIL PROTECTED]> wrote: > > > Assuming you had > -DartifactId=WicketProject > in the command line you ran to create your Wicket archetype, typing > mvn jetty:run > in the WicketProject folder should enable you to point your browser at > http://127.0.0.1:8080/WicketProject > to see the simple "Wicket Quickstart Archetype Homepage " page. If that > works, it's probably a problem with your deployment to Tomcat. > Did you (or Netbeans) build and then deploy WicketProject.war to Tomcat by > copying it into the webapps folder in your CATALINA_BASE folder (or in > CATALINA_HOME if CATALINA_BASE is not set by you or Netbeans)? > > Regards - Cemal > http://jWeekend.co.uk jWeekend.co.uk > > > anita nichols wrote: > > > > Everything looks fine, I followed all the instruction, but I got this > > > > HTTP Status 404 - /WicketProject > > -- > > > > *type* Status report > > > > *message* */WicketProject* > > > > *description* *The requested resource (/WicketProject) is not > available.* > > -- > > Apache Tomcat/6.0.14 > > > > > > On 10/8/07, jweekend <[EMAIL PROTECTED]> wrote: > >> > >> > >> Such screencasts are really helpful. I think > >> http://herebebeasties.com/2007-10-07/wicket-quickstart/ Al's Wicket > >> Quickstart screencast can help many people who are new to both Maven 2 > >> and > >> Wicket. > >> As you follow it, bear in mind that most of it covers the one-off task > of > >> installing Maven 2. If this screencast was divided into 2 to reflect > >> this, > >> people starting from scratch (ie with no Maven 2 installed on their > boxes > >> yet) would probably say they'd like to see the whole show in one go! > >> The steps relating to setting up a Wicket archetype (once Maven 2 is > >> installed and in your path) are in fact extremely short and simple. > And, > >> so > >> is the bit telling you how to set up a project for your IDE (Eclipse, > in > >> this case). > >> Regards - Cemal > >> jWeekend.co.uk > >> > >> > >> > >> Frank Bille-2 wrote: > >> > > >> > On 10/8/07, anita nichols <[EMAIL PROTECTED]> wrote: > >> >> > >> >> How do I use the archetype to setup a wicket 1.3 project? or if I > have > >> to > >> >> do > >> >> it manually how do I do it? > >> >> > >> > > >> > Al has created a screencast of how to do it: > >> > > >> > http://herebebeasties.com/2007-10-07/wicket-quickstart/ > >> > > >> > Frank > >> > > >> > > >> > >> -- > >> View this message in context: > >> > http://www.nabble.com/Quickstart-1.2-upgrade-to-1.3-tf4589237.html#a13104696 > >> Sent from the Wicket - User mailing list archive at Nabble.com. > >> > >> > >> - > >> To unsubscribe, e-mail: [EMAIL PROTECTED] > >> For additional commands, e-mail: [EMAIL PROTECTED] > >> > >> > > > > > > -- > View this message in context: > http://www.nabble.com/Quickstart-1.2-upgrade-to-1.3-tf4589237.html#a13105570 > Sent from the Wicket - User mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
Re: Quickstart 1.2 upgrade to 1.3
Assuming you had -DartifactId=WicketProject in the command line you ran to create your Wicket archetype, typing mvn jetty:run in the WicketProject folder should enable you to point your browser at http://127.0.0.1:8080/WicketProject to see the simple "Wicket Quickstart Archetype Homepage " page. If that works, it's probably a problem with your deployment to Tomcat. Did you (or Netbeans) build and then deploy WicketProject.war to Tomcat by copying it into the webapps folder in your CATALINA_BASE folder (or in CATALINA_HOME if CATALINA_BASE is not set by you or Netbeans)? Regards - Cemal http://jWeekend.co.uk jWeekend.co.uk anita nichols wrote: > > Everything looks fine, I followed all the instruction, but I got this > > HTTP Status 404 - /WicketProject > -- > > *type* Status report > > *message* */WicketProject* > > *description* *The requested resource (/WicketProject) is not available.* > -- > Apache Tomcat/6.0.14 > > > On 10/8/07, jweekend <[EMAIL PROTECTED]> wrote: >> >> >> Such screencasts are really helpful. I think >> http://herebebeasties.com/2007-10-07/wicket-quickstart/ Al's Wicket >> Quickstart screencast can help many people who are new to both Maven 2 >> and >> Wicket. >> As you follow it, bear in mind that most of it covers the one-off task of >> installing Maven 2. If this screencast was divided into 2 to reflect >> this, >> people starting from scratch (ie with no Maven 2 installed on their boxes >> yet) would probably say they'd like to see the whole show in one go! >> The steps relating to setting up a Wicket archetype (once Maven 2 is >> installed and in your path) are in fact extremely short and simple. And, >> so >> is the bit telling you how to set up a project for your IDE (Eclipse, in >> this case). >> Regards - Cemal >> jWeekend.co.uk >> >> >> >> Frank Bille-2 wrote: >> > >> > On 10/8/07, anita nichols <[EMAIL PROTECTED]> wrote: >> >> >> >> How do I use the archetype to setup a wicket 1.3 project? or if I have >> to >> >> do >> >> it manually how do I do it? >> >> >> > >> > Al has created a screencast of how to do it: >> > >> > http://herebebeasties.com/2007-10-07/wicket-quickstart/ >> > >> > Frank >> > >> > >> >> -- >> View this message in context: >> http://www.nabble.com/Quickstart-1.2-upgrade-to-1.3-tf4589237.html#a13104696 >> Sent from the Wicket - User mailing list archive at Nabble.com. >> >> >> - >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > -- View this message in context: http://www.nabble.com/Quickstart-1.2-upgrade-to-1.3-tf4589237.html#a13105570 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Portlet howto
On Monday, October 8, 2007, 11:45:39 AM, Ate <[EMAIL PROTECTED]> wrote: > To get you started, I'll give the important configuration (and > portal runtime) settings/requirements inline here. > These will eventually end up on a Wiki page, but I'm afraid I won't > have time to write that before next week. http://cwiki.apache.org/WICKET/portal-howto.html :-) /Gwyn - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Quickstart 1.2 upgrade to 1.3
Everything looks fine, I followed all the instruction, but I got this HTTP Status 404 - /WicketProject -- *type* Status report *message* */WicketProject* *description* *The requested resource (/WicketProject) is not available.* -- Apache Tomcat/6.0.14 On 10/8/07, jweekend <[EMAIL PROTECTED]> wrote: > > > Such screencasts are really helpful. I think > http://herebebeasties.com/2007-10-07/wicket-quickstart/ Al's Wicket > Quickstart screencast can help many people who are new to both Maven 2 > and > Wicket. > As you follow it, bear in mind that most of it covers the one-off task of > installing Maven 2. If this screencast was divided into 2 to reflect this, > people starting from scratch (ie with no Maven 2 installed on their boxes > yet) would probably say they'd like to see the whole show in one go! > The steps relating to setting up a Wicket archetype (once Maven 2 is > installed and in your path) are in fact extremely short and simple. And, > so > is the bit telling you how to set up a project for your IDE (Eclipse, in > this case). > Regards - Cemal > jWeekend.co.uk > > > > Frank Bille-2 wrote: > > > > On 10/8/07, anita nichols <[EMAIL PROTECTED]> wrote: > >> > >> How do I use the archetype to setup a wicket 1.3 project? or if I have > to > >> do > >> it manually how do I do it? > >> > > > > Al has created a screencast of how to do it: > > > > http://herebebeasties.com/2007-10-07/wicket-quickstart/ > > > > Frank > > > > > > -- > View this message in context: > http://www.nabble.com/Quickstart-1.2-upgrade-to-1.3-tf4589237.html#a13104696 > Sent from the Wicket - User mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
Re: Quickstart 1.2 upgrade to 1.3
Such screencasts are really helpful. I think http://herebebeasties.com/2007-10-07/wicket-quickstart/ Al's Wicket Quickstart screencast can help many people who are new to both Maven 2 and Wicket. As you follow it, bear in mind that most of it covers the one-off task of installing Maven 2. If this screencast was divided into 2 to reflect this, people starting from scratch (ie with no Maven 2 installed on their boxes yet) would probably say they'd like to see the whole show in one go! The steps relating to setting up a Wicket archetype (once Maven 2 is installed and in your path) are in fact extremely short and simple. And, so is the bit telling you how to set up a project for your IDE (Eclipse, in this case). Regards - Cemal jWeekend.co.uk Frank Bille-2 wrote: > > On 10/8/07, anita nichols <[EMAIL PROTECTED]> wrote: >> >> How do I use the archetype to setup a wicket 1.3 project? or if I have to >> do >> it manually how do I do it? >> > > Al has created a screencast of how to do it: > > http://herebebeasties.com/2007-10-07/wicket-quickstart/ > > Frank > > -- View this message in context: http://www.nabble.com/Quickstart-1.2-upgrade-to-1.3-tf4589237.html#a13104696 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Quickstart 1.2 upgrade to 1.3
Thanks Frank. So far so good, but no luck on installing mvn netbeans:netbeans, but works for eclipse.. On 10/8/07, Frank Bille <[EMAIL PROTECTED]> wrote: > > On 10/8/07, anita nichols <[EMAIL PROTECTED]> wrote: > > > > How do I use the archetype to setup a wicket 1.3 project? or if I have > to > > do > > it manually how do I do it? > > > > Al has created a screencast of how to do it: > > http://herebebeasties.com/2007-10-07/wicket-quickstart/ > > Frank >
Re: Multiple children border?
n8han wrote: > > dcastannon wrote: >> A border component insert its markup into the child tag of the border >> markup. >> I think i need a border with multiple body tags, identified by name. Is >> something like a template (a la facelets). How can i do this with >> wicket? > You can do this panels or fragments (or just individual components if > that is all you need to put in the spot): > http://www.nabble.com/More-extend-points-tf4442899.html > Mmm, but it's not exactly what i want: I want to define some markup/html for the elements as border component does. Panel and fragments does not do this. So, in wicket there are this possibilities for composition: 1. Using Border 2. Using Panels 3. Using Fragments 4. Using Socket-Plug technique (link above) - With Border method you can't define more than one child, but you can define the markup in the border definition - With Panels you can't "get" the markup from the base component in which panel tag is defined. "a Panel has its own associated markup file". - With fragments you can define markup in the same file it's used, and you can use it in extended components (MarkupContainer property) - With Socket-Plug you define a anchor point but the content is defined in the extension class in a generic form. I'm not sure if the defined markup can be easily inserted in the socket (fragments?) So, i try a mix of fragments and panels: Define some fragments at the target page element1 element2 The code for that page add(new MyPanel("template",this)); MyPanel markup is [element1] [element2] and MyPanel code says public MyPanel(String id, MarkupContainer containerProvider) { super(id); Fragment f1=new Fragment("panel-element1","fragment-element1", containerProvider); Fragment f2=new Fragment("panel-element2","fragment-element2", containerProvider); add(f1); add(f2); } It works ... but i want to define the fragments inside the template, so i can use it many times, something like element1 element2 elementA elemenB but this throws a "close tag not found for tag: " exception I think it's a bit tricky,i will try socket-plug variant and, if that do not works, i will develop a new component "wicket:template?" similar to the border component, but allowing multiple bodies. Any comments? I'm missing something? -- View this message in context: http://www.nabble.com/Multiple-children-border--tf4587131.html#a13102738 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: out of memory - wicket 1.2.6
Are you redeploying often with out restarting? Jeremy On 10/8/07, Nino Saturnino Martinez Vazquez Wael <[EMAIL PROTECTED]> wrote: > > At my former job, we had a memory leak not in our own application but a > dependancy though.. Thats where jmeter and jprobe came into scope. It > took me 12 hours of screen starin/running different scenarios to find > out what it was, very boring but nice to see it wasnt my code. > > regards Nino > > Dipu Seminlal wrote: > > i would say very less ,i wouldn't rule it out though. > > > > On 10/8/07, Nino Saturnino Martinez Vazquez Wael < > [EMAIL PROTECTED]> > > wrote: > > > >> What are the chances of you having a memory leak in your code? > >> > >> regards Nino > >> > >> Dipu Seminlal wrote: > >> > >>> yes it's in production mode > >>> > >>> Regards > >>> Dipu > >>> > >>> On 10/8/07, Nino Saturnino Martinez Vazquez Wael < > >>> > >> [EMAIL PROTECTED]> > >> > >>> wrote: > >>> > >>> > Hmm this is always tricky.. I supose that you deployed wicket in > production mode? > > If not the only way forward are using a memory profiler, and a > performance tester (because memory errors might not be obvious until > youve gotten a lot of clicks). > > I'd suggest JProbe and JMeter... > > http://www.quest.com/jprobe/memory-home.aspx > http://jakarta.apache.org/jmeter/ > > regards Nino > > Dipu Seminlal wrote: > > > > Hi, > > > > One of our servers running wicket application went down throwing > out > > > >> of > >> > > memory error. > > This is the first time it has ever happened, can any one throw some > > > > > light on > > > > the reason for the issue. > > > > > > 2007-10-08 11:36:02:425 ERROR wicket.RequestCycle [TP-Processor63] > - > > > > > Method > > > > onFormSubmitted of interface > > wicket.markup.html.form.IFormSubmitListenertargeted at component > > [MarkupContainer [Component id = searchForm, page = > > com.xmltravel.fab1.wicket.flights.HorizontalSearchNavPage, path = > > 0:searchLandingPanel: > searchForm.HorizontalSearchNavPagePanel$InputForm > > > >> , > >> > > isVisible = true, isVersioned = true]] threw an exception > > wicket.WicketRuntimeException: Method onFormSubmitted of interface > > wicket.markup.html.form.IFormSubmitListener targeted at component > > [MarkupContainer [Component id = searchForm, page = > > com.xmltravel.fab1.wicket.flights.HorizontalSearchNavPage, path = > > 0:searchLandingPanel: > searchForm.HorizontalSearchNavPagePanel$InputForm > > > >> , > >> > > isVisible = true, isVersioned = true]] threw an exception > > at wicket.RequestListenerInterface.invoke( > > > > > RequestListenerInterface.java > > > > :198) > > 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 > > > > > :896) > > > > at wicket.RequestCycle.processEventsAndRespond(RequestCycle.java > > > > > :929) > > > > at wicket.RequestCycle.step(RequestCycle.java:1010) > > at wicket.RequestCycle.steps(RequestCycle.java:1084) > > at wicket.RequestCycle.request(RequestCycle.java:454) > > at wicket.protocol.http.WicketServlet.doGet(WicketServlet.java > > > >> :219) > >> > > at wicket.protocol.http.WicketServlet.doPost(WicketServlet.java > > > >> :262) > >> > > at javax.servlet.http.HttpServlet.service(HttpServlet.java:710) > > at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) > > at > > > >> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter( > >> > > ApplicationFilterChain.java:269) > > at org.apache.catalina.core.ApplicationFilterChain.doFilter( > > ApplicationFilterChain.java:188) > > at org.apache.catalina.core.StandardWrapperValve.invoke( > > StandardWrapperValve.java:210) > > at org.apache.catalina.core.StandardContextValve.invoke( > > StandardContextValve.java:174) > > at org.apache.catalina.core.StandardHostValve.invoke( > > StandardHostValve.java:127) > > at org.apache.catalina.valves.ErrorReportValve.invoke( > > ErrorReportValve.java:117) > > at org.apache.catalina.core.StandardEngineValve.invoke( > > StandardEngineValve.java
Re: Quickstart 1.2 upgrade to 1.3
Netbeans has a maven 2 module/plugin you can use that uses the pom for creating a project (really nice functionality) I suggest you install that one. The other thing you should use is the wicket archetype. The instructions for using it are found here: http://wicket.apache.org/quickstart.html note that the command should be one line. Martijn On 10/8/07, anita nichols <[EMAIL PROTECTED]> wrote: > netbean IDE and maven 2 > I tried to download quickstart 1.3, but get me error and keep telling me > that I need to download the file manually. > How do I use the archetype to setup a wicket 1.3 project? or if I have to do > it manually how do I do it? > > Anita > > > > > On 10/8/07, Martijn Dashorst <[EMAIL PROTECTED]> wrote: > > > > Why would you upgrade the quickstart from 1.2 to 1.3? > > Or do you want a download for quickstart with wicket 1.3? > > > > Do you use maven? What is your IDE: eclipse, netbeans, intellij IDEA? > > > > Martijn > > > > On 10/8/07, anita nichols <[EMAIL PROTECTED]> wrote: > > > How do I upgrade wicket quickstart 1.2 to 1.3. > > > If you can point me to any source that will be great > > > > > > > > > -- > > Buy Wicket in Action: http://manning.com/dashorst > > Apache Wicket 1.3.0-beta3 is released > > Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-beta3/ > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > -- Buy Wicket in Action: http://manning.com/dashorst Apache Wicket 1.3.0-beta3 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-beta3/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
cannot focus on location bar after adding AjaxFormValidatingBehavior
I'd added: userNameTF.setRequired(true); //input must be at least 3 characters userNameTF.add(StringValidator.minimumLength(3)); AjaxFormValidatingBehavior.addToAllFormComponents(loginForm, "onblur"); to a simple login page and now the following happens 100% of the time: 1. I focus on 'userName' TextField 2. I click into browser's location bar but focus is immediately returned to username TF as "onblur" behavior executes, so it is impossible to focus in location bar if previous focus was on AJAX-ified input. Is there a way to amend behavior: a) not to regain focus on offending tag (eg one failing validation)? OR b) do a) only if focus is transferred off page - to location bar or another window (as opposed to other tag on same page)? b) would be better. thanks, -nikita -- View this message in context: http://www.nabble.com/cannot-focus-on-location-bar-after-adding-AjaxFormValidatingBehavior-tf4589906.html#a13102162 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Quickstart 1.2 upgrade to 1.3
On 10/8/07, anita nichols <[EMAIL PROTECTED]> wrote: > > How do I use the archetype to setup a wicket 1.3 project? or if I have to > do > it manually how do I do it? > Al has created a screencast of how to do it: http://herebebeasties.com/2007-10-07/wicket-quickstart/ Frank
Re: Lazy loading pageable listview
well, all the examples in there that page only retrieve records for that page, so im not sure what you are talking about. -igor On 10/8/07, wfaler <[EMAIL PROTECTED]> wrote: > > Yes some of them, but they mostly seem to be focused around minimizing what > is serialized into a session, not how to lazy load a large amount of data > that needs to be paged through. > I don't need to retrieve "id's only", I need to limit the amount of id's > that I get in one go. > > > igor.vaynberg wrote: > > > > have you looked in wicket-examples under repeaters? > > > > -igor > > > > > > On 10/8/07, wfaler <[EMAIL PROTECTED]> wrote: > >> > >> Hi, > >> I have a page where I have a DataContainer that shows ten items at a > >> time, > >> with paging links at the bottom. > >> Is there any way of lazy-loading the contents of the datacontainer? > >> I need to do this, as the amount of data is very large (up to 300 000 > >> rows, > >> depending on the search criteria). > >> > >> I have found a bunch of stuff around IDataProvider, DataView etc, but I > >> haven't found any meaningful examples that helps a great deal.. > >> -- > >> View this message in context: > >> http://www.nabble.com/Lazy-loading-pageable-listview-tf4587413.html#a13094415 > >> Sent from the Wicket - User mailing list archive at Nabble.com. > >> > >> > >> - > >> To unsubscribe, e-mail: [EMAIL PROTECTED] > >> For additional commands, e-mail: [EMAIL PROTECTED] > >> > >> > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > -- > View this message in context: > http://www.nabble.com/Lazy-loading-pageable-listview-tf4587413.html#a13102138 > Sent from the Wicket - User mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Quickstart 1.2 upgrade to 1.3
netbean IDE and maven 2 I tried to download quickstart 1.3, but get me error and keep telling me that I need to download the file manually. How do I use the archetype to setup a wicket 1.3 project? or if I have to do it manually how do I do it? Anita On 10/8/07, Martijn Dashorst <[EMAIL PROTECTED]> wrote: > > Why would you upgrade the quickstart from 1.2 to 1.3? > Or do you want a download for quickstart with wicket 1.3? > > Do you use maven? What is your IDE: eclipse, netbeans, intellij IDEA? > > Martijn > > On 10/8/07, anita nichols <[EMAIL PROTECTED]> wrote: > > How do I upgrade wicket quickstart 1.2 to 1.3. > > If you can point me to any source that will be great > > > > > -- > Buy Wicket in Action: http://manning.com/dashorst > Apache Wicket 1.3.0-beta3 is released > Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-beta3/ > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
Re: Lazy loading pageable listview
Yes some of them, but they mostly seem to be focused around minimizing what is serialized into a session, not how to lazy load a large amount of data that needs to be paged through. I don't need to retrieve "id's only", I need to limit the amount of id's that I get in one go. igor.vaynberg wrote: > > have you looked in wicket-examples under repeaters? > > -igor > > > On 10/8/07, wfaler <[EMAIL PROTECTED]> wrote: >> >> Hi, >> I have a page where I have a DataContainer that shows ten items at a >> time, >> with paging links at the bottom. >> Is there any way of lazy-loading the contents of the datacontainer? >> I need to do this, as the amount of data is very large (up to 300 000 >> rows, >> depending on the search criteria). >> >> I have found a bunch of stuff around IDataProvider, DataView etc, but I >> haven't found any meaningful examples that helps a great deal.. >> -- >> View this message in context: >> http://www.nabble.com/Lazy-loading-pageable-listview-tf4587413.html#a13094415 >> Sent from the Wicket - User mailing list archive at Nabble.com. >> >> >> - >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/Lazy-loading-pageable-listview-tf4587413.html#a13102138 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Quickstart 1.2 upgrade to 1.3
Why would you upgrade the quickstart from 1.2 to 1.3? Or do you want a download for quickstart with wicket 1.3? Do you use maven? What is your IDE: eclipse, netbeans, intellij IDEA? Martijn On 10/8/07, anita nichols <[EMAIL PROTECTED]> wrote: > How do I upgrade wicket quickstart 1.2 to 1.3. > If you can point me to any source that will be great > -- Buy Wicket in Action: http://manning.com/dashorst Apache Wicket 1.3.0-beta3 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-beta3/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: out of memory - wicket 1.2.6
At my former job, we had a memory leak not in our own application but a dependancy though.. Thats where jmeter and jprobe came into scope. It took me 12 hours of screen starin/running different scenarios to find out what it was, very boring but nice to see it wasnt my code. regards Nino Dipu Seminlal wrote: i would say very less ,i wouldn't rule it out though. On 10/8/07, Nino Saturnino Martinez Vazquez Wael <[EMAIL PROTECTED]> wrote: What are the chances of you having a memory leak in your code? regards Nino Dipu Seminlal wrote: yes it's in production mode Regards Dipu On 10/8/07, Nino Saturnino Martinez Vazquez Wael < [EMAIL PROTECTED]> wrote: Hmm this is always tricky.. I supose that you deployed wicket in production mode? If not the only way forward are using a memory profiler, and a performance tester (because memory errors might not be obvious until youve gotten a lot of clicks). I'd suggest JProbe and JMeter... http://www.quest.com/jprobe/memory-home.aspx http://jakarta.apache.org/jmeter/ regards Nino Dipu Seminlal wrote: Hi, One of our servers running wicket application went down throwing out of memory error. This is the first time it has ever happened, can any one throw some light on the reason for the issue. 2007-10-08 11:36:02:425 ERROR wicket.RequestCycle [TP-Processor63] - Method onFormSubmitted of interface wicket.markup.html.form.IFormSubmitListenertargeted at component [MarkupContainer [Component id = searchForm, page = com.xmltravel.fab1.wicket.flights.HorizontalSearchNavPage, path = 0:searchLandingPanel:searchForm.HorizontalSearchNavPagePanel$InputForm , isVisible = true, isVersioned = true]] threw an exception wicket.WicketRuntimeException: Method onFormSubmitted of interface wicket.markup.html.form.IFormSubmitListener targeted at component [MarkupContainer [Component id = searchForm, page = com.xmltravel.fab1.wicket.flights.HorizontalSearchNavPage, path = 0:searchLandingPanel:searchForm.HorizontalSearchNavPagePanel$InputForm , isVisible = true, isVersioned = true]] threw an exception at wicket.RequestListenerInterface.invoke( RequestListenerInterface.java :198) 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 :896) at wicket.RequestCycle.processEventsAndRespond(RequestCycle.java :929) at wicket.RequestCycle.step(RequestCycle.java:1010) at wicket.RequestCycle.steps(RequestCycle.java:1084) at wicket.RequestCycle.request(RequestCycle.java:454) at wicket.protocol.http.WicketServlet.doGet(WicketServlet.java :219) at wicket.protocol.http.WicketServlet.doPost(WicketServlet.java :262) at javax.servlet.http.HttpServlet.service(HttpServlet.java:710) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter( ApplicationFilterChain.java:269) at org.apache.catalina.core.ApplicationFilterChain.doFilter( ApplicationFilterChain.java:188) at org.apache.catalina.core.StandardWrapperValve.invoke( StandardWrapperValve.java:210) at org.apache.catalina.core.StandardContextValve.invoke( StandardContextValve.java:174) at org.apache.catalina.core.StandardHostValve.invoke( StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke( ErrorReportValve.java:117) at org.apache.catalina.core.StandardEngineValve.invoke( StandardEngineValve.java:108) at org.apache.catalina.connector.CoyoteAdapter.service( CoyoteAdapter.java:151) at org.apache.jk.server.JkCoyoteHandler.invoke( JkCoyoteHandler.java :200) at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java :283) at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java :773) at org.apache.jk.common.ChannelSocket.processConnection( ChannelSocket.java:703) at org.apache.jk.common.ChannelSocket$SocketConnection.runIt( ChannelSocket.java:895) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run( ThreadPool.java:685) at java.lang.Thread.run(Thread.java:595) Caused by: java.lang.reflect.InvocationTargetException at sun.reflect.GeneratedMethodAccessor65.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invok
Re: AjaxChoiceBox... does this exist???
dropdownchoce ddc=new dropdownchoice(..); ddc.add(new ajaxformcomponentupdatingbehavior("onchange")); -igor On 10/8/07, Doug Leeper <[EMAIL PROTECTED]> wrote: > > Is this available anywhere? > > -- > View this message in context: > http://www.nabble.com/AjaxChoiceBox...-does-this-existtf4589172.html#a13099630 > Sent from the Wicket - User mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Lazy loading pageable listview
have you looked in wicket-examples under repeaters? -igor On 10/8/07, wfaler <[EMAIL PROTECTED]> wrote: > > Hi, > I have a page where I have a DataContainer that shows ten items at a time, > with paging links at the bottom. > Is there any way of lazy-loading the contents of the datacontainer? > I need to do this, as the amount of data is very large (up to 300 000 rows, > depending on the search criteria). > > I have found a bunch of stuff around IDataProvider, DataView etc, but I > haven't found any meaningful examples that helps a great deal.. > -- > View this message in context: > http://www.nabble.com/Lazy-loading-pageable-listview-tf4587413.html#a13094415 > Sent from the Wicket - User mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Multiple children border?
dcastannon wrote: A border component insert its markup into the child tag of the border markup. I think i need a border with multiple body tags, identified by name. Is something like a template (a la facelets). How can i do this with wicket? You can do this panels or fragments (or just individual components if that is all you need to put in the spot): http://www.nabble.com/More-extend-points-tf4442899.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Quickstart 1.2 upgrade to 1.3
How do I upgrade wicket quickstart 1.2 to 1.3. If you can point me to any source that will be great
Re: AjaxDropDownChoice... does this exist???
Never mind...I found what I needed in the examples. -- View this message in context: http://www.nabble.com/AjaxChoiceBox...-does-this-existtf4589172.html#a13099795 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: AjaxDropDownChoice... does this exist???
I meant to say AjaxDropDownChoice -- View this message in context: http://www.nabble.com/AjaxChoiceBox...-does-this-existtf4589172.html#a13099632 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AjaxChoiceBox... does this exist???
Is this available anywhere? -- View this message in context: http://www.nabble.com/AjaxChoiceBox...-does-this-existtf4589172.html#a13099630 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Form with TabbedPanel
Hi, I have a question on implementing validation in a form that conatins a TabbedPanel, where the Tabs themself contain FormComponents. The wishtlist goes like this: The Tabs ought to be able to validate themselve, like first validating FormComponents and then the TabPanel as a whole. On switching Tabs the visible TabPanel should validate itself and if its not valid disalow switching. On submitting the Form the visible TabPanel should validate and then the other TabPanels should validate. If a TabPanel is not valid it should be switched to. I understand that I could validate the whole form based on the underlying model, but I'd like to push the validation as far into the Tabs and the FormComponents as possible. That way it would be easy to 'pop up' the FormComponent or its Panel that has objections about the validity. At the moment I have the feeling that the Panels in the Tabs ought to be able to validate temthelves and TabbedPanel ought to be able to trigger that validation. Currently I'm lacking the overview to implement that. Any ideas on an efficient aproach on this? Martin -- View this message in context: http://www.nabble.com/Form-with-TabbedPanel-tf4588759.html#a13098409 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: body onload contribution
Ah. that was the 1.3ism i was looking for. I'll try that. Thanks. I knew it had changed but couldn't remember the new approach. On 10/8/07, Matej Knopp <[EMAIL PROTECTED]> wrote: > > What wicket version are you using? > > In 1.3 there's much better way to do this. Just use > renderOnLoad/renderOnDomReady javascript on IHeaderResponse. > > -Matej > > On 10/8/07, Evan Chooly <[EMAIL PROTECTED]> wrote: > > I used the following in my page constructor, but I'm not seeing the > change > > in the HTML. What am I missing? > > > > add(new BodyTagAttributeModifier("onload", true, new > Model("foo()"), > > this)); > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
Re: body onload contribution
What wicket version are you using? In 1.3 there's much better way to do this. Just use renderOnLoad/renderOnDomReady javascript on IHeaderResponse. -Matej On 10/8/07, Evan Chooly <[EMAIL PROTECTED]> wrote: > I used the following in my page constructor, but I'm not seeing the change > in the HTML. What am I missing? > > add(new BodyTagAttributeModifier("onload", true, new Model("foo()"), > this)); > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
body onload contribution
I used the following in my page constructor, but I'm not seeing the change in the HTML. What am I missing? add(new BodyTagAttributeModifier("onload", true, new Model("foo()"), this));
Re: Ajax dropdownchoice doesn't work after submit
Thanks Igor and Kent !! I removed the page.render() invocation like Igor said and works perfect!! It's not neccessary to set the response page. The submit refresh the page. Thanks a lot for your quick answers. Pablo. igor.vaynberg wrote: > > provide a working quickstart and i will take a look > > -igor > > On 10/5/07, Larva <[EMAIL PROTECTED]> wrote: >> >> The first time the page is render the dropdownchoices works fine. I took >> the >> example from the wicket examples. >> The problem is after the submit. When I submit the form and the page is >> render again the data of the dataview is filtered ok but the >> dropdownchoices >> aren't working and there is no ajax scripts in the html. >> >> Thanks !! >> Pablo. >> >> >> >> igor.vaynberg wrote: >> > >> > instead of pushing the right values when things change you should make >> > everything pull, that way updates happen on the fly... see the ajax >> > dropdown example in wicket examples. >> > >> > -igor >> > >> > >> > On 10/5/07, Larva <[EMAIL PROTECTED]> wrote: >> >> >> >> Thanks Igor for your quick answer. >> >> I call the page.render() method because in the submit I set properties >> in >> >> the page that use to filter my custom dataview. >> >> Then, if a don't invoke the page render the dataview isn't update. >> >> I tried invoking only the render method of my dataview but I got the >> same >> >> issue. >> >> >> >> This is my code: >> >> >> >> DropDownChoice A >> >> >> >> private DropDownChoice getTipoDelegacionDDC(final >> >> FiltroEmbarqueForm form) >> >> { >> >> DropDownChoice ddcTipoDel = new >> DropDownChoice("tipoDelegacion", >> >> new >> >> PropertyModel(this, "tipoDelegacion"), >> >> Arrays.asList(TipoDelegacion.values())); >> >> ddcTipoDel.add(new >> AjaxFormComponentUpdatingBehavior("onchange") >> >> { >> >> protected void onUpdate(AjaxRequestTarget target) { >> >> getDelegaciones().clear(); >> >> DropDownChoice delegDDC = form.delegacionDDC; >> >> >> >> delegDDC.setChoices(getDelegacionesPorTipo(getTipoDelegacion())); >> >> target.addComponent(delegDDC); >> >> } >> >> }); >> >> return ddcTipoDel; >> >> } >> >> >> >> DropDownChoice B >> >> >> >> private DropDownChoice getDelegacionDDC(FiltroEmbarqueForm >> form) >> >> { >> >> >> >> List list = Collections.EMPTY_LIST; >> >> String tipoDelagacion = form.tipoDelegacion; >> >> if (tipoDelagacion != null) { >> >> list = getDelegacionesPorTipo(getTipoDelegacion()); >> >> } >> >> DropDownChoice delegacionDDC = new >> DropDownChoice("delegacion", >> >> new >> >> PropertyModel(this, "delegacion"), list); >> >> delegacionDDC.setOutputMarkupId(true); // Needed for Ajax to >> >> update >> >> it >> >> delegacionDDC.setNullValid(true); >> >> return delegacionDDC; >> >> } >> >> >> >> Redefined onSubmit method >> >> public final void onSubmit() >> >> { >> >> SiconaraBasePage page = (SiconaraBasePage)getPage(); >> >> List pageFilters = page.getFilterProperties(); >> >> >> >> if (pageFilters != null) >> >> pageFilters.clear(); >> >> >> >> ParFiltro f1 = new >> ParFiltro("afiliado.delegacion.tipo", >> >> getTipoDelegacion()); >> >> ParFiltro f2 = new >> ParFiltro("afiliado.delegacion.alias", >> >> getDelegacion()); >> >> if (f1.getValue() != null && >> !f1.getValue().equals("")) >> >> pageFilters.add(f1); >> >> if (f2.getValue() != null && >> !f2.getValue().equals("")) >> >> pageFilters.add(f2); >> >> page.render(); >> >> } >> >> >> >> The ParFiltro class is a utility class wich contains a pair >> >> property-value >> >> used in the page to filter data. >> >> That's because I need to invoke the page.render() method. >> >> I'm doing something wrong? There is another way to do it? >> >> >> >> Thanks in advance. >> >> Pablo. >> >> >> >> >> >> >> >> >> >> igor.vaynberg wrote: >> >> > >> >> > you shouldnt call page.render() >> >> > >> >> > >> >> > -igor >> >> > >> >> > >> >> > On 10/5/07, Larva <[EMAIL PROTECTED]> wrote: >> >> >> >> >> >> Hi !! I have this hierarchy: >> >> >> Panel >> >> >>Form >> >> >> DropDownChoice (A and B) >> >> >> >> >> >> I have these two DropDownChoices (A and B) and I am >> >> >> refreshing the choices in B through Ajax when the >> >> >> selection in A changes. I use this dorpdownchoices to >> >> >> define a filter for my dataview. >> >> >> That works fine, when I submit the form the selected >> >> >> properties in each dropdown are used to filter the >> >> >> rows of the dataview. I refresh the page with the >> >> >> method page.render() >> >> >> The problem is that after sumbit and render the page >> >> >> the dropdownchoices doesn't work
Re: Portlet howto
Hi Charly, Great to hear you're working on the Liferay support! I do have some questions about your interface implementations: - is the LiferayToPortalBridgeServletContextProvider the same as already provided by Liferay (for the Struts Bridge support)? - in the LiferayToPortalBridgePortletResourceURLFactory you seem to simply generate a Portlet RenderURL for the ResourceURL. How can that ever work? I would assume Liferay is going to render a full page for such a request and not just the output of the targetted portlet (with full control over its response). Regards, Ate Charly wrote: Hi Ate and Thijs, I'm actually trying to get Wicket working with Liferay portal 4.3.2. I already implement the 2 interfaces (not really sure of my work) and I can actually see the portlet example content of Wicket in Liferay. Here the steps I've done : - use Liferay 4.3.2 with tomcat (there's aparently a problem with Jetty) - Start Tomcat - upload wicket-exemples.war from plugin porltlet in liferay - Stop Tomcat - add a new file called WicketPortlet.properties in the /webapp/wicket-exemples/WEB-INF/classes/org/apache/wicket/protocol/http/portlet directory with content : org.apache.portals.bridges.common.ServletContextProvider=com.liferay.portal.apache.bridges.struts.LiferayToPortalBridgeServletContextProvider org.apache.portals.bridges.common.PortletResourceURLFactory=com.liferay.portlet.LiferayToPortalBridgePortletResourceURLFactory - Change in the portlet.xml the content type for all portlets from "*/*" to text/html (Liferay doesn't render generic content type !) After that, I must merge the differents classpath because Wicket must have access to Liferay's class with my implentation classes... (maybe we can do it better) - Move the /webapp/ROOT/WEB-INF/lib content to a new folder /common/lib/ext_liferay - Move the /webapp/wicket-exemples/WEB-INF/lib content to a new folder /common/lib/ext_wicket - Change the class path in the /conf/catalina.properties by adding ${catalina.home}/common/lib/ext_liferay/*.jar to the common.loader property common.loader=${catalina.home}/common/classes,${catalina.home}/common/i18n/*.jar,${catalina.home}/common/endorsed/*.jar,${catalina.home}/common/lib/*.jar,${catalina.home}/common/lib/ext/*.jar,${catalina.home}/common/lib/ext_liferay/*.jar,${catalina.home}/common/lib/ext_wicket/*.jar - Add this 2 jars to /common/lib/ext_liferay - liferaytoapacheportalbridge.jar (my implentation of the 2 interfaces from PortalBridge) - portals-bridges-common-1.0.3.jar - To prevent version conflit of Spring, remove /common/lib/ext_liferay/spring.jar (Spring v1) jar file - the Spring v2 jar file from Wicket will be used. - Start Tomcat At this point, you can see the Wicket Example portlet or HelloWorld portlet in Liferay, but none of the url links works... Here is my code for : com.liferay.portlet.LiferayToPortalBridgePortletResourceURLFactory --- public class LiferayToPortalBridgePortletResourceURLFactory implements PortletResourceURLFactory { public String createResourceURL( PortletConfig portletConfig, RenderRequest renderRequest, RenderResponse renderResponse, Map portletArg ) throws PortletException { String retval = ""; final PortletURL url = renderResponse.createRenderURL(); if ( portletArg != null ) { url.setParameters( portletArg ); } retval = url.toString(); return retval; } } -- And here is my implementation of com.liferay.portal.apache.bridges.struts.LiferayToPortalBridgeServletContextProvider : // I get inspired from Liferay Struts bridge : com.liferay.portal.apache.bridges.struts.LiferayServletContextProvider public class LiferayToPortalBridgeServletContextProvider implements ServletContextProvider { public ServletContext getServletContext( GenericPortlet portlet ) { final PortletContextImpl portletCtxImpl = (PortletContextImpl)portlet.getPortletContext(); return this.getServletContext( portletCtxImpl.getServletContext() ); } public HttpServletRequest getHttpServletRequest( GenericPortlet portlet, PortletRequest req ) { HttpServletRequest httpReq = null; if ( req instanceof ActionRequestImpl ) { httpReq = ( (ActionRequestImpl)req ).getHttpServletRequest(); final String contentType = httpReq.getHeader( HttpHeaders.CONTENT_TYPE ); if ( contentType != null && contentType.startsWith( ContentTypes.MULTIPART_FORM_DATA ) ) { try { httpReq = new UploadServletRequest( httpReq ); } catch( final IOException ioe ) {} httpReq = new LiferayStrutsRequestImpl( httpReq ); } else { httpReq = new LiferayStru
Problem with form default button in IE
Hi all, and thanks in advanced for your attention. I'm having some problems with the default button in a form that is not working in IE. Here is the situation: I have a collapsible border that contains the form. When clicked, the form is toggled and when the page loads, this border is set default to collapsed. The main problem is that when I load the page this way, the default action is ignored: when pressing enter in any field, nothing happens. However, if I click the button with the mouse, the page is refreshed with the results ( is a filtering form, showing beneath a table with results ) and the form remains open. Now, if I input something in the form and press enter, it works. However, if on the page constructor I set the border to remain open as default, the form behaves correctly without having to click the button first. My guess is that when the page is loaded, with the form inside a div that has style="display: none;" all actions on the form will be ignored. When the border is clicked, and the content is shown, IE doesn't realize about this and then the default actions are still ignored by the browser. This works perfect in Firefox. Any ideas? I am using Wicket 1.2.6 Thanks, Christian
Re: Customizing RadioChoice
+1 for removing the final on the Prefix methods as well. - Chris Martijn Dashorst wrote: > > Hmm, > > Opening up the get*fix methods doesn't seem risky, but I'm not sure > what we are going to do with the change recording. That is the only > thing I can tell why the methods are final. > > Your usecase is interesting though. In this case opening the get*fix > methods doesn't seem to open a can of worms, other than limiting the > backbutton versioning. But in your case the set*fix method wouldn't be > called in the first place. > > I'm +1 on removing final from the get*fix methods on the RadioChoice > component. Anyone else reading along and objecting? > > Martijn > > On 10/5/07, Clay Lehman <[EMAIL PROTECTED]> wrote: >> I am trying to customize RadioChoice so that it puts the options into a >> nice table. I found setPrefix and setSuffix, but I cant just do >> setSuffix(" ") because I want to have a differenct prefix & suffix >> based on the index (for example create a new row in a table for every >> 4th option). >> >> >> >> getPrefix and getSuffix are final methods, so I can't override them. >> Does anyone know of a way that I can accomplish this task using >> RadioChoice? Or will I have to go with a RadioGroup ...I'd rather have >> the list of options generated dynamically than from the HTML, if >> possible. >> >> >> >> Thanks for any help! >> >> -Clay >> >> >> >> > > > -- > Buy Wicket in Action: http://manning.com/dashorst > Apache Wicket 1.3.0-beta3 is released > Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-beta3/ > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/Customizing-RadioChoice-tf4577618.html#a13096673 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Customizing RadioChoice
Actually, it looks like CheckBoxMultipleChoice already is this way -- it only has final on the set*fix() and not on the get*fix() methods -Clay >+1 - and please consider the same for the CheckBoxMultipleChoice. :-) > >Best regards, --- Jan. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: CompoundPropertyModel stops working when form validation fails.
On 10/8/07, Kent Tong <[EMAIL PROTECTED]> wrote: > It's a feature. When the selection changes, the user might have entered > something into say a text field. Generally we don't want to lose that > input (because all you want to do may be to show or hide a certain component > depending on the selection), therefore it is saved and redisplayed to the > user. By default it is clear only when the form is submitted and validation > is passed successfully. Ok, this behavior is understandable and fine. But when, after a failed validation, the model object of the form is changed (by a new user's selection on the ListChoice) and the form is refreshed, I'd expect it to display the newly selected instance instead of the one that failed validation. I mean, it's ok that the input isn't lost when validation fails, but this should be limited to the object that actually failed validation and it should't prevent using the form to manipulate another instance after having changed form's model object accordingly. In this sense, the feature looks like a limitation in my particular case. Of course I may be missing something, or not using the form as it is meant to be used... Thanks a lot, Fabio Fioretti - WindoM - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Portlet howto
Hi Ate and Thijs, I'm actually trying to get Wicket working with Liferay portal 4.3.2. I already implement the 2 interfaces (not really sure of my work) and I can actually see the portlet example content of Wicket in Liferay. Here the steps I've done : - use Liferay 4.3.2 with tomcat (there's aparently a problem with Jetty) - Start Tomcat - upload wicket-exemples.war from plugin porltlet in liferay - Stop Tomcat - add a new file called WicketPortlet.properties in the /webapp/wicket-exemples/WEB-INF/classes/org/apache/wicket/protocol/http/portlet directory with content : org.apache.portals.bridges.common.ServletContextProvider=com.liferay.portal.apache.bridges.struts.LiferayToPortalBridgeServletContextProvider org.apache.portals.bridges.common.PortletResourceURLFactory=com.liferay.portlet.LiferayToPortalBridgePortletResourceURLFactory - Change in the portlet.xml the content type for all portlets from "*/*" to text/html (Liferay doesn't render generic content type !) After that, I must merge the differents classpath because Wicket must have access to Liferay's class with my implentation classes... (maybe we can do it better) - Move the /webapp/ROOT/WEB-INF/lib content to a new folder /common/lib/ext_liferay - Move the /webapp/wicket-exemples/WEB-INF/lib content to a new folder /common/lib/ext_wicket - Change the class path in the /conf/catalina.properties by adding ${catalina.home}/common/lib/ext_liferay/*.jar to the common.loader property common.loader=${catalina.home}/common/classes,${catalina.home}/common/i18n/*.jar,${catalina.home}/common/endorsed/*.jar,${catalina.home}/common/lib/*.jar,${catalina.home}/common/lib/ext/*.jar,${catalina.home}/common/lib/ext_liferay/*.jar,${catalina.home}/common/lib/ext_wicket/*.jar - Add this 2 jars to /common/lib/ext_liferay - liferaytoapacheportalbridge.jar (my implentation of the 2 interfaces from PortalBridge) - portals-bridges-common-1.0.3.jar - To prevent version conflit of Spring, remove /common/lib/ext_liferay/spring.jar (Spring v1) jar file - the Spring v2 jar file from Wicket will be used. - Start Tomcat At this point, you can see the Wicket Example portlet or HelloWorld portlet in Liferay, but none of the url links works... Here is my code for : com.liferay.portlet.LiferayToPortalBridgePortletResourceURLFactory --- public class LiferayToPortalBridgePortletResourceURLFactory implements PortletResourceURLFactory { public String createResourceURL( PortletConfig portletConfig, RenderRequest renderRequest, RenderResponse renderResponse, Map portletArg ) throws PortletException { String retval = ""; final PortletURL url = ""> if ( portletArg != null ) { url.setParameters( portletArg ); } retval = url.toString(); return retval; } } -- And here is my implementation of com.liferay.portal.apache.bridges.struts.LiferayToPortalBridgeServletContextProvider : // I get inspired from Liferay Struts bridge : com.liferay.portal.apache.bridges.struts.LiferayServletContextProvider public class LiferayToPortalBridgeServletContextProvider implements ServletContextProvider { public ServletContext getServletContext( GenericPortlet portlet ) { final PortletContextImpl portletCtxImpl = (PortletContextImpl)portlet.getPortletContext(); return this.getServletContext( portletCtxImpl.getServletContext() ); } public HttpServletRequest getHttpServletRequest( GenericPortlet portlet, PortletRequest req ) { HttpServletRequest httpReq = null; if ( req instanceof ActionRequestImpl ) { httpReq = ( (ActionRequestImpl)req ).getHttpServletRequest(); final String contentType = httpReq.getHeader( HttpHeaders.CONTENT_TYPE ); if ( contentType != null && contentType.startsWith( ContentTypes.MULTIPART_FORM_DATA ) ) { try { httpReq = new UploadServletRequest( httpReq ); } catch( final IOException ioe ) {} httpReq = new LiferayStrutsRequestImpl( httpReq ); } else { httpReq = new LiferayStrutsRequestImpl( (ActionRequestImpl)req ); } } else { httpReq = new LiferayStrutsRequestImpl( (RenderRequestImpl)req ); } return httpReq; } public HttpServletResponse getHttpServletResponse( GenericPortlet portlet, PortletResponse res ) { if ( res instanceof RenderResponseImpl ) return ( (RenderResponseImpl)res ).getHttpServletResponse(); else return ( (ActionResponseImpl)res ).getHttpServletResponse(); } public ServletContext getServletContext( ServletContext ctx ) { return new LiferayServletContext( ctx ); } } Charles Thijs a écrit :
Re: wicket-contrib-tinymce problem with multiple editors
Great. Thanks. One more thing though in my current workaround i have to override getInputName on my textarea to return the markupid, otherwise i don't get the userinput. Does this sound familiar to you? My component hierarchy is structured like this: Page { -Panel --Form ---Panel TextArea } repeat several times The topmost panel is used to switch the inner most panel between read and right mode (in write mode we use tinymce). Granting the user the possibility to edit each property / panel individually. each form is submitted through an ajaxsubmitlink. Maurice On 10/8/07, Iulian Costan <[EMAIL PROTECTED]> wrote: > Maurice, > > the issue was fixed in 1.3 only, i'll take a look and fix it in 1.2 branch > as well. > > /iulian > > On 10/8/07, Maurice Marrink <[EMAIL PROTECTED]> wrote: > > > > Hi, > > > > I would like to use wicket-contrib-tinymce in our project but am > > having a bit of a problem. > > I am using the 1.0 version from sourceforge in our wicket 1.2.x project. > > > > The problem is that in the html the id of the textarea is set to the > > markupid from the component, where TinyMCESettings expects this to be > > the the id of the textarea. > > > > I could override getMarkupId in my textarea if only i did not need > > multiple editors on one page. > > Because i have one panel with one editor which gets used multiple > > times in a single page all my editors will end up with the same id. > > > > I saw some mails regarding this problem in my mail archive of this > > list but either it was not fixed or it was fixed in the wicket 1.3 > > branch. > > Which we will switch too in due time, but for the moment i am forced > > to get this working on wicket 1.2. > > > > Also the reason this problem has not popped up frequently on this list > > makes me wonder if i am missing something or if there simply is no one > > else using wicket-contrib-tinymce with wicket 1.2 anymore. > > > > If this is indeed a bug i would suggest changing the code to use > > getMarkupId instead of getId on the registered textareas. > > > > Thanks, > > > > Maurice > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: out of memory - wicket 1.2.6
i would say very less ,i wouldn't rule it out though. On 10/8/07, Nino Saturnino Martinez Vazquez Wael <[EMAIL PROTECTED]> wrote: > > What are the chances of you having a memory leak in your code? > > regards Nino > > Dipu Seminlal wrote: > > yes it's in production mode > > > > Regards > > Dipu > > > > On 10/8/07, Nino Saturnino Martinez Vazquez Wael < > [EMAIL PROTECTED]> > > wrote: > > > >> Hmm this is always tricky.. I supose that you deployed wicket in > >> production mode? > >> > >> If not the only way forward are using a memory profiler, and a > >> performance tester (because memory errors might not be obvious until > >> youve gotten a lot of clicks). > >> > >> I'd suggest JProbe and JMeter... > >> > >> http://www.quest.com/jprobe/memory-home.aspx > >> http://jakarta.apache.org/jmeter/ > >> > >> regards Nino > >> > >> Dipu Seminlal wrote: > >> > >>> Hi, > >>> > >>> One of our servers running wicket application went down throwing out > of > >>> memory error. > >>> This is the first time it has ever happened, can any one throw some > >>> > >> light on > >> > >>> the reason for the issue. > >>> > >>> > >>> 2007-10-08 11:36:02:425 ERROR wicket.RequestCycle [TP-Processor63] - > >>> > >> Method > >> > >>> onFormSubmitted of interface > >>> wicket.markup.html.form.IFormSubmitListenertargeted at component > >>> [MarkupContainer [Component id = searchForm, page = > >>> com.xmltravel.fab1.wicket.flights.HorizontalSearchNavPage, path = > >>> 0:searchLandingPanel:searchForm.HorizontalSearchNavPagePanel$InputForm > , > >>> isVisible = true, isVersioned = true]] threw an exception > >>> wicket.WicketRuntimeException: Method onFormSubmitted of interface > >>> wicket.markup.html.form.IFormSubmitListener targeted at component > >>> [MarkupContainer [Component id = searchForm, page = > >>> com.xmltravel.fab1.wicket.flights.HorizontalSearchNavPage, path = > >>> 0:searchLandingPanel:searchForm.HorizontalSearchNavPagePanel$InputForm > , > >>> isVisible = true, isVersioned = true]] threw an exception > >>> at wicket.RequestListenerInterface.invoke( > >>> > >> RequestListenerInterface.java > >> > >>> :198) > >>> 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 > >>> > >> :896) > >> > >>> at wicket.RequestCycle.processEventsAndRespond(RequestCycle.java > >>> > >> :929) > >> > >>> at wicket.RequestCycle.step(RequestCycle.java:1010) > >>> at wicket.RequestCycle.steps(RequestCycle.java:1084) > >>> at wicket.RequestCycle.request(RequestCycle.java:454) > >>> at wicket.protocol.http.WicketServlet.doGet(WicketServlet.java > :219) > >>> at wicket.protocol.http.WicketServlet.doPost(WicketServlet.java > :262) > >>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:710) > >>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) > >>> at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter( > >>> ApplicationFilterChain.java:269) > >>> at org.apache.catalina.core.ApplicationFilterChain.doFilter( > >>> ApplicationFilterChain.java:188) > >>> at org.apache.catalina.core.StandardWrapperValve.invoke( > >>> StandardWrapperValve.java:210) > >>> at org.apache.catalina.core.StandardContextValve.invoke( > >>> StandardContextValve.java:174) > >>> at org.apache.catalina.core.StandardHostValve.invoke( > >>> StandardHostValve.java:127) > >>> at org.apache.catalina.valves.ErrorReportValve.invoke( > >>> ErrorReportValve.java:117) > >>> at org.apache.catalina.core.StandardEngineValve.invoke( > >>> StandardEngineValve.java:108) > >>> at org.apache.catalina.connector.CoyoteAdapter.service( > >>> CoyoteAdapter.java:151) > >>> at org.apache.jk.server.JkCoyoteHandler.invoke( > JkCoyoteHandler.java > >>> > >> :200) > >> > >>> at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java > >>> > >> :283) > >> > >>> at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java > :773) > >>> at org.apache.jk.common.ChannelSocket.processConnection( > >>> ChannelSocket.java:703) > >>> at org.apache.jk.common.ChannelSocket$SocketConnection.runIt( > >>> ChannelSocket.java:895) > >>> at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run( > >>> ThreadPool.java:685) > >>> at java.lang.Thread.run(Thread.java:595) > >>> Caused by: java.lang.reflect.InvocationTargetException > >>> at sun.reflect.GeneratedMethodAccessor65.invoke(Unknown Source) > >>> at sun.reflect.DelegatingMethodAccessorImpl.invoke( > >>> DelegatingMe
RE: Customizing RadioChoice
Thanks for the suggestions Martijn! For now I will look into using the RadioGroup, but I like the idea removing final from the get*fix methods. =) This way someone could make MyRadioGroup, and have an option for topdown (default) lists or table-style lists, where they customize the width/shape of the table. I still want "intended for quick solutions", just with more customizability. -Clay -Original Message- From: Martijn Dashorst [mailto:[EMAIL PROTECTED] Sent: Friday, October 05, 2007 5:21 PM To: users@wicket.apache.org Subject: Re: Customizing RadioChoice Hmm, Opening up the get*fix methods doesn't seem risky, but I'm not sure what we are going to do with the change recording. That is the only thing I can tell why the methods are final. Your usecase is interesting though. In this case opening the get*fix methods doesn't seem to open a can of worms, other than limiting the backbutton versioning. But in your case the set*fix method wouldn't be called in the first place. I'm +1 on removing final from the get*fix methods on the RadioChoice component. Anyone else reading along and objecting? Martijn - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: out of memory - wicket 1.2.6
What are the chances of you having a memory leak in your code? regards Nino Dipu Seminlal wrote: yes it's in production mode Regards Dipu On 10/8/07, Nino Saturnino Martinez Vazquez Wael <[EMAIL PROTECTED]> wrote: Hmm this is always tricky.. I supose that you deployed wicket in production mode? If not the only way forward are using a memory profiler, and a performance tester (because memory errors might not be obvious until youve gotten a lot of clicks). I'd suggest JProbe and JMeter... http://www.quest.com/jprobe/memory-home.aspx http://jakarta.apache.org/jmeter/ regards Nino Dipu Seminlal wrote: Hi, One of our servers running wicket application went down throwing out of memory error. This is the first time it has ever happened, can any one throw some light on the reason for the issue. 2007-10-08 11:36:02:425 ERROR wicket.RequestCycle [TP-Processor63] - Method onFormSubmitted of interface wicket.markup.html.form.IFormSubmitListenertargeted at component [MarkupContainer [Component id = searchForm, page = com.xmltravel.fab1.wicket.flights.HorizontalSearchNavPage, path = 0:searchLandingPanel:searchForm.HorizontalSearchNavPagePanel$InputForm, isVisible = true, isVersioned = true]] threw an exception wicket.WicketRuntimeException: Method onFormSubmitted of interface wicket.markup.html.form.IFormSubmitListener targeted at component [MarkupContainer [Component id = searchForm, page = com.xmltravel.fab1.wicket.flights.HorizontalSearchNavPage, path = 0:searchLandingPanel:searchForm.HorizontalSearchNavPagePanel$InputForm, isVisible = true, isVersioned = true]] threw an exception at wicket.RequestListenerInterface.invoke( RequestListenerInterface.java :198) 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 :896) at wicket.RequestCycle.processEventsAndRespond(RequestCycle.java :929) at wicket.RequestCycle.step(RequestCycle.java:1010) at wicket.RequestCycle.steps(RequestCycle.java:1084) at wicket.RequestCycle.request(RequestCycle.java:454) at wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:219) at wicket.protocol.http.WicketServlet.doPost(WicketServlet.java:262) at javax.servlet.http.HttpServlet.service(HttpServlet.java:710) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter( ApplicationFilterChain.java:269) at org.apache.catalina.core.ApplicationFilterChain.doFilter( ApplicationFilterChain.java:188) at org.apache.catalina.core.StandardWrapperValve.invoke( StandardWrapperValve.java:210) at org.apache.catalina.core.StandardContextValve.invoke( StandardContextValve.java:174) at org.apache.catalina.core.StandardHostValve.invoke( StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke( ErrorReportValve.java:117) at org.apache.catalina.core.StandardEngineValve.invoke( StandardEngineValve.java:108) at org.apache.catalina.connector.CoyoteAdapter.service( CoyoteAdapter.java:151) at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java :200) at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java :283) at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:773) at org.apache.jk.common.ChannelSocket.processConnection( ChannelSocket.java:703) at org.apache.jk.common.ChannelSocket$SocketConnection.runIt( ChannelSocket.java:895) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run( ThreadPool.java:685) at java.lang.Thread.run(Thread.java:595) Caused by: java.lang.reflect.InvocationTargetException at sun.reflect.GeneratedMethodAccessor65.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke( DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at wicket.RequestListenerInterface.invoke( RequestListenerInterface.java :187) ... 27 more Caused by: java.lang.OutOfMemoryError: Java heap space Regards Dipu - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: wicket-contrib-tinymce problem with multiple editors
Maurice, the issue was fixed in 1.3 only, i'll take a look and fix it in 1.2 branch as well. /iulian On 10/8/07, Maurice Marrink <[EMAIL PROTECTED]> wrote: > > Hi, > > I would like to use wicket-contrib-tinymce in our project but am > having a bit of a problem. > I am using the 1.0 version from sourceforge in our wicket 1.2.x project. > > The problem is that in the html the id of the textarea is set to the > markupid from the component, where TinyMCESettings expects this to be > the the id of the textarea. > > I could override getMarkupId in my textarea if only i did not need > multiple editors on one page. > Because i have one panel with one editor which gets used multiple > times in a single page all my editors will end up with the same id. > > I saw some mails regarding this problem in my mail archive of this > list but either it was not fixed or it was fixed in the wicket 1.3 > branch. > Which we will switch too in due time, but for the moment i am forced > to get this working on wicket 1.2. > > Also the reason this problem has not popped up frequently on this list > makes me wonder if i am missing something or if there simply is no one > else using wicket-contrib-tinymce with wicket 1.2 anymore. > > If this is indeed a bug i would suggest changing the code to use > getMarkupId instead of getId on the registered textareas. > > Thanks, > > Maurice > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
Re: out of memory - wicket 1.2.6
yes it's in production mode Regards Dipu On 10/8/07, Nino Saturnino Martinez Vazquez Wael <[EMAIL PROTECTED]> wrote: > > Hmm this is always tricky.. I supose that you deployed wicket in > production mode? > > If not the only way forward are using a memory profiler, and a > performance tester (because memory errors might not be obvious until > youve gotten a lot of clicks). > > I'd suggest JProbe and JMeter... > > http://www.quest.com/jprobe/memory-home.aspx > http://jakarta.apache.org/jmeter/ > > regards Nino > > Dipu Seminlal wrote: > > Hi, > > > > One of our servers running wicket application went down throwing out of > > memory error. > > This is the first time it has ever happened, can any one throw some > light on > > the reason for the issue. > > > > > > 2007-10-08 11:36:02:425 ERROR wicket.RequestCycle [TP-Processor63] - > Method > > onFormSubmitted of interface > > wicket.markup.html.form.IFormSubmitListenertargeted at component > > [MarkupContainer [Component id = searchForm, page = > > com.xmltravel.fab1.wicket.flights.HorizontalSearchNavPage, path = > > 0:searchLandingPanel:searchForm.HorizontalSearchNavPagePanel$InputForm, > > isVisible = true, isVersioned = true]] threw an exception > > wicket.WicketRuntimeException: Method onFormSubmitted of interface > > wicket.markup.html.form.IFormSubmitListener targeted at component > > [MarkupContainer [Component id = searchForm, page = > > com.xmltravel.fab1.wicket.flights.HorizontalSearchNavPage, path = > > 0:searchLandingPanel:searchForm.HorizontalSearchNavPagePanel$InputForm, > > isVisible = true, isVersioned = true]] threw an exception > > at wicket.RequestListenerInterface.invoke( > RequestListenerInterface.java > > :198) > > 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 > :896) > > at wicket.RequestCycle.processEventsAndRespond(RequestCycle.java > :929) > > at wicket.RequestCycle.step(RequestCycle.java:1010) > > at wicket.RequestCycle.steps(RequestCycle.java:1084) > > at wicket.RequestCycle.request(RequestCycle.java:454) > > at wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:219) > > at wicket.protocol.http.WicketServlet.doPost(WicketServlet.java:262) > > at javax.servlet.http.HttpServlet.service(HttpServlet.java:710) > > at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) > > at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter( > > ApplicationFilterChain.java:269) > > at org.apache.catalina.core.ApplicationFilterChain.doFilter( > > ApplicationFilterChain.java:188) > > at org.apache.catalina.core.StandardWrapperValve.invoke( > > StandardWrapperValve.java:210) > > at org.apache.catalina.core.StandardContextValve.invoke( > > StandardContextValve.java:174) > > at org.apache.catalina.core.StandardHostValve.invoke( > > StandardHostValve.java:127) > > at org.apache.catalina.valves.ErrorReportValve.invoke( > > ErrorReportValve.java:117) > > at org.apache.catalina.core.StandardEngineValve.invoke( > > StandardEngineValve.java:108) > > at org.apache.catalina.connector.CoyoteAdapter.service( > > CoyoteAdapter.java:151) > > at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java > :200) > > at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java > :283) > > at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:773) > > at org.apache.jk.common.ChannelSocket.processConnection( > > ChannelSocket.java:703) > > at org.apache.jk.common.ChannelSocket$SocketConnection.runIt( > > ChannelSocket.java:895) > > at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run( > > ThreadPool.java:685) > > at java.lang.Thread.run(Thread.java:595) > > Caused by: java.lang.reflect.InvocationTargetException > > at sun.reflect.GeneratedMethodAccessor65.invoke(Unknown Source) > > at sun.reflect.DelegatingMethodAccessorImpl.invoke( > > DelegatingMethodAccessorImpl.java:25) > > at java.lang.reflect.Method.invoke(Method.java:585) > > at wicket.RequestListenerInterface.invoke( > RequestListenerInterface.java > > :187) > > ... 27 more > > Caused by: java.lang.OutOfMemoryError: Java heap space > > > > > > Regards > > Dipu > > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
Re: out of memory - wicket 1.2.6
Hmm this is always tricky.. I supose that you deployed wicket in production mode? If not the only way forward are using a memory profiler, and a performance tester (because memory errors might not be obvious until youve gotten a lot of clicks). I'd suggest JProbe and JMeter... http://www.quest.com/jprobe/memory-home.aspx http://jakarta.apache.org/jmeter/ regards Nino Dipu Seminlal wrote: Hi, One of our servers running wicket application went down throwing out of memory error. This is the first time it has ever happened, can any one throw some light on the reason for the issue. 2007-10-08 11:36:02:425 ERROR wicket.RequestCycle [TP-Processor63] - Method onFormSubmitted of interface wicket.markup.html.form.IFormSubmitListenertargeted at component [MarkupContainer [Component id = searchForm, page = com.xmltravel.fab1.wicket.flights.HorizontalSearchNavPage, path = 0:searchLandingPanel:searchForm.HorizontalSearchNavPagePanel$InputForm, isVisible = true, isVersioned = true]] threw an exception wicket.WicketRuntimeException: Method onFormSubmitted of interface wicket.markup.html.form.IFormSubmitListener targeted at component [MarkupContainer [Component id = searchForm, page = com.xmltravel.fab1.wicket.flights.HorizontalSearchNavPage, path = 0:searchLandingPanel:searchForm.HorizontalSearchNavPagePanel$InputForm, isVisible = true, isVersioned = true]] threw an exception at wicket.RequestListenerInterface.invoke(RequestListenerInterface.java :198) 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:896) at wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:929) at wicket.RequestCycle.step(RequestCycle.java:1010) at wicket.RequestCycle.steps(RequestCycle.java:1084) at wicket.RequestCycle.request(RequestCycle.java:454) at wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:219) at wicket.protocol.http.WicketServlet.doPost(WicketServlet.java:262) at javax.servlet.http.HttpServlet.service(HttpServlet.java:710) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter( ApplicationFilterChain.java:269) at org.apache.catalina.core.ApplicationFilterChain.doFilter( ApplicationFilterChain.java:188) at org.apache.catalina.core.StandardWrapperValve.invoke( StandardWrapperValve.java:210) at org.apache.catalina.core.StandardContextValve.invoke( StandardContextValve.java:174) at org.apache.catalina.core.StandardHostValve.invoke( StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke( ErrorReportValve.java:117) at org.apache.catalina.core.StandardEngineValve.invoke( StandardEngineValve.java:108) at org.apache.catalina.connector.CoyoteAdapter.service( CoyoteAdapter.java:151) at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:200) at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:283) at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:773) at org.apache.jk.common.ChannelSocket.processConnection( ChannelSocket.java:703) at org.apache.jk.common.ChannelSocket$SocketConnection.runIt( ChannelSocket.java:895) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run( ThreadPool.java:685) at java.lang.Thread.run(Thread.java:595) Caused by: java.lang.reflect.InvocationTargetException at sun.reflect.GeneratedMethodAccessor65.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke( DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at wicket.RequestListenerInterface.invoke(RequestListenerInterface.java :187) ... 27 more Caused by: java.lang.OutOfMemoryError: Java heap space Regards Dipu - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
out of memory - wicket 1.2.6
Hi, One of our servers running wicket application went down throwing out of memory error. This is the first time it has ever happened, can any one throw some light on the reason for the issue. 2007-10-08 11:36:02:425 ERROR wicket.RequestCycle [TP-Processor63] - Method onFormSubmitted of interface wicket.markup.html.form.IFormSubmitListenertargeted at component [MarkupContainer [Component id = searchForm, page = com.xmltravel.fab1.wicket.flights.HorizontalSearchNavPage, path = 0:searchLandingPanel:searchForm.HorizontalSearchNavPagePanel$InputForm, isVisible = true, isVersioned = true]] threw an exception wicket.WicketRuntimeException: Method onFormSubmitted of interface wicket.markup.html.form.IFormSubmitListener targeted at component [MarkupContainer [Component id = searchForm, page = com.xmltravel.fab1.wicket.flights.HorizontalSearchNavPage, path = 0:searchLandingPanel:searchForm.HorizontalSearchNavPagePanel$InputForm, isVisible = true, isVersioned = true]] threw an exception at wicket.RequestListenerInterface.invoke(RequestListenerInterface.java :198) 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:896) at wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:929) at wicket.RequestCycle.step(RequestCycle.java:1010) at wicket.RequestCycle.steps(RequestCycle.java:1084) at wicket.RequestCycle.request(RequestCycle.java:454) at wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:219) at wicket.protocol.http.WicketServlet.doPost(WicketServlet.java:262) at javax.servlet.http.HttpServlet.service(HttpServlet.java:710) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter( ApplicationFilterChain.java:269) at org.apache.catalina.core.ApplicationFilterChain.doFilter( ApplicationFilterChain.java:188) at org.apache.catalina.core.StandardWrapperValve.invoke( StandardWrapperValve.java:210) at org.apache.catalina.core.StandardContextValve.invoke( StandardContextValve.java:174) at org.apache.catalina.core.StandardHostValve.invoke( StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke( ErrorReportValve.java:117) at org.apache.catalina.core.StandardEngineValve.invoke( StandardEngineValve.java:108) at org.apache.catalina.connector.CoyoteAdapter.service( CoyoteAdapter.java:151) at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:200) at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:283) at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:773) at org.apache.jk.common.ChannelSocket.processConnection( ChannelSocket.java:703) at org.apache.jk.common.ChannelSocket$SocketConnection.runIt( ChannelSocket.java:895) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run( ThreadPool.java:685) at java.lang.Thread.run(Thread.java:595) Caused by: java.lang.reflect.InvocationTargetException at sun.reflect.GeneratedMethodAccessor65.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke( DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at wicket.RequestListenerInterface.invoke(RequestListenerInterface.java :187) ... 27 more Caused by: java.lang.OutOfMemoryError: Java heap space Regards Dipu
Re: Re[4]: RequestCycle?
Yeah, that happened to me this week as well, but it was working over the weekend as well as this morning, so try it again. Chuck Taranenko wrote: > > Yeah web server is alive... what about svn server? I can not update > sources :( > > > C:\opensource\net\databinder\trunk>svn update > svn: Can't connect to host 'databinder.net': A connection attempt failed > because the connected party did not properly respond after a period of > time, or established connection failed because connected host has failed > to respond. > > svn checkout svn://databinder.net/databinder/trunk does not respond too. > > > > MD> Works for me... Apparently Nathan (or his ISP) has shut down the > > MD> pingd. The website is still alive! > > MD> Martijn > > MD> Result of the page in my browser: > > MD> Toolkit overview > MD> Databinder is a Java programming toolkit for data–driven Web > > MD> applications. It's based upon the Wicket Web component framework and > > MD> Hibernate object-relational mapping service. Generally preferring > > MD> creativity over convention, Databinder's aim is to facilitate database > > MD> programming for the Web that is straightforward, pleasant, and > > MD> flexible. > MD> How it works > MD> Databinder provides you with Wicket models that populate themselves > > MD> using a lightly managed Hibernate session, and a collection of view > > MD> components that bind to them automatically. In your application, > > MD> instances of annotated data classes rest in these models, rendering > > MD> (and updating) through a view component tree and plain HTML templates. > > MD> Screencasts > > > > > -- > Best regards, > Oleg > mailto:[EMAIL PROTECTED] > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/RequestCycle--tf4569125.html#a13094718 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Portlet howto
I'll be on training for the rest of the week, but if I find time in between I'll make sure to have a look. Otherwise next weekend :) Thijs Ate Douma wrote: > > Thijs wrote: >> Hi (Ate?) > Hi Thijs, > >> >> Is there someone who could write a small wikipage on what I have to >> change >> in a Quickstart project to deploy it as a portlet? > I can and will, and even promised to do so last week :( > But I'm currently crammed with two new client (portal) projects put on my > table last week as well as adding some finer integration for Wicket Header > Contributions in Jetspeed before we release Jetspeed 2.1.3 hopefully > somewhere next week (you can expect a few small. but transparent, changes > to the Wicket > Portlet support shortly). > >> I'm trying to get the examples.war working on a liferay portal >> (liferay.com). But this is giving me so much trouble that I just want to >> work with an 'empty' quickstart. >> Because I'm not sure if it is Wicket that is giving me the headache's or >> Liferay (with their custom xml configs). > :) > > To get you started, I'll give the important configuration (and portal > runtime) settings/requirements inline here. > These will eventually end up on a Wiki page, but I'm afraid I won't have > time to write that before next week. > > First of all, you need to make sure the portal (Liferay in your case) > provides an implementation of the Apache Portals Bridges > PortletResourceURLFactory > interface, see: > > http://portals.apache.org/bridges/multiproject/portals-bridges-common/xref/org/apache/portals/bridges/common/PortletResourceURLFactory.html > > The related jar containing this interface, portal-bridges-common-1.0.3.jar > (available from repo1.maven.org) needs to be in your portlet classpath > directly or > provided in the shared classpath of your portal. > > You will have to check if your portal (Liferay) provides support for these > kind of RenderURLs which allows direct access to a portlet and full > control over its > response (like setting content type etc.). A ResourceURL will be a > standard JSR-286 (Portlet API 2.0) feature but as it isn't yet released > (it will be soon) for > which I created this temporary interface to allow using it in a JSR-186 > container as well, as long as a portal provides a propetairy mapping for > it. > Jetspeed 2 does, and AFAIK, most other portals do as well, you just need > to find out how to map this for Liferay and provide (or use) their > proprietary api to > handle it. > > Secondly, you need also to provide an implementation of the Apache Portals > Bridges ServletContextProvider interface, see: > > http://portals.apache.org/bridges/multiproject/portals-bridges-common/xref/org/apache/portals/bridges/common/ServletContextProvider.html > > That I know Liferay already provides as I know it provides support for the > Apache Portals Struts Bridge which uses the same interface. > Note: this interface also is provided with the > portal-bridges-common-1.0.3.jar (and earlier). > BTW: this inteface also won't be needed anymore for proper JSR-286 > containers. Once they are available I'll upgrade the Wicket Portlet > support to really work > out-of-the-box and portal specific configurations won't be needed then. > > The implementations of these two interfaces need to be provided to the > WicketPortlet. > There are three ways of doing that, the simplest is providing a > WicketPortlet.properties file in the classpath under package > org.apache.wicket.protocol.http.portlet. > > The one I provide with Jetspeed 2 (out-of-the-box through a shared > library) contains the following: > ># Default Jetspeed-2 provided WicketPortlet ServletContextProvider and > PortletResourceURLFactory > > org.apache.portals.bridges.common.ServletContextProvider=org.apache.jetspeed.portlet.ServletContextProviderImpl > > org.apache.portals.bridges.common.PortletResourceURLFactory=org.apache.jetspeed.portlet.PortletResourceURLFactoryImpl > > Another way of defining these (maybe easier for testing) is providing them > as portlet init parameters (named "ServletContextProvider" and > "PortletResourceURLFactory") or even as web.xml context param using their > full class name just as in the properties file. > > Defining these through WicketPortlet.properties though will allow you to > keep this portal specific configuration out of your application and thus > be more portable. > > Additionally, you will need to modify the wicket filter mapping in your > web.xml to support handling both direct requests as well include dispatch > requests, e.g. > > > AjaxApplication > /ajax/* > REQUEST > INCLUDE > > > Note: this requires at least a Servlet 2.4 descriptor just as in the > wicket-examples application. > > Finally, in your portlet.xml, you need to define a portlet init-param > named "wicketFilterPath" with as value the url-pattern of your wicket > application, but > without the trailing /*, e.g.: > > >
Lazy loading pageable listview
Hi, I have a page where I have a DataContainer that shows ten items at a time, with paging links at the bottom. Is there any way of lazy-loading the contents of the datacontainer? I need to do this, as the amount of data is very large (up to 300 000 rows, depending on the search criteria). I have found a bunch of stuff around IDataProvider, DataView etc, but I haven't found any meaningful examples that helps a great deal.. -- View this message in context: http://www.nabble.com/Lazy-loading-pageable-listview-tf4587413.html#a13094415 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Profiling the memory usage
also im not sure if the wicket jmx panel could help you here? Nino Saturnino Martinez Vazquez Wael wrote: Look in filepagestore, if youre using the default.. -Nino Stefan Kanev wrote: Hi. I'm doubting that my wicket application is using to much memory because of serializing too much unnecessary stuff in the session (programmers' mistakes). Can you help me find a way to see what objects get serialized, so I can see what I'm doing wrong and correct my mistakes? Thanks in advance. /Stefan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Portlet howto
Thijs wrote: Hi (Ate?) Hi Thijs, Is there someone who could write a small wikipage on what I have to change in a Quickstart project to deploy it as a portlet? I can and will, and even promised to do so last week :( But I'm currently crammed with two new client (portal) projects put on my table last week as well as adding some finer integration for Wicket Header Contributions in Jetspeed before we release Jetspeed 2.1.3 hopefully somewhere next week (you can expect a few small. but transparent, changes to the Wicket Portlet support shortly). I'm trying to get the examples.war working on a liferay portal (liferay.com). But this is giving me so much trouble that I just want to work with an 'empty' quickstart. Because I'm not sure if it is Wicket that is giving me the headache's or Liferay (with their custom xml configs). :) To get you started, I'll give the important configuration (and portal runtime) settings/requirements inline here. These will eventually end up on a Wiki page, but I'm afraid I won't have time to write that before next week. First of all, you need to make sure the portal (Liferay in your case) provides an implementation of the Apache Portals Bridges PortletResourceURLFactory interface, see: http://portals.apache.org/bridges/multiproject/portals-bridges-common/xref/org/apache/portals/bridges/common/PortletResourceURLFactory.html The related jar containing this interface, portal-bridges-common-1.0.3.jar (available from repo1.maven.org) needs to be in your portlet classpath directly or provided in the shared classpath of your portal. You will have to check if your portal (Liferay) provides support for these kind of RenderURLs which allows direct access to a portlet and full control over its response (like setting content type etc.). A ResourceURL will be a standard JSR-286 (Portlet API 2.0) feature but as it isn't yet released (it will be soon) for which I created this temporary interface to allow using it in a JSR-186 container as well, as long as a portal provides a propetairy mapping for it. Jetspeed 2 does, and AFAIK, most other portals do as well, you just need to find out how to map this for Liferay and provide (or use) their proprietary api to handle it. Secondly, you need also to provide an implementation of the Apache Portals Bridges ServletContextProvider interface, see: http://portals.apache.org/bridges/multiproject/portals-bridges-common/xref/org/apache/portals/bridges/common/ServletContextProvider.html That I know Liferay already provides as I know it provides support for the Apache Portals Struts Bridge which uses the same interface. Note: this interface also is provided with the portal-bridges-common-1.0.3.jar (and earlier). BTW: this inteface also won't be needed anymore for proper JSR-286 containers. Once they are available I'll upgrade the Wicket Portlet support to really work out-of-the-box and portal specific configurations won't be needed then. The implementations of these two interfaces need to be provided to the WicketPortlet. There are three ways of doing that, the simplest is providing a WicketPortlet.properties file in the classpath under package org.apache.wicket.protocol.http.portlet. The one I provide with Jetspeed 2 (out-of-the-box through a shared library) contains the following: # Default Jetspeed-2 provided WicketPortlet ServletContextProvider and PortletResourceURLFactory org.apache.portals.bridges.common.ServletContextProvider=org.apache.jetspeed.portlet.ServletContextProviderImpl org.apache.portals.bridges.common.PortletResourceURLFactory=org.apache.jetspeed.portlet.PortletResourceURLFactoryImpl Another way of defining these (maybe easier for testing) is providing them as portlet init parameters (named "ServletContextProvider" and "PortletResourceURLFactory") or even as web.xml context param using their full class name just as in the properties file. Defining these through WicketPortlet.properties though will allow you to keep this portal specific configuration out of your application and thus be more portable. Additionally, you will need to modify the wicket filter mapping in your web.xml to support handling both direct requests as well include dispatch requests, e.g. AjaxApplication /ajax/* REQUEST INCLUDE Note: this requires at least a Servlet 2.4 descriptor just as in the wicket-examples application. Finally, in your portlet.xml, you need to define a portlet init-param named "wicketFilterPath" with as value the url-pattern of your wicket application, but without the trailing /*, e.g.: Examples using wicket's built-in AJAX. AjaxApplication ajax org.apache.wicket.protocol.http.portlet.WicketPortlet wicketFilterPath /ajax */* VIEW Wicket Ajax Example Wicket As you will notice of the example above, I also defined support for all possible mime-types (*/*), to support ResourceUR
Multiple children border?
A border component insert its markup into the child tag of the border markup. I think i need a border with multiple body tags, identified by name. Is something like a template (a la facelets). How can i do this with wicket? Example: if a border's associated markup looked like this: First , Second Last And the border was used on a page like this: element-1 element-2 Then the resulting HTML would look like this: First element-1, Second element-2 Last -- View this message in context: http://www.nabble.com/Multiple-children-border--tf4587131.html#a13093670 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Portlet howto
Hi (Ate?) Is there someone who could write a small wikipage on what I have to change in a Quickstart project to deploy it as a portlet? I'm trying to get the examples.war working on a liferay portal (liferay.com). But this is giving me so much trouble that I just want to work with an 'empty' quickstart. Because I'm not sure if it is Wicket that is giving me the headache's or Liferay (with their custom xml configs). Thijs -- View this message in context: http://www.nabble.com/Portlet-howto-tf4587073.html#a13093514 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Profiling the memory usage
Look in filepagestore, if youre using the default.. -Nino Stefan Kanev wrote: Hi. I'm doubting that my wicket application is using to much memory because of serializing too much unnecessary stuff in the session (programmers' mistakes). Can you help me find a way to see what objects get serialized, so I can see what I'm doing wrong and correct my mistakes? Thanks in advance. /Stefan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: A button that does NOT submit form?
Most (if not all) browsers, whether text-based or graphically, support submitting of forms, regardless of what the server does with the submitted information. On the other hand, not all browsers (fully) support javascript. So in my opinion a button that submits a form but does nothing with that data is better that a button that uses javascript to emulate a link. I did not say *anything* about using a real link, that is, So if you want a *button* that does what the original poster wants, use setDefaultFormProcessing(false), but you might want to consider using a link proper. And yes, let's talk accessibility, it's very important for some people. When it's possible to make an app that works for both groups with a little bit of extra effort, do so. Provided, of course, there is time (and money) to do so. Matthijs. BTW: Do we like top-posting or bottom-posting? I really don't care, but if there is a convention (as some mailing lists have), I'll conform to that. Igor Vaynberg wrote: if you are going to start talking accessibility then that link should be an anchor period, not a button. buttons are bad if you do not need a form-submit :) -igor On 10/7/07, Matthijs Wensveen <[EMAIL PROTECTED]> wrote: Al Maw wrote: Stanczak Group wrote: I don't want the cancel button to submit the form, is this the best method? I'm not sure I see how to do this. Is there examples? @Override protected void delegateSubmit(IFormSubmittingComponent component) { } Also have a look at Button#setDefaultFormProcessing(false); Regards, Al - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Button.setDefaultFormProcessing does submit the form (in the HTTP sense) but the form's model is not updated. I think this is a better solution because it doesn't require javascript (a Link on a element generates onclick), and thus more accessible. Matthijs -- Matthijs Wensveen Func. Internet Integration W http://www.func.nl T +31 20 423 F +31 20 4223500 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Matthijs Wensveen Func. Internet Integration W http://www.func.nl T +31 20 423 F +31 20 4223500 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Profiling the memory usage
Hi. I'm doubting that my wicket application is using to much memory because of serializing too much unnecessary stuff in the session (programmers' mistakes). Can you help me find a way to see what objects get serialized, so I can see what I'm doing wrong and correct my mistakes? Thanks in advance. /Stefan
Re: CompoundPropertyModel stops working when form validation fails.
Fabio Fioretti wrote: > > You were right Kent, thanks a lot! Calling clearInput() in the > updating behavior really fixes the problem. > > What I miss now is why the CompoundPropertyModel breaks if the form is > not manually reset by calling clearInput(). Is it a bug or a feature? > :) > It's a feature. When the selection changes, the user might have entered something into say a text field. Generally we don't want to lose that input (because all you want to do may be to show or hide a certain component depending on the selection), therefore it is saved and redisplayed to the user. By default it is clear only when the form is submitted and validation is passed successfully. - -- Kent Tong Wicket tutorials freely available at http://www.agileskills2.org/EWDW -- View this message in context: http://www.nabble.com/CompoundPropertyModel-stops-working-when-form-validation-fails.-tf4562483.html#a13092730 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
wicket-contrib-tinymce problem with multiple editors
Hi, I would like to use wicket-contrib-tinymce in our project but am having a bit of a problem. I am using the 1.0 version from sourceforge in our wicket 1.2.x project. The problem is that in the html the id of the textarea is set to the markupid from the component, where TinyMCESettings expects this to be the the id of the textarea. I could override getMarkupId in my textarea if only i did not need multiple editors on one page. Because i have one panel with one editor which gets used multiple times in a single page all my editors will end up with the same id. I saw some mails regarding this problem in my mail archive of this list but either it was not fixed or it was fixed in the wicket 1.3 branch. Which we will switch too in due time, but for the moment i am forced to get this working on wicket 1.2. Also the reason this problem has not popped up frequently on this list makes me wonder if i am missing something or if there simply is no one else using wicket-contrib-tinymce with wicket 1.2 anymore. If this is indeed a bug i would suggest changing the code to use getMarkupId instead of getId on the registered textareas. Thanks, Maurice - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: A button that does NOT submit form?
if you are going to start talking accessibility then that link should be an anchor period, not a button. buttons are bad if you do not need a form-submit :) -igor On 10/7/07, Matthijs Wensveen <[EMAIL PROTECTED]> wrote: > Al Maw wrote: > > Stanczak Group wrote: > >> I don't want the cancel button to submit the form, is this the best > >> method? I'm not sure I see how to do this. Is there examples? > >> @Override > >>protected void delegateSubmit(IFormSubmittingComponent > >> component) { > >>} > >> > > > > Also have a look at Button#setDefaultFormProcessing(false); > > > > Regards, > > > > Al > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > Button.setDefaultFormProcessing does submit the form (in the HTTP sense) > but the form's model is not updated. I think this is a better solution > because it doesn't require javascript (a Link on a element > generates onclick), and thus more accessible. > > Matthijs > > -- > Matthijs Wensveen > Func. Internet Integration > W http://www.func.nl > T +31 20 423 > F +31 20 4223500 > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: CompoundPropertyModel stops working when form validation fails.
On 10/5/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote: > > *BUT*, when the user edits one of the recommendations making errors, > > tries to save it and form validation fails, the panel's > > CompoundPropertyModel seems to detach from the underlying > > AbstractModel and, if the user selects another choice on the > > ListChoice, the form is refreshed but it keeps showing data of the > > recommendation instance that failed validation. > > Not sure what this could be. Would you be able to create a test case > or quickstart project that shows the bug? Given that calling form.clearInput() inside ListChoice's updating behavior solves the problem, is it still useful to create a test case to show CompoundPropertyModel's detachment or is it explainable now? I'm still missing an explanation, but probably you are not (and in this case, please share :-). Thanks a lot, Fabio Fioretti - WindoM - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: CompoundPropertyModel stops working when form validation fails.
On 10/6/07, Kent Tong <[EMAIL PROTECTED]> wrote: > Even though you're not using wantOnSelectionChangedNotifications(), > what I said applies: you need to call clearInput() like: [CUT] > recommendationForm.clearInput(); //THIS LINE IS WHAT YOU NEED You were right Kent, thanks a lot! Calling clearInput() in the updating behavior really fixes the problem. What I miss now is why the CompoundPropertyModel breaks if the form is not manually reset by calling clearInput(). Is it a bug or a feature? :) Thank you for your time and precious help. Kindest regards, Fabio Fioretti - WindoM - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]