Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PrimeFaces tag for JSF h:inputHidden

Tags:

jsf

primefaces

Does someone have any recommendations for PrimeFaces tags? To be specific, I am trying to find equivalent PrimeFaces tag for input type hidden.

Can someone tell, if we have PrimeFaces tag for JSF <h:inputHidden> input type hidden?

like image 608
nek Avatar asked Mar 20 '15 23:03

nek


2 Answers

You can use p:inputText and set type="hidden"

<p:inputText value="hello world" id="hiddenfield" type="hidden" />
like image 95
Bhavin Panchani Avatar answered Nov 20 '22 11:11

Bhavin Panchani


PrimeFaces use

<h:inputHidden id="..." value="..." />

For example:

<h:inputHidden id="txt2" value="#{sliderView.number2}" />

Reference: http://www.primefaces.org/showcase/ui/input/slider.xhtml (See line 13th in file slider.xhml source code)

like image 25
Do Nhu Vy Avatar answered Nov 20 '22 12:11

Do Nhu Vy