-
1. Re: rich:message/rich:messages
schradermj11 Jan 21, 2008 12:12 AM (in response to schradermj11)I am also seeing a different problem with a4j:support in that tag. I have middle initial and last name tags below the given first name that I posted, when I leave the first name it should only rerender the first name inputText, but it rerenders all 3.
Any ideas for either of these problems? -
2. Re: rich:message/rich:messages
schradermj11 Jan 21, 2008 12:14 AM (in response to schradermj11)By the way, the labels work fine when just using f:loadBundle, but I want ajax support on my pages.
-
3. Re: rich:message/rich:messages
sergeysmirnov Jan 21, 2008 1:38 PM (in response to schradermj11)rich:messages tag, as well as h:messages tag, takes the messages from bundle registered in the faces-config.xml. Why you expect loadBundle should work ?
-
4. Re: rich:message/rich:messages
schradermj11 Jan 21, 2008 10:52 PM (in response to schradermj11)Thank you for responding! Maybe I do not completely understand your comments. My understanding is the messages bundle needs to be configured in faces config as well as loaded on each page. In my faces config I have:
<locale-config>
<default-locale>en_US</default-locale>
<supported-locale>en_US</supported-locale>
</locale-config>
<message-bundle>
web.forwardspin.ddr.bundle.messages
</message-bundle>
Then on each face I have:
<a4j:loadBundle basename="web.forwardspin.ddr.bundle.messages" var="msg" />
So I can do:
<h:outputLabel for="firstName" value="#{msg.firstName}" />
The label shows First Name. But when I validate the page I see:
"firstName": Value is required. Validation Error