Do you have an s:validate tag around your control, or an s:validateAll tag
around multiple controls?
From the reference guide :
anonymous wrote : The only thing here that is specific to Seam is the
s:validateAll tag. This JSF component tells JSF to validate
| all the contained input fields
Yes, actually that's correct I did disable my Validate all (I forgot!!).
HOWEVER if I put it back on I get:
SEVERE: Error Rendering View[/pages/advertisingCampaign/wizard.xhtml]
java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Enum
at
The AdvertType is retreived from this
| public enum AdvertType {
| Lineage (label_ad_type_lineage),
| BannerAd (label_ad_type_banner_ad);
| private final String label;
| AdvertType(String label) {
| this.label = label;
| }
I haven't really gotten into JSF selectors and enums so I don't have a clue.
Ye gads man, 27 pages in one. How about using a nice page flow and individual
pages and save yourself some sanity (maybe)
View the original post :
I wish
I still have lots of other simple pages, but this was the mother of all
pages... what really slows it down is that all the .xhtml, even the stuff
shielded by s:fragment still gets elaborated... so had to set storage to server
!!!
It really DID start as a simple page!
NOTE TO
It's probably because you did set the input field's required attribute to true.
You need required=true in your jsf view component too.
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4043506#4043506
Reply to the post :
I meant: It's probably because you did NOT set the input field's required
attribute to true.
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4043507#4043507
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4043507
This is my .xhtml
| h:inputText id=launchDate
value=#{launchDateStepController.workingObject.startDate} required=true
title=#{messages.hint_launch_date}
| s:convertDateTime pattern=dd/MM/ /
| /h:inputText
| s:selectDate for=launchDate startYear=2007 dateFormat=dd/MM/
|
@CreditCardNumber is also not even known in Seam.
Are all the Hibernate validations etc. supported?
Can we drop in a new jar to catch up?
http://www.hibernate.org/hib_docs/validator/reference/en/html/validator-defineconstraints.html
View the original post :