Commandlink in Sidebar

Forum rules
Please note that response time for technical support is within 3-5 business days.
Post Reply
NicoDeluxe
Posts: 19
Joined: 06 Feb 2015, 10:40

27 Aug 2017, 12:48

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>

mert.sincan
Posts: 5281
Joined: 29 Jun 2013, 12:38

12 Sep 2017, 15:50

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;

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>
    ....

Post Reply

Return to “Omega - PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 3 guests