Re: [Wicket-user] Best practice for seperating .java and .html ?

2007-01-29 Thread nilo.de.roock
Usually when there seems to be concensus that something isn't possible, I get triggered that there must be a simple solution. On the other hand if it's considered to be 'simple' it usually gets out of hand. So I got triggered and looked a bit further into this. Providing you set things up

Re: [Wicket-user] Best practice for seperating .java and .html ?

2007-01-29 Thread Martijn Dashorst
If you rename a package, then you have to do it in 2 places. Martijn On 1/29/07, nilo.de.roock [EMAIL PROTECTED] wrote: Usually when there seems to be concensus that something isn't possible, I get triggered that there must be a simple solution. On the other hand if it's considered to be

Re: [Wicket-user] Best practice for seperating .java and .html ?

2007-01-29 Thread nilo.de.roock
I leave that to my refactoring tool. So it's not a problem. - nilo Martijn Dashorst wrote: If you rename a package, then you have to do it in 2 places. Martijn On 1/29/07, nilo.de.roock [EMAIL PROTECTED] wrote: Usually when there seems to be concensus that something isn't possible, I

Re: [Wicket-user] Best practice for seperating .java and .html ?

2007-01-29 Thread Johan Compagner
ohh? How does your refactoring tool know that? That you rename a package for some java classes and that he also have to rename some resource directory somewhere also to that same thing? johan On 1/29/07, nilo.de.roock [EMAIL PROTECTED] wrote: I leave that to my refactoring tool. So it's not

Re: [Wicket-user] Best practice for seperating .java and .html ?

2007-01-29 Thread Igor Vaynberg
maybe if you setup that resource dir as a source dir in eclipse? -igor On 1/29/07, Johan Compagner [EMAIL PROTECTED] wrote: ohh? How does your refactoring tool know that? That you rename a package for some java classes and that he also have to rename some resource directory somewhere also to

Re: [Wicket-user] Best practice for seperating .java and .html ?

2007-01-29 Thread Johan Compagner
and? How does eclipse know that there are 2 dirs somewhere (i guess in different src dirs) one for the html files and another for class files. That they have the same structure and need to be in sync? johan On 1/29/07, Igor Vaynberg [EMAIL PROTECTED] wrote: maybe if you setup that resource

Re: [Wicket-user] Best practice for seperating .java and .html ?

2007-01-29 Thread Igor Vaynberg
On 1/29/07, Johan Compagner [EMAIL PROTECTED] wrote: and? How does eclipse know that there are 2 dirs somewhere (i guess in different src dirs) you set it up in project properties one for the html files and another for class files. That they have the same structure and need to be in sync?

Re: [Wicket-user] Best practice for seperating .java and .html ?

2007-01-29 Thread ChuckDeal
It is possible that this is a simple misunderstanding. I know that when I first read the post regarding the renaming of packages, I had the same response as the poster that my IDE would take care of fixing the places that changed. But, after reading the subsequent posts, I see that Johan is

Re: [Wicket-user] Best practice for seperating .java and .html ?

2007-01-22 Thread Martijn Dashorst
We advise you to not do this until you are absolutely sure you need it, especially as a newbie to the framework. Obvious reasons are not so obvious in a Wicket context. - packaging your components in a jar - having to mimick the package/directory structure - looking up your HTML (which is

Re: [Wicket-user] Best practice for seperating .java and .html ?

2007-01-22 Thread Igor Vaynberg
yes, all newbies start to do this and eventually go back, but oh well if you still want to shoot yourself in the foot what you do is this: implement IResourceStreamLocator and make it take a delegate then in your app's init do this application.init() { MyResourceStreamLocator locator=new

Re: [Wicket-user] Best practice for seperating .java and .html ?

2007-01-22 Thread Eelco Hillenius
And there is an example of it in Wicket-examples called 'custom template loading'. But yes, it is recommended to use the defaults instead; that auto discovery pattern is there to save you precious development time, make things easier to look up (at least for developers) and to make packaging

Re: [Wicket-user] Best practice for seperating .java and .html ?

2007-01-22 Thread nilo.de.roock
Hi, ... Wicket allows you to easily customize this default behavior though. ... NOT! ( Why did he write that anyway? Perhaps as an excuse. He might have considered it a design error. It is dirty, a bit. ) I hope the rest of the book has better advice. I'll leave the .html and .java mixed up in