Changeset 1081

Show
Ignore:
Timestamp:
09/11/08 12:06:26 (4 months ago)
Author:
laurentj
Message:

ticket #688: jforms: the html builder now includes always jquery and has its own javascript file, jforms_jquery.js. A new builder, htmllight, won't use jquery except for the html editor, and have its own javascript file jforms_light.js

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/build/manifests/jelix-lib.mn

    r1079 r1081  
    393393  html.jformsbuilder.php 
    394394 
     395cd lib/jelix/plugins/jforms/htmllight 
     396  htmllight.jformsbuilder.php 
     397 
    395398cd lib/jelix/plugins/tpl/common 
    396399  block.ifacl.php 
     
    503506cd lib/jelix-www/js 
    504507  tooltip.js 
    505   jforms.js 
     508  jforms_light.js 
     509  jforms_jquery.js 
    506510  json.js 
    507511cd lib/jelix-www/xul 
  • trunk/build/manifests/jelix-no-opt.mn

    r1079 r1081  
     1cd lib/jelix/acl 
     2  jIAcl2Driver.iface.php 
     3 
     4cd lib/jelix/auth 
     5  jIAuthDriver.iface.php 
    16 
    27cd lib/jelix/core 
  • trunk/build/manifests/testapp.mn

    r1039 r1081  
    174174  jforms.htmlbuilder.html_cli.php 
    175175  jforms.htmlbuilder2.html_cli.php 
     176  jforms.htmllightbuilder.html_cli.php 
     177  jforms.htmllightbuilder2.html_cli.php 
    176178  jforms.with_dao.html_cli.php 
    177179  jtpl.compiler.html_cli.php 
  • trunk/lib/jelix/plugins/jforms/html/html.jformsbuilder.php

    r1078 r1081  
    6262        $www =$gJConfig->urlengine['jelixWWWPath']; 
    6363        $bp =$gJConfig->urlengine['basePath']; 
    64         $resp->addJSLink($www.'js/jforms.js'); 
     64        $resp->addJSLink($www.'jquery/jquery.js'); 
     65        $resp->addJSLink($www.'js/jforms_jquery.js'); 
    6566        $resp->addCSSLink($www.'design/jform.css'); 
    6667        foreach($t->_vars as $k=>$v){ 
     
    9394     */ 
    9495    public function outputHeader($params){ 
    95         $this->options = array_merge(array('errorDecorator'=>'jFormsErrorDecoratorAlert', 
    96                  'helpDecorator'=>'jFormsHelpDecoratorAlert', 'method'=>'post'), $params); 
     96        $this->options = array_merge(array('errorDecorator'=>'jFormsJQErrorDecoratorAlert', 
     97                 'helpDecorator'=>'jFormsJQHelpDecoratorAlert', 'method'=>'post'), $params); 
    9798 
    9899        $url = jUrl::get($this->_action, $this->_actionParams, 2); // retourne le jurl correspondant 
     
    105106        echo '<script type="text/javascript"> 
    106107//<![CDATA[ 
    107 jForms.tForm = new jFormsForm(\''.$this->_name.'\'); 
    108 jForms.tForm.setErrorDecorator(new '.$this->options['errorDecorator'].'()); 
    109 jForms.tForm.setHelpDecorator(new '.$this->options['helpDecorator'].'()); 
    110 jForms.declareForm(jForms.tForm); 
     108jFormsJQ.tForm = new jFormsJQForm(\''.$this->_name.'\'); 
     109jFormsJQ.tForm.setErrorDecorator(new '.$this->options['errorDecorator'].'()); 
     110jFormsJQ.tForm.setHelpDecorator(new '.$this->options['helpDecorator'].'()); 
     111jFormsJQ.declareForm(jFormsJQ.tForm); 
    111112//]]> 
    112113</script>'; 
     
    220221        } 
    221222 
    222         if ($this->isRootControl) $this->jsContent .="jForms.tForm.addControl(c);\n"; 
     223        if ($this->isRootControl) $this->jsContent .="jFormsJQ.tForm.addControl(c);\n"; 
    223224    } 
    224225 
     
    252253            $dt = 'String'; 
    253254 
    254         $this->jsContent .="c = new jFormsControl".$dt."('".$ctrl->ref."', ".$this->escJsStr($ctrl->label).");\n"; 
     255        $this->jsContent .="c = new jFormsJQControl".$dt."('".$ctrl->ref."', ".$this->escJsStr($ctrl->label).");\n"; 
    255256        if ($isLocale) 
    256257            $this->jsContent .="c.lang='".$GLOBALS['gJConfig']->locale."';\n"; 
     
    280281    protected function jsCheckbox($ctrl) { 
    281282 
    282         $this->jsContent .="c = new jFormsControlBoolean('".$ctrl->ref."', ".$this->escJsStr($ctrl->label).");\n"; 
     283        $this->jsContent .="c = new jFormsJQControlBoolean('".$ctrl->ref."', ".$this->escJsStr($ctrl->label).");\n"; 
    283284 
    284285        $this->commonJs($ctrl); 
     
    316317    protected function jsCheckboxes($ctrl) { 
    317318 
    318         $this->jsContent .="c = new jFormsControlString('".$ctrl->ref."[]', ".$this->escJsStr($ctrl->label).");\n"; 
     319        $this->jsContent .="c = new jFormsJQControlString('".$ctrl->ref."[]', ".$this->escJsStr($ctrl->label).");\n"; 
    319320 
    320321        $this->commonJs($ctrl); 
     
    341342    protected function jsRadiobuttons($ctrl) { 
    342343 
    343         $this->jsContent .="c = new jFormsControlString('".$ctrl->ref."', ".$this->escJsStr($ctrl->label).");\n"; 
     344        $this->jsContent .="c = new jFormsJQControlString('".$ctrl->ref."', ".$this->escJsStr($ctrl->label).");\n"; 
    344345 
    345346        $this->commonJs($ctrl); 
     
    366367    protected function jsMenulist($ctrl) { 
    367368 
    368         $this->jsContent .="c = new jFormsControlString('".$ctrl->ref."', ".$this->escJsStr($ctrl->label).");\n"; 
     369        $this->jsContent .="c = new jFormsJQControlString('".$ctrl->ref."', ".$this->escJsStr($ctrl->label).");\n"; 
    369370 
    370371        $this->commonJs($ctrl); 
     
    409410    protected function jsListbox($ctrl) { 
    410411        if($ctrl->multiple){ 
    411             $this->jsContent .= "c = new jFormsControlString('".$ctrl->ref."[]', ".$this->escJsStr($ctrl->label).");\n"; 
     412            $this->jsContent .= "c = new jFormsJQControlString('".$ctrl->ref."[]', ".$this->escJsStr($ctrl->label).");\n"; 
    412413            $this->jsContent .= "c.multiple = true;\n"; 
    413414        } else { 
    414             $this->jsContent .="c = new jFormsControlString('".$ctrl->ref."', ".$this->escJsStr($ctrl->label).");\n"; 
     415            $this->jsContent .="c = new jFormsJQControlString('".$ctrl->ref."', ".$this->escJsStr($ctrl->label).");\n"; 
    415416        } 
    416417 
     
    425426 
    426427    protected function jsTextarea($ctrl) { 
    427         $this->jsContent .="c = new jFormsControlString('".$ctrl->ref."', ".$this->escJsStr($ctrl->label).");\n"; 
     428        $this->jsContent .="c = new jFormsJQControlString('".$ctrl->ref."', ".$this->escJsStr($ctrl->label).");\n"; 
    428429 
    429430        $maxl= $ctrl->datatype->getFacet('maxLength'); 
     
    471472    protected function jsSecretconfirm($ctrl) { 
    472473        // we assume that a secret confirm control is just after a secret control in the list of controls 
    473         $this->jsContent .= "c.confirmField = new jFormsControlSecretConfirm('".$ctrl->ref."_confirm', ".$this->escJsStr($ctrl->label).");\n"; 
     474        $this->jsContent .= "c.confirmField = new jFormsJQControlSecretConfirm('".$ctrl->ref."_confirm', ".$this->escJsStr($ctrl->label).");\n"; 
    474475    } 
    475476 
     
    492493 
    493494    protected function jsUpload($ctrl) { 
    494         $this->jsContent .="c = new jFormsControlString('".$ctrl->ref."', ".$this->escJsStr($ctrl->label).");\n"; 
     495        $this->jsContent .="c = new jFormsJQControlString('".$ctrl->ref."', ".$this->escJsStr($ctrl->label).");\n"; 
    495496 
    496497        $this->commonJs($ctrl); 
     
    569570            echo '<li><label><input type="radio"',$id,$i,'" value="',htmlspecialchars($itemName),'"'; 
    570571            echo ($itemName==$value?' checked="checked"':''),$readonly; 
    571             echo ' onclick="jForms.getForm(\'',$this->_name,'\').getControl(\'',$ctrl->ref,'\').activate(\'',$itemName,'\')"', $this->_endt; 
     572            echo ' onclick="jFormsJQ.getForm(\'',$this->_name,'\').getControl(\'',$ctrl->ref,'\').activate(\'',$itemName,'\')"', $this->_endt; 
    572573            echo htmlspecialchars($ctrl->itemsNames[$itemName]),'</label> '; 
    573574 
     
    612613    protected function jsChoiceInternal($ctrl) { 
    613614 
    614         $this->jsContent .="c = new jFormsControlChoice('".$ctrl->ref."', ".$this->escJsStr($ctrl->label).");\n"; 
     615        $this->jsContent .="c = new jFormsJQControlChoice('".$ctrl->ref."', ".$this->escJsStr($ctrl->label).");\n"; 
    615616 
    616617        $this->commonJs($ctrl); 
     
    624625                $name=$ctrl->ref; 
    625626            } 
    626             echo '<span class="jforms-help"><a href="javascript:jForms.showHelp(\''. $this->_name.'\',\''.$name.'\')">?</a></span>'; 
     627            echo '<span class="jforms-help"><a href="javascript:jFormsJQ.showHelp(\''. $this->_name.'\',\''.$name.'\')">?</a></span>'; 
    627628        } 
    628629    } 
  • trunk/testapp/modules/jelix_tests/tests/jforms.htmlbuilder.html_cli.php

    r1069 r1081  
    4444        $result ='<form action="'.$GLOBALS['gJConfig']->urlengine['basePath'].'index.php" method="post" id="'.$this->builder->getName().'"><script type="text/javascript"> 
    4545//<![CDATA[ 
    46 jForms.tForm = new jFormsForm(\'jforms_formtest\'); 
    47 jForms.tForm.setErrorDecorator(new jFormsErrorDecoratorAlert()); 
    48 jForms.tForm.setHelpDecorator(new jFormsHelpDecoratorAlert()); 
    49 jForms.declareForm(jForms.tForm); 
     46jFormsJQ.tForm = new jFormsJQForm(\'jforms_formtest\'); 
     47jFormsJQ.tForm.setErrorDecorator(new jFormsJQErrorDecoratorAlert()); 
     48jFormsJQ.tForm.setHelpDecorator(new jFormsJQHelpDecoratorAlert()); 
     49jFormsJQ.declareForm(jFormsJQ.tForm); 
    5050//]]> 
    5151</script><div class="jforms-hiddens"><input type="hidden" name="module" value="jelix_tests"/> 
     
    6161        $result ='<form action="'.$GLOBALS['gJConfig']->urlengine['basePath'].'index.php" method="get" id="'.$this->builder->getName().'"><script type="text/javascript"> 
    6262//<![CDATA[ 
    63 jForms.tForm = new jFormsForm(\'jforms_formtest1\'); 
    64 jForms.tForm.setErrorDecorator(new jFormsErrorDecoratorAlert()); 
    65 jForms.tForm.setHelpDecorator(new jFormsHelpDecoratorAlert()); 
    66 jForms.declareForm(jForms.tForm); 
     63jFormsJQ.tForm = new jFormsJQForm(\'jforms_formtest1\'); 
     64jFormsJQ.tForm.setErrorDecorator(new jFormsJQErrorDecoratorAlert()); 
     65jFormsJQ.tForm.setHelpDecorator(new jFormsJQHelpDecoratorAlert()); 
     66jFormsJQ.declareForm(jFormsJQ.tForm); 
    6767//]]> 
    6868</script><div class="jforms-hiddens"><input type="hidden" name="foo" value="b&gt;ar"/> 
     
    9898        ob_start();$this->builder->outputControl($ctrl);$out = ob_get_clean(); 
    9999        $this->assertEqualOrDiff('<input type="text" name="input1" id="'.$this->formname.'_input1" value=""/>', $out); 
    100         $this->assertEqualOrDiff('c = new jFormsControlString(\'input1\', \'Votre nom\'); 
    101 c.errInvalid=\'La saisie de "Votre nom" est invalide\'; 
    102 jForms.tForm.addControl(c); 
     100        $this->assertEqualOrDiff('c = new jFormsJQControlString(\'input1\', \'Votre nom\'); 
     101c.errInvalid=\'La saisie de "Votre nom" est invalide\'; 
     102jFormsJQ.tForm.addControl(c); 
    103103', $this->builder->getJsContent()); 
    104104 
     
    106106        ob_start();$this->builder->outputControl($ctrl);$out = ob_get_clean(); 
    107107        $this->assertEqualOrDiff('<input type="text" name="input1" id="'.$this->formname.'_input1" value="toto"/>', $out); 
    108         $this->assertEqualOrDiff('c = new jFormsControlString(\'input1\', \'Votre nom\'); 
    109 c.errInvalid=\'La saisie de "Votre nom" est invalide\'; 
    110 jForms.tForm.addControl(c); 
     108        $this->assertEqualOrDiff('c = new jFormsJQControlString(\'input1\', \'Votre nom\'); 
     109c.errInvalid=\'La saisie de "Votre nom" est invalide\'; 
     110jFormsJQ.tForm.addControl(c); 
    111111', $this->builder->getJsContent()); 
    112112 
     
    114114        ob_start();$this->builder->outputControl($ctrl);$out = ob_get_clean(); 
    115115        $this->assertEqualOrDiff('<input type="text" name="input1" id="'.$this->formname.'_input1" value="toto"/>', $out); 
    116         $this->assertEqualOrDiff('c = new jFormsControlString(\'input1\', \'Votre nom\'); 
    117 c.errInvalid=\'La saisie de "Votre nom" est invalide\'; 
    118 jForms.tForm.addControl(c); 
     116        $this->assertEqualOrDiff('c = new jFormsJQControlString(\'input1\', \'Votre nom\'); 
     117c.errInvalid=\'La saisie de "Votre nom" est invalide\'; 
     118jFormsJQ.tForm.addControl(c); 
    119119', $this->builder->getJsContent()); 
    120120 
     
    123123        ob_start();$this->builder->outputControl($ctrl);$out = ob_get_clean(); 
    124124        $this->assertEqualOrDiff('<input type="text" name="input1" id="'.$this->formname.'_input1" value="laurent"/>', $out); 
    125         $this->assertEqualOrDiff('c = new jFormsControlString(\'input1\', \'Votre nom\'); 
    126 c.errInvalid=\'La saisie de "Votre nom" est invalide\'; 
    127 jForms.tForm.addControl(c); 
     125        $this->assertEqualOrDiff('c = new jFormsJQControlString(\'input1\', \'Votre nom\'); 
     126c.errInvalid=\'La saisie de "Votre nom" est invalide\'; 
     127jFormsJQ.tForm.addControl(c); 
    128128', $this->builder->getJsContent()); 
    129129 
     
    131131        ob_start();$this->builder->outputControl($ctrl);$out = ob_get_clean(); 
    132132        $this->assertEqualOrDiff('<input type="text" name="input1" id="'.$this->formname.'_input1" class=" jforms-required" value="laurent"/>', $out); 
    133         $this->assertEqualOrDiff('c = new jFormsControlString(\'input1\', \'Votre nom\'); 
     133        $this->assertEqualOrDiff('c = new jFormsJQControlString(\'input1\', \'Votre nom\'); 
    134134c.required = true; 
    135135c.errRequired=\'La saisie de "Votre nom" est obligatoire\'; 
    136136c.errInvalid=\'La saisie de "Votre nom" est invalide\'; 
    137 jForms.tForm.addControl(c); 
     137jFormsJQ.tForm.addControl(c); 
    138138', $this->builder->getJsContent()); 
    139139 
     
    143143        ob_start();$this->builder->outputControl($ctrl);$out = ob_get_clean(); 
    144144        $this->assertEqualOrDiff('<input type="text" name="input1" id="'.$this->formname.'_input1" readonly="readonly" class=" jforms-readonly" value="laurent"/>', $out); 
    145         $this->assertEqualOrDiff('c = new jFormsControlString(\'input1\', \'Votre nom\'); 
    146 c.errInvalid=\'La saisie de "Votre nom" est invalide\'; 
    147 jForms.tForm.addControl(c); 
     145        $this->assertEqualOrDiff('c = new jFormsJQControlString(\'input1\', \'Votre nom\'); 
     146c.errInvalid=\'La saisie de "Votre nom" est invalide\'; 
     147jFormsJQ.tForm.addControl(c); 
    148148', $this->builder->getJsContent()); 
    149149 
     
    152152        $ctrl->help='some help'; 
    153153        ob_start();$this->builder->outputControl($ctrl);$out = ob_get_clean(); 
    154         $this->assertEqualOrDiff('<input type="text" name="input1" id="'.$this->formname.'_input1" value="laurent"/><span class="jforms-help"><a href="javascript:jForms.showHelp(\''. $this->formname.'\',\'input1\')">?</a></span>', $out); 
    155         $this->assertEqualOrDiff('c = new jFormsControlString(\'input1\', \'Votre nom\'); 
     154        $this->assertEqualOrDiff('<input type="text" name="input1" id="'.$this->formname.'_input1" value="laurent"/><span class="jforms-help"><a href="javascript:jFormsJQ.showHelp(\''. $this->formname.'\',\'input1\')">?</a></span>', $out); 
     155        $this->assertEqualOrDiff('c = new jFormsJQControlString(\'input1\', \'Votre nom\'); 
    156156c.help=\'some help\'; 
    157157c.errInvalid=\'La saisie de "Votre nom" est invalide\'; 
    158 jForms.tForm.addControl(c); 
     158jFormsJQ.tForm.addControl(c); 
    159159', $this->builder->getJsContent()); 
    160160 
     
    164164line break.'; 
    165165        ob_start();$this->builder->outputControl($ctrl);$out = ob_get_clean(); 
    166         $this->assertEqualOrDiff('<input type="text" name="input1" id="'.$this->formname.'_input1" value="laurent"/><span class="jforms-help"><a href="javascript:jForms.showHelp(\''. $this->formname.'\',\'input1\')">?</a></span>', $out); 
    167         $this->assertEqualOrDiff('c = new jFormsControlString(\'input1\', \'Votre nom\'); 
     166        $this->assertEqualOrDiff('<input type="text" name="input1" id="'.$this->formname.'_input1" value="laurent"/><span class="jforms-help"><a href="javascript:jFormsJQ.showHelp(\''. $this->formname.'\',\'input1\')">?</a></span>', $out); 
     167        $this->assertEqualOrDiff('c = new jFormsJQControlString(\'input1\', \'Votre nom\'); 
    168168c.help=\'some \nhelp with \\\' and\nline break.\'; 
    169169c.errInvalid=\'La saisie de "Votre nom" est invalide\'; 
    170 jForms.tForm.addControl(c); 
     170jFormsJQ.tForm.addControl(c); 
    171171', $this->builder->getJsContent()); 
    172172 
     
    177177 
    178178        ob_start();$this->builder->outputControl($ctrl);$out = ob_get_clean(); 
    179         $this->assertEqualOrDiff('<input type="text" name="input1" id="'.$this->formname.'_input1" title="ceci est un tooltip" value="laurent"/><span class="jforms-help"><a href="javascript:jForms.showHelp(\''. $this->formname.'\',\'input1\')">?</a></span>', $out); 
    180         $this->assertEqualOrDiff('c = new jFormsControlString(\'input1\', \'Votre nom\'); 
     179        $this->assertEqualOrDiff('<input type="text" name="input1" id="'.$this->formname.'_input1" title="ceci est un tooltip" value="laurent"/><span class="jforms-help"><a href="javascript:jFormsJQ.showHelp(\''. $this->formname.'\',\'input1\')">?</a></span>', $out); 
     180        $this->assertEqualOrDiff('c = new jFormsJQControlString(\'input1\', \'Votre nom\'); 
    181181c.help=\'some help\'; 
    182182c.errInvalid=\'La saisie de "Votre nom" est invalide\'; 
    183 jForms.tForm.addControl(c); 
     183jFormsJQ.tForm.addControl(c); 
    184184', $this->builder->getJsContent()); 
    185185 
     
    190190        ob_start();$this->builder->outputControl($ctrl);$out = ob_get_clean(); 
    191191        $this->assertEqualOrDiff('<input type="text" name="input1" id="'.$this->formname.'_input1" maxlength="5" value="laurent"/>', $out); 
    192         $this->assertEqualOrDiff('c = new jFormsControlString(\'input1\', \'Votre nom\'); 
     192        $this->assertEqualOrDiff('c = new jFormsJQControlString(\'input1\', \'Votre nom\'); 
    193193c.maxLength = \'5\'; 
    194194c.errInvalid=\'La saisie de "Votre nom" est invalide\'; 
    195 jForms.tForm.addControl(c); 
     195jFormsJQ.tForm.addControl(c); 
    196196', $this->builder->getJsContent()); 
    197197 
     
    208208        ob_start();$this->builder->outputControl($ctrl);$out = ob_get_clean(); 
    209209        $this->assertEqualOrDiff('<input type="checkbox" name="chk1" id="'.$this->formname.'_chk1" value="1"/>', $out); 
    210         $this->assertEqualOrDiff('c = new jFormsControlBoolean(\'chk1\', \'Une option\'); 
     210        $this->assertEqualOrDiff('c = new jFormsJQControlBoolean(\'chk1\', \'Une option\'); 
    211211c.errInvalid=\'La saisie de "Une option" est invalide\'; 
    212 jForms.tForm.addControl(c); 
     212jFormsJQ.tForm.addControl(c); 
    213213', $this->builder->getJsContent()); 
    214214 
     
    217217        ob_start();$this->builder->outputControl($ctrl);$out = ob_get_clean(); 
    218218        $this->assertEqualOrDiff('<input type="checkbox" name="chk1" id="'.$this->formname.'_chk1" checked="checked" value="1"/>', $out); 
    219         $this->assertEqualOrDiff('c = new jFormsControlBoolean(\'chk1\', \'Une option\'); 
     219        $this->assertEqualOrDiff('c = new jFormsJQControlBoolean(\'chk1\', \'Une option\'); 
    220220c.errInvalid=\'La saisie de "Une option" est invalide\'; 
    221 jForms.tForm.addControl(c); 
     221jFormsJQ.tForm.addControl(c); 
    222222', $this->builder->getJsContent()); 
    223223 
     
    232232        ob_start();$this->builder->outputControl($ctrl);$out = ob_get_clean(); 
    233233        $this->assertEqualOrDiff('<input type="checkbox" name="chk2" id="'.$this->formname.'_chk2" value="1"/>', $out); 
    234         $this->assertEqualOrDiff('c = new jFormsControlBoolean(\'chk2\', \'Une option\'); 
     234        $this->assertEqualOrDiff('c = new jFormsJQControlBoolean(\'chk2\', \'Une option\'); 
    235235c.errInvalid=\'La saisie de "Une option" est invalide\'; 
    236 jForms.tForm.addControl(c); 
     236jFormsJQ.tForm.addControl(c); 
    237237', $this->builder->getJsContent()); 
    238238 
     
    243243        ob_start();$this->builder->outputControl($ctrl);$out = ob_get_clean(); 
    244244        $this->assertEqualOrDiff('<input type="checkbox" name="chk2" id="'.$this->formname.'_chk2" checked="checked" value="1"/>', $out); 
    245         $this->assertEqualOrDiff('c = new jFormsControlBoolean(\'chk2\', \'Une option\'); 
     245        $this->assertEqualOrDiff('c = new jFormsJQControlBoolean(\'chk2\', \'Une option\'); 
    246246c.errInvalid=\'La saisie de "Une option" est invalide\'; 
    247 jForms.tForm.addControl(c); 
     247jFormsJQ.tForm.addControl(c); 
    248248', $this->builder->getJsContent()); 
    249249 
     
    251251        ob_start();$this->builder->outputControl($ctrl);$out = ob_get_clean(); 
    252252        $this->assertEqualOrDiff('<input type="checkbox" name="chk2" id="'.$this->formname.'_chk2" value="1"/>', $out); 
    253         $this->assertEqualOrDiff('c = new jFormsControlBoolean(\'chk2\', \'Une option\'); 
     253        $this->assertEqualOrDiff('c = new jFormsJQControlBoolean(\'chk2\', \'Une option\'); 
    254254c.errInvalid=\'La saisie de "Une option" est invalide\'; 
    255 jForms.tForm.addControl(c); 
     255jFormsJQ.tForm.addControl(c); 
    256256', $this->builder->getJsContent()); 
    257257 
     
    260260        ob_start();$this->builder->outputControl($ctrl);$out = ob_get_clean(); 
    261261        $this->assertEqualOrDiff('<input type="checkbox" name="chk2" id="'.$this->formname.'_chk2" readonly="readonly" class=" jforms-readonly" value="1"/>', $out); 
    262         $this->assertEqualOrDiff('c = new jFormsControlBoolean(\'chk2\', \'Une option\'); 
     262        $this->assertEqualOrDiff('c = new jFormsJQControlBoolean(\'chk2\', \'Une option\'); 
    263263c.errInvalid=\'La saisie de "Une option" est invalide\'; 
    264 jForms.tForm.addControl(c); 
     264jFormsJQ.tForm.addControl(c); 
    265265', $this->builder->getJsContent()); 
    266266 
     
    269269        ob_start();$this->builder->outputControl($ctrl);$out = ob_get_clean(); 
    270270        $this->assertEqualOrDiff('<input type="checkbox" name="chk2" id="'.$this->formname.'_chk2" readonly="readonly" class=" jforms-readonly" checked="checked" value="1"/>', $out); 
    271         $this->assertEqualOrDiff('c = new jFormsControlBoolean(\'chk2\', \'Une option\'); 
     271        $this->assertEqualOrDiff('c = new jFormsJQControlBoolean(\'chk2\', \'Une option\'); 
    272272c.errInvalid=\'La saisie de "Une option" est invalide\'; 
    273 jForms.tForm.addControl(c); 
     273jFormsJQ.tForm.addControl(c); 
    274274', $this->builder->getJsContent()); 
    275275 
     
    280280        ob_start();$this->builder->outputControl($ctrl);$out = ob_get_clean(); 
    281281        $this->assertEqualOrDiff('<input type="checkbox" name="chk2" id="'.$this->formname.'_chk2" readonly="readonly" title="ceci est un tooltip" class=" jforms-readonly" checked="checked" value="1"/>', $out); 
    282         $this->assertEqualOrDiff('c = new jFormsControlBoolean(\'chk2\', \'Une option\'); 
     282        $this->assertEqualOrDiff('c = new jFormsJQControlBoolean(\'chk2\', \'Une option\'); 
    283283c.errInvalid=\'La saisie de "Une option" est invalide\'; 
    284 jForms.tForm.addControl(c); 
     284jFormsJQ.tForm.addControl(c); 
    285285', $this->builder->getJsContent()); 
    286286 
     
    309309        $result.='<span class="jforms-chkbox jforms-ctl-choixsimple"><input type="checkbox" name="choixsimple[]" id="'.$this->formname.'_choixsimple_2" value="23"/><label for="'.$this->formname.'_choixsimple_2">baz</label></span>'; 
    310310        $this->assertEqualOrDiff($result, $out); 
    311         $this->assertEqualOrDiff('c = new jFormsControlString(\'choixsimple[]\', \'Vos choix\'); 
     311        $this->assertEqualOrDiff('c = new jFormsJQControlString(\'choixsimple[]\', \'Vos choix\'); 
    312312c.errInvalid=\'La saisie de "Vos choix" est invalide\'; 
    313 jForms.tForm.addControl(c); 
     313jFormsJQ.tForm.addControl(c); 
    314314', $this->builder->getJsContent()); 
    315315 
     
    321321        $result.='<span class="jforms-chkbox jforms-ctl-choixsimple"><input type="checkbox" name="choixsimple[]" id="'.$this->formname.'_choixsimple_2" value="23"/><label for="'.$this->formname.'_choixsimple_2">baz</label></span>'; 
    322322        $this->assertEqualOrDiff($result, $out); 
    323         $this->assertEqualOrDiff('c = new jFormsControlString(\'choixsimple[]\', \'Vos choix\'); 
     323        $this->assertEqualOrDiff('c = new jFormsJQControlString(\'choixsimple[]\', \'Vos choix\'); 
    324324c.errInvalid=\'La saisie de "Vos choix" est invalide\'; 
    325 jForms.tForm.addControl(c); 
     325jFormsJQ.tForm.addControl(c); 
    326326', $this->builder->getJsContent()); 
    327327 
     
    346346        $result.='<span class="jforms-chkbox jforms-ctl-choixmultiple"><input type="checkbox" name="choixmultiple[]" id="'.$this->formname.'_choixmultiple_2" value="23"/><label for="'.$this->formname.'_choixmultiple_2">baz</label></span>'; 
    347347        $this->assertEqualOrDiff($result, $out); 
    348         $this->assertEqualOrDiff('c = new jFormsControlString(\'choixmultiple[]\', \'Vos choix\'); 
     348        $this->assertEqualOrDiff('c = new jFormsJQControlString(\'choixmultiple[]\', \'Vos choix\'); 
    349349c.errInvalid=\'La saisie de "Vos choix" est invalide\'; 
    350 jForms.tForm.addControl(c); 
     350jFormsJQ.tForm.addControl(c); 
    351351', $this->builder->getJsContent()); 
    352352 
     
    358358        $result.='<span class="jforms-chkbox jforms-ctl-choixmultiple"><input type="checkbox" name="choixmultiple[]" id="'.$this->formname.'_choixmultiple_2" value="23"/><label for="'.$this->formname.'_choixmultiple_2">baz</label></span>'; 
    359359        $this->assertEqualOrDiff($result, $out); 
    360         $this->assertEqualOrDiff('c = new jFormsControlString(\'choixmultiple[]\', \'Vos choix\'); 
     360        $this->assertEqualOrDiff('c = new jFormsJQControlString(\'choixmultiple[]\', \'Vos choix\'); 
    361361c.errInvalid=\'La saisie de "Vos choix" est invalide\'; 
    362 jForms.tForm.addControl(c); 
     362jFormsJQ.tForm.addControl(c); 
    363363', $this->builder->getJsContent()); 
    364364 
     
    370370        $result.='<span class="jforms-chkbox jforms-ctl-choixmultiple"><input type="checkbox" name="choixmultiple[]" id="'.$this->formname.'_choixmultiple_2" value="23" checked="checked"/><label for="'.$this->formname.'_choixmultiple_2">baz</label></span>'; 
    371371        $this->assertEqualOrDiff($result, $out); 
    372         $this->assertEqualOrDiff('c = new jFormsControlString(\'choixmultiple[]\', \'Vos choix\'); 
     372        $this->assertEqualOrDiff('c = new jFormsJQControlString(\'choixmultiple[]\', \'Vos choix\'); 
    373373c.errInvalid=\'La saisie de "Vos choix" est invalide\'; 
    374 jForms.tForm.addControl(c); 
     374jFormsJQ.tForm.addControl(c); 
    375375', $this->builder->getJsContent()); 
    376376 
     
    386386        $result.='<span class="jforms-chkbox jforms-ctl-choixmultiple"><input type="checkbox" name="choixmultiple[]" id="'.$this->formname.'_choixmultiple_2" value="23" checked="checked" readonly="readonly" class=" jforms-readonly"/><label for="'.$this->formname.'_choixmultiple_2">baz</label></span>'; 
    387387        $this->assertEqualOrDiff($result, $out); 
    388         $this->assertEqualOrDiff('c = new jFormsControlString(\'choixmultiple[]\', \'Vos choix\'); 
     388        $this->assertEqualOrDiff('c = new jFormsJQControlString(\'choixmultiple[]\', \'Vos choix\'); 
    389389c.errInvalid=\'La saisie de "Vos choix" est invalide\'; 
    390 jForms.tForm.addControl(c); 
     390jFormsJQ.tForm.addControl(c); 
    391391', $this->builder->getJsContent()); 
    392392    } 
     
    407407        $result.='<span class="jforms-radio jforms-ctl-rbchoixsimple"><input type="radio" name="rbchoixsimple" id="'.$this->formname.'_rbchoixsimple_2" value="23"/><label for="'.$this->formname.'_rbchoixsimple_2">baz</label></span>'; 
    408408        $this->assertEqualOrDiff($result, $out); 
    409         $this->assertEqualOrDiff('c = new jFormsControlString(\'rbchoixsimple\', \'Votre choix\'); 
    410 c.errInvalid=\'La saisie de "Votre choix" est invalide\'; 
    411 jForms.tForm.addControl(c); 
     409        $this->assertEqualOrDiff('c = new jFormsJQControlString(\'rbchoixsimple\', \'Votre choix\'); 
     410c.errInvalid=\'La saisie de "Votre choix" est invalide\'; 
     411jFormsJQ.tForm.addControl(c); 
    412412', $this->builder->getJsContent()); 
    413413 
     
    420420        $result.='<span class="jforms-radio jforms-ctl-rbchoixsimple"><input type="radio" name="rbchoixsimple" id="'.$this->formname.'_rbchoixsimple_2" value="23"/><label for="'.$this->formname.'_rbchoixsimple_2">baz</label></span>'; 
    421421        $this->assertEqualOrDiff($result, $out); 
    422         $this->assertEqualOrDiff('c = new jFormsControlString(\'rbchoixsimple\', \'Votre choix\'); 
    423 c.errInvalid=\'La saisie de "Votre choix" est invalide\'; 
    424 jForms.tForm.addControl(c); 
     422        $this->assertEqualOrDiff('c = new jFormsJQControlString(\'rbchoixsimple\', \'Votre choix\'); 
     423c.errInvalid=\'La saisie de "Votre choix" est invalide\'; 
     424jFormsJQ.tForm.addControl(c); 
    425425', $this->builder->getJsContent()); 
    426426 
     
    438438        $result.='<span class="jforms-radio jforms-ctl-rbchoixsimple"><input type="radio" name="rbchoixsimple" id="'.$this->formname.'_rbchoixsimple_2" value="23"/><label for="'.$this->formname.'_rbchoixsimple_2">baz</label></span>'; 
    439439        $this->assertEqualOrDiff($result, $out); 
    440         $this->assertEqualOrDiff('c = new jFormsControlString(\'rbchoixsimple\', \'Votre choix\'); 
    441 c.errInvalid=\'La saisie de "Votre choix" est invalide\'; 
    442 jForms.tForm.addControl(c); 
     440        $this->assertEqualOrDiff('c = new jFormsJQControlString(\'rbchoixsimple\', \'Votre choix\'); 
     441c.errInvalid=\'La saisie de "Votre choix" est invalide\'; 
     442jFormsJQ.tForm.addControl(c); 
    443443', $this->builder->getJsContent()); 
    444444 
     
    450450        $result.='<span class="jforms-radio jforms-ctl-rbchoixsimple"><input type="radio" name="rbchoixsimple" id="'.$this->formname.'_rbchoixsimple_2" value="23" checked="checked"/><label for="'.$this->formname.'_rbchoixsimple_2">baz</label></span>'; 
    451451        $this->assertEqualOrDiff($result, $out); 
    452         $this->assertEqualOrDiff('c = new jFormsControlString(\'rbchoixsimple\', \'Votre choix\'); 
    453 c.errInvalid=\'La saisie de "Votre choix" est invalide\'; 
    454 jForms.tForm.addControl(c); 
     452        $this->assertEqualOrDiff('c = new jFormsJQControlString(\'rbchoixsimple\', \'Votre choix\'); 
     453c.errInvalid=\'La saisie de "Votre choix" est invalide\'; 
     454jFormsJQ.tForm.addControl(c); 
    455455', $this->builder->getJsContent()); 
    456456 
     
    465465        $result.='<span class="jforms-radio jforms-ctl-rbchoixsimple"><input type="radio" name="rbchoixsimple" id="'.$this->formname.'_rbchoixsimple_2" value="23" checked="checked" readonly="readonly" class=" jforms-readonly"/><label for="'.$this->formname.'_rbchoixsimple_2">baz</label></span>'; 
    466466        $this->assertEqualOrDiff($result, $out); 
    467         $this->assertEqualOrDiff('c = new jFormsControlString(\'rbchoixsimple\', \'Votre choix\'); 
    468 c.errInvalid=\'La saisie de "Votre choix" est invalide\'; 
    469 jForms.tForm.addControl(c); 
     467        $this->assertEqualOrDiff('c = new jFormsJQControlString(\'rbchoixsimple\', \'Votre choix\'); 
     468c.errInvalid=\'La saisie de "Votre choix" est invalide\'; 
     469jFormsJQ.tForm.addControl(c); 
    470470', $this->builder->getJsContent()); 
    471471 
     
    490490        $result.='</select>'; 
    491491        $this->assertEqualOrDiff($result, $out); 
    492         $this->assertEqualOrDiff('c = new jFormsControlString(\'menulist1\', \'Votre choix\'); 
    493 c.errInvalid=\'La saisie de "Votre choix" est invalide\'; 
    494 jForms.tForm.addControl(c); 
     492        $this->assertEqualOrDiff('c = new jFormsJQControlString(\'menulist1\', \'Votre choix\'); 
     493c.errInvalid=\'La saisie de "Votre choix" est invalide\'; 
     494jFormsJQ.tForm.addControl(c); 
    495495', $this->builder->getJsContent()); 
    496496 
     
    505505        $result.='</select>'; 
    506506        $this->assertEqualOrDiff($result, $out); 
    507         $this->assertEqualOrDiff('c = new jFormsControlString(\'menulist1\', \'Votre choix\'); 
    508 c.errInvalid=\'La saisie de "Votre choix" est invalide\'; 
    509 jForms.tForm.addControl(c); 
     507        $this->assertEqualOrDiff('c = new jFormsJQControlString(\'menulist1\', \'Votre choix\'); 
     508c.errInvalid=\'La saisie de "Votre choix" est invalide\'; 
     509jFormsJQ.tForm.addControl(c); 
    510510', $this->builder->getJsContent()); 
    511511 
     
    520520        ob_start();$this->builder->outputControl($ctrl);$out = ob_get_clean(); 
    521521        $this->assertEqualOrDiff($result, $out); 
    522         $this->assertEqualOrDiff('c = new jFormsControlString(\'menulist1\', \'Votre choix\'); 
    523 c.errInvalid=\'La saisie de "Votre choix" est invalide\'; 
    524 jForms.tForm.addControl(c); 
     522        $this->assertEqualOrDiff('c = new jFormsJQControlString(\'menulist1\', \'Votre choix\'); 
     523c.errInvalid=\'La saisie de "Votre choix" est invalide\'; 
     524jFormsJQ.tForm.addControl(c); 
    525525', $this->builder->getJsContent()); 
    526526 
     
    538538        $result.='</select>'; 
    539539        $this->assertEqualOrDiff($result, $out); 
    540         $this->assertEqualOrDiff('c = new jFormsControlString(\'menulist1\', \'Votre choix\'); 
    541 c.errInvalid=\'La saisie de "Votre choix" est invalide\'; 
    542 jForms.tForm.addControl(c); 
     540        $this->assertEqualOrDiff('c = new jFormsJQControlString(\'menulist1\', \'Votre choix\'); 
     541c.errInvalid=\'La saisie de "Votre choix" est invalide\'; 
     542jFormsJQ.tForm.addControl(c); 
    543543', $this->builder->getJsContent()); 
    544544 
     
    553553        $result.='</select>'; 
    554554        $this->assertEqualOrDiff($result, $out); 
    555         $this->assertEqualOrDiff('c = new jFormsControlString(\'menulist1\', \'Votre choix\'); 
     555        $this->assertEqualOrDiff('c = new jFormsJQControlString(\'menulist1\', \'Votre choix\'); 
    556556c.required = true; 
    557557c.errRequired=\'La saisie de "Votre choix" est obligatoire\'; 
    558558c.errInvalid=\'La saisie de "Votre choix" est invalide\'; 
    559 jForms.tForm.addControl(c); 
     559jFormsJQ.tForm.addControl(c); 
    560560', $this->builder->getJsContent()); 
    561561 
     
    571571        $result.='</select>'; 
    572572        $this->assertEqualOrDiff($result, $out); 
    573         $this->assertEqualOrDiff('c = new jFormsControlString(\'menulist1\', \'Votre choix\'); 
    574 c.errInvalid=\'La saisie de "Votre choix" est invalide\'; 
    575 jForms.tForm.addControl(c); 
     573        $this->assertEqualOrDiff('c = new jFormsJQControlString(\'menulist1\', \'Votre choix\'); 
     574c.errInvalid=\'La saisie de "Votre choix" est invalide\'; 
     575jFormsJQ.tForm.addControl(c); 
    576576', $this->builder->getJsContent()); 
    577577 
     
    587587        $result.='</select>'; 
    588588        $this->assertEqualOrDiff($result, $out); 
    589         $this->assertEqualOrDiff('c = new jFormsControlString(\'menulist1\', \'Votre choix\'); 
    590 c.errInvalid=\'La saisie de "Votre choix" est invalide\'; 
    591 jForms.tForm.addControl(c); 
     589        $this->assertEqualOrDiff('c = new jFormsJQControlString(\'menulist1\', \'Votre choix\'); 
     590c.errInvalid=\'La saisie de "Votre choix" est invalide\'; 
     591jFormsJQ.tForm.addControl(c); 
    592592', $this->builder->getJsContent()); 
    593593 
     
    600600        $result.='</select>'; 
    601601        $this->assertEqualOrDiff($result, $out); 
    602         $this->assertEqualOrDiff('c = new jFormsControlString(\'menulist1\', \'Votre choix\'); 
    603 c.errInvalid=\'La saisie de "Votre choix" est invalide\'; 
    604 jForms.tForm.addControl(c); 
     602        $this->assertEqualOrDiff('c = new jFormsJQControlString(\'menulist1\', \'Votre choix\'); 
     603c.errInvalid=\'La saisie de "Votre choix" est invalide\'; 
     604jFormsJQ.tForm.addControl(c); 
    605605', $this->builder->getJsContent()); 
    606606 
     
    613613        $result.='</select>'; 
    614614        $this->assertEqualOrDiff($result, $out); 
    615         $this->assertEqualOrDiff('c = new jFormsControlString(\'menulist1\', \'Votre choix\'); 
    616 c.errInvalid=\'La saisie de "Votre choix" est invalide\'; 
    617 jForms.tForm.addControl(c); 
     615        $this->assertEqualOrDiff('c = new jFormsJQControlString(\'menulist1\', \'Votre choix\'); 
     616c.errInvalid=\'La saisie de "Votre choix" est invalide\'; 
     617jFormsJQ.tForm.addControl(c); 
    618618', $this->builder->getJsContent()); 
    619619 
     
    632632        $result.='</select>'; 
    633633        $this->assertEqualOrDiff($result, $out); 
    634         $this->assertEqualOrDiff('c = new jFormsControlString(\'menulist1\', \'Votre choix\'); 
    635 c.errInvalid=\'La saisie de "Votre choix" est invalide\'; 
    636 jForms.tForm.addControl(c); 
     634        $this->assertEqualOrDiff('c = new jFormsJQControlString(\'menulist1\', \'Votre choix\'); 
     635c.errInvalid=\'La saisie de "Votre choix" est invalide\'; 
     636jFormsJQ.tForm.addControl(c); 
    637637', $this->builder->getJsContent()); 
    638638 
     
    744744        $result.='</select>'; 
    745745        $this->assertEqualOrDiff($result, $out); 
    746         $this->assertEqualOrDiff('c = new jFormsControlString(\'listbox1\', \'Votre choix\'); 
    747 c.errInvalid=\'La saisie de "Votre choix" est invalide\'; 
    748 jForms.tForm.addControl(c); 
     746        $this->assertEqualOrDiff('c = new jFormsJQControlString(\'listbox1\', \'Votre choix\'); 
     747c.errInvalid=\'La saisie de "Votre choix" est invalide\'; 
     748jFormsJQ.tForm.addControl(c); 
    749749', $this->builder->getJsContent()); 
    750750 
     
    757757        $result.='</select>'; 
    758758        $this->assertEqualOrDiff($result, $out); 
    759         $this->assertEqualOrDiff('c = new jFormsControlString(\'listbox1\', \'Votre choix\'); 
    760 c.errInvalid=\'La saisie de "Votre choix" est invalide\'; 
    761 jForms.tForm.addControl(c); 
     759        $this->assertEqualOrDiff('c = new jFormsJQControlString(\'listbox1\', \'Votre choix\'); 
     760c.errInvalid=\'La saisie de "Votre choix" est invalide\'; 
     761jFormsJQ.tForm.addControl(c); 
    762762', $this->builder->getJsContent()); 
    763763 
     
    772772        ob_start();$this->builder->outputControl($ctrl);$out = ob_get_clean(); 
    773773        $this->assertEqualOrDiff($result, $out); 
    774         $this->assertEqualOrDiff('c = new jFormsControlString(\'listbox1\', \'Votre choix\'); 
    775 c.errInvalid=\'La saisie de "Votre choix" est invalide\'; 
    776 jForms.tForm.addControl(c); 
     774        $this->assertEqualOrDiff('c = new jFormsJQControlString(\'listbox1\', \'Votre choix\'); 
     775c.errInvalid=\'La saisie de "Votre choix" est invalide\'; 
     776jFormsJQ.tForm.addControl(c); 
    777777', $this->builder->getJsContent()); 
    778778 
     
    789789        $result.='</select>'; 
    790790        $this->assertEqualOrDiff($result, $out); 
    791         $this->assertEqualOrDiff('c = new jFormsControlString(\'listbox1\', \'Votre choix\'); 
    792 c.errInvalid=\'La saisie de "Votre choix" est invalide\'; 
    793 jForms.tForm.addControl(c); 
     791        $this->assertEqualOrDiff('c = new jFormsJQControlString(\'listbox1\', \'Votre choix\'); 
     792c.errInvalid=\'La saisie de "Votre choix" est invalide\'; 
     793jFormsJQ.tForm.addControl(c); 
    794794', $this->builder->getJsContent()); 
    795795 
     
    814814        $result.='</select>'; 
    815815        $this->assertEqualOrDiff($result, $out); 
    816         $this->assertEqualOrDiff('c = new jFormsControlString(\'lbchoixmultiple[]\', \'Votre choix\'); 
     816        $this->assertEqualOrDiff('c = new jFormsJQControlString(\'lbchoixmultiple[]\', \'Votre choix\'); 
    817817c.multiple = true; 
    818818c.errInvalid=\'La saisie de "Votre choix" est invalide\'; 
    819 jForms.tForm.addControl(c); 
     819jFormsJQ.tForm.addControl(c); 
    820820', $this->builder->getJsContent()); 
    821821 
     
    829829        $result.='</select>'; 
    830830        $this->assertEqualOrDiff($result, $out); 
    831         $this->assertEqualOrDiff('c = new jFormsControlString(\'lbchoixmultiple[]\', \'Votre choix\'); 
     831        $this->assertEqualOrDiff('c = new jFormsJQControlString(\'lbchoixmultiple[]\', \'Votre choix\'); 
    832832c.multiple = true; 
    833833c.errInvalid=\'La saisie de "Votre choix" est invalide\'; 
    834 jForms.tForm.addControl(c); 
     834jFormsJQ.tForm.addControl(c); 
    835835', $this->builder->getJsContent()); 
    836836 
     
    853853        $result.='</select>'; 
    854854        $this->assertEqualOrDiff($result, $out); 
    855         $this->assertEqualOrDiff('c = new jFormsControlString(\'listbox2\', \'Votre choix\'); 
    856 c.errInvalid=\'La saisie de "Votre choix" est invalide\'; 
    857 jForms.tForm.addControl(c); 
     855        $this->assertEqualOrDiff('c = new jFormsJQControlString(\'listbox2\', \'Votre choix\'); 
     856c.errInvalid=\'La saisie de "Votre choix" est invalide\'; 
     857jFormsJQ.tForm.addControl(c); 
    858858', $this->builder->getJsContent()); 
    859859 
     
    878878        $result.='</select>'; 
    879879        $this->assertEqualOrDiff($result, $out); 
    880         $this->assertEqualOrDiff('c = new jFormsControlString(\'lbchoixmultiple2[]\', \'Votre choix\'); 
     880        $this->assertEqualOrDiff('c = new jFormsJQControlString(\'lbchoixmultiple2[]\', \'Votre choix\'); 
    881881c.multiple = true; 
    882882c.errInvalid=\'La saisie de "Votre choix" est invalide\'; 
    883 jForms.tForm.addControl(c); 
     883jFormsJQ.tForm.addControl(c); 
    884884', $this->builder->getJsContent()); 
    885885 
     
    902902        $result.='</select>'; 
    903903        $this->assertEqualOrDiff($result, $out); 
    904         $this->assertEqualOrDiff('c = new jFormsControlString(\'listboxclass\', \'Votre choix\'); 
    905 c.errInvalid=\'La saisie de "Votre choix" est invalide\'; 
    906 jForms.tForm.addControl(c); 
     904        $this->assertEqualOrDiff('c = new jFormsJQControlString(\'listboxclass\', \'Votre choix\'); 
     905c.errInvalid=\'La saisie de "Votre choix" est invalide\'; 
     906jFormsJQ.tForm.addControl(c); 
    907907', $this->builder->getJsContent()); 
    908908 
     
    921921        ob_start();$this->builder->outputControl($ctrl);$out = ob_get_clean(); 
    922922        $this->assertEqualOrDiff('<textarea name="textarea1" id="'.$this->formname.'_textarea1" rows="5" cols="40"></textarea>', $out); 
    923         $this->assertEqualOrDiff('c = new jFormsControlString(\'textarea1\', \'Votre nom\'); 
    924 c.errInvalid=\'La saisie de "Votre nom" est invalide\'; 
    925 jForms.tForm.addControl(c); 
     923        $this->assertEqualOrDiff('c = new jFormsJQControlString(\'textarea1\', \'Votre nom\'); 
     924c.errInvalid=\'La saisie de "Votre nom" est invalide\'; 
     925jFormsJQ.tForm.addControl(c); 
    926926', $this->builder->getJsContent()); 
    927927 
     
    930930        ob_start();$this->builder->outputControl($ctrl);$out = ob_get_clean(); 
    931931        $this->assertEqualOrDiff('<textarea name="textarea1" id="'.$this->formname.'_textarea1" rows="5" cols="40">laurent</textarea>', $out); 
    932         $this->assertEqualOrDiff('c = new jFormsControlString(\'textarea1\', \'Votre nom\'); 
    933 c.errInvalid=\'La saisie de "Votre nom" est invalide\'; 
    934 jForms.tForm.addControl(c); 
     932        $this->assertEqualOrDiff('c = new jFormsJQControlString(\'textarea1\', \'Votre nom\'); 
     933c.errInvalid=\'La saisie de "Votre nom" est invalide\'; 
     934jFormsJQ.tForm.addControl(c); 
    935935', $this->builder->getJsContent()); 
    936936 
     
    939939        ob_start();$this->builder->outputControl($ctrl);$out = ob_get_clean(); 
    940940        $this->assertEqualOrDiff('<textarea name="textarea1" id="'.$this->formname.'_textarea1" readonly="readonly" class=" jforms-readonly" rows="5" cols="40">laurent</textarea>', $out); 
    941         $this->assertEqualOrDiff('c = new jFormsControlString(\'textarea1\', \'Votre nom\'); 
    942 c.errInvalid=\'La saisie de "Votre nom" est invalide\'; 
    943 jForms.tForm.addControl(c); 
     941        $this->assertEqualOrDiff('c = new jFormsJQControlString(\'textarea1\', \'Votre nom\'); 
     942c.errInvalid=\'La saisie de "Votre nom" est invalide\'; 
     943jFormsJQ.tForm.addControl(c); 
    944944', $this->builder->getJsContent()); 
    945945 
     
    951951        ob_start();$this->builder->outputControl($ctrl);$out = ob_get_clean(); 
    952952        $this->assertEqualOrDiff('<textarea name="textarea1" id="'.$this->formname.'_textarea1" readonly="readonly" title="ceci est un tooltip" class=" jforms-readonly" rows="5" cols="40">laurent</textarea>', $out); 
    953         $this->assertEqualOrDiff('c = new jFormsControlString(\'textarea1\', \'Votre nom\'); 
    954 c.errInvalid=\'La saisie de "Votre nom" est invalide\'; 
    955 jForms.tForm.addControl(c); 
     953        $this->assertEqualOrDiff('c = new jFormsJQControlString(\'textarea1\', \'Votre nom\'); 
     954c.errInvalid=\'La saisie de "Votre nom" est invalide\'; 
     955jFormsJQ.tForm.addControl(c); 
    956956', $this->builder->getJsContent()); 
    957957 
     
    960960        ob_start();$this->builder->outputControl($ctrl);$out = ob_get_clean(); 
    961961        $this->assertEqualOrDiff('<textarea name="textarea1" id="'.$this->formname.'_textarea1" readonly="readonly" title="ceci est un tooltip" class=" jforms-readonly" rows="20" cols="40">laurent</textarea>', $out); 
    962         $this->assertEqualOrDiff('c = new jFormsControlString(\'textarea1\', \'Votre nom\'); 
    963 c.errInvalid=\'La saisie de "Votre nom" est invalide\'; 
    964 jForms.tForm.addControl(c); 
     962        $this->assertEqualOrDiff('c = new jFormsJQControlString(\'textarea1\', \'Votre nom\'); 
     963c.errInvalid=\'La saisie de "Votre nom" est invalide\'; 
     964jFormsJQ.tForm.addControl(c); 
    965965', $this->builder->getJsContent()); 
    966966 
     
    969969        ob_start();$this->builder->outputControl($ctrl);$out = ob_get_clean(); 
    970970        $this->assertEqualOrDiff('<textarea name="textarea1" id="'.$this->formname.'_textarea1" readonly="readonly" title="ceci est un tooltip" class=" jforms-readonly" rows="20" cols="60">laurent</textarea>', $out); 
    971         $this->assertEqualOrDiff('c = new jFormsControlString(\'textarea1\', \'Votre nom\'); 
    972 c.errInvalid=\'La saisie de "Votre nom" est invalide\'; 
    973 jForms.tForm.addControl(c); 
     971        $this->assertEqualOrDiff('c = new jFormsJQControlString(\'textarea1\', \'Votre nom\'); 
     972c.errInvalid=\'La saisie de "Votre nom" est invalide\'; 
     973jFormsJQ.tForm.addControl(c); 
    974974', $this->builder->getJsContent()); 
    975975 
     
    987987        ob_start();$this->builder->outputControl($ctrl);$out = ob_get_clean(); 
    988988        $this->assertEqualOrDiff('<input type="password" name="passwd" id="'.$this->formname.'_passwd" value=""/>', $out); 
    989         $this->assertEqualOrDiff('c = new jFormsControlString(\'passwd\', \'mot de passe\'); 
     989        $this->assertEqualOrDiff('c = new jFormsJQControlString(\'passwd\', \'mot de passe\