Reply To: What happened to PrettyFaces?

Splash Forums PrettyFaces Users What happened to PrettyFaces? Reply To: What happened to PrettyFaces?

#24171

Tony Herstell
Participant

Snap…

I use this very simple (and useful) annotations all over (config close to the code that uses it (them)).

e.g.


//Tell prettyfaces to use this bean when the pattern matches and show the manageXXXs page. Also support a Query Param (cid).
@URLMappings(mappings = { @URLMapping(id = "manageXXXs", pattern = "/xxx/manage", viewId = "/pages/xxx/manageXXX.xhtml"),
        @URLMapping(id = "createXxx", pattern = "/xxx/create", viewId = "/pages/xxx/CRUDXxx.xhtml"),
        @URLMapping(id = "readXxx", pattern = "/xxx/view", viewId = "/pages/xxx/CRUDXxx.xhtml"),
        @URLMapping(id = "updateXxx", pattern = "/xxx/update", viewId = "/pages/xxx/CRUDXxx.xhtml"),
        @URLMapping(id = "deleteXxx", pattern = "/xxx/delete", viewId = "/pages/xxx/CRUDXxx.xhtml") })

I hope the need to put the CID on the URL for conversations has got magically fixed.
(https://community.jboss.org/thread/194639 refers)


// Lets be long running (multiple client-server round trips) - Needs Extended on
// PersistanceContext too to hold onto my objects and not get LIEs.
@ConversationScoped

...
    @SuppressWarnings("unused")
    @URLQueryParameter("cid")
    private String cid;

...

    /*
     * Hack to pass cid to prettyfaces so it can add it to URL - DONT remove.
     */
    public String getCid() {
        return this.conversation.getId();
    }

    public void setCid(String cid) {
        this.cid = cid;
    }

//