how to Store wicket fields(TextField) to XML File?

2010-03-07 Thread sravan g
Hi All, Any one Have idea about how to Store wicket fields(TextField) to XML File? Thanks, Saravanakumar G.

How to Store Wicket to XML File?

2010-03-07 Thread sravan g
Hi All, Any one Have idea about how to Store wicket fields(TextField) to XML File? Thanks, Saravanakumar G.

Re: Example of configuring JCaptcha within Wicket?

2010-03-07 Thread Eelco Hillenius
It's been a while, so I don't know how well it works with recent versions (and whether I would do things differently today), but there's a few pages on this in Wicket In Action. You can find example source code here: http://code.google.com/p/wicketinaction/source/browse/trunk/book-wicket-in-action/

Re: Where to put an application's configuration parameters?

2010-03-07 Thread James Carman
And if you want live redeployment, you could use jrebel and their spring plugin. I think it will reload beans based on property file changes On Mar 7, 2010 7:17 PM, "Riyad Kalla" wrote: James, Thanks for the link. -R On Sun, Mar 7, 2010 at 4:50 PM, James Carman wrote: > If you want to see

Re: tomcat session replication

2010-03-07 Thread Igor Vaynberg
this problem effects any webapp that uses the http session. usually this is handled the following way lets say you have two nodes A and B when starting an upgrade node A is taken offline and all sessions are migrated to B node A is then upgraded and brought back up with the loadbalancer is config

Re: Where to put an application's configuration parameters?

2010-03-07 Thread Riyad Kalla
James, Thanks for the link. -R On Sun, Mar 7, 2010 at 4:50 PM, James Carman wrote: > If you want to see how I did it with spring config, you can check out my > advanced wicket demo app at: > > http://svn.carmanconsulting.com/public/wicket-advanced/trunk > > On Mar 7, 2010 5:41 PM, "David Chang"

Re: tomcat session replication

2010-03-07 Thread Douglas Ferguson
Hmm.. yeah.. that even seems like it could not be fool proof. I.E. Wicket checks that components are serializable not Externalizable. I'm curious if anybody that is running wicket in a cluster has experienced this, or how you deal with deploying changes to the signature of a component. D/

Re: Where to put an application's configuration parameters?

2010-03-07 Thread James Carman
If you want to see how I did it with spring config, you can check out my advanced wicket demo app at: http://svn.carmanconsulting.com/public/wicket-advanced/trunk On Mar 7, 2010 5:41 PM, "David Chang" wrote: James and Riyad, Thanks for your input. I really appreciate it. Wicket is great, but I

Re: Where to put an application's configuration parameters?

2010-03-07 Thread David Chang
James and Riyad, Thanks for your input. I really appreciate it. Wicket is great, but I still feel a little elusive. Regards. --- On Sun, 3/7/10, James Carman wrote: > From: James Carman > Subject: Re: Where to put an application's configuration parameters? > To: users@wicket.apache.org >

Re: Where to put an application's configuration parameters?

2010-03-07 Thread David Chang
Jeremy, thanks for chiming. I read your transition from Spring to Wicket long time ago. Best, David --- On Sun, 3/7/10, Jeremy Thomerson wrote: > From: Jeremy Thomerson > Subject: Re: Where to put an application's configuration parameters? > To: users@wicket.apache.org > Date: Sunday, March 7

Re: Where to put an application's configuration parameters?

2010-03-07 Thread Jeremy Thomerson
I use Spring IoC and do all of my app configuration with Spring still. I just use Wicket for the webapp portion. There's no reason Wicket should know about these SMTP / LDAP config values - all of that should be service layer or below. -- Jeremy Thomerson http://www.wickettraining.com On Sun,

Re: How to increase the width of the AjaxEditableLabel editor? @L

2010-03-07 Thread Alec Swan
Just to follow up on my previous post. Does anybody know if it's possible to increase the number of characters displayed in the AjaxEditableLabel editor input text field? Thanks. On Tue, Feb 23, 2010 at 11:36 AM, Alec Swan wrote: > I noticed that when the user clicks on AjaxEditableLabel to ed

Re: tomcat session replication

2010-03-07 Thread James Carman
You can implement Externalizable and manage it all yourself. On Sun, Mar 7, 2010 at 3:39 PM, Douglas Ferguson wrote: > How do you prevent developers from renaming fields on components. > That seems really dangerous. > > i.e. what seems like a simple refactor to correct a spelling mistake could >

