Re: Reloading component templates from Maven's jetty plugin
Hello, What configuration, exactly, is anyone using to achieve this? I'm not getting any results, alas. I tried excluding **/components/**, **/pages/**, etc from src/main, src/main/tesources, src/main/java, etc No luck.Would anybody mind sharing this with me? I'm simply looking to be able to type a character in a component template and see it change immediately, without jetty having to restart. I don't, frankly, understand why there's any difference in the first place between the two.. why can't the template for a component be the same as the template for a page, which... is after all a component? Any help would be appreciated, Thanks, Josh On Mon, Dec 22, 2008 at 1:38 PM, Olle Hallin olle.hal...@gmail.com wrote: See http://docs.codehaus.org/display/JETTY/Maven+Jetty+Plugin .http://docs.codehaus.org/display/JETTY/Maven+Jetty+PluginSearch for excludes. Olle 2008/12/22 kace me_myself_and_...@hotmail.com Ive done the following - src/main/resources configured as a source directory in IntelliJ. - you have configured IntelliJ to compile .tml files. (Settings - Compiler - Resource Patterns) still only picks up changes to tml files under webapp folder ie to pages not components. @Olle - how do you exclude myapp.components, myapp.pages from the jetty hot-deploy feature? Right now in target/classes I have three folders - components/pages/services. Components folder has both .tml files and .class files. Pages directory has only .class files. ..kace -- View this message in context: http://www.nabble.com/Reloading-component-templates-from-Maven%27s-jetty-plugin-tp21112833p21127419.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org -- Olle Hallin Senior Java Developer and Architect olle.hal...@crisp.se www.crisp.se -- Joshua Long http://www.joshlong.com/
Re: Reloading component templates from Maven's jetty plugin
How is your IDE configured? In Eclipse, it is possible to set it to build automatically when a file is saved. For .tml files, build means copy it from src/main/resources to target/classes. It is also possible to turn this feature off, requiring one to both save (Ctrl-S) and build (Ctrl-B) before a change is picked up by Tapestry. HTH, Olle 2008/12/23 Josh Long starbux...@gmail.com Hello, What configuration, exactly, is anyone using to achieve this? I'm not getting any results, alas. I tried excluding **/components/**, **/pages/**, etc from src/main, src/main/tesources, src/main/java, etc No luck.Would anybody mind sharing this with me? I'm simply looking to be able to type a character in a component template and see it change immediately, without jetty having to restart. I don't, frankly, understand why there's any difference in the first place between the two.. why can't the template for a component be the same as the template for a page, which... is after all a component? Any help would be appreciated, Thanks, Josh On Mon, Dec 22, 2008 at 1:38 PM, Olle Hallin olle.hal...@gmail.com wrote: See http://docs.codehaus.org/display/JETTY/Maven+Jetty+Plugin .http://docs.codehaus.org/display/JETTY/Maven+Jetty+PluginSearch for excludes. Olle 2008/12/22 kace me_myself_and_...@hotmail.com Ive done the following - src/main/resources configured as a source directory in IntelliJ. - you have configured IntelliJ to compile .tml files. (Settings - Compiler - Resource Patterns) still only picks up changes to tml files under webapp folder ie to pages not components. @Olle - how do you exclude myapp.components, myapp.pages from the jetty hot-deploy feature? Right now in target/classes I have three folders - components/pages/services. Components folder has both .tml files and .class files. Pages directory has only .class files. ..kace -- View this message in context: http://www.nabble.com/Reloading-component-templates-from-Maven%27s-jetty-plugin-tp21112833p21127419.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org -- Olle Hallin Senior Java Developer and Architect olle.hal...@crisp.se www.crisp.se -- Joshua Long http://www.joshlong.com/ -- Olle Hallin Senior Java Developer and Architect olle.hal...@crisp.se www.crisp.se
Re: Reloading component templates from Maven's jetty plugin
Classes under myapp.components, myapp.pages, myapp.base and myapp.mixins are hot-deployed by Tapestry. Exclude these from the Jetty hot-deploy feature. Olle 2008/12/22 Josh Long starbux...@gmail.com Thank you for the help. I've adjusted my IntelliJ environment as you suggested and its working, sort of. It does seem like a waste, though. For my page templates I need only make a change and jetty scans it and makes the change. With the component templates, jetty perceives it as a class change, which necessitates a restart of the web app. This is, frankly, no better than using JSF with the jetty plugin. What, exactly, is the use case described in the docs where it says component and page templates will be reloaded? I have no doubt it works somewhere, but it's not fully elaborated upon. What do I have to use/ do to have true reloading of component an page templates without restarting the app? Do I need Eclipse on OS X with Tomcat? What's the happy path of that feature? I'm willing to switch to whatever it is... Thanks, as usual, for your indulgence, Josh http://www.joshlong.com On Sun, Dec 21, 2008 at 2:41 PM, Hugo Palma hugo.m.pa...@gmail.com wrote: I have that same setup running without any problems, T5 + Jetty + Maven + IntelliJ. Can you check if IntelliJ is copying your templates to the build directory (target/classes) ? If not then check if you have the following configured: - src/main/resources configured as a source directory in IntelliJ. - you have configured IntelliJ to compile .tml files. (Settings - Compiler - Resource Patterns) On Sun, Dec 21, 2008 at 7:46 AM, Josh Long starbux...@gmail.com wrote: Hi, I have a maven project generated usig the stock mvn archetype for tapestry 5. According to the docs, component templates should be in src/main/resources/. I can't seem to get those to 'reload' correctly, forcing me to ctrl + c the maven jetty plug in and re run. Any input on how to change this (from tapestry or the maven jetty plug in?) would be appreciated. I'm editing in Intellij (I opened the pom with IntelliJ, which in turn created a project). Im doing Build Rebuild project to try and trigger the refresh, but no go. Any input on possible configuration changes/options woud be appreciated. Thanks Josh - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org -- Joshua Long http://www.joshlong.com/ -- Olle Hallin Senior Java Developer and Architect olle.hal...@crisp.se www.crisp.se
Re: Reloading component templates from Maven's jetty plugin
Ive done the following - src/main/resources configured as a source directory in IntelliJ. - you have configured IntelliJ to compile .tml files. (Settings - Compiler - Resource Patterns) still only picks up changes to tml files under webapp folder ie to pages not components. @Olle - how do you exclude myapp.components, myapp.pages from the jetty hot-deploy feature? Right now in target/classes I have three folders - components/pages/services. Components folder has both .tml files and .class files. Pages directory has only .class files. ..kace -- View this message in context: http://www.nabble.com/Reloading-component-templates-from-Maven%27s-jetty-plugin-tp21112833p21127419.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Reloading component templates from Maven's jetty plugin
See http://docs.codehaus.org/display/JETTY/Maven+Jetty+Plugin .http://docs.codehaus.org/display/JETTY/Maven+Jetty+PluginSearch for excludes. Olle 2008/12/22 kace me_myself_and_...@hotmail.com Ive done the following - src/main/resources configured as a source directory in IntelliJ. - you have configured IntelliJ to compile .tml files. (Settings - Compiler - Resource Patterns) still only picks up changes to tml files under webapp folder ie to pages not components. @Olle - how do you exclude myapp.components, myapp.pages from the jetty hot-deploy feature? Right now in target/classes I have three folders - components/pages/services. Components folder has both .tml files and .class files. Pages directory has only .class files. ..kace -- View this message in context: http://www.nabble.com/Reloading-component-templates-from-Maven%27s-jetty-plugin-tp21112833p21127419.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org -- Olle Hallin Senior Java Developer and Architect olle.hal...@crisp.se www.crisp.se
Re: Reloading component templates from Maven's jetty plugin
I have the same setup but haven't been able to get my project to pick up changes to classes or component templates but it does work for pages within webabb. I run the maven command from within itellij IDEA `process classes` for it to pick up the changes to the classes and `process resources` to pick up changes made to the component templates inside src/main/resources without having to re-run the app. Hope this helps for now... ..kace -- View this message in context: http://www.nabble.com/Reloading-component-templates-from-Maven%27s-jetty-plugin-tp21112833p21114527.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Reloading component templates from Maven's jetty plugin
I'm not an IntelliJ user myself, but I have a vague memory of a collegue that had problems like these. I think you must configure IntelliJ to copy .tml files from src/main/resources to target/classes (where Tapestry can find them). It does not do this out of the box. HTH, Olle 2008/12/21 kace me_myself_and_...@hotmail.com I have the same setup but haven't been able to get my project to pick up changes to classes or component templates but it does work for pages within webabb. I run the maven command from within itellij IDEA `process classes` for it to pick up the changes to the classes and `process resources` to pick up changes made to the component templates inside src/main/resources without having to re-run the app. Hope this helps for now... ..kace -- View this message in context: http://www.nabble.com/Reloading-component-templates-from-Maven%27s-jetty-plugin-tp21112833p21114527.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org -- Olle Hallin Senior Java Developer and Architect olle.hal...@crisp.se www.crisp.se
Re: Reloading component templates from Maven's jetty plugin
I have that same setup running without any problems, T5 + Jetty + Maven + IntelliJ. Can you check if IntelliJ is copying your templates to the build directory (target/classes) ? If not then check if you have the following configured: - src/main/resources configured as a source directory in IntelliJ. - you have configured IntelliJ to compile .tml files. (Settings - Compiler - Resource Patterns) On Sun, Dec 21, 2008 at 7:46 AM, Josh Long starbux...@gmail.com wrote: Hi, I have a maven project generated usig the stock mvn archetype for tapestry 5. According to the docs, component templates should be in src/main/resources/. I can't seem to get those to 'reload' correctly, forcing me to ctrl + c the maven jetty plug in and re run. Any input on how to change this (from tapestry or the maven jetty plug in?) would be appreciated. I'm editing in Intellij (I opened the pom with IntelliJ, which in turn created a project). Im doing Build Rebuild project to try and trigger the refresh, but no go. Any input on possible configuration changes/options woud be appreciated. Thanks Josh - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Reloading component templates from Maven's jetty plugin
Thank you for the help. I've adjusted my IntelliJ environment as you suggested and its working, sort of. It does seem like a waste, though. For my page templates I need only make a change and jetty scans it and makes the change. With the component templates, jetty perceives it as a class change, which necessitates a restart of the web app. This is, frankly, no better than using JSF with the jetty plugin. What, exactly, is the use case described in the docs where it says component and page templates will be reloaded? I have no doubt it works somewhere, but it's not fully elaborated upon. What do I have to use/ do to have true reloading of component an page templates without restarting the app? Do I need Eclipse on OS X with Tomcat? What's the happy path of that feature? I'm willing to switch to whatever it is... Thanks, as usual, for your indulgence, Josh http://www.joshlong.com On Sun, Dec 21, 2008 at 2:41 PM, Hugo Palma hugo.m.pa...@gmail.com wrote: I have that same setup running without any problems, T5 + Jetty + Maven + IntelliJ. Can you check if IntelliJ is copying your templates to the build directory (target/classes) ? If not then check if you have the following configured: - src/main/resources configured as a source directory in IntelliJ. - you have configured IntelliJ to compile .tml files. (Settings - Compiler - Resource Patterns) On Sun, Dec 21, 2008 at 7:46 AM, Josh Long starbux...@gmail.com wrote: Hi, I have a maven project generated usig the stock mvn archetype for tapestry 5. According to the docs, component templates should be in src/main/resources/. I can't seem to get those to 'reload' correctly, forcing me to ctrl + c the maven jetty plug in and re run. Any input on how to change this (from tapestry or the maven jetty plug in?) would be appreciated. I'm editing in Intellij (I opened the pom with IntelliJ, which in turn created a project). Im doing Build Rebuild project to try and trigger the refresh, but no go. Any input on possible configuration changes/options woud be appreciated. Thanks Josh - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org -- Joshua Long http://www.joshlong.com/