Arkadaşlar merhaba, Yazdığım projede bir sayfa yönledirmesi var. Fakat bu gerçekleşmiyor. Mesela MessageFileList sayfasından MessageDetail sayfasına gidebiliyorum ama aynı kodlara sahip diğer bir yönlendirmemde tableList sayfam tableDetail sayfaa gitmiyor.

Arkaplanda kontrol ettiğimde tüm sınıflarım geziliyor. Fakat sayfa olduğu gibi duruyor. Hiç bir yenileme değişme belirtisi yok. Yardımcı olursanız çok sevinirim.

Teşekkürler.

faces-config.xml

<application>
    <el-resolver>org.springframework.web.jsf.el.SpringBeanFacesELResolver</el-resolver>
    <locale-config>
        <default-locale>en</default-locale>
        <supported-locale>en</supported-locale>
        <supported-locale>tr</supported-locale>
    </locale-config>
    <resource-bundle>
        <base-name>tr.com.mergentech.web.devtool.resources.message</base-name>
        <var>messages</var>
    </resource-bundle>
</application>
<navigation-rule>
    <display-name>Main Rule</display-name>
    <from-view-id>*</from-view-id>
    <navigation-case>
        <from-outcome>index</from-outcome>
        <to-view-id>/index.xhtml</to-view-id>
        <redirect />
    </navigation-case>
    <navigation-case>
        <from-outcome>tableList</from-outcome>
        <to-view-id>/dbdoc/tableList.xhtml</to-view-id>
        <redirect />
    </navigation-case>
    <navigation-case>
        <from-outcome>tableDetail</from-outcome>
        <to-view-id>/dbdoc/tableDetail.xhtml</to-view-id>
        <redirect />
    </navigation-case>
    <navigation-case>
        <from-outcome>commentDialog</from-outcome>
        <to-view-id>/dbdoc/commentDialog.xhtml</to-view-id>
        <redirect />
    </navigation-case>
    <navigation-case>
        <from-outcome>messagesList</from-outcome>
        <to-view-id>/messages/messageFileList.xhtml</to-view-id>
        <redirect />
    </navigation-case>
    <navigation-case>
        <from-outcome>messageDetail</from-outcome>
        <to-view-id>/messages/messageFileDetail.xhtml</to-view-id>
        <redirect />
    </navigation-case>
</navigation-rule>
</faces-config>

MenuController

 @ManagedBean(name = "menuController")
@RequestScoped
public class MenuController implements Serializable{

private static final long serialVersionUID = 3623744119479077604L;

public String navigateTableList(){
    return "tableList";
}

public String navigateTableDetail(){
    return "tableDetail";
}

public String navigateLanguageFiles(){
    return "messagesList";
}

public String navigateToMessageFile(){
    return "messageDetail";
}
}

SessionController

  @ManagedBean(name = "sessionController")
    @SessionScoped
    public class SessionController implements Serializable {

    private static final long serialVersionUID = -916435091826519311L;
    private String owner;
    private DocTable docTable;
    private Long languageProjectId;
    private MessageFile messageFile;

    public String getOwner() {
        System.out.println("Gitti: "+owner+" _______________________________");
        return owner;
    }

    public void setOwner(String owner) {
        System.out.println("Geldi: "+owner+" _______________________________");
        this.owner = owner;
    }

    public DocTable getDocTable() {
        return docTable;
    }

    public void setDocTable(DocTable docTable) {
        System.out.println("Geldi. Doc Table");
        this.docTable = docTable;
    }

    public Date getDate() {
        return new Date();
    }

    public Long getLanguageProjectId() {
        return languageProjectId;
    }

    public void setLanguageProjectId(Long languageProjectId) {
        this.languageProjectId = languageProjectId;
    }

    public MessageFile getMessageFile() {
        return messageFile;
    }

    public void setMessageFile(MessageFile messageFile) {
        this.messageFile = messageFile;
    }

     }

