« Return to Thread: Create form: from description

Re: Create form: from description

by Lukas Renggli-2 :: Rate this Message:

Reply to Author | View in Thread

> In WAComponent subclass i have the method:
>
> renderAddOn: html
> html form:[
>                 html textInput callback:[ :value| self add: value].
>                 html submitButtton text:'add'].
>
> Now i can render the textInput based on specific descriptionKey ?

I don't quite understand what you intend to do with the textInput field.

Do you want to read/write some described data? If so, use something  
like the following:

     object readUsing: description.
     object write: value using: description.

Do you want to use different descriptions depending on some context?  
Use something like:

     self description select: [ :each | each isForContextX ]

> Any pointers would be greatly appreciated!

Lukas

--
Lukas Renggli
http://www.lukas-renggli.ch


_______________________________________________
SmallWiki, Magritte, Pier and Related Tools ...
https://www.iam.unibe.ch/mailman/listinfo/smallwiki

 « Return to Thread: Create form: from description