Hide clear button from InputText

UI Components for JSF
Post Reply
fleske
Posts: 4
Joined: 20 Oct 2015, 13:42

20 Oct 2015, 13:48

Hello,
is there any way to disable the clear button on the p:inputText?
Image

I've tried pt:data-clear-btn="false" but it does not work...
Thanks

kukeltje
Expert Member
Posts: 9605
Joined: 17 Jun 2010, 13:34
Location: Netherlands

06 Nov 2015, 00:58

tried css?

fleske
Posts: 4
Joined: 20 Oct 2015, 13:42

23 Nov 2015, 16:30

Yes, this is working:

Code: Select all

.ui-input-text a {
	display: none;
}


But I think that should be an option in the component...Thanks

kukeltje
Expert Member
Posts: 9605
Joined: 17 Jun 2010, 13:34
Location: Netherlands

24 Nov 2015, 15:50

why? if every simple thing that can be solved with css is put in the components, they'll explode...

tandraschko
PrimeFaces Core Developer
Posts: 3979
Joined: 03 Dec 2010, 14:11
Location: Bavaria, DE
Contact:

24 Nov 2015, 16:56

AFAIR PF didn't add this functionality, this comes from the browser. So just google about "html input disable clear button".
Thomas Andraschko

PrimeFaces | PrimeFaces Extensions

Apache Member | OpenWebBeans, DeltaSpike, MyFaces, BVal, TomEE

Sponsor me: https://github.com/sponsors/tandraschko
Blog: http://tandraschko.blogspot.de/
Twitter: https://twitter.com/TAndraschko

Jorja Dickinson
Posts: 2
Joined: 14 Jan 2016, 12:55
Contact:

14 Jan 2016, 12:58

I guide the students that how they can pass the exams and how can they get the certification for the latest knowledge this certification exam students click at exam or visit its certification its better for your bright future and will helpful to attain the IT certification 

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 31 guests