Monday, March 05, 2007

Missing Bundle

error in jsf
f:loadbundle basename="#{payslipForm.bundleName}" Can't find bundle for base name
What went wrong?
I added the following code in my jsp file:
...

f:loadbundle var="text" basename="#{payslipForm.bundleName}"

...

edited my message properties (in this case, ApplicationResources.properties)
and added a few lines:
# -- payslipForm --
payslipForm.title=Online Payslip View
payslipForm.heading=My Payslip

What I forgot was the name for my bundle should be the same as the one I declared as my managed bean. Anyways I'm learning..

0 Comments:

Post a Comment

<< Home