thats fine for individual fields of a mapper, dates etc., but not for a
object with mapped fields. This is what I get for my 'deal' object:
Deal={ Name=Big Deal bank=1 Issue Type=Manufacturing Deal Type=MTN
Currency=EUR Size/Coupon=1 Term=1 Rating=BBB created=15/02/10 creator=4 }
to generate a read-only view I need to do this:
deal.formFields.map(f =>
<tr><td>{f.displayName}</td><td>{f.asHtml}</td></tr>)
It seems unbalanced that you can generate a form for editing purposes but
not a view - unless I'm mistaken about that.
Naftoli Gugenheim wrote:
>
> asHtml?
>
> 2010/2/14 Channing Walton <[email protected]>
>
>>
>> Hi,
>> I am using toForm to create forms for crud operations on my mappers, but
>> I
>> cannot see an equivalent method for presentation purposes. That is, no
>> form
>> elements, just text presented in the same tabular format as the form.
>>
>> Is there one ?
>>
>> Channing
>> --
>> View this message in context:
>> http://old.nabble.com/presentation-only-equivalent-of-toForm-tp27586473p27586473.html
>> Sent from the liftweb mailing list archive at Nabble.com.
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Lift" group.
>> To post to this group, send email to [email protected].
>> To unsubscribe from this group, send email to
>> [email protected]<liftweb%[email protected]>
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/liftweb?hl=en.
>>
>>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Lift" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/liftweb?hl=en.
>
>
>
--
View this message in context:
http://old.nabble.com/presentation-only-equivalent-of-toForm-tp27586473p27605101.html
Sent from the liftweb mailing list archive at Nabble.com.
--
You received this message because you are subscribed to the Google Groups
"Lift" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/liftweb?hl=en.