Create Facescontext Manually
4 Using the JSF Lifecycle with ADF Faces. The FacesServlet object creates an object called FacesContext. Then you do not have to manually clear the scope. Mar 13, 2006 JSF Dynamically add a commandLink element as child. (FacesContext context). If I create the link manually on the web page.
The FacesServlet is the one responsible for creating the faces context. The faces servlet is invoked when the request URL matches its URL pattern, which is in your particular case.jsf. So, when you open the index.jsp as or are relying on the setting, then you are not invoking the faces servlet and you would indeed get this exception. You need to open the index.jsp as or to set the welcome file entry to index.jsf in order to properly invoke the faces servlet, so that it can create the faces context which is required by the JSF components declared in the JSP page. Note however that only fixing the welcome file isn't sufficient in this JSF 1.x + Tomcat environment.

You also need to supply a physically existing, but completely empty index.jsf file next to the index.jsp file in the webcontent in order to fool Tomcat that index.jsf really exists as welcome file. It would otherwise show a 404 error because it checks the physical presence of the welcome file beforehand. See also:.
Unrelated to the concrete problem, I'm wondering why you're using JSP if you've apparently installed Facelets 1.x and registered its view handler. Facelets is far to JSP. @FiveO The generated code is HTML. Browser will have to 'handle' it you use JSF or not. Overall, any framework will give you 'less control', be it JSF, EJB, JPA, etc.
However, most of the time they give you a way to do things 'manually'. With JSF you can always write pure HTML/CSS/JS, or create your own custom tags/components. You need no 3rd party dependency, just use pure Java EE running on a complete Java Application Server, like Glassfish, JBoss AS or WebSphere AS. IMO, frustration is having to reinvent the wheel over and over again, instead of focusing on business code. – May 3 '13 at 13:46.
Convert the specified string value, which is associated with the specified, into a model data object that is appropriate for being stored during the Apply Request Values phase of the request processing lifecycle. ( context, component, value) ByteConverter. ( context, component, value) BooleanConverter.
( context, component, value) BigIntegerConverter. ( context, component, value) BigDecimalConverter. ( context, component, value) ShortConverter. ( context, component, value) NumberConverter. ( context, component, value) LongConverter.

( context, component, value) IntegerConverter. ( context, component, value) FloatConverter. ( context, component, value) EnumConverter. ( context, component, value). Convert the specified model object value, which is associated with the specified, into a String that is suitable for being included in the response generated during the Render Response phase of the request processing lifeycle. ( context, component, value) ByteConverter. ( context, component, value) BooleanConverter.
( context, component, value) BigIntegerConverter. ( context, component, value) BigDecimalConverter. ( context, component, value) void NumberConverter. ( context, state) void EnumConverter.
( facesContext, object) void DateTimeConverter. ( context, state) NumberConverter. ( context) EnumConverter. ( facesContext) DateTimeConverter. ( context).
Give More Feedback
Uses of in Methods in with parameters of type Modifier and Type Method and Description abstract ValueBinding. This method has been replaced. The default implementation creates a two element Object array with the first element being the return from calling, and the second being the return from. It then passes this Object array to.
See More On Stackoverflow
Uses of in Methods in with parameters of type Modifier and Type Method and Description void RegexValidator. ( context, state) void MethodExpressionValidator. ( context, state) void LongRangeValidator. ( context, state) void LengthValidator. ( context, state) void DoubleRangeValidator. ( context, state) void BeanValidator. ( context, state) RegexValidator.
( context) MethodExpressionValidator. ( context) LongRangeValidator. ( context) LengthValidator. ( context) DoubleRangeValidator. ( context) BeanValidator. ( context) void Validator. ( context, component, value).