How is one supposed to embed a 'Floating Label' - as described here - into a p:panelGrid?
The problem i have is that 'p:outputLabel' is not shown inside of 'p:inputText' but besides it.
The current code:
<h:form>
<p:panelGrid id="login-grid" columns="3">
<span class="ui-float-label">
<p:inputText id="float-input-username-signin" value=""/>
<p:outputLabel for="@previous" value="Username"/>
</span>
<p:message id="login-username-msg" for="float-input-username-signin"/>
<span class="ui-float-label">
<p:password id="float-input-password-signin"/>
<p:outputLabel for="@previous" value="Password"/>
</span>
<p:message id="login-password-msg" for="float-input-password-signin"/>
<p:commandButton value="Login" id="login-button" update="login-grid" action="#{loginBean.check}" />
</p:panelGrid>
</h:form>
I already tried to put the 'Floating Label' inside of a div container, but it didn't work.
Thank you very much.