Re: [fw-general] Dojo view helper in incubator and ready for testing

2008-07-08 Thread Matthew Weier O'Phinney
-- Ron Dyck <[EMAIL PROTECTED]> wrote
(on Tuesday, 08 July 2008, 01:43 PM -0400):
> On Tue, Jul 8, 2008 at 12:02 PM, Matthew Weier O'Phinney <[EMAIL PROTECTED]>
> wrote:
> 
> 
> If I finish early enough this week, I'd like to tackle that and the
> ColorPalette dijit. They differ enough from the other dijits, however,
> that I decided to skip them for the time being.
> 
> 
> I've been working with the dojoType dijit.form.ValidationTextBox widget
> 
> The problem I've found is that the 'required' property is not passed thru to
> the ValidationTextBox object.
> For example:
> $userName = $form->createElement('text', 'userName', array('label'  =>
> 'Username',
>'dojoType'
> => 'dijit.form.ValidationTextBox',
>'required'
> => "true")
> 
> In the above example the 'required' option is picked up by the Zend Form, but
> not passed to dojo as it would be with:

The form elements are entirely incomplete at this time -- they're little
more than placeholders at this time. I will likely complete them later
today or sometime tomorrow, and will announce to the lists when they are
ready to test.

And yes, the plan is to pass the 'required' status to the
decorators/view helpers.

> dojoType="dijit.form.ValidationTextBox"
>required="true"
> />

-- 
Matthew Weier O'Phinney
Software Architect   | [EMAIL PROTECTED]
Zend Framework   | http://framework.zend.com/


Re: [fw-general] Dojo view helper in incubator and ready for testing

2008-07-08 Thread Ron Dyck
On Tue, Jul 8, 2008 at 12:02 PM, Matthew Weier O'Phinney <[EMAIL PROTECTED]>
wrote:

If I finish early enough this week, I'd like to tackle that and the
> ColorPalette dijit. They differ enough from the other dijits, however,
> that I decided to skip them for the time being.
>

I've been working with the dojoType dijit.form.ValidationTextBox widget

The problem I've found is that the 'required' property is not passed thru to
the ValidationTextBox object.
For example:
$userName = $form->createElement('text', 'userName', array('label'  =>
'Username',

'dojoType' => 'dijit.form.ValidationTextBox',

'required' => "true")

In the above example the 'required' option is picked up by the Zend Form,
but not passed to dojo as it would be with:


=
Ron Dyck
[EMAIL PROTECTED]
www.webbtech.net
=


Re: [fw-general] Dojo view helper in incubator and ready for testing

2008-07-08 Thread Matthew Weier O'Phinney
-- Justin Hendrickson <[EMAIL PROTECTED]> wrote
(on Tuesday, 08 July 2008, 10:28 AM -0500):
> On a separate note, are their plans for a view helper for the Dijit.Editor
> widget? I was playing around with it last week and noticed a problem with
> submitting data from a Dijit.Editor (it appears to remove the  from
> the form) and I was wondering if/how you were going to handle that.

If I finish early enough this week, I'd like to tackle that and the
ColorPalette dijit. They differ enough from the other dijits, however,
that I decided to skip them for the time being.


> On Tue, Jul 8, 2008 at 10:19 AM, Matthew Weier O'Phinney <[EMAIL PROTECTED]>
> wrote:
> 
> -- Justin Hendrickson <[EMAIL PROTECTED]> wrote
> (on Tuesday, 08 July 2008, 10:12 AM -0500):
> > I'm pretty sure the problem is that you're trying to use Zend_Form with
> the new
> > Dojo view helpers. Zend_Form_Decorator_Form is expecting to call
> > Zend_View_Helper_Form::form() and when you add the Dojo helpers in,
> > Zend_Form_Decorator_Form calls Zend_Dojo_View_Helper_Form::form(), which
> has a
> > different signature.
> >
> > If you want to use Zend_Form with the new Zend_Dojo stuff, you can 
> delete
> > Zend_Dojo_View_Helper_Form or wait until the form stuff has been
> addressed.
> 
> Correct -- the dojo elements and decorators are incomplete at this time.
> I should have them working later today. (I was under the impression he
> was using just view helpers, and hence my original answer.)
> 
> > On Tue, Jul 8, 2008 at 8:33 AM, Matthew Weier O'Phinney <[EMAIL 
> PROTECTED]
> >
> > wrote:
> >
> > -- philip142au <[EMAIL PROTECTED]> wrote
> > (on Tuesday, 08 July 2008, 06:14 AM -0700):
> > > Or can you suggest a setup of what version of ZF and what version
> of
> > > incubator files works?
> >
> > Current incubator works, but until the code is pushed to
> > standard/library, the API may be in flux.

-- 
Matthew Weier O'Phinney
Software Architect   | [EMAIL PROTECTED]
Zend Framework   | http://framework.zend.com/


Re: [fw-general] Dojo view helper in incubator and ready for testing

2008-07-08 Thread Justin Hendrickson
On a separate note, are their plans for a view helper for the Dijit.Editor
widget? I was playing around with it last week and noticed a problem with
submitting data from a Dijit.Editor (it appears to remove the 
from the form) and I was wondering if/how you were going to handle that.

On Tue, Jul 8, 2008 at 10:19 AM, Matthew Weier O'Phinney <[EMAIL PROTECTED]>
wrote:

> -- Justin Hendrickson <[EMAIL PROTECTED]> wrote
> (on Tuesday, 08 July 2008, 10:12 AM -0500):
> > I'm pretty sure the problem is that you're trying to use Zend_Form with
> the new
> > Dojo view helpers. Zend_Form_Decorator_Form is expecting to call
> > Zend_View_Helper_Form::form() and when you add the Dojo helpers in,
> > Zend_Form_Decorator_Form calls Zend_Dojo_View_Helper_Form::form(), which
> has a
> > different signature.
> >
> > If you want to use Zend_Form with the new Zend_Dojo stuff, you can delete
> > Zend_Dojo_View_Helper_Form or wait until the form stuff has been
> addressed.
>
> Correct -- the dojo elements and decorators are incomplete at this time.
> I should have them working later today. (I was under the impression he
> was using just view helpers, and hence my original answer.)
>
> > On Tue, Jul 8, 2008 at 8:33 AM, Matthew Weier O'Phinney <
> [EMAIL PROTECTED]>
> > wrote:
> >
> > -- philip142au <[EMAIL PROTECTED]> wrote
> > (on Tuesday, 08 July 2008, 06:14 AM -0700):
> > > Or can you suggest a setup of what version of ZF and what version
> of
> > > incubator files works?
> >
> > Current incubator works, but until the code is pushed to
> > standard/library, the API may be in flux.
>
> --
> Matthew Weier O'Phinney
> Software Architect   | [EMAIL PROTECTED]
> Zend Framework   | http://framework.zend.com/
>


Re: [fw-general] Dojo view helper in incubator and ready for testing

2008-07-08 Thread Matthew Weier O'Phinney
-- Justin Hendrickson <[EMAIL PROTECTED]> wrote
(on Tuesday, 08 July 2008, 10:12 AM -0500):
> I'm pretty sure the problem is that you're trying to use Zend_Form with the 
> new
> Dojo view helpers. Zend_Form_Decorator_Form is expecting to call
> Zend_View_Helper_Form::form() and when you add the Dojo helpers in,
> Zend_Form_Decorator_Form calls Zend_Dojo_View_Helper_Form::form(), which has a
> different signature.
> 
> If you want to use Zend_Form with the new Zend_Dojo stuff, you can delete
> Zend_Dojo_View_Helper_Form or wait until the form stuff has been addressed.

Correct -- the dojo elements and decorators are incomplete at this time.
I should have them working later today. (I was under the impression he
was using just view helpers, and hence my original answer.)

> On Tue, Jul 8, 2008 at 8:33 AM, Matthew Weier O'Phinney <[EMAIL PROTECTED]>
> wrote:
> 
> -- philip142au <[EMAIL PROTECTED]> wrote
> (on Tuesday, 08 July 2008, 06:14 AM -0700):
> > Or can you suggest a setup of what version of ZF and what version of
> > incubator files works?
> 
> Current incubator works, but until the code is pushed to
> standard/library, the API may be in flux.

-- 
Matthew Weier O'Phinney
Software Architect   | [EMAIL PROTECTED]
Zend Framework   | http://framework.zend.com/


Re: [fw-general] Dojo view helper in incubator and ready for testing

2008-07-08 Thread Justin Hendrickson
I'm pretty sure the problem is that you're trying to use Zend_Form with the
new Dojo view helpers. Zend_Form_Decorator_Form is expecting to call
Zend_View_Helper_Form::form() and when you add the Dojo helpers in,
Zend_Form_Decorator_Form calls Zend_Dojo_View_Helper_Form::form(), which has
a different signature.

If you want to use Zend_Form with the new Zend_Dojo stuff, you can delete
Zend_Dojo_View_Helper_Form or wait until the form stuff has been addressed.

On Tue, Jul 8, 2008 at 8:33 AM, Matthew Weier O'Phinney <[EMAIL PROTECTED]>
wrote:

> -- philip142au <[EMAIL PROTECTED]> wrote
> (on Tuesday, 08 July 2008, 06:14 AM -0700):
> > Or can you suggest a setup of what version of ZF and what version of
> > incubator files works?
>
> Current incubator works, but until the code is pushed to
> standard/library, the API may be in flux.
>
> --
> Matthew Weier O'Phinney
> Software Architect   | [EMAIL PROTECTED]
> Zend Framework   | http://framework.zend.com/
>


Re: [fw-general] Dojo view helper in incubator and ready for testing

2008-07-08 Thread Matthew Weier O'Phinney
-- philip142au <[EMAIL PROTECTED]> wrote
(on Tuesday, 08 July 2008, 06:14 AM -0700):
> Or can you suggest a setup of what version of ZF and what version of
> incubator files works?

Current incubator works, but until the code is pushed to
standard/library, the API may be in flux.

-- 
Matthew Weier O'Phinney
Software Architect   | [EMAIL PROTECTED]
Zend Framework   | http://framework.zend.com/


Re: [fw-general] Dojo view helper in incubator and ready for testing

2008-07-08 Thread philip142au


Or can you suggest a setup of what version of ZF and what version of
incubator files works?


-- 
View this message in context: 
http://www.nabble.com/Dojo-view-helper-in-incubator-and-ready-for-testing-tp18079629p18338971.html
Sent from the Zend Framework mailing list archive at Nabble.com.



Re: [fw-general] Dojo view helper in incubator and ready for testing

2008-07-08 Thread Matthew Weier O'Phinney
-- philip142au <[EMAIL PROTECTED]> wrote
(on Tuesday, 08 July 2008, 04:39 AM -0700):
> 
> 
> Hi! ok I tried to use this, I want to use the form elements from Dojo.
> 
> So I just copy it in and do the add helper path as you said and it gives me.
> 
> Catchable fatal error: Argument 3 passed to
> Zend_Dojo_View_Helper_Form::form() must be an array, string given in
> /projects/backup/phptaco/src/library/Zend/Dojo/View/Helper/Form.php on line
> 77
> 
> Wha?
> 
> Any idea?

Yes -- look at the method signature for the helper, as it differs from
the standard form view helper:

   * dijit.form.Form version:
 public function form($id, $content, array $attribs) 

   * standard version:
 public function form($name, $attribs = null, $content = false) 

I may change the dijit version to conform to the standard version to
prevent gotchas like this; in the meantime, the above should help you
figure out what you need to do.

Also, please be aware that the Dojo stuff is under active development
right now, which means that APIs may change; don't use this in
production!

> Matthew Weier O'Phinney-3 wrote:
> > 
> > I've committed the initial implementation of the Dojo view helper to the
> > standard/incubator/ of our svn repository:
> > 
> > http://framework.zend.com/svn/framework/standard/incubator/
> > 
> > If you utilize it, you will need to do two things:
> > 
> >   * Add the incubator library to your include_path
> >   * Add a helper path to your view object:
> > $view->addHelperPath(
> > 'path/to/incubator/library/Zend/Dojo/View/Helper',
> > 'Zend_Dojo_View_Helper'
> > );
> > 
> > Once those steps are in place, you can setup most aspects of your Dojo
> > environment, including:
> > 
> >   * Specifying either an (aol-only for now) CDN location or local path
> > to dojo.js
> >   * Specifying dojo module paths
> >   * Specifying dojo.require statements
> >   * Specifying addOnLoad() callbacks
> > * Capturing arbitrary lambdas for addOnLoad
> >   * Specifying stylesheets (either by module or path to stylesheets)
> > 
> > In the end, in your layout view script, simply do the following:
> > 
> > dojo() ?>
> > 
> > There are some known issues:
> > 
> >   * No persistence between view objects
> >   * Does not currently output arbitrary local stylesheets
> > 
> > I will be addressing these two issues tomorow, and then working on
> > documentation for the component.
> > 
> > Please test; feedback is always welcome!
> > 
> > Also, if you have time and are interested in the Dojo integration,
> > please review and comment on the following proposals:
> > 
> > * Zend_Form Dojo elements/decorators:
> >   http://framework.zend.com/wiki/display/ZFPROP/Dojo+Zend_Form+Widgets
> > 
> > * dojo.data component for ZF:
> >  
> > http://framework.zend.com/wiki/display/ZFPROP/Zend_Dojo_Data+-+Matthew+Weier+O%27Phinney
> > 
> > Thanks!
> > 
> > -- 
> > Matthew Weier O'Phinney
> > Software Architect   | [EMAIL PROTECTED]
> > Zend Framework   | http://framework.zend.com/
> > 
> > 
> 
> -- 
> View this message in context: 
> http://www.nabble.com/Dojo-view-helper-in-incubator-and-ready-for-testing-tp18079629p18337147.html
> Sent from the Zend Framework mailing list archive at Nabble.com.
> 

-- 
Matthew Weier O'Phinney
Software Architect   | [EMAIL PROTECTED]
Zend Framework   | http://framework.zend.com/


Re: [fw-general] Dojo view helper in incubator and ready for testing

2008-07-08 Thread philip142au


Hi! ok I tried to use this, I want to use the form elements from Dojo.

So I just copy it in and do the add helper path as you said and it gives me.

Catchable fatal error: Argument 3 passed to
Zend_Dojo_View_Helper_Form::form() must be an array, string given in
/projects/backup/phptaco/src/library/Zend/Dojo/View/Helper/Form.php on line
77

Wha?

Any idea?

Thanks, Philip



Matthew Weier O'Phinney-3 wrote:
> 
> I've committed the initial implementation of the Dojo view helper to the
> standard/incubator/ of our svn repository:
> 
> http://framework.zend.com/svn/framework/standard/incubator/
> 
> If you utilize it, you will need to do two things:
> 
>   * Add the incubator library to your include_path
>   * Add a helper path to your view object:
> $view->addHelperPath(
> 'path/to/incubator/library/Zend/Dojo/View/Helper',
> 'Zend_Dojo_View_Helper'
> );
> 
> Once those steps are in place, you can setup most aspects of your Dojo
> environment, including:
> 
>   * Specifying either an (aol-only for now) CDN location or local path
> to dojo.js
>   * Specifying dojo module paths
>   * Specifying dojo.require statements
>   * Specifying addOnLoad() callbacks
> * Capturing arbitrary lambdas for addOnLoad
>   * Specifying stylesheets (either by module or path to stylesheets)
> 
> In the end, in your layout view script, simply do the following:
> 
> dojo() ?>
> 
> There are some known issues:
> 
>   * No persistence between view objects
>   * Does not currently output arbitrary local stylesheets
> 
> I will be addressing these two issues tomorow, and then working on
> documentation for the component.
> 
> Please test; feedback is always welcome!
> 
> Also, if you have time and are interested in the Dojo integration,
> please review and comment on the following proposals:
> 
> * Zend_Form Dojo elements/decorators:
>   http://framework.zend.com/wiki/display/ZFPROP/Dojo+Zend_Form+Widgets
> 
> * dojo.data component for ZF:
>  
> http://framework.zend.com/wiki/display/ZFPROP/Zend_Dojo_Data+-+Matthew+Weier+O%27Phinney
> 
> Thanks!
> 
> -- 
> Matthew Weier O'Phinney
> Software Architect   | [EMAIL PROTECTED]
> Zend Framework   | http://framework.zend.com/
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Dojo-view-helper-in-incubator-and-ready-for-testing-tp18079629p18337147.html
Sent from the Zend Framework mailing list archive at Nabble.com.



Re: [fw-general] Dojo view helper in incubator and ready for testing

2008-06-24 Thread Matthew Weier O'Phinney
As a followup, the implementation is now feature complete and
documented. If you're interested and have the time to test, well, as
they say, "many eyes makes all bugs shallow."

Thanks!

-- Matthew Weier O'Phinney <[EMAIL PROTECTED]> wrote
(on Monday, 23 June 2008, 06:05 PM -0400):
> I've committed the initial implementation of the Dojo view helper to the
> standard/incubator/ of our svn repository:
> 
> http://framework.zend.com/svn/framework/standard/incubator/
> 
> If you utilize it, you will need to do two things:
> 
>   * Add the incubator library to your include_path
>   * Add a helper path to your view object:
> $view->addHelperPath(
> 'path/to/incubator/library/Zend/Dojo/View/Helper',
> 'Zend_Dojo_View_Helper'
> );
> 
> Once those steps are in place, you can setup most aspects of your Dojo
> environment, including:
> 
>   * Specifying either an (aol-only for now) CDN location or local path
> to dojo.js
>   * Specifying dojo module paths
>   * Specifying dojo.require statements
>   * Specifying addOnLoad() callbacks
> * Capturing arbitrary lambdas for addOnLoad
>   * Specifying stylesheets (either by module or path to stylesheets)
> 
> In the end, in your layout view script, simply do the following:
> 
> dojo() ?>
> 
> There are some known issues:
> 
>   * No persistence between view objects
>   * Does not currently output arbitrary local stylesheets
> 
> I will be addressing these two issues tomorow, and then working on
> documentation for the component.
> 
> Please test; feedback is always welcome!
> 
> Also, if you have time and are interested in the Dojo integration,
> please review and comment on the following proposals:
> 
> * Zend_Form Dojo elements/decorators:
>   http://framework.zend.com/wiki/display/ZFPROP/Dojo+Zend_Form+Widgets
> 
> * dojo.data component for ZF:
>   
> http://framework.zend.com/wiki/display/ZFPROP/Zend_Dojo_Data+-+Matthew+Weier+O%27Phinney
> 
> Thanks!

-- 
Matthew Weier O'Phinney
Software Architect   | [EMAIL PROTECTED]
Zend Framework   | http://framework.zend.com/


[fw-general] Dojo view helper in incubator and ready for testing

2008-06-23 Thread Matthew Weier O'Phinney
I've committed the initial implementation of the Dojo view helper to the
standard/incubator/ of our svn repository:

http://framework.zend.com/svn/framework/standard/incubator/

If you utilize it, you will need to do two things:

  * Add the incubator library to your include_path
  * Add a helper path to your view object:
$view->addHelperPath(
'path/to/incubator/library/Zend/Dojo/View/Helper',
'Zend_Dojo_View_Helper'
);

Once those steps are in place, you can setup most aspects of your Dojo
environment, including:

  * Specifying either an (aol-only for now) CDN location or local path
to dojo.js
  * Specifying dojo module paths
  * Specifying dojo.require statements
  * Specifying addOnLoad() callbacks
* Capturing arbitrary lambdas for addOnLoad
  * Specifying stylesheets (either by module or path to stylesheets)

In the end, in your layout view script, simply do the following:

dojo() ?>

There are some known issues:

  * No persistence between view objects
  * Does not currently output arbitrary local stylesheets

I will be addressing these two issues tomorow, and then working on
documentation for the component.

Please test; feedback is always welcome!

Also, if you have time and are interested in the Dojo integration,
please review and comment on the following proposals:

* Zend_Form Dojo elements/decorators:
  http://framework.zend.com/wiki/display/ZFPROP/Dojo+Zend_Form+Widgets

* dojo.data component for ZF:
  
http://framework.zend.com/wiki/display/ZFPROP/Zend_Dojo_Data+-+Matthew+Weier+O%27Phinney

Thanks!

-- 
Matthew Weier O'Phinney
Software Architect   | [EMAIL PROTECTED]
Zend Framework   | http://framework.zend.com/