How about using textfield with the "disabled" parameter set to true?

Robert

Claus Nielsen (BM Data) wrote:
> Hi.
> 
> I am just getting started with Tapestry, and currently I am struggling
> with a Form for updating a database record.
> 
> I would like to have the form display the database records key, but not
> allow it to be changed.
> 
> Currently I am storing the key as hidden field in the Form (using the
> "Hidden" component. I am displaying the key value using the Insert
> component and I have entered the field-label as a constant in the html
> template.
> 
> Is there an easier way to do this?
> 
> It seems very awkward, when what I really want is something much more
> like the TextField / FieldLabel combination I am using for all the input
> fields in the Form. Except it should be output only, of course.
> 
> Kind Regards
> Claus Nielsen
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to