Re: tomcat session replication

2010-03-07 Thread Douglas Ferguson
How do you prevent developers from renaming fields on components. That seems really dangerous. i.e. what seems like a simple refactor to correct a spelling mistake could result in sessions not being deserialized. D/ On Mar 6, 2010, at 11:10 AM, Igor Vaynberg wrote: > not with java serializatio

Re: Where to put an application's configuration parameters?

2010-03-07 Thread Riyad Kalla
David, Given your requirements, I'd recomment putting them in a properties file along side your custom WebApplication class for your particular application and then inside of the WebApp's init method, reading in the properties file and storing the information in the WebApplication.get/setMetaData

Re: Where to put an application's configuration parameters?

2010-03-07 Thread James Carman
Why not use Spring *with* Wicket? On Sun, Mar 7, 2010 at 3:15 PM, David Chang wrote: > Hi, I am new in Wicket. > > I did Spring web applications before and I usually put an app's configuration > parameters in the application context file. > > I would like to know the best practice in Wichet for

Where to put an application's configuration parameters?

2010-03-07 Thread David Chang
Hi, I am new in Wicket. I did Spring web applications before and I usually put an app's configuration parameters in the application context file. I would like to know the best practice in Wichet for setting parameters such as SMTP server, LDAP server, etc. Where should I put them? I dont feel

Example of configuring JCaptcha within Wicket?

2010-03-07 Thread David Chang
Anybody used the JCaptcha tool? How did you do the customization? The out-of-box config sucks. Could you please share your config and how to? Cheers! - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For

Re: Setting selected value for DropDownChoice

2010-03-07 Thread Vit Rozkovec
This may help you with your problem: http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html#hashCode%28%29 And this as well (in case you use Hibernate, but may be applicable to other frameworks too): https://www.hibernate.org/109.html Regards Vitek Sigmar Muuga wrote: I got it worki

Re: Setting selected value for DropDownChoice

2010-03-07 Thread Martin Grigorov
you need Country#hashcode() On Sun, 2010-03-07 at 19:46 +0200, Sigmar Muuga wrote: > I got it working with ISO2. > Thanks Vit, I got your idea, I'll investigate later, why it didnt work with > ID. > > On Sun, Mar 7, 2010 at 7:35 PM, Sigmar Muuga wrote: > > > Actually it works even randomly now,

Re: Setting selected value for DropDownChoice

2010-03-07 Thread Sigmar Muuga
I got it working with ISO2. Thanks Vit, I got your idea, I'll investigate later, why it didnt work with ID. On Sun, Mar 7, 2010 at 7:35 PM, Sigmar Muuga wrote: > Actually it works even randomly now, when I change the values:S > > I've read docs and books and still have no idea with that :S DropD

Re: Setting selected value for DropDownChoice

2010-03-07 Thread Sigmar Muuga
Actually it works even randomly now, when I change the values:S I've read docs and books and still have no idea with that :S DropDownChoice has hard API design problems IMHO... On Sun, Mar 7, 2010 at 7:18 PM, Sigmar Muuga wrote: > Still not working actually, got another problem. > When I select

Re: Setting selected value for DropDownChoice

2010-03-07 Thread Sigmar Muuga
Still not working actually, got another problem. When I select the item with ID 241, I get item with ID 239. My country pojo is like this: import lombok.Data; @Data public class Country extends BaseModel { private static final long serialVersionUID = 1L; private long id; private Str

Re: Setting selected value for DropDownChoice

2010-03-07 Thread Vit Rozkovec
Hallo, try something like this: List countryList = generalDAO.findAllCountries(); Country country = getSelectedCountryByISO3(141, countryList); inal DropDownChoice countryId = new DropDownChoice("countryId", new Model(country), countryList); add(countryId); You must pass the model, w

Setting selected value for DropDownChoice

2010-03-07 Thread Sigmar Muuga
Hello, I am trying to use one of the hardest part in Wicket: DropDownChoice the code looks like this: List countryList = generalDAO.findAllCountries(); Country country = getSelectedCountryByISO3(141, countryList); final DropDownChoice countryId = new DropDownCh

Re: Customize generating javascript in wicket

2010-03-07 Thread Martin Makundi
Something like this might work: public class GenericTailJavaScriptBehavior extends AbstractBehavior { private final String javaScript; /** * @param javaScript */ public GenericTailJavaScriptBehavior(String javaScript) { this.javaScript = javaScript; } /** * @see org.apache.