Some more suggestions
[1] Is it possible to not render the form until a command
link is clicked or renderer a place-holder instead?
[2] Can you put dummy data in the form?
[3] can use use a validation method in your backing bean
which only tests if a category has been loaded (my
preference).
From: Gregg Bolinger [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 21, 2006 9:49 AM
To: MyFaces Discussion
Subject: Typical Validation Issues
Obviously, the category name is required. But since it is blank when the page loads, and if I click on a category link to view the details, I get a validation error. No surprise. So I change the commandLink immediate="true" and, you guessed it, my model isn't updated so most of the details don't get populated in the form. My commandLink code on my JSP looks like:
<t:commandLink actionListener="#{CategoryAdminBean.editCategory}">
<t:outputText value="#{category.categoryName}" />
<t:updateActionListener
property="#{ CategoryAdminBean.currentCategory}"
value="#{category}" />
</t:commandLink>
I've tried many different suggestions that I found on various different sites including this mailing list. I am not interested in adding yet another dependency to this project as in a 3rd party validation library or the adf:subForm (from what I can tell, this doesn't solve the problem either). But I would like to know what other people did to solve this similar issue, if they solved it.
Thanks.
Gregg

