1
I’m making a form using primefaces, and I wanted my input to change class when it was filled, only going back to the previous class if the user deleted the content. This is to make the outputLabel come out of the input and be visible according to the figure attached.
The first figure is as it is initially; The second figure is how to stay; The third is how it’s getting.
Does anyone know a way to do that? Mine’s not working...
If I understand your question correctly, the way to do this using Primefaces is with Watermark. See here: https://www.primefaces.org/showcaseui/misc/watermark.xhtml
– Edjane
Luan, post the code too, is easier to analyze, including the code you are trying.
– Sam