Help! i need to get components id with error validation!

Hi guys, im really new in jsf, i have a tabset, in with several tabs generated dinamically, each tab have several components generated dinamically as well, im trying to get all components id which have validation errors, and show in the page an alert summary with the name of tabs which have the components with error validation, to do that, i will have to get the components id with error validations, so i will get the tab name which contains it.

I tried to use this, but didnt work for other components in others tabs than tabSelected.

public void prerender() {

Object tmp="";

FacesContext context = FacesContext.getCurrentInstance();

Iterator iter = context.getClientIdsWithMessages();

while(iter.hasNext()){

Object obj = iter.next();

}

}

This detect components in the current tab, because they are who have messages.

Please guys, hopefully you could help me at this, ive been trying to achieve this since 3 days ago, im really desperated, i dont know, if i could do this using some of jsf, otherwise i will have to do validation components manually.

By the way guys:

How do i do to call the validation phase, when im using a button with inmediate = true. Thats, because i could do a method to validate components (manually) and then call the validation phase, to show the input errors to user.

Thanks in advanced,

Yellr

Message was edited by:

yellr

[1465 byte] By [yellra] at [2007-11-27 5:16:56]
# 1
I suggest you do this stuff in the event handlers, such as in the action handler , such as in the tab action handler.
jetsonsa at 2007-7-12 10:39:48 > top of Java-index,Development Tools,Java Tools...