Plant More Tree wrote:
> 
> 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
> 
> 

If it is not want you want, why do you continue to write

@Param("sharedUrlId") String sharedUrlId

and 

<f:param name="sharedUrlId" value="123"/>

? 
You are very explicitely asking to RestFaces to append a query parameter to
the URL, but you don't want it...My suggestion is to remove both (f:param
component and second parameter from the signature).

But you have already said that you also want RestFaces to set the
parameter..And I already said that it is not possible.

Now, can you explain how a link that looks like

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

could set a sharedUrlId parameter? 
I am not sarcastic, I only want that you understand the problem.
RestFaces doens't re-invent the web, only make it easy, for JSF deverloper,
to write bookmarkable pages.
So, the question is, how would you implement your link without RestFaces? 
Post the server-side code accomplishing your problem. Then we'll try to
re-implement in RestFaces.


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

Reply via email to