Annotations support is coming to PrettyFaces

Splash Forums PrettyFaces Users Annotations support is coming to PrettyFaces

This topic contains 0 replies, has 1 voice, and was last updated by  Christian Kaltepoth 7 years, 3 months ago.

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

    As some of you might already know, the PrettyFaces team is working on supporting annotations for the configuration of URL mappings. This allows to declare your mappings directly on the affected classes:

    @URLMapping(id="viewStory", pattern="/story", viewId="/story.jsf")
    public class StoryBean {

    @URLQueryParameter("id")
    private Long currentStoryId;

    private Story story;

    @URLAction
    public void loadStory() {

    // load the story
    story = myStoryDao.getById( currentStoryId );

    }

    /* more code */

    }

    Are you interested in this feature? Do you want to help us testing it? Take a look at the recent blog post on the OcpSoft site:

    Annotations support is coming to PrettyFaces: URL-rewriting

    We are very interested to hear your opinion on this. Do you like it? Is it intuitive? Does it work for you? We are looking for feedback!

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.

Comments are closed.