Best practice on i18n

2011-01-29 Thread Christian Grobmeier
Hello, I have read and understand about i18n but I am curious about best practices. Is it really a good option to have several language files per component? F.e. my form component needs i18n, so does my page which holds the form alone. Wicket does of course not search in the i18n files for the

Re: 1.5.x javadoc

2011-01-29 Thread Christian Grobmeier
I uploaded a 1.5 javadoc for my own use here: http://projects.grobmeier.de/javadoc/wicket-core/1.5-snapshot/ Its from a 2 day old trunk version - guess this will not change much until 1.5 is released On Fri, Jan 28, 2011 at 5:43 PM, Zhubin Salehi zhubin.sal...@route1.com wrote: No 1.5.x!

Re: Best practice on i18n

2011-01-29 Thread Hans Lesmeister
Hi, After some trying we found a good practice is: - Self contained independant components have their own resource file - a page has its own file which also contains the keys for the panels on that page (as long as those panels are not being reused on other pages and are in the same package,

Re: Best practice on i18n

2011-01-29 Thread samket
Hi In the company I work in we always put resources in one file per language. I don't see much problems maintaining it, except if we had reusable components that were shared across applications. In reusable components' case it would seem a very good idea. Actually, once a customer specifically

User configuration files

2011-01-29 Thread Christian Grobmeier
Hello I tried to figure out how one can load own configuration files into wicket, for example with configuration on smtp host or something like that. It seems there is no standard way- is this correct? My solution is below, but it feels rather overcomplicated to me. I have overridden the init

Re: User configuration files

2011-01-29 Thread James Carman
Are you using Spring? On Sat, Jan 29, 2011 at 11:17 AM, Christian Grobmeier grobme...@gmail.com wrote: Hello I tried to figure out how one can load own configuration files into wicket, for example with configuration on smtp host or something like that. It seems there is no standard way- is

Re: User configuration files

2011-01-29 Thread Christian Grobmeier
No. I wanted to go with plain wicket. However, is it recommended by the wicket team to use Spring? It is possible for me, but want to keep my project as small as possible. On Sat, Jan 29, 2011 at 5:23 PM, James Carman ja...@carmanconsulting.com wrote: Are you using Spring? On Sat, Jan 29,

Re: User configuration files

2011-01-29 Thread Igor Vaynberg
that actually looks pretty simple to me... -igor On Sat, Jan 29, 2011 at 8:17 AM, Christian Grobmeier grobme...@gmail.com wrote: Hello I tried to figure out how one can load own configuration files into wicket, for example with configuration on smtp host or something like that. It seems

Re: Wicket : Articles Blogs

2011-01-29 Thread jmirc
We just release our CMS based on wicket as opensource. Please check our official site at www.cameleoncms.com or the technical site at cameleoncms.googlecode.com Send me emails if you need more help. Thanks. Jérôme -- View this message in context:

Re: User configuration files

2011-01-29 Thread Christian Grobmeier
On Sat, Jan 29, 2011 at 6:27 PM, Igor Vaynberg igor.vaynb...@gmail.com wrote: that actually looks pretty simple to me... On first glance yes. But bringing the application parameters into another component or api will become complicated. WIth this code I can only extend my Application with a new

Re: Add Component if markup exists?

2011-01-29 Thread Benedikt Rothe
Thank you, Igor. I will need some time to figure your hints out. Do I understand right: The solution analyze the markup and add... is possible from 1.5 on? Benedikt Am 28.01.2011 23:37, schrieb Igor Vaynberg: if it only needs to live during render there is IComponentResolver if you need

Re: 1.5.x javadoc

2011-01-29 Thread Michael O'Cleirigh
The easiest is to just download it through maven (or in eclipse.org/m2e just check download sources and javadocs) but you can also get the javadoc.jar from the maven repository directly. i.e. wget

Re: Using Wicket with businness model classes that check for rules

2011-01-29 Thread Michael O'Cleirigh
Another way to handle this is to leverage the wicket validation process by extending FormComponentPanel. Your userEditPanel would be composed of individual textfields whose models are not linked to your IModelUser. Then implement the convertInput method that builds a new User object from the

Re: Using Wicket with businness model classes that check for rules

2011-01-29 Thread fernandospr
Thank you all for the responses ! And if you have more ideas let me know ! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Using-Wicket-with-businness-model-classes-that-check-for-rules-tp3245298p3246809.html Sent from the Users forum mailing list archive at

Re: Best practice on i18n

2011-01-29 Thread Arjun Dhar
The only relevant technical point here is Inheritance. If Component A inherits Component B, then the properties would have to be repeated in the property file corresponding to the inherited Component as i don't think properties follow inheritance rules (imo). Regarding Gobal vs Local: This is so

Wicket E-Commerce

2011-01-29 Thread msj121
I know that there were talks of a Wicket Cart on the forum that never materialized. I looked at Apache OFBiz, BroadLeaf, Konakart etc... I ran their examples. I was curious if anyone knew of a pure backend JEE solution for e-commerce, so that integrating the business logic might be well

Re: User configuration files

2011-01-29 Thread Igor Vaynberg
your class loads one file from one directory if app is in dev mode, another if app in deploy mode. not everyone wants this. further we would have the names of properties configurable. another pain. maybe someone wants to use an xml file to load properties because key value pairs are not enough,

Re: Add Component if markup exists?

2011-01-29 Thread Igor Vaynberg
yes, see component.getmarkup() -igor On Sat, Jan 29, 2011 at 1:17 PM, Benedikt Rothe benedikt.ro...@qleo.de wrote: Thank you, Igor. I will need some time to figure your hints out. Do I understand right: The solution analyze the markup and add... is possible from 1.5 on? Benedikt Am

Re: Best practice on i18n

2011-01-29 Thread Igor Vaynberg
properties do follow inheritance afair. -igor On Sat, Jan 29, 2011 at 7:31 PM, Arjun Dhar dhar...@yahoo.com wrote: The only relevant technical point here is Inheritance. If Component A inherits Component B, then the properties would have to be repeated in the property file corresponding to