Hi in my sidebar i want a command link but it looks stupid, does anyone have an idea?
http://www.bilder-upload.eu/show.php?fi ... 674708.png
<li><h:form>
<p:commandLink id="nonAjax"
actionListener="#{accessControl.logout}" ajax="false">
<h:outputText value="Abmelden" />
</p:commandLink>
</h:form></li>
Commandlink in Sidebar
Forum rules
Please note that response time for technical support is within 3-5 business days.
Please note that response time for technical support is within 3-5 business days.
-
- Posts: 5281
- Joined: 29 Jun 2013, 12:38
I think you can use jsf:action with JSF2.2 instead of p:* and h:* components(p:commandButton, h:commandLink, ..) in profile panel;
https://www.beyondjava.net/blog/jsf-2-2 ... eat-sheet/
http://www.oracle.com/technetwork/artic ... 27136.html
Please try;
https://www.beyondjava.net/blog/jsf-2-2 ... eat-sheet/
http://www.oracle.com/technetwork/artic ... 27136.html
Please try;
Code: Select all
<ui:composition
...
xmlns:p="http://primefaces.org/ui"
xmlns:po="http://primefaces.org/omega"
xmlns:jsf="http://xmlns.jcp.org/jsf">
...
<div class="profile">
<h:form>
<p:graphicImage name="images/profile.png" library="omega-layout" />
<a id="profile-button" href="#">
<span class="username">Peggy Olson</span>
<i class="fa fa-fw fa-cog"></i>
</a>
<ul>
...
<li><a href="#" jsf:outcome="#{accessControl.logout}"><i class="fa fa-fw fa-sign-out"></i><span>Abmelden</span></a></li>
</ul>
</h:form>
</div>
....
Github Profile: https://github.com/mertsincan
-
- Information
-
Who is online
Users browsing this forum: No registered users and 6 guests