*
The moose likes JSF and the fly likes pushbutton problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "pushbutton problem" Watch "pushbutton problem" New topic
Author

pushbutton problem

Rauhl Roy
Ranch Hand

Joined: Aug 01, 2006
Posts: 401

Hi even though it is very simple application i am not able to display my values in the next page

please let me know where the bug exists in my code,

i am using Eclipse: Version: 3.4.1
Tomcat:6.0.1
JDK 1.6


Bauke Scholtz
Ranch Hand

Joined: Oct 08, 2006
Posts: 2458
Check the generated HTML output.
Don't you miss something?
Or don't you know HTML either?
Bauke Scholtz
Ranch Hand

Joined: Oct 08, 2006
Posts: 2458
Rauhl Roy wrote:i am using Eclipse: Version: 3.4.1

By the way, it's odd that Eclipse didn't show any warning regard to the commandButton. Or did you miss it? Or didn't you add the JSF facet to the web project?
Rauhl Roy
Ranch Hand

Joined: Aug 01, 2006
Posts: 401

Hi,

I have checked this application by all means, in fact I followed your tutorial only, the example you gave on your blog was running like anything. But it never worked even I added one more page to your application and tried to display values from the main page.

And one more thing is, are we supposed to write all HTML tags in every JSF page?

And Eclipse does not show any thing on console is there any place where we can see log file of JSP.

thanks in advance,

Rahul
Bauke Scholtz
Ranch Hand

Joined: Oct 08, 2006
Posts: 2458
In HTML, the <input> element is to be placed inside a ... element?
Hint: http://www.w3schools.com/html/html_forms.asp

Now, do the same in JSF. It also has a component for it. If you configured Eclipse the way as in my tutorial, you should see a warning around the h:commandButton element that it is missing some required parent component.

And one more thing is, are we supposed to write all HTML tags in every JSF page?
No, but knowledge of HTML is fairly important. Simply because JSF generates HTML.
Rauhl Roy
Ranch Hand

Joined: Aug 01, 2006
Posts: 401

a million thanks from otherwise wise guy
Bauke Scholtz
Ranch Hand

Joined: Oct 08, 2006
Posts: 2458
You´re welcome.
Rauhl Roy
Ranch Hand

Joined: Aug 01, 2006
Posts: 401

I did same as you did in your blog these are the error/ warning which are shown on the console of eclipse IDE,
please let m know how to solve the problem.
Bauke Scholtz
Ranch Hand

Joined: Oct 08, 2006
Posts: 2458
This is not an error. This is a warning. Stuff should just work.

This warning comes because eclipse modifies the Tomcat´s server.xml to add the module contexts (web projects) and Eclipse is using a new attribute 'source' to indicate the web project location in Eclipse. When Tomcat starts up, it will validate the XML and it will show warnings when it encounters unknown tags or attributes.

Those warnings doesn´t harm. You can just ignore it. If you really want to get rid of it, doubleclick the Tomcat server entry in Eclipse to get its configuration and under 'Server Options' enable the 'Publish module contexts to separate XML files' option.
Rauhl Roy
Ranch Hand

Joined: Aug 01, 2006
Posts: 401

you are the best, a million thanks
Bauke Scholtz
Ranch Hand

Joined: Oct 08, 2006
Posts: 2458
You´re welcome.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: pushbutton problem
 
Similar Threads
navigation rules are not working...
Hello World Programme is not Running
managed bean in JSF.
problem on JSF application
Simple Application