2009年2月25日星期三

Re: [fw-mvc] Dijit dialog and zend form

-- mail@roccogalluzzo.com <mail@roccogalluzzo.com> wrote
(on Wednesday, 25 February 2009, 03:08 PM +0100):
> have tried to set a custom dojo form on a dijit.Dialog (have use
> Ajaxcontest to print form without layout), now on dialog window don't
> work dojo tha use for form field.How do to enable dojo on dialog box?

You're not really giving enough detail here.

One thing to be aware of, however, is that dijit.Dialogs are appended to
the <body> node -- which means that the <body> tag needs to have a class
attribute specifying the dijit them you're using in order for the dialog
-- and its contents -- to be styled correctly.

Second, when you're returning a form with dijits via XHR, then you need
to use declarative markup when generating the form -- programmatic
markup will not work. You can enable this easily in your view script:

Zend_Dojo_View_Helper_Dojo::setUseDeclarative(true);

--
Matthew Weier O'Phinney
Software Architect | matthew@zend.com
Zend Framework | http://framework.zend.com/

没有评论: