I'm sorry but i don't know what you don't understand here ...

This is my backing bean :

        @HttpAction(value="homeAction", pattern="comments/{title}")
        public String retrieveComment(@Param("title") String title,
@Param("sharedUrlId") String sharedUrlId){ 

....

return "/comment.xhtml";
}

and below is the xhtml page :

<rest:link value="homeAction">
<f:param name="sharedUrlId" value="123456789"/>
<f:param name="title" value="bush_is_a_joke"/>
#{text['comments']}
</rest:link>

so when user click on the link, the next page url become like this :

http://localhost:8080/pikepier/comments/bush_is_a_joke?sharedUrlId=b4043a51-2d76-102b-9617-869ad24e2f93

which is not what I want. I need the result url to be like this : 

http://localhost:8080/pikepier/comments/bush_is_a_joke

Appreciate if you could please advice on this. Thanks !



agori wrote:
> 
> 
> 
> Plant More Tree wrote:
>> 
>> I am sorry for the confusion ... all I need is the result url to be with
>> the title append to it like below:
>> 
>> http://localhost:8080/pikepier/comments/bush_is_a_joke
>> 
>> if I pass in the parameter like below:
>> 
>> <rest:link value="homeAction">
>> <f:param name="sharedUrlId" value="123456789"/>
>> <f:param name="title" value="bush_is_a_joke"/>
>> #{text['comments']}
>> </rest:link>
>> 
>> however, I also need sharedUrlId as a parameter to pass to backing bean.
>> 
>> 
> 
> This is impossible ;). 
> Can you explain how could a link pass a sharedUrlId value without encoding
> something about it in the URL?
> 
> 

-- 
View this message in context: 
http://www.nabble.com/RestFaces-problem-...-tp17773696p18013033.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.

Reply via email to