Thankyou, for your comments, and yes, the boletinPortlet is in place. the folder structure is:
widgets/boletinPortlet.php
widgets/views/boletinRegistro.php
widgets/views/boletinPortlet.php
I notice if i remove the ‘enableAjaxValidation’=>true, line on the form it works but refreshig the page, i think theres something on the widget render when the calls are with ajax.
So I guess your views has the form code above. It’s risky to have AjaxValidation in the form in a widget view. The reason is your widget is placed in a view which is called by an action. Therefore, you cannot ensure that the widget is the first thing in your view and if so, ajax validation is likely failed.
Form submit
Ajax validation makes an Ajax post
same controller / action handles that post
action doesn’t handle your form because it’s in your widget and therefore it will render the view
only at this moment your widget run
At step 5, if you don’t have the code similar to Yii standard to handle Ajax Validation then the post is step 2 work exactly the same as a real submission. It does go into the if (isset…) and render the view you want. BUT because client is expecting some JSON returned during ajax validation process, this process fails.
Check your database, very likely there are some data saved because this line is executed: [size=2]$boletin[/size][color=#666600][size=2]->[/size][/color][size=2]save [/size][color=#666600]size=2[/size][/color]