Or, if you really want the textarea to be readonly (vs disabled), just add
the readonly="readonly" attribute. This allows the user to set focus to it
and copy content from it but not change the content, and it doesn't get the
disabled appearance.

Benny

On Mon, Jul 12, 2010 at 8:46 AM, Christophe Cordenier <
christophe.corden...@gmail.com> wrote:

> Hi
>
> AFAIR Tapestry simply append 'disabled' in the generated markup. Using CSS
> to stylize .disabled should to the trick.
>
> 2010/7/12 Stephan Windmüller <stephan.windmuel...@cs.tu-dortmund.de>
>
> > Hello!
> >
> > I am trying to use a read-only textarea component inside a form
> > component. When the form is submitted, I get this error:
> >
> > org.apache.tapestry5.runtime.ComponentEventException: Failure writing
> > parameter 'value' of component xxx.textarea: Binding
> > org.apache.tapestry5.internal.services.attributeexpansionbind...@ce988a
> > is read-only.
> >
> > Is it possbible to mark the component itself as read-only? Setting
> > t:disabled="true" works but the textarea is rendered differently.
> >
> > Regards
> >  Stephan
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> > For additional commands, e-mail: users-h...@tapestry.apache.org
> >
> >
>
>
> --
> Regards,
> Christophe Cordenier.
>
> Committer on Apache Tapestry 5
> Co-creator of wooki @wookicentral.com
>

Reply via email to