Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Mix of JSF & Regular HTML component field values  RSS feed

 
Mike Skit
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have some html components along with the JSF tag components like below.. in a form.
<h:inputText id=\"field1\" value=\"\" ></h:inputText>

<input type=\"text\" id=\"field2\" />


How to retrieve the values of the reqular html tag components once the form is submitted ?

Is it from the FacesContext ? If it is not too much, can i see code snippet for that?



Thanks,
-Mike.
 
Davie Lin
Ranch Hand
Posts: 294
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
interesting, why are you using regular HTML components? is there any particular reason that has to be done?
 
Mike Skit
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, the requirements/wireframes are dictating/limiting the use of 100% jsf .

 
Tim Holloway
Bartender
Posts: 18531
61
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You're defeating the whole intent of JSF when you do that.

You lose all the benefits of JSF (conversion, validation, presentation, injection). You complicate the action processor code considerably. You complicate the initial page display code even more. And to top it off, there's no way to tell in many cases whether a given control is plain HTML or JSF just by looking at a screen shot, so extra homework=expense has to be done before maintenance can even begin.

Think long and hard before doing this.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!