${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的模板或类,注意检查名字的大小写
本文介绍了一种使用标准及非标准方法处理表单提交事件的技术,并展示了如何通过页面传递对象实例。此外,还讨论了如何定义和处理特定组件事件。
1288

被折叠的 条评论
为什么被折叠?



