I'm making a form using primefaces, and I wanted my input to change class when it was filled, only returning the previous class if the user deleted the content. This is to make the outputLabel exit from inside the input and be visible as per the figure I attached.
The first figure is as it is initially; The second figure is what it's like to stay; The third is how it's getting.
Does anyone know a way to do this? Mine here is not working ...