tapestry5项目中的总结

${currentTime.time}调用标准的get set方法
${currentTime.hashCode()}调用非标准方法


@onEvent处理事件发生
@onEvent(value="submit",component="userInputForm")
void onFormSubmit(){};
或者用on+事件名的方法如:
onSubmit(){}处理表单提交
也可以用on+事件名+from+组件ID如:
onSubmitFromInputForm(){};


页面传递
@InjectPage
private Another another
.
@onEvent(value="submit",component="userInputForm")
public object onFormSubmit(){
 another.setMessage("ss");
 return another;
}


No root element has been defined
表示没有定义start的模板或类,注意检查名字的大小写

你可能感兴趣的:(tapestry)