This content has been marked as final.
Show 3 replies
-
1. Re: Why doesn't this h:message work for the h:selectOneMenu?
pmuir Jul 3, 2007 6:27 PM (in response to grettke_spdr)Whats the message (aka where is it originating)
-
2. Re: Why doesn't this h:message work for the h:selectOneMenu?
grettke_spdr Jul 4, 2007 11:15 AM (in response to grettke_spdr)"pete.muir@jboss.org" wrote:
Whats the message (aka where is it originating)
Hi Pete,
I was looking at one approach to doing custom validations, and testing out how the error messages show up. The approach in this system is the "form" and "action" style. I added messages in the action. Here is how it looks:@Name("inspectionSearchAction") @Scope(ScopeType.SESSION) public class InspectionSearchActionImpl implements InspectionSearchAction { @Logger Log log; @In FacesMessages facesMessages; public void search() { try { facesMessages.addToControl("territoryNumber","territoryNumber"); facesMessages.addToControl("riskControlRepNumber","riskControlRepNumber"); facesMessages.addToControl("accountNumber","accountNumber"); facesMessages.addToControl("selectedPriority","selectedPriority"); facesMessages.addToControl("companyName","companyName"); facesMessages.addToControl("selectedState","selectedState"); facesMessages.addToControl("city","city"); facesMessages.addToControl("county","county"); facesMessages.addToControl("zipCode","zipCode"); facesMessages.addToControl("surveyRangeStart","surveyRangeStart"); facesMessages.addToControl("surveyRangeEnd","surveyRangeEnd"); facesMessages.addToControl("inspectionCompleteRangeStart","inspectionCompleteRangeStart"); facesMessages.addToControl("inspectionCompleteRangeEnd","inspectionCompleteRangeEnd"); } catch (Exception e) { log.error(e); } } }
-
3. Re: Why doesn't this h:message work for the h:selectOneMenu?
grettke_spdr Jul 6, 2007 12:11 PM (in response to grettke_spdr)I could not reproduce this!