You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by dfernandez <df...@users.sourceforge.net> on 2009/06/02 12:22:22 UTC

Can I make AjaxFormSubmitBehavior submit raw form data but not validate it?


Hello,

I have a form with a DropDownChoice, on which "onchange" event I want to
update some form components. But I need to read data from other fields of
the form for doing so, and so I added an AjaxFormSubmitBehavior to the
DropDownChoice.

My intention is to read the data from the drop down and from the other
fields, and depending on these data, update some other components... but the
problem is that AjaxFormSubmitBehavior not only sends the form data, but
also *validates it*, which I don't want (I don't want validation messages to
appear when changing the value of the drop down).

If it where an AjaxButton I would be able to just
setDefaultFormProcessing(false), but I don't see anything like that in
AjaxFormSubmitBehavior...

Is there a way to do this?

Regards,
Daniel.

-- 
View this message in context: http://www.nabble.com/Can-I-make-AjaxFormSubmitBehavior-submit-raw-form-data-but-not-validate-it--tp23829661p23829661.html
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Can I make AjaxFormSubmitBehavior submit raw form data but not validate it?

Posted by dfernandez <df...@users.sourceforge.net>.

Sorry, wrong users list! :-(


dfernandez wrote:
> 
> 
> Hello,
> 
> I have a form with a DropDownChoice, on which "onchange" event I want to
> update some form components. But I need to read data from other fields of
> the form for doing so, and so I added an AjaxFormSubmitBehavior to the
> DropDownChoice.
> 
> My intention is to read the data from the drop down and from the other
> fields, and depending on these data, update some other components... but
> the problem is that AjaxFormSubmitBehavior not only sends the form data,
> but also *validates it*, which I don't want (I don't want validation
> messages to appear when changing the value of the drop down).
> 
> If it where an AjaxButton I would be able to just
> setDefaultFormProcessing(false), but I don't see anything like that in
> AjaxFormSubmitBehavior...
> 
> Is there a way to do this?
> 
> Regards,
> Daniel.
> 
> 

-- 
View this message in context: http://www.nabble.com/Can-I-make-AjaxFormSubmitBehavior-submit-raw-form-data-but-not-validate-it--tp23829661p23830309.html
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


RE: Can I make AjaxFormSubmitBehavior submit raw form data but not validate it?

Posted by Martin Gainty <mg...@hotmail.com>.
http://struts.apache.org/2.x/docs/autocompleter.html
<form id="selectForm">
     <sx:autocompleter  name="select" list="{'fruits','colors'}" forceValidOption="false" loadOnTextChange="false" valueNotifyTopics="/changed" </form>  
<!-- second autocompleter listens and populates based on change topic event -->
<sx:autocompleter  href="%{jsonList}" formId="selectForm" forceValidOption="false" listenTopics="/changed"/>dont know if jsf has a dropdown component
does this help?
Martin Gainty 
______________________________________________ 
Jogi és Bizalmassági kinyilatkoztatás/Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
 Ez az
üzenet bizalmas.  Ha nem ön az akinek szánva volt, akkor kérjük, hogy
jelentse azt nekünk vissza. Semmiféle továbbítása vagy másolatának
készítése nem megengedett.  Ez az üzenet csak ismeret cserét szolgál és
semmiféle jogi alkalmazhatósága sincs.  Mivel az electronikus üzenetek
könnyen megváltoztathatóak, ezért minket semmi felelöség nem terhelhet
ezen üzenet tartalma miatt.

Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni.




> Date: Tue, 2 Jun 2009 03:22:22 -0700
> From: dfernandez@users.sourceforge.net
> To: users@maven.apache.org
> Subject: Can I make AjaxFormSubmitBehavior submit raw form data but not validate it?
> 
> 
> 
> Hello,
> 
> I have a form with a DropDownChoice, on which "onchange" event I want to
> update some form components. But I need to read data from other fields of
> the form for doing so, and so I added an AjaxFormSubmitBehavior to the
> DropDownChoice.
> 
> My intention is to read the data from the drop down and from the other
> fields, and depending on these data, update some other components... but the
> problem is that AjaxFormSubmitBehavior not only sends the form data, but
> also *validates it*, which I don't want (I don't want validation messages to
> appear when changing the value of the drop down).
> 
> If it where an AjaxButton I would be able to just
> setDefaultFormProcessing(false), but I don't see anything like that in
> AjaxFormSubmitBehavior...
> 
> Is there a way to do this?
> 
> Regards,
> Daniel.
> 
> -- 
> View this message in context: http://www.nabble.com/Can-I-make-AjaxFormSubmitBehavior-submit-raw-form-data-but-not-validate-it--tp23829661p23829661.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 

_________________________________________________________________
Windows Live™ SkyDrive™: Get 25 GB of free online storage.
http://windowslive.com/online/skydrive?ocid=TXT_TAGLM_WL_SD_25GB_062009