On Thu, Mar 24, 2011 at 2:19 PM, Peter Ertl <pe...@gmx.org> wrote: > looks like a refactoring-nightmare ... > > Can you be more specific ?
I even see it easier to manage. With wro.xml you have all resources specified in one place but in different groupd. With default Wicket approach you have a ResRef in every .java file that needs them. By refactoring I guess you mean renaming the .java class name or even moving the class in different package. The IDE wont help you here - it wont move the .css together with the .java, so you'll need to either touch the path in the ResRef or move the resource after the refactoring. Or I didn't understand you ? > Am 24.03.2011 um 12:23 schrieb Martin Grigorov: > > > On Thu, Mar 24, 2011 at 12:13 PM, Martijn Dashorst < > > martijn.dasho...@gmail.com> wrote: > > > >> On Thu, Mar 24, 2011 at 12:02 PM, James Carman > >> <ja...@carmanconsulting.com> wrote: > >>> Yes, but you would have to change how you refer to them, right? > >> > >> Not sure how that would work out, haven't tried it. Isn't this also a > >> tomcat specific optimization as well? > >> > > It is by Servlet 3.0 specification. > > > > My recent research shows that Wicket+Wro4j is the best approach. > > > > wro.xml: > > <group name="style"> > > <css>/css/context.css</css> > > <css>classpath:/com/mycompany/components/Component1.css</css> > > <css>classpath:/com/mycompany/components/Component2.css</css> > > <css>classpath:/com/mycompany/components/Component3.css</css> > > </group> > > > > Don't use ResourceReference but just put > > <link rel="stylesheet" href="wro/style.css"/> > > > > in the page that uses these components. > > > > > > > > > >> Martijn > >> > >> --------------------------------------------------------------------- > >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > >> For additional commands, e-mail: users-h...@wicket.apache.org > >> > >> > > > > > > -- > > Martin Grigorov > > jWeekend > > Training, Consulting, Development > > http://jWeekend.com <http://jweekend.com/> > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com <http://jweekend.com/>