• 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

PF tag for JSF h:inputHidden

 
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Can some one tell if we have Prime faces tag for JSF h:inputHidden ie input type hidden?


Thanks

Nek
 
Ranch Hand
Posts: 188
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
 
Saloon Keeper
Posts: 27762
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


Otherwise the hidden text value would simply be "bean.value" instead of the actual bean.value property value.

Just out of curiosity, what does a Primefaces inputHidden control do that the core h:inputHidden control does not that requires them to re-invent it?
 
nek johnson
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks! I agree thats the best solution...if we choose type as "hidden"

eg <p:inputText value="some text" id="hiddenField2" type="hidden"/>
 
nek johnson
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Also does anyone know if there is way to render the hidden type within the html?
 
Tim Holloway
Saloon Keeper
Posts: 27762
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
Are you looking to make a text element selectively visible?

You can do that in several ways. You can use the "rendered" attribute and reference a boolean property on a backing bean. Or for something more client-side dynamic you can use CSS styles and flip them to visible/invisible via JavaScript.

Incidentally, the "type=" attribute on an inputText control is a step backwards. JSF abstracted out that functionality in the core tags, which is which instead of a one-tag-fits all like in the original HTML, you have JSF inputText, inputHidden and commandButton controls.
 
nek johnson
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yeah, kind of like looking to display the hidden type at times. Not always the case but as and when required to display
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic