Hi,

 

Given:

 

<h:form id=”frm”>

  <h:inputText id=”in”/>

 

</h:form>

 

I try the following in my action:

 

FacesContext ctx = FacesContext.getCurrentInstance();

 

ctx.getViewRoot().findComponent(“in”)

 

this return null because HtmlForm is NOT a namingcontainer according to MyFaces/JSF. Is that normal? Seems like a form, of all things, should be a NamingContainer, no?

 

Best,

Bolerio

 

 

Reply via email to