tags:

views:

129

answers:

1

In JSF, in a typical faces-config.xml configuration, what's exactly the difference between from-view-id and from-tree-id tag? And when was the best time to use either?

Any example would be much appreciated.

+1  A: 

I am not familiar with the from-tree-id element; I don't remember it from any previous JSF version.

The element doesn't appear in any of these schemas:

  • http://java.sun.com/dtd/web-facesconfig_1_0.dtd
  • http://java.sun.com/dtd/web-facesconfig_1_1.dtd
  • http://java.sun.com/xml/ns/javaee/web-facesconfig_1_2.xsd
  • http://java.sun.com/xml/ns/javaee/web-facesconfig_2_0.xsd

Check the element isn't in another namespace; it could just be a typo in the tutorial.

McDowell
I believe you're right, McDowell. I've looked at the dtds and they didn't mention anything about `from-tree-id`. But I checked the tutorial again, and it's not a typo though I didn't read the whole tutorial to begin with.
Rhama Arya Wibawa