nek
nek

Reputation: 157

PrimeFaces tag for JSF h:inputHidden

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?

Upvotes: 10

Views: 23455

Answers (2)

Vy Do
Vy Do

Reputation: 52498

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)

Upvotes: 3

Bhavin Panchani
Bhavin Panchani

Reputation: 1352

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

<p:inputText value="hello world" id="hiddenfield" type="hidden" />

Upvotes: 16

Related Questions