• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Mix of JSF & Regular HTML component field values

 
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 294
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yes, the requirements/wireframes are dictating/limiting the use of 100% jsf .

 
Saloon Keeper
Posts: 27752
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
See where your hand is? Not there. It's next to this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic