-
FEATURED COMPONENTS
First time here? Check out the FAQ!
I try to validate File upload using AbstractValidator but Invalid message not show.
public class FormValidator extends AbstractValidator {
validateAttachment(ctx, "quotationAttachmentLocation");
@WireVariable("generalDAO")
GeneralDAO generalDAO;
@Override
public void validate(ValidationContext ctx) {
private void validateAttachment(ValidationContext ctx, String key)
{
if(ctx.getCommand().equals("save"))
{
NewPhaseRequest request = (NewPhaseRequest)((GeneralController)ctx.getBindContext().getBinder().getViewModel()).getSelectedRequest();
if(request.getQuotationAttachmentLocation() == null)
{
this.addInvalidMessage(ctx, key, "No attach file.");
}
}
}
Asked: 2013-05-15 08:16:32 +0800
Seen: 8 times
Last updated: May 15 '13
Databinding and auto-complete on combobox
Composite component and bind in ZK 6
How to detach / reattach MVVM windows?
Is there a way to resolve view model properties as input to client side javascripts?
How can I synchronize data in a ListBox in MVVM ? [closed]
MVVM Validator: class not found ? [closed]
How to Call Child ViewModel Method from Parent Window? [closed]