Yes! You can write error/info messages to the user via Apex using ApexPages.addMessage.
You see an example of this by clicking the "See Results" button on the following example. Do a search but do not check any of the checkboxes. The code essentially ensures that at least one checkbox is selected before viewing the results.
You see an example of this by clicking the "See Results" button on the following example. Do a search but do not check any of the checkboxes. The code essentially ensures that at least one checkbox is selected before viewing the results.
http://jeffdouglas-developer-edition.na5.force.com/examples/apex/category_search
The code that fires this is on line 64 of the CategorySearchController:
http://blog.jeffdouglas.com/2009/01/13/apex-search-with-checkbox-results/
Jeff Douglas
Informa Plc
http://blog.jeffdouglas.com