开发者

Reloading Tapestry layout and other components in development?

How can I make changes to tml files - like for layout and other components - quickly visible via F5 in the browser? At the moment I keep those files under the src/main/-folder next to the java class. I already tried to 'repackage' the file but it isn't picked up by Tapestry - it only works for tmls under /webapps.

PS: Using IntelliJ 开发者_如何学Cwith Maven

Cheers!


Heureka! I found an answer deep in the IntelliJ forum:

Try to add .tml pattern to Settings / Compiler / Resource patterns, similar to patterns already provided there.

IntelliJ didn't actually 'repackage' the tml files when they weren't under webapp/ before (although it did 'say' it - that's just mean!).


I found that rebuilding the project by using the keyboard shortcut Ctrl + F9 (or manually from the Build->Make Project menu option) and then reload the page in the browser will cause the changes to propagate.

Note: My *.tml files are located in the src/main/resources/company-name/components and src/main/resources/company-name/pages folders, which is the default location if you create your project using the mvn archetype:generate -DarchetypeCatalog=http://tapestry.apache.org command.

IntelliJ Idea Ultimate 11.1.1

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