I've found this to reset file element decorators

      $file->removeDecorator('label');
      $file->removeDecorator('HtmlTag');

but, after this, it seems to be not possible to add a 'div' container for 
example, I always get some exceptions.
So I finally solved using a custom view script to buld my form

$myform->setDecorators(array(array('ViewScript', array('viewScript' => 
'myFormScript.phtml')))); 


  <div class="editMediaFormContainer">
    <form id="<?php echo $this->escape($this->element->getAttrib('id')); ?>" 
action="<?php echo $this->escape($this->element->getAction()); ?>" 
method="<?php echo $this->escape($this->element->getMethod()); ?>" 
enctype="<?php echo $this->escape($this->element->getAttrib('enctype')); ?>">
      <div class="elementFileContainer">
        <?php echo $this->element->mediafile; ?>
      </div>

      [...]


    </form>
  </div>


Hope this helps

Sergio Rinaudo


> Date: Fri, 29 May 2009 21:21:07 -0400
> Subject: Re: [fw-general] Form Element File Reset Decorator
> From: [email protected]
> To: [email protected]
> 
> I've noticed the same thing, started in v1.8
> On Friday, May 29, 2009, Sergio Rinaudo <[email protected]> wrote:
> >
> >
> >
> >
> >
> > Hi,
> > I'm trying to reset dt dd decorator for the File Form Element, but I always 
> > get in some error.
> > What do I have to pass to $fileElement->setDecorators() to reset its 
> > decorators?
> > Thanks
> >
> > Sergio Rinaudo
> >
> > Quali sono le parole più cliccate? Scopri la top!
> >
> 
> -- 
> =================
> Ron Dyck
> [email protected]
> www.webbtech.net
> =================

_________________________________________________________________
Cerca le Parole, gioca su Typectionary!
http://typectionary.it.msn.com/

Reply via email to