Form disappearing in Widget and CJuiDialog


I have created a widget for displaying CJuiDialog, the view code for this widget is:




<div class="imageBox">

	<div class="title">

	<?php echo $this->title; ?>


		<?php echo CHtml::link('[update]','#',array( 'onclick'=>'$("#shopPictureChangeWidget_image'.$this->imageNumber.'").dialog("open"); return false;')); ?>


	<div class="galImage">


	if (isset($images[$this->imageNumber])) {

		echo Html::galleryImage($images[$this->imageNumber], "gallery", "Bild ".$nr);

	} else {

		echo "Keine Bild.";





	<?php $this->endWidget('zii.widgets.CPortlet'); ?>


	$this->beginWidget('zii.widgets.jui.CJuiDialog', array(

     'id'=>'shopPictureChangeWidget_image' . $this->imageNumber,









<?php echo CHtml::beginForm(Yii::app()->createUrl('/internal/shop/picture',array('id'=> $this->model->id, 'imageNumber' => $this->imageNumber))); ?>


	<?php echo CHtml::fileField('imageNumber', $this->imageNumber); ?>



	<label>Bild loschen?</label>

	<?php echo CHtml::checkBox('delete');?>


	<?php echo CHtml::submitButton('Submit'); ?>

	<?php echo CHtml::endForm(); ?>

<?php $this->endWidget('zii.widgets.jui.CJuiDialog'); ?>

Now, when I look in the source of the page, the form is renderred correctly and displayed in the dialog window.

The problem is that the form is unsubmittable.

I’ve checked with Firebug, and it seems that the jquery (?) is removing <form> tags.

I’ve even tried putting:

<input type="submit" onclick="alert();" />

This doesn’t work either, any ideas???


I have the same problem!

unfortunately not. I have done it otherwise. i think that should be submitted as a bug.

this problem has not been solved? yet?

we are alone?


I’m having the same problem …

Can you, please, share how you resolved this issue?