• Post Reply Bookmark Topic Watch Topic
  • New Topic

PF tag for JSF h:inputHidden

 
nek johnson
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • 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
 
Arun Giridhar
Ranch Hand
Posts: 181
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
 
Tim Holloway
Bartender
Posts: 18408
58
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • 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
  • 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
  • Quote
  • Report post to moderator
Also does anyone know if there is way to render the hidden type within the html?
 
Tim Holloway
Bartender
Posts: 18408
58
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • 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
  • 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
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!