Matheus Viana

Greenhorn
+ Follow
since Jul 01, 2008
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Matheus Viana

Hi everyone!
I am working with JSF and servlets. I need to make a servlet that uses JSF tags to generate a web page. I cannot do it using JSP. But the instruction out.println() does not work with JSF tags. I want to do something like:

PrintWriter out = response.getWriter();
out.println( "<h:outputText value=\"Some Text\" />" );

But it does not work. The resulting page does not shows anything. I think it is because the resulting page must be only HTML. How can I work with JSF inside the servlet? Is there a way I can work with faces components and then get their resulting HTML code as a String to put it in the out.println()?

Thanks!
15 years ago
JSF
hi
If you need to clear the content of the fields constantly, you better create a method in your bean that clears the values of the properties.
15 years ago
JSF