Form disappearing in Widget and CJuiDialog

Hello,

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




<?php

$this->beginWidget('zii.widgets.CPortlet');

?>


<div class="imageBox">

	<div class="title">

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

		&nbsp;

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

	</div>

	<div class="galImage">

	<?php

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

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

	} else {

		echo "Keine Bild.";

	}

	?>

	</div>

</div>

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


	<?php

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

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

     'options'=>array(

         'autoOpen'=>false,

         'modal'=>false,

         'width'=>'auto',

         'height'=>'auto',


	),

	));

?>




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

<p>

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

</p>

<p>

	<label>Bild loschen?</label>

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

</p>


	<?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???

Help!

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?

\o/

I’m having the same problem …

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