如何检查用户通过WOTextField输入的内容?
这些是我的约束力:
fristName : WOTextField {
value = session.customerOrder.customer.firstName;
}
这是Javacode:
public WOComponent confirmationpage() {
//Some code
try {
if (!session.customerOrder().customer().firstName().isEmpty()) {
dataValid = true;
}
} catch (Exception e) {
e.printStackTrace();
whatsMissing += "Firstname ";
dataValid = false;
}
//More code
}
如何查看用户的输入,不用将其存储到var?