tapestry

Write sitemap.xml to java webapp root directory permission denied

时间秒杀一切 提交于 2019-12-11 11:08:31
问题 I'm trying to use the sitemapgen4j library to build my sitemaps. I'm facing a permission problem while trying to write to my root directory https://code.google.com/p/sitemapgen4j/ the root context folder (/src/main/webapp) Exception Problem writing sitemap file /sitemap.xml java.io.FileNotFoundException /sitemap.xml (Permission denied) Code File directory = new File("/"); WebSitemapGenerator wsg = new WebSitemapGenerator("http://localhost:8080/app", directory); Does anybody know how to go

maven repository eclipse project

♀尐吖头ヾ 提交于 2019-12-11 09:52:36
问题 A quick question. A am new to pom repositories. I added this <repository> <id>tapx</id> <name>howard lewisship snapshot repository</name> <url>http://howardlewisship.com/snapshot-repository/</url> </repository> to pom file to get these files for tapestry project. sha1 left and filename ont the right 7155233ba0dfbd99e19358f57e262ad484a440c6 tapx-core-1.1-20110620.210912-27.jar 822c300e6b6d93c53216d8d4fbb9b13217a7fb84 tapx-core-1.2-20110705.222421-4.jar c11b3134128c3267f55dc4f8bfaab2f1f68ba711

Tapestry 5.4 call jquery more than once

主宰稳场 提交于 2019-12-11 07:45:19
问题 I am trying to integrate Bootstrap popover to my Tapestry 5.4-alpha-14 application. I am new to Tapestry, and I am not sure how to use javascript there. My problem is that I want to show Bootstrap popover on each element in a zone loop when the zone is refreshed. First I have no elements in the zone, then the user submits a form and an element is loaded, and then some more user interaction, and another element is loaded, and so on... I want to show the popover on each loaded element in the

Liquibase integrated with a Tapestry and Hibernate: initial schema creation step

安稳与你 提交于 2019-12-11 07:38:09
问题 I have the project based on Tapestry framework. It uses Hibernate as ORM library. My classes are mapped to database using annotations . I would like to integrate Liquibase into my project to be able to maintance database state, doing version updates. What I have done till this moment is the following steps: 1) I've created service pair: LiquibaseService -> LiquibaseServiceImpl . LiquibaseSerivce has method public void update() , which creates independent DataSource from hibernate.cfg.xml

Problem with Eclipse/Jetty in Tapestry 5 Tutorial

心不动则不痛 提交于 2019-12-11 07:37:45
问题 I'm working through this Tapestry 5 tutorial and I'm stuck on the "Running the Application inside Eclipse" step. When I go to the Eclipse run configurations, select Jetty Webapp, then click New, I get the following error: An error has occurred. See error log for more details. Path for project must have only one segment. Any suggestions on this one? I'm not new to web development, but I am new to Eclipse and Tapestry. 回答1: I'm not exactly sure why, but after I ran Project > Clean... I could

I need to remove the script Tapestry adds to the bottom of every page

假装没事ソ 提交于 2019-12-11 06:45:33
问题 Yes, I know it is important and Tapestry needs it for its JS support and what not, but I do not use Tapestry JS functionality at all. I have already managed to remove all the generic CSS and JS that is added by Tapestry, but I cannot find a way to remove this script from the bottom of most pages: Tapestry.onDOMLoaded(function() { //blebleble }); What I tried is to override the JavaScriptSupport class, providing my own, completely empty implementation. But the script is STILL there! I believe

Swagger UI with Tynamo Resteasy for Tapestry 5.4

早过忘川 提交于 2019-12-11 05:47:25
问题 I am using tynamo resteasy with my Tapestry 5.4 project. I'd like to incorporate Swagger to document and share API with other other teams. While I see that swagger is already in RestEasy's project dependency, it does not work "out of the box" I've added @Api to the "Resource" class (located in /rest/ package) and @ApiOperation to the GET method Do I need to change AppModule or web.xml in anyway to hook the swagger UI? Is there an example (github etc.) anywhere that I can follow? Also, will

Using “Persist” annotation in Tapestry is causing Problems with RunJettyRun

谁说胖子不能爱 提交于 2019-12-11 02:46:01
问题 I am going through the Tapestry beginner tutorial at: http://tapestry.apache.org/tapestry-tutorial.html I just downloaded the template project and tried running it as is. The problem is adding the @Persist annotation to the property my application hangs indefinitely. I realized that it happens when I launch my application from Eclipse using a RunJettyRun configuration. If I run it form the command prompt with mvn jetty:run it works fine. I notice that the RunJettyRun version on my machine

Tapestry 5.4: how to use an external dist package?

不羁岁月 提交于 2019-12-10 22:20:35
问题 I'd like to use the dist package from swagger-ui to be able to expose my webservice. The dist pkg is located here: https://github.com/swagger-api/swagger-ui/tree/master/dist While I can use this: Swagger UI with Tynamo Resteasy for Tapestry 5.4 to create the swagger.json , I'd like to use swagger-ui to expose this json. Can anyone point me on how to use this dist folder as is in Tapestry (pref. 5.4)? Note: I tried using the index.html as a tml (by loading all @Imports it needs in the .java

Setting ISO-8859-1 encoding for a single Tapestry 4 page in application that is otherwise totally UTF-8

亡梦爱人 提交于 2019-12-10 15:34:58
问题 I have a Tapestry application that is serving its page as UTF-8. That is, server responses have header: Content-type: text/html;charset=UTF-8 Now within this application there is a single page that should be served with ISO-8859-1 encoding. That is, server response should have this header: Content-type: text/html;charset=ISO-8859-1 How to do this? I don't want to change default encoding for whole application. Based on google searching I have tried following: @Meta({ "org.apache.tapestry