IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Zend_Form PHP Discussion :

Créer des widgets Dojo depuis ZF [News]


Sujet :

Zend_Form PHP

  1. #1
    Rédacteur

    Avatar de Yogui
    Homme Profil pro
    Directeur technique
    Inscrit en
    Février 2004
    Messages
    13 721
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Yonne (Bourgogne)

    Informations professionnelles :
    Activité : Directeur technique

    Informations forums :
    Inscription : Février 2004
    Messages : 13 721
    Points : 29 985
    Points
    29 985
    Par défaut Créer des widgets Dojo depuis ZF
    Salut

    Je sais, je suis en retard mais je viens à peine de voir l'annonce de Matthew :
    Greets!

    I've got the Dojo Zend_Form widgets proposal ready for community review:

    http://framework.zend.com/wiki/displ...d_Form+Widgets

    Basically, the proposal aims to address two themes:

    * Creating Dojo-specific form elements
    * Using Dojo layout containers and content panes with Zend_Form

    Most dijit.form widgets are present, as are all major layout dijits.

    Additionally, if you haven't looked at it already, please look at the
    dojo.data compatibility component review:

    http://framework.zend.com/wiki/displ...er+O%27Phinney

    Please review and comment!
    Comme tout le monde s'y attendait, l'idée est de permettre à ZF de s'occuper de toute la configuration des formulaires :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    $form->addElement('validationTextBox', 'username', array(
         'lowercase' => 'true',
         'maxlength' => 20,
         'regExp'    => '^[a-z][a-z0-9]{3,}$',
         'required'  => 'true',
         'invalidMessage' => 'Please enter a string between 3 and 20 characters with only alphanumeric characters',
         'filters'   => array(
             'StringTrim',
             'StringToLower',
         ),
         'validators' => array(
             'NotEmpty',
             array('StringLength', true, array(3, 20)),
             array('Regex', true, array('/^[a-z][a-z0-9]+$/i')),
         ),
     ));
    Ici par exemple, on créé un widget Dojo depuis ZF : ValidationTextBox. Il suffit ensuite d'utiliser les assistants de la Vue pour inclure les bons scripts dijit.*

    Avez-vous des avis/suggestions ?

  2. #2
    Membre à l'essai
    Profil pro
    Inscrit en
    Mai 2008
    Messages
    16
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Mai 2008
    Messages : 16
    Points : 17
    Points
    17
    Par défaut
    En retard aussi de quelques jours mais il y a maintenant des widgets dans l'incubateur :
    Images attachées Images attachées  

  3. #3
    Rédacteur

    Avatar de Yogui
    Homme Profil pro
    Directeur technique
    Inscrit en
    Février 2004
    Messages
    13 721
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Yonne (Bourgogne)

    Informations professionnelles :
    Activité : Directeur technique

    Informations forums :
    Inscription : Février 2004
    Messages : 13 721
    Points : 29 985
    Points
    29 985
    Par défaut
    Oui, c'est en pleine évolution en ce moment. Voici par exemple un message de Matthew hier :
    -- Ralf Eggert <r.eggert@travello.de> wrote
    (on Wednesday, 09 July 2008, 10:27 AM +0200):
    > I am currently writing an article about the actual state of affairs for
    > the Zend Framework which will be published in the next edition of the
    > German PHP Magazin.
    >
    > Now I would like to add a chapter about the plans for the 1.6 release.
    > From my notes I got that the MVC testing scaffold and the SOAP support
    > is planned to be published in the 1.6 release.
    >
    > What else is in the pipe for 1.6?
    > Is there any release date planned for 1.6?


    I'm going to defer to Wil for much of this, but will take an initial
    stab on the things I know.

    Regarding features in the pipe for 1.6, yes, SOAP support and MVC
    testing scaffold are biggies, as is the Dojo integration (more on that
    below). We also plan to ship a prototype of Zend_Tool, though it will
    not be the final version; think of it as a preview release of that
    component.

    > What is the status of the Dojo integration?


    About 90% complete; I plan to finish the form decorators today, as well
    as all tests for elements and decorators. This will complete the fourth
    and final item in our initial Dojo integration -- which means it will
    ship with 1.6. The 4 integration points are:

    * JSON-RPC server implementation (Zend_Json_Server)
    * ZF component for generating dojo.data payloads
    * dojo() placeholder view helper for setting up the Dojo environment
    for your application
    * Form elements, decorators, and view helpers implementing Dojo dijits

    Additionally, we will be shipping Dojo with 1.6.

    > What are the plans for jQuery?


    None whatsoever for 1.6. Any jQuery support in ZF will need to be wholly
    owned by community contributors, and will need to go through the
    proposal process just like any other component.
    - Show quoted text -

    > Since the editorial deadline is tomorrow, it would be nice to get some
    > input until then. Thanks.



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

Discussions similaires

  1. [Dojo] Créer un div contenant des widgets Dojo
    Par VinceCBA dans le forum Bibliothèques & Frameworks
    Réponses: 13
    Dernier message: 23/11/2011, 14h17
  2. Créer des fiches clients depuis les données Outlook
    Par cricri1383 dans le forum Access
    Réponses: 1
    Dernier message: 09/07/2009, 08h19
  3. Réponses: 4
    Dernier message: 19/10/2008, 20h07
  4. Créer son widget js à la manière des tags pub
    Par vallica dans le forum Général JavaScript
    Réponses: 1
    Dernier message: 07/08/2008, 16h34
  5. Exporter des widgets depuis une DLL
    Par zebiloute dans le forum wxWidgets
    Réponses: 5
    Dernier message: 31/07/2006, 08h14

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo