Hello,

trying the MyFaces examples myfaces-1.0.8-examples.gz, I've noticed it's 
strange navigation:
The URL you see in the browser's address bar has nothing to do with the 
actually displayed JSP. Instead of that, the URL is actually
always pointing to the previously called JSP - where the call to the current 
JSP comes from.

I know where this comes from: The form tags don't define an action - so they 
point to the current page itself.
And I see, what actually defines the target of each call: The (hidden) post 
parameter "_link_hidden_".

So the JSF controller servlet doesn't actually care, which URL is called - it 
just regards the mentioned parameter.
This kind of navigation seems quite confusing to me.

One of the three most important reasons for using JSF is to make navigation 
clearer (besides the model/view seperation and the
provided components).
E.g. defining the whole application's navigation just in xml files, which can 
be used with graphical tools, is a great advantage.

But I think it's most important to have a clear relation between URL of a page 
and it's content. E.g. just think of the
searchability through a search engine.

I'm new to JSF, so my question:
Is this the (one-and-only) navigation concept of JSF, or is this a special 
thing about MyFaces, and there alternative concepts as
well?
(I didn't find any alternatives so far.)

Thanks,
Chily

Reply via email to