[jboss-user] [JBoss Seam] - Re: how retrieve current UIComponent
cavani
do-not-reply at jboss.com
Wed Dec 13 06:15:39 EST 2006
Well, I think this is completely off topic for Seam, but may be worth.
I use this in action method (of Seam component):
| UIComponent form = FacesContext.getCurrentInstance().getViewRoot().findComponent("id_of_form_in_your_page");
|
| UIInput input = (UIInput) form.findComponent("id_of_component_you_want");
| input.setSubmittedValue(null);
|
for this, in MyFaces, you need set id for ui components you want.
based on:
http://wiki.apache.org/myfaces/ClearInputComponents
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3993336#3993336
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3993336
More information about the jboss-user
mailing list