Sreekanth
Sreekanth

Reputation: 534

reload popup page by using spring MVC

I am using a controller to get the form values from the html. And doing some kind of validations. If validation fails i want to reload that popup by throwing the validation message and the popup page view name to reload the popup page. Like

  1. If i have a page A, in that page A there is a button B.
  2. Now if i click the button B, there will be open a popup window C.
  3. Here in the page C, if i click the form submit. It will goes to the controller.
  4. Here in the controller i do some validations, if validation fails i just want to reload that popup page C with the error message.

Any body can help to overcome the issues.

Upvotes: 2

Views: 1682

Answers (2)

Harshal Patil
Harshal Patil

Reputation: 6759

It will be easy if you use jQuery UI Modal. Just go through this link

Upvotes: 3

Sarz
Sarz

Reputation: 1976

Is this what you want to do here It can be achieved by basic JQuery, CSS, js. Explorer some. if you have to validate it from data base and than show use <f:ajax /> this is whole work do some effort

Upvotes: 2

Related Questions