The problem is, the part that is between the tag prints what I want, i.e.: /my/path?id=1, but the output link's value is /my/path?id={id}. Is it possible to put that id value in the outputLink's value attribute?

@Edit: the whole application is a bit weird: we have a dataTable with some records, the last column hold an image which if you click sets the current row in a bean (which is keppAlive), sets the id param and shows a contextMenu (RichFaces) which has to menuItems: edit and delete. When I hit edit I want to be redirected to the edit page with the id param. The problem is the menuItem has only an action attribute which takes a String where to go, but when it goes there it doesn't change the URL in the browser. That's why I wanted to put the outputLink in the menuItem and drop the action attribute...