tapestry

Integrating JAX-WS with Tapestry

谁说胖子不能爱 提交于 2019-12-13 04:38:32
问题 I have experimented with Derkoe's code that integrates JAX-WS services with Tapestry's. Tapestry is a web and DI (i.e. Dependency Injection) framework. The code works great but I couldn't fully use all JAX-WS features. Tapestry's IoC creates a proxy for my web services, and thus doesn't honor JAX-WS annotations. And JAX-WS context listener, doesn't of course honor Tapestry's configuration for my service, so it won't perform any DI. So I can either operate my Tapestry services, without JAX-WS

Tomcat host configuration server.xml

霸气de小男生 提交于 2019-12-12 22:23:23
问题 I have this web.xml in my application. <web-app> <filter> <filter-name>app</filter-name> <filter-class>org.apache.tapestry5.spring.TapestrySpringFilter</filter-class> </filter> <filter-mapping> <filter-name>openSessionInView</filter-name> <url-pattern>/app/*</url-pattern> </filter-mapping> <filter-mapping> <filter-name>app</filter-name> <url-pattern>/app/*</url-pattern> </filter-mapping> <filter-mapping> <filter-name>app</filter-name> <url-pattern>/assets/*</url-pattern> </filter-mapping>

Too many connections Hibernate and mysql

元气小坏坏 提交于 2019-12-12 10:12:49
问题 I'm at a complete loss, I'm running a batch job using both hibernate and mysql and after a few hours I get an exception saying I'm using to many connections. I've read all the articles on SO, but none seem to relate to me. I'm using Tapestry-hibernate with a very simple configuration, http://tapestry.apache.org/using-tapestry-with-hibernate.html. No where's am I creating a new SessionFactory, once the application starts up, I just inject the hibernate Session into my class. This is my current

Tapestry 3: cannot get messages from properties file

自作多情 提交于 2019-12-12 06:27:28
问题 I have tapestry 3 template in HelloWorld.html and HelloWorld.properties file with strings in the same folder, but cannot get them. I've tried : The only output that i have is [PAGETITLE]. Here is the content of properties file: pageTitle=Hello world 回答1: The .properties file needs to go in the same folder as the corresponding class: probably under src/main/resources (it of course varies with the layout of your project). 来源: https://stackoverflow.com/questions/5745368/tapestry-3-cannot-get

how to use PageEvent in tapestry4 to sendRedirect to another page

ⅰ亾dé卋堺 提交于 2019-12-12 02:13:29
问题 public void pageValidate(PageEvent event) { //how to use pageEvent to sendRedirect to google.com ? 回答1: For an external site, use: throw new RedirectException("http://google.com") To redirect to a page withing the application use: throw new PageRedirectException("page"); 来源: https://stackoverflow.com/questions/1642889/how-to-use-pageevent-in-tapestry4-to-sendredirect-to-another-page

File download link in Tapestry

心已入冬 提交于 2019-12-12 02:08:43
问题 I have .tml file and its controller. There is a File variable in controller which represents an existing file from my server. I want to make this file downloadable by users, i.e. something like <a href="link-to-file">Download this file</a> . How could i do that in tapestry? I want something like this: //tml: <t:file source="file">Download here</t:file> //controller: private File getFile() { ... } 回答1: This is a simplified example which might achieve this for you. in your tml <a t:id=

tapestry using data gridsource

 ̄綄美尐妖づ 提交于 2019-12-12 00:19:02
问题 I am trying to learn tapestry from tapestry tutorial, however part of it is outdated. Using GridDataSource code for it is: package com.packtpub.celebrities.util; import com.packtpub.celebrities.data.IDataSource; import com.packtpub.celebrities.model.Celebrity; import java.util.List; import org.apache.tapestry.beaneditor.PropertyModel; import org.apache.tapestry.grid.GridDataSource; public class CelebritySource implements GridDataSource { private IDataSource dataSource; private List<Celebrity>

How can update an <input/> field in tapestry by AJAX request

你。 提交于 2019-12-11 20:15:56
问题 I have a project developed with tapestry 5. I need to update a input field (which is inside a form) using an AJAX request. Page.tml is something like this: <form> <t:zone t:id="myZone"> <input type="text" t:type="TextField" t:value="product.code"/> </t:zone> <t:actionlink t:id="generateCode" zone="myZone">Generate</t:actionlink> </form> And Page.java Object onActionFromGenerateCode() { return myZone.body(); } When click in "Generate" link, tapestry throws an exception. Don't let me update a

Tapestry AjaxFormLoop rows affecting each other's values, why?

元气小坏坏 提交于 2019-12-11 18:00:30
问题 I have an ajaxFormLoop on a list of objects that have some fields. <div class="col-1-1" data-parent-subprovider="parentSubprovider"> <div t:type="ajaxformloop" t:id="subproviderLoop" t:source="entity.contractSubprovider.subproviderList" t:element="entity.contractSubprovider" t:value="subprovider" t:encoder="subproviderLoopEncoder"> <div class="col-3-4"> <t:subproviderEdit t:subprovider="subprovider" /> </div> <div class="col-1-4"> <t:removerowlink class="btn btn--outline" name="subprovider"

Class xxx does not contain a public constructor needed to autobuild when xxx become a Tapestry Service

别等时光非礼了梦想. 提交于 2019-12-11 15:12:39
问题 I'm discovering the wonderful integration work made by Tynamo's team between Tapestry and Resteasy . I'm trying to activate Liveclass Reloading on webservices. As per doc says : Documentation The only thing you need to do to enable live class reloading for your REST services is to bind them as regular Tapestry IoC services and contribute them to javax.ws.rs.core.Application.class. Read more about how service implementation reloading works in: http://tapestry.apache.org/reload.html Here is an