tableList.xhtml

 <?xml version="1.0" encoding="UTF-8"?>
<ui:composition xmlns:ui="http://java.sun.com/jsf/facelets"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:p="http://primefaces.org/ui"
    template="/WEB-INF/templates/maintemplate.xhtml">
    <ui:define name="content">

        <h:form id="formEdit">
            <p:dataTable var="item" value="#{tableListController.dataModel}"
                id="itemList" paginator="true" scrollable="true" rows="50"
                lazy="true" resizableColumns="true" paginatorAlwaysVisible="true">

                <f:facet name="header">#{messages['page.tableList.header']}</f:facet>

                <p:column headerText="Sahibi" width="10%">
                    <h:outputText value="#{item.owner}" />
                </p:column>

                <p:column headerText="#{messages['page.tableList.grid.tabloAdi']}"
                    filterBy="#{item.tableName}"
                    filterMatchMode="contains"
                    width="25%">
                    <h:outputText value="#{item.tableName}" />
                </p:column>

                <p:column headerText="#{messages['page.tableList.grid.kullanimda']}"
                    filterBy="#{item.docTableUserComment.active}"
                    filterMatchMode="equals"
                    filterOptions="#{tableListController.trueFalseSelectList}"
                    style="text-align:center;" width="10%">
                    <p:selectBooleanCheckbox value="#{item.docTableUserComment.active}" />
                </p:column>

                <p:column headerText="#{messages['page.tableList.grid.dokumanla']}"
                    filterBy="#{item.docTableUserComment.documentable}"
                    filterMatchMode="equals" style="text-align:center;"
                    filterOptions="#{tableListController.trueFalseSelectList}"
                    width="10%">
                    <p:selectBooleanCheckbox
                        value="#{item.docTableUserComment.documentable}" />
                </p:column>

                <p:column headerText="#{messages['page.tableList.grid.secret']}"
                    filterBy="#{item.docTableUserComment.secret}"
                    filterMatchMode="equals" style="text-align:center;"
                    filterOptions="#{tableListController.trueFalseSelectList}"
                    width="10%">
                    <p:selectBooleanCheckbox value="#{item.docTableUserComment.secret}" />
                </p:column>

                <p:column
                    headerText="#{messages['page.tableList.grid.olusturmaTar']}"
                    width="15%">
                    <h:outputText value="#{item.createdDate}">
                        <f:convertDateTime pattern="dd.MM.yyyy HH:mm" />
                    </h:outputText>
                </p:column>

                <p:column width="5%">
                    <p:commandButton id="selectButton" icon="ui-icon-pencil"
                        title="#{messages['page.tableList.grid.detaylar']}"
                        action="#{menuController.navigateTableDetail}"
                        actionListener="#{sessionController.setDocTable(item)}" />
                </p:column>
            </p:dataTable>
        </h:form>
    </ui:define>
</ui:composition>

soruldu: 14 Tem '14, 02:21

kaykisizcom's gravatar image

kaykisizcom
37141417
cevap kabul oranı: 0%

Bu soruya ilk cevap veren sen ol!
toggle preview

Bu soruyu takip et

E-Posta üzerinden:

Üyelik girişi yaptıktan sonra abonelik işlemlerini yapabilirsiniz

RSS üzerinden:

Cevaplar

Cevaplar ve Yorumlar

Yazı Formatlama

  • *italic* ya da _italic_
  • **bold** ya da __bold__
  • link:[text](http://url.com/ "başlık")
  • resim?![alt text](/path/img.jpg "başlık")
  • liste: 1. Foo 2. Bar
  • temel HTML etiketleri de kullanılabilir

Bu sorunun etiketleri:

×281
×128
×9
×1
×1

Soruldu: 14 Tem '14, 02:21

Görüntüleme: 510 kez

Son güncelleme: 14 Tem '14, 02:21

powered by BitNami OSQA