you could try sandbox subForm component for partial validation,
here<http://www.irian.at/myfaces-sandbox/subForm.jsf>is an example..

regards....

On 4/15/07, Bjørn T Johansen <[EMAIL PROTECTED]> wrote:

That sound like a good idea but I still get the same error (Input value is
required)... I have the following radio button code..:

<h:selectOneRadio value="#{orderBean.ordre.logFortrykk.mottattDokumentS}">
         <f:selectItem itemLabel="OK" itemValue="Yes"/>
         <f:selectItem itemLabel="Ikke OK" itemValue="No"/>
         <s:submitOnEvent for="btnSubmit" event="click" />
</h:selectOneRadio>

And text field...:

<h:inputTextarea cols="100" rows="7" required="#{
orderBean.ordre.logFortrykk.mottattDokumentS == 'No'}" ... />


But when I click the OK radiobutton, it still complains about the required
field


BTJ

On Sun, 15 Apr 2007 10:43:04 -0500
"Qunming Yuan \(Saul\)" <[EMAIL PROTECTED]> wrote:

> Hi,
>
> Just a thought, can you dynamically control the requiredness of your
text field base on the choice of your radio button,
> something like:
>
> required="${backingBean.radiobuttonValue}"
>
> This way whether the text box is render or required is in sync with the
choice of your radio button.
>
>
> Saul
>
>   ----- Original Message -----
>   From: Bjørn T Johansen
>   To: [EMAIL PROTECTED]
>   Sent: Sunday, April 15, 2007 10:23 AM
>   Subject: required=true?
>
>
>   I have small problem and I was wondering how people get around this...
>
>   I have a radiobutton with yes or no as the two choices that decides if
a text field should be rendered or not (choosing yes
> or no will submit the page)... Also if this text field is rendered, it
is a mandatory field and need some input..
>
>   If I use required = true on the text field, then when the text field
is rendered and I choose the other choice of the
>   radiobuttons (that would hide the text field again), I get an error
saying that an input is required in the text field (which
> is normally correct but not this time, because I am just trying to hide
the text field again)
>   If I use immediate = true, then the value of the radiobutton is not
set and the text field is never rendered...
>
>
>   I guess this is a normal problem but not sure how to best solve this?
>
>
>   Regards,
>
>   BTJ
>
>   --
>
-----------------------------------------------------------------------------------------------
>   Bjørn T Johansen
>
>   [EMAIL PROTECTED]
>
-----------------------------------------------------------------------------------------------
>   Someone wrote:
>   "I understand that if you play a Windows CD backwards you hear strange
Satanic messages"
>   To which someone replied:
>   "It's even worse than that; play it forwards and it installs Windows"
>
-----------------------------------------------------------------------------------------------
>
>   --------------------------------
>   Spam/Virus scanning by CanIt Pro
>
>   For more information see
>   http://www.kgbinternet.com/SpamFilter.htm
>
>   To control your spam filter, log in at
>   http://filter.kgbinternet.com
>
>
>
>
>   E-mail message checked by PC Tools Spyware Doctor (5.0.0.179)
>   Database version: 5.07080
>   http://www.pctools.com/spyware-doctor/
>
>
>
> E-mail message checked by PC Tools Spyware Doctor (5.0.0.179)
> Database version: 5.07080
> http://www.pctools.com/spyware-doctor/




--
Murat HAZER
http://www.projedunyasi.org

Reply via email to