September 2006
Intermediate to advanced
562 pages
18h 33m
English
You can retrieve messages from the message bundle without writing Java code by using a JSF component, f:loadBundle; this component creates a token (variable) that represents all messages and you can access this token in EL expressions. The following steps demonstrate how this method works.
1. In the home.jsp file, drag LoadBundle from the JSF Core page of the Component Palette on top of the f:view node of the Structure window.
2. In the Insert LoadBundle dialog, click “…” next to the Basename field. Select the Properties File option, and the dialog will change to a file browser display.
3. Navigate to the ..\ViewController\resources directory, and select “Messages.properties.” Click OK. ...
Read now
Unlock full access