I understand how your example works, but it does not allow a user to
bookmark a page and then return to it later, after their session expires.
For example, category.jsf goes to a page that displays the top level
categories. You choose a category and you go down one level and so on. All
of these pages have the URL ... /category.jsf. When a user bookmarks any of
those category levels they will have the link ... /category.jsf. This will
only take them back to the main category page and not the level and category
they originally bookmarked.
This may be a bad example, but this situation would also apply to a news
forum site.
> > How do you allow users to bookmark pages and search engines to
> index pages
> > when JSF uses POST? If all my URLs are going to look like:
> >
> > ... /category.jsf
> >
> > and I need them to look like:
> >
> > ... /category.jsf?category=43739
> >
> > I see that you can use a redirect, but how does this help things?
>
> It's possible to inject request parameters into the properties of managed
> beans in the faces-config.xml file using JSF EL:
>
> .
> <value>#{param.category}</value>
> .
>
> It's also possible to add e.g. <f:param name="category" value="43739" />
> as a child of an <h:outputLink> or <h:commandLink> component to set
> request parameters.
>
> Jeremy