0

在我的 Tapestry 页面中,当我调用验证方法时,我想更新一个区域。这可能吗?只能在调用事件时更新区域吗?我可以创建一个事件并在允许我更新区域的同一类中捕获它吗?

我认为这可能有效,但它没有......

void onValidateFromIssuingOfficerTextField(Long forename) throws ValidationException {
    if (!forename=null) {
        updateZone();
        throw new ValidationException("You must supply a Forename");
    }
}

Object updateZone(){
    return myZone.getBody()
}
4

1 回答 1

1

看看这个:

http://jumpstart.doublenegative.com.au/jumpstart/examples/ajax/form

好像是你需要的

于 2013-06-30T23:02:06.937 回答