Documentation error
-------------------
Key: TRINIDAD-1248
URL: https://issues.apache.org/jira/browse/TRINIDAD-1248
Project: MyFaces Trinidad
Issue Type: Improvement
Components: Documentation
Affects Versions: 1.2.9-core
Environment: Any
Reporter: Christopher Biggs
Priority: Minor
The on-line development quide for XMLMenuModel has some painful errors for the
new JSF user/developer. (See
http://myfaces.apache.org/trinidad/devguide/xmlMenuModel.html)
Firstly there is the error:
<?xml version="1.0" encoding="iso-8859-1"?>
<menu xmlns:"http://myfaces.apache.org/trinidad/menu">
I think(!) this should read:
<?xml version="1.0" encoding="iso-8859-1"?>
<menu xmlns="http://myfaces.apache.org/trinidad/menu">
Secondly, (and the one that kept me busy for some time) is:
<!-- managed bean menu model -->
<managed-bean>
<managed-bean-name>root_menu</managed-bean-name>
<managed-bean-class>org.apache.myfaces.trinidad.model.XMLMenuModel</managed-bean-class>
<managed-bean-scope>request</managed-bean-scope>
<managed-attribute>
<attribute-name>source</attribute-name>
<value>/WEB-INF/menu-metadata.xml</value>
</managed-attribute>
</managed-bean>
This should read:
<!-- managed bean menu model -->
<managed-bean>
<managed-bean-name>root_menu</managed-bean-name>
<managed-bean-class>org.apache.myfaces.trinidad.model.XMLMenuModel</managed-bean-class>
<managed-bean-scope>request</managed-bean-scope>
<managed-property>
<property-name>source</property-name>
<value>/WEB-INF/menu-metadata.xml</value>
</managed-property>
</managed-bean>
Simple to fix - difficult for the newbie to resolve.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.