Because the commandButton builds on the HTML Submit button object and HTML submits can only be done in conjunction with an HTML Form object that contains it. That's specified by the RFCs that define HTML and the HTTP protocol.
As a secondary reason, JSF doesn't simply fire off an event - there's a whole lot of extra information that goes down to the server as well, so a full-blown POST request has to be made.
Customer surveys are for companies who didn't pay proper attention to begin with.
Bauke Scholtz
Ranch Hand
Joined: Oct 08, 2006
Posts: 2458
posted
0
Webbrowsers only understand HTML. JSF just renders HTML (alongside some other client side stuff like JS/CSS). Open a JSF page in your favourite browser and view source. Do you see?
Well, to understand what JSF renders, you need to understand HTML. If you are new to HTML as well, I highly recommend you to go through this tutorial: http://www.w3schools.com/html/ Forms are covered here: http://www.w3schools.com/html/html_forms.asp [ December 15, 2008: Message edited by: Bauke Scholtz ]