-- dele454 <[email protected]> wrote
(on Monday, 22 December 2008, 10:28 PM -0800):
> Ok i do understand the theory behind these explanations but it still doesnt
> click to me. I know yes the programmatic style is to allow one's doc to be
> parsed by the validator because of the dijit specific attributes when
> compared to the declarative.
>
> But if javascript is going to do the inserts (parameters) why then isnt this
> textbox the same in look and feel with that of the first one? Sorry if i
> sound naive but i need a practical explanation as to why.
>
> I need to make it behave like the declarative view below:
>
> http://www.nabble.com/file/p21140240/show.gif
They *should* be the same, and when I run tests locally, everything *is*
the same when I use declarative *or* programmatic generation. Can you
please give us some code snippets showing the code *YOU* are attempting
to use? Right now, all I'm going on is a description; I have nothing
concrete to test.
With Zend_Dojo, the difference between the two is simply that if you
want declarative generation, you tell the dojo() view helper that's what
you want:
Zend_Dojo_View_Helper_Dojo::setUseDeclarative();
By default, programmatic generation will be performed. Additionally,
I need to know how you're creating the dijits -- are you using view
helpers? or form elements? If using view helpers, how are you passing
arguments to the dijit? In short, I need the minimum amount of code
needed to reproduce the problems you're seeing.
--
Matthew Weier O'Phinney
Software Architect | [email protected]
Zend Framework | http://framework.zend.com/