Modify url parameter

Splash Forums PrettyFaces Users Modify url parameter

This topic contains 2 replies, has 2 voices, and was last updated by  Lincoln Baxter III 2 years, 4 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #26050

    vished
    Participant

    Hello,

    i have a String e.g. “Pretty Faces”
    But how can I do this String to pretty-faces?

    I created a method and put it in the @PostConstruct method.

    private String createCorrectString(String s) {
    		s = s.replaceAll(" ", "");
    		s = s.toUpperCase();
    		return s;
    	}

    Here my attribut:
    `@Parameter
    @Deferred
    private String name;`

    and I put it in the @PostConstruct method:
    @PostConstruct

    	public void init() throws UserPageNotFoundException, UserNotFoundException {
    			String s = userService.getLoggedinUser().getUserInfo()
    					.getPseudonym();
    			name = createCorrectPseudonymName(name);
    		}

    I think my problem is the userService will not correct inject, name is everytime NULL.

    here my commandButton in the JSF-Page:
    `<p:menuitem value=”Show”
    outcome=”/portal/userPageLoginUserShow.jsf”
    icon=”ui-icon-document”>
    <f:param name=”name”
    value=”#{userPageLoginUserEditController.userPageLoginUser.user.name}” />
    </p:menuitem>`

    Could anybody help me, please

    #26051

    vished
    Participant

    i solved it with adding

    @RequestAction
    	 @Deferred
    #26053

    Glad you figured out the solution! Thanks for posting your answer.

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.

Comments are closed.