SeasideXUL improvements

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

SeasideXUL improvements

Pavel Krivanek-2
Hi,

I did some useful changes in SeasideXUL
(http://www.squeaksource.com/SeasideXUL.html). Here is the list:

- support for latest Seaside 2.8
- Scriptaculous dependency removed
- ajax callbacks do not require response canvas so usage is now very
similar to standard Seaside processing. For example:

        xul button
  onCommand: (xul ajax callback: [
                        |  result |
                        result := self call: XULComponent2 new.
  self call: (XULComponent2 new text: result) ]).

        xul button
                label: 'answer';
                onCommand: (xul ajax callback: [self answer: 42 ]).

- ajax-based support for an alternative to HTML forms with textboxes,
checkboxes, colorpickers, listboxes, menulists (inc. comboboxes) and
radiogroups. Their usage is very straightforward too:

        formId := WAExternalID new.
        xul form: formId with: [
                xul textBox on: #surname of: self.
                xul colorPicker type: 'button'; on: #color of: self.
                xul button
                        label: 'Submit';
                        onCommand: (xul formSubmiter
                                formId: formId;
                        callback: [ self refresh. ]) ].

Cheers,
-- Pavel
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: SeasideXUL improvements

Conrad Taylor
Hey Pavel, is it necessary to have the version in the name of the component?  For example, XULComponent2 could be simply called XULComponent.  Thus, leaving the version tracking to Monitcello.  Now, when the XULComponent updates to version 2.x or 3, one doesn't have to replace all the instances of the name within the source.

Just a thought,

-Conrad

On Thu, Apr 17, 2008 at 10:52 AM, Pavel Krivanek <[hidden email]> wrote:
Hi,

I did some useful changes in SeasideXUL
(http://www.squeaksource.com/SeasideXUL.html). Here is the list:

- support for latest Seaside 2.8
- Scriptaculous dependency removed
- ajax callbacks do not require response canvas so usage is now very
similar to standard Seaside processing. For example:

       xul button
               onCommand: (xul ajax callback: [
                       |  result |
                       result := self call: XULComponent2 new.
                       self call: (XULComponent2 new text: result) ]).

       xul button
               label: 'answer';
               onCommand: (xul ajax callback: [self answer: 42 ]).

- ajax-based support for an alternative to HTML forms with textboxes,
checkboxes, colorpickers, listboxes, menulists (inc. comboboxes) and
radiogroups. Their usage is very straightforward too:

       formId := WAExternalID new.
       xul form: formId with: [
               xul textBox on: #surname of: self.
               xul colorPicker type: 'button'; on: #color of: self.
               xul button
                       label: 'Submit';
                       onCommand: (xul formSubmiter
                               formId: formId;
                       callback: [ self refresh. ]) ].

Cheers,
-- Pavel
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside


_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: SeasideXUL improvements

Pavel Krivanek-2
Hi Conrad,

it's only a name for a testing component in the code example. The base
component is named XULComponent and so will be in future too. I
haven't named it XULComponent because this basic component doesn't
have any answer code and in fact, there's a real component
XULComponent2 in the package that is used for call/answer
demonstration. Sorry for confusion.

-- Pavel

On Thu, Apr 17, 2008 at 9:13 PM, Conrad Taylor <[hidden email]> wrote:

> Hey Pavel, is it necessary to have the version in the name of the component?
> For example, XULComponent2 could be simply called XULComponent.  Thus,
> leaving the version tracking to Monitcello.  Now, when the XULComponent
> updates to version 2.x or 3, one doesn't have to replace all the instances
> of the name within the source.
>
> Just a thought,
>
> -Conrad
>
>
>
> On Thu, Apr 17, 2008 at 10:52 AM, Pavel Krivanek
> <[hidden email]> wrote:
>
> >
> >
> >
> > Hi,
> >
> > I did some useful changes in SeasideXUL
> > (http://www.squeaksource.com/SeasideXUL.html). Here is the list:
> >
> > - support for latest Seaside 2.8
> > - Scriptaculous dependency removed
> > - ajax callbacks do not require response canvas so usage is now very
> > similar to standard Seaside processing. For example:
> >
> >        xul button
> >                onCommand: (xul ajax callback: [
> >                        |  result |
> >                        result := self call: XULComponent2 new.
> >                        self call: (XULComponent2 new text: result) ]).
> >
> >        xul button
> >                label: 'answer';
> >                onCommand: (xul ajax callback: [self answer: 42 ]).
> >
> > - ajax-based support for an alternative to HTML forms with textboxes,
> > checkboxes, colorpickers, listboxes, menulists (inc. comboboxes) and
> > radiogroups. Their usage is very straightforward too:
> >
> >        formId := WAExternalID new.
> >        xul form: formId with: [
> >                xul textBox on: #surname of: self.
> >                xul colorPicker type: 'button'; on: #color of: self.
> >                xul button
> >                        label: 'Submit';
> >                        onCommand: (xul formSubmiter
> >                                formId: formId;
> >                        callback: [ self refresh. ]) ].
> >
> > Cheers,
> > -- Pavel
> > _______________________________________________
> > seaside mailing list
> > [hidden email]
> > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
> >
>
>
> _______________________________________________
>  seaside mailing list
>  [hidden email]
>  http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
>
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: SeasideXUL improvements

Conrad Taylor
Hi Pavel, thanks for information and clarification.

-Conrad

On Thu, Apr 17, 2008 at 12:29 PM, Pavel Krivanek <[hidden email]> wrote:
Hi Conrad,

it's only a name for a testing component in the code example. The base
component is named XULComponent and so will be in future too. I
haven't named it XULComponent because this basic component doesn't
have any answer code and in fact, there's a real component
XULComponent2 in the package that is used for call/answer
demonstration. Sorry for confusion.

-- Pavel

On Thu, Apr 17, 2008 at 9:13 PM, Conrad Taylor <[hidden email]> wrote:
> Hey Pavel, is it necessary to have the version in the name of the component?
> For example, XULComponent2 could be simply called XULComponent.  Thus,
> leaving the version tracking to Monitcello.  Now, when the XULComponent
> updates to version 2.x or 3, one doesn't have to replace all the instances
> of the name within the source.
>
> Just a thought,
>
> -Conrad
>
>
>
> On Thu, Apr 17, 2008 at 10:52 AM, Pavel Krivanek
> <[hidden email]> wrote:
>
> >
> >
> >
> > Hi,
> >
> > I did some useful changes in SeasideXUL
> > (http://www.squeaksource.com/SeasideXUL.html). Here is the list:
> >
> > - support for latest Seaside 2.8
> > - Scriptaculous dependency removed
> > - ajax callbacks do not require response canvas so usage is now very
> > similar to standard Seaside processing. For example:
> >
> >        xul button
> >                onCommand: (xul ajax callback: [
> >                        |  result |
> >                        result := self call: XULComponent2 new.
> >                        self call: (XULComponent2 new text: result) ]).
> >
> >        xul button
> >                label: 'answer';
> >                onCommand: (xul ajax callback: [self answer: 42 ]).
> >
> > - ajax-based support for an alternative to HTML forms with textboxes,
> > checkboxes, colorpickers, listboxes, menulists (inc. comboboxes) and
> > radiogroups. Their usage is very straightforward too:
> >
> >        formId := WAExternalID new.
> >        xul form: formId with: [
> >                xul textBox on: #surname of: self.
> >                xul colorPicker type: 'button'; on: #color of: self.
> >                xul button
> >                        label: 'Submit';
> >                        onCommand: (xul formSubmiter
> >                                formId: formId;
> >                        callback: [ self refresh. ]) ].
> >
> > Cheers,
> > -- Pavel
> > _______________________________________________
> > seaside mailing list
> > [hidden email]
> > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
> >
>
>
> _______________________________________________
>  seaside mailing list
>  [hidden email]
>  http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
>
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside


_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside