tapestry

Which Java web framework best accommodates web designers? [closed]

…衆ロ難τιáo~ 提交于 2019-12-10 09:14:02
问题 Closed . This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 6 years ago . Which Java web framework best supports the "web UI designer" role? That is, which framework lets you: Use popular web design tools (XHTML validators, CSS editors, &c.) on your views/pages View changes without running on a server Rapidly prototype different UI options Supports

How do I create a custom text field in Tapestry5 that renders some Javascript onto the page?

我怕爱的太早我们不能终老 提交于 2019-12-08 06:35:58
问题 I have been trying to create a custom textfield in tapestry which will render some javascript when it gains focus. But I have been having trouble trying to find an example of this. Here is some of the code i have started off with: package asc.components; import org.apache.tapestry5.ComponentResources; import org.apache.tapestry5.Field; import org.apache.tapestry5.annotations.Parameter; import org.apache.tapestry5.ioc.annotations.Inject; import org.apache.tapestry5.services

GET submits instead of POST ones. Tapestry

旧街凉风 提交于 2019-12-07 19:46:02
问题 I've encountered this problem in tapestry 5.2 application: Forms require that the request method be POST and that the t:formdata query parameter have values. In access log, i found that sometimes there are form submits with GET method from different users. Though, according to docs, Tapestry 5 use post-redirect-get scheme. This page doesn't allow anonymous access, so it can't be robots. So i,m frustrated what can be the cause of such issue. Suggestions please. There is couple of selects,

tapestry activiti开发笔记

萝らか妹 提交于 2019-12-07 16:33:24
开发环境的准备: eclipse: kapler plugin: http://activiti.org/designer/update/ tapestry-activiti-0.0.1 tapestry-core: 5.4-beta-6 database:mysql5.5.29 activiti : 5.15.1 <dependency> <groupId>org.activiti</groupId> <artifactId>activiti-engine</artifactId> <version>5.15.1</version> </dependency> <dependency> <groupId>org.codehaus.groovy</groupId> <artifactId>groovy-all</artifactId> <version>2.2.1</version> </dependency> 注解:因为tapestry-ioc-5.4和tapestry-activiti-0.0.1不兼容,所以参照重写自己的模块。 环境移置成功,直接copy源码,然后进行修正。 创建的数据库用activiti的下面脚本: activiti.mysql.create.identity.sql activiti.mysql55.create.engine.sql activiti

Mixins in Tapestry5

时光毁灭记忆、已成空白 提交于 2019-12-06 16:46:03
问题 I'm new to Tapestry5, but because of an internship I need to work with it. Currently I am trying to build a mixin to integrate a CSRF token (explanation here) to any form. Is it even possible to achieve this in a mixin? If yes, could I access functions that the mixin offers from the page? I am really not sure about how mixins really work and I'm having big difficulties on finding information about how to create one. Can somebody explain how to create a mixin and if what I'm trying to do is

Too many connections Hibernate and mysql

霸气de小男生 提交于 2019-12-06 15:22:50
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 connection view with mysql. My batch job is threaded and everytime a new thread fires off, the

Tapestry 5 - Dynamically generate URL of file in web app context folder in Java code

风格不统一 提交于 2019-12-06 07:04:42
问题 I am displaying a static image asset inside a component, and I don't know until runtime what that image should be, so I need to dynamically generate the URL. These images all live in webapp/images/ The documentation I found is not very clear on how to handle this usecase, but after playing around I figured out I can construct the URL dynamically in the component template like so: <img src="${context:img/score/overall}/${imageFilename}" /> Then put the logic for which image to display in the

Tapestry 5.3.8 + Spring 4.0.5 小例子(二)

夙愿已清 提交于 2019-12-06 05:48:37
上篇 把项目(Crud)整体搭建完成,本章继续写项目的实现。 1、创建数据库表People: create table PEOPLE ( ID NUMBER primary key, NAME NVARCHAR2(10), AGE NUMBER, BIRTHDAY DATE, GENDER NVARCHAR2(10), HOBBY NVARCHAR2(30) ) 2、创建实体类: /** * @package :example.crud.entity<br> * @author :wanglongjie<br> * @createDate :2015年8月17日上午9:26:32<br> */ package example.crud.entity; import java.util.Date; import org.apache.tapestry5.beaneditor.NonVisual; /** * @package :example.crud.entity<br> * @file :People.java<br> * @describe :用户 实体类<br> * @author :wanglongjie<br> * @createDate :2015年8月17日上午9:26:32<br> * @updater :<br> * @updateDate :<br> *

第三十五讲:tapestry Ajax zone组件无黄色闪烁的背景

为君一笑 提交于 2019-12-06 02:42:53
实现方法很简单,在zone组件里加上t:update="show"就不会出现黄色背景了。源码如下: ZoneWithoutYellowHighlight.java /** * 项目名称:TapestryStart * 开发模式:Maven+Tapestry5.x+Tapestry-hibernate+Mysql * 网址: http://www.flywind.org * 版本:1.0 * 编写:飞风 * 时间:2012-02-29 */ package com.tapestry.app.pages; import java.util.Date; import org.apache.tapestry5.annotations.InjectComponent; import org.apache.tapestry5.corelib.components.Zone; import org.apache.tapestry5.ioc.annotations.Inject; import org.apache.tapestry5.services.Request; public class ZoneWithoutYellowHighlight { @Inject private Request request; @InjectComponent private Zone time2Zone;

第三十四讲:tapestry Ajax actiontlink无刷新页面

不想你离开。 提交于 2019-12-06 02:40:57
源码如下: AJAXActionLink.java /** * 项目名称:TapestryStart * 开发模式:Maven+Tapestry5.x+Tapestry-hibernate+Mysql * 网址: http://www.flywind.org * 版本:1.0 * 编写:飞风 * 时间:2012-02-29 */ package com.tapestry.app.pages; import java.util.Date; import org.apache.tapestry5.annotations.InjectComponent; import org.apache.tapestry5.corelib.components.Zone; import org.apache.tapestry5.ioc.annotations.Inject; import org.apache.tapestry5.services.Request; public class AJAXActionLink { @Inject private Request reauest; @InjectComponent private Zone time2Zone; void onActionFromRefreshPage(){} Object onActionFromRefreshZone(){