Quantcast
Channel: BTSoru.com - Bilisim ve Yazilim Teknolojileri Soru/Cevap Platformu - latest questions
Viewing all articles
Browse latest Browse all 4270

PrimeFaces Layout'da center güncellenmesi nasıl yapılabilir?

$
0
0

Merhaba,

PrimeFaces ile oluşturmuş olduğum templatede sol menü ve içerik kısmı mevcuttur. Sol menü de bulunan Menü listesinden herhangi bir sayfayı tıkladığımda bütün sayfanın değil de sadece içerik bölümünün güncellenmesini istiyorum fakat sayfa komple güncelleniyor. Bu durumda da slide menu kullandığımda sorun oluyor menünün varsayılan haline dönmüş oluyor.

Yani

1

1.1

1.2

1.3

2

2.1

2.2

şeklinde var ise ve ben 2.2 tıkladıktan sadece ana menuleri gösteren şekile dönüyor.

template.xhtml

<html xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:h="http://java.sun.com/jsf/html" xmlns:p="http://primefaces.org/ui">
<h:head>
    <title><ui:insert name="title">Default Title</ui:insert></title>
    <h:outputStylesheet library="css" name="pfcrud.css"/>
    <h:outputScript library="scripts" name="pfcrud.js"/>
</h:head>

<h:body>

    <p:growl id="growl" life="3000"/>

    <p:layout fullPage="true">
        <p:layoutUnit position="north" size="100" header="#{myBundle.AppName}">
            <!-- Menu here. Also a layout and a way to log a user out -->
            <ui:include src="/appmenu.xhtml"/>
        </p:layoutUnit>

        <p:layoutUnit position="center">
            <ui:insert name="body"/>
        </p:layoutUnit>

    </p:layout>

</h:body>
</html>

index.xhtml <?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <ui:composition xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core" xmlns:p="http://primefaces.org/ui" template="/template.xhtml">

<ui:define name="title">
    <h:outputText value="#{messages.ActorTitle}"/>
</ui:define>

<ui:define name="body">

    <ui:include src="/actor/List.xhtml"/>
    <ui:include src="/actor/View.xhtml"/>
    <ui:include src="/actor/Edit.xhtml"/>
    <ui:include src="/actor/Create.xhtml"/>

</ui:define>
</ui:composition>

Burada yapmak istediğim left kısmının güncellenememesi sadece body kısmının güncellenmesi. Bunu nasıl yapabilirim şimdiden teşekkürler yardımlarınız için


Viewing all articles
Browse latest Browse all 4270

Trending Articles


Mide ağrısı için


Alessandra Torre - Karanlık Yalanlar


Şekilli süslü hazır floodlar


Flatcast Güneş ve Ay Flood Şekilleri


Gone Are the Days (2018) (ENG) (1080p)


Yildiz yükseltme


yc82


!!!!!!!!!! Amın !!!!!!!!!


Celp At Nalı (Sahih Tılsım)


SCCM 2012 Client Installation issue