PrettyFaces 3.3.3 individual URL for each Object

Splash Forums PrettyFaces Users PrettyFaces 3.3.3 individual URL for each Object

This topic contains 0 replies, has 1 voice, and was last updated by  Anonymous 3 years, 4 months ago.

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #19793

    Anonymous

    Hello, I’m new in PrettyFaces and don’t know how to specify a unique Link zu each Object.

    <url-mapping id=”zeigeSoloZe”>
    <pattern value=”/Zuchteintrag/#{zeigeSoloZe.ze}” />
    <view-id value=”/clientZeigeEinzelnenZuchteintrag.xhtml” />
    </url-mapping>

    Here my pretty-conf:

    In my Bean(zeigeSoloZe) is the Object Zuchteintrag ze = new Zuchteintrag(); with getter and Setter

    @ManagedBean(name = “zeigeSoloZe”)
    @SessionScoped
    public class ControllerZeigeEinzelnenZuchteintrag implements java.io.Serializable {
    private IDAO_Tierverzeichnis dao = new PostgresDB(); //DAO Objekt
    private Zuchteintrag ze; //Selektierter Zuchteintrag
    //KONSTRUKTOR
    public ControllerZeigeEinzelnenZuchteintrag() {
    }
    public Zuchteintrag getZe() {
    dao.updateZuchteintrage(ze);
    return ze;
    }
    public void setZe(Zuchteintrag ze) {
    this.ze = ze;
    }
    }

    the ToString in Zuchteintrag returns the Title (String)

     

    I’ve also a Converter for Zuchteintrag.

     

    I want the following URL for a Zuchteintrag: http://www.mypage.com//Zuchteintrag/Title-of-the-Zuchteintrag?ID=3

    But I get: http://www.mypage.com/Zuchteintrag/Title%20of%20the%20Zuchteintrag

     

    I hope you can help me soon and sorry for my bad englisch :)

    best regards!

    Traxxas

     

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.

Comments are closed.