If you use pm:navBar you still can use the p:button with the icon! use the onclick of the p:button and define a p:remoteCommand associated to the ManagedBean action, this way you can return your JSF navigation outcome on the p:remoteCommand.lazaronixon wrote:I fixed it.. In next version you will can use.
<h:form>
<pm:navBar>
<p:commandButton value="Home" icon="home" action="pm:singlePage?lazyLoad=true" styleClass="ui-btn-active ui-state-persist"/>
<p:commandButton value="Info" icon="info" action="pm:singlePage?lazyLoad=true" />
<p:commandButton value="Search" icon="search" action="pm:singlePage?lazyLoad=true" />
</pm:navBar>
</h:form>
I use it this way with faces-redirect=true on the faces navigation rule, without transitions or beautiful effects