[Seaside] Magritte

Richard Durr richard.durr at googlemail.com
Fri Feb 12 14:43:30 UTC 2010


or

YourClass new asCpmponent addValidatedForm: #( save new cancel).

or
| actionButtons |

actionButtons := Array
  with: [ :param | " do something" ] -> 'Label'
  with: [ :param | " do something different" ] -> 'Another Label'
  with: [ :param | " do something entirely different" ] -> 'Yet Another Label'.
YourClass new asCpmponent addValidatedForm: actions.

On Fri, Feb 12, 2010 at 3:37 PM, Norbert Hartl <norbert at hartl.name> wrote:
> You are pretty close. Just have a look at
> MAContainerComponent>>addForm:
> self addForm: #( save cancel )
> and
> MAContainerComponent>>addValidatedForm
> self addForm; addValidation
> So a
> YourClass new asComponent addForm: #( new save cancel); addValidation
> should do the trick
> Norbert
> On 12.02.2010, at 15:21, Tony Giaccone wrote:
>
>
> I'm working my way through portions of the seaside pdf ( really makes it so
> much more approachable for me).
> I suffered through one of my cognitive dissonance moments while working with
> this project. Most of it lingering ideas of what is expensive to do in java,
> vs the way to do it in smalltalk.  Here's my current problem.
> I've got an object which has a Margritte set of descriptions and I can call
> asComponent and get an editor.
> I currently am wrapping that editor with a form and buttons by
> using WAComponent>>addValidatedForm however, what I really want to do is add
> a third button to that form.  I want new, save, cancel.
> I thought I saw a way to do this, but for the life of me now, i can't find
> it.
>
> Any sugesstions?
>
> Tony Giaccone
> _______________________________________________
> seaside mailing list
> seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
>
> _______________________________________________
> seaside mailing list
> seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
>


More information about the seaside mailing list