|
Can u pls try to narrow down the problem ? In the sense,
try to figure out which module (sandbox or jsf-comp) is not behaving properly.
Just change the validation to normal jsf required validation and see whether
sandbox is working properly.
-- Kannan. From: Madhav Bhargava [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 07, 2006 5:09 PM To: MyFaces Discussion Subject: RE: client side validations I tried using the following
combination: Client validators defined in http://jsf-comp.sourceforge.net/components/clientvalidators/index.html
+ sandbox subForm component to do partial client side
validations. It did not work!!!
Code
snippet: <s:subForm
id="demogrphicMain">
<t:inputText
id="txtLastName"
forceId="true"
value="#{addUserWizardBean.wizard.demographicCaptureState.lastName}">
</t:inputText>
<cv:requiredFieldValidator
componentToValidate="txtLastName"
highlight="true"
display="dynamic"/> </s:subForm> <s:subForm
id="addressSubForm"> <t:panelGroup>
<t:outputText
value="#{msg['label.demographicdetails.address-1']}"
styleClass="outputLabelText"></t:outputText>
<f:verbatim>
<font
color="red">* </font>
</f:verbatim>
</t:panelGroup>
<t:panelGroup>
<t:inputText
id="txtAddressLine1"
forceId="true"
size="60">
</t:inputText>
<cv:requiredFieldValidator
componentToValidate="txtAddressLine1"
display="dyamic"
highlight="true"/>
</t:panelGroup> </s:subForm> <t:panelGrid
align="center"
columns="1">
<t:panelGroup>
<t:commandButton
value="#{msg['button.demographicdetails.add-another']}"
action="#{addUserWizardBean.addAddress}" actionFor="addressSubForm"></t:commandButton>
<f:verbatim>  </f:verbatim>
<t:commandButton
value="#{msg['button.demographicdetails.reset']}"></t:commandButton>
</t:panelGroup> </t:panelGrid> <t:panelGrid
align="center"
columns="1">
<t:panelGroup>
<t:commandButton
value="#{msg['button.demographicdetails.proceed']}"
action="#{addUserWizardBean.proceed}" onclick="return validate();" actionFor="demogrphicMain"></t:commandButton>
</t:panelGroup> </t:panelGrid> I haven't worked with
client side validation but the problem that you mentioned can be solved using
sandbox subForm or trinidad subform or by using the OptionalValidator listed in
the MyFaces Wiki. I have used sandbox subForm to solve this problem with server
side validation. --
Kannan. From: Madhav
Bhargava [mailto:[EMAIL PROTECTED] Hi All, MyForm: Currently I am using struts client validator with
Myfaces but this framework does not solve the above mentioned
problem. Googling a bit I found the
following:
I am wondering will any one them solve the problem that
I am facing above. ~madhav
|
- client side validations Madhav Bhargava
- RE: client side validations Kumar, Abhilash (Gok)
- Re: client side validations Jeff Bischoff
- RE: client side validations Madhav Bhargava
- RE: client side validations Kumar, Abhilash (Gok)
- RE: client side validations Madhav Bhargava
- RE: client side validations Madhav Bhargava
- Re: client side validations Jeff Bischoff
- RE: client side validations Madhav Bhargava

