Jump to content

Field validation


Wicket

Recommended Posts

Hi All,

 

What is the best way to validate fields on a modal form?

 

I need to check that the field is not empty before closing the form - usually I would do this on the button OK click, setting the modalresult = mrnone, then check the fields are <> '', then call modalresult = mrOK.

 

I cant use this technique in unigui due to the multi-threaded nature.

 

So, my question is how can i not close the form if I have a certain required field that is empty?

 

Any elegant way to achieve this?

 

Thanks,

 

Dan

Link to comment
Share on other sites

  • 3 years later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...