<h:form> <h3>Basic</h3> <p:inputText /> <h3>Floating Label</h3> <span class="ui-float-label"> <p:inputText id="float-input" value="#{basicView.text}" /> <p:outputLabel for="@previous" value="Username" /> </span> </h:form>
@Named @RequestScoped public class BasicView { private String text; public String getText() { return text; } public void setText(String text) { this.text = text; } }