posted 12 years ago
Welcome to the JavaRanch, Michael!
Straight JSF doesn't have any sort of support for popup windows or dialogs. The closest that you could get would be a link with a "target" attribute, but that wouldn't work when an input fails validation.
One of the prime virtues of JSF, however, is that it does provide better support for validation error handling than most platforms. Just not as popups.
Basically, out of the box you can either collect all the messages for the page and display them in one place using the "h:messages" element or you can tag the individual controls with messages. Like so:
BTW, avoid using Listeners when something simpler and more POJO will suffice. You don't need a "buttonAction" listener here, just a simple action method.
Among my pet peeves in JSF are use of HTML tags instead of JSF tags and use of ui:repeat for tabular data, so I've taken some liberties here.
Experience keeps a dear School, but Fools will learn in no other.
---
Benjamin Franklin - Postal official and Weather observer