PDA

View Full Version : ext dialog with just standard html form inside?



snod0g
18 Apr 2007, 2:53 PM
i am using JSF/Ajax4JSF server side tags for all my form fields and buttons.

the question is how can i take the form and stick it inside an ext dialog?

so far i've tried just surrounding all my server side tags with a <div id="my-dlg"> but when i render the dialog its blank and none of my fields/buttons show up :(

any ideas?

loukili
12 Jul 2007, 6:15 AM
show us you code

BernardChhun
12 Jul 2007, 6:43 AM
write your form into the dialog's body element:



// create your dialog
var foolog = new Ext{...};
foolog.body.update("<form>foo</form>");

loukili
26 Jul 2007, 5:47 AM
take a look at Lilya Jsf Widgets and ajax Capabilities (based on ExtJs and JsGraphics)
http://qlogic.ma/lilya

26 Jul 2007, 7:00 AM
i am using JSF/Ajax4JSF server side tags for all my form fields and buttons.

the question is how can i take the form and stick it inside an ext dialog?

so far i've tried just surrounding all my server side tags with a <div id="my-dlg"> but when i render the dialog its blank and none of my fields/buttons show up :(

any ideas?


it's incredibly easy, put it in the body



<div id="myDialog" style="visibility:hidden;position:absolute;top:0px;">
<div class="x-dlg-hd">Dialog Header</div>
<div class="x-dlg-bd" id="myDialogBody">
<form action="myHtml.html">
<input type="text" value="Input here"></input>
<input type="text" value="Input here"></input>
<input type="text" value="Input here"></input>
</form>

</div>
</div>

[/php]