2008-04-27

Dynamically Generated Checkboxes

关键字: tapestry checkbox
转自:http://wiki.apache.org/tapestry/Dynamically_Generated_Checkboxes?highlight=(checkbox) If you need to generate a sequence of check boxes in a form, it can be tricky to work out in your form listener which check boxes have been selected. Here is my solution which involves reconstructing the list o ...
Tapestry's client persistence is great, but can be over-zealous in encoding the data to every URL in sight. Sometimes, what you want is for normal navigation links to remain unsullies, but forms to get the client persisted data so that if they cause a page re-render due to validation, everything sti ...
页面类代码(使用注入): public abstract class MyPage extends BasePage { @Persist("flash") public abstract String getMessage(); public abstract void setMessage(String message); } 不使用注入 <property name="message" persist="flash"/> @InjectObject("engine-service:page") public abstrac ...
转自:http://hghdo.javaeye.com/blog/47876 用tapestry4.0.x生成验证码 首先写一个从IEngineService派生的类,用来产生需要的验证图片 package org.itrun.cnbrn.view.pageclass.system; import java.awt.Color; import java.awt.Font; import java.awt.Graphics; import java.awt.image.BufferedImage; import java.io.IOException; import jav ...
jackytang520
搜索本博客
我的相册
2ee9f3fa-178a-3292-859f-60db9b995272-thumb
image031
共 53 张
存档
最新评论