WebElements composition

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

WebElements composition

Alex Baran
Hi All,

If I understand correctly in Aida you can not do something like:

   (WebImage image: self getImage)
                updateEverySeconds: 1;
                yourself

instead WebElement methods should be used:

     WebElement new
                addImage: self getImage;
                updateEverySeconds: 1;
                yourself

I'm curious why you hide construction behind WebElement interface?
I suppose that some interesting architectural points can be here, but
I can not grasp them.


--
Alex Baran
_______________________________________________
Aida mailing list
[hidden email]
http://lists.aidaweb.si/mailman/listinfo/aida
Reply | Threaded
Open this post in threaded view
|

WebCharts

Francisco A. Lizarralde-2
Hi all,

I trying to play with WebCharts. This is the code I use:

viewStats

        | e chart |
       
        e := WebElement new.
        e addTextH1: 'Stats'.
        e addBreak.
        e add: self viewTabComponent.

        chart := WebChart new
       addData: {1@2. 2@3. 3@4. 4@5} label: 'label1';
       addData: {1@4. 2@3. 3@1. 4@2. 5@3} label: 'label2'.
        chart legend show: true;
       position: 'nw'.
        chart lines show: true;
        lineWidth: 3.
        e addTextH1: 'Stats'.
        e addBreak.
        e add: chart.
       
        self pageFrameWith: e title: 'Stats'.

but when I refresh the page, I only see the header of the TabView. I
don't know what's I'm doing wrong.

Any help would be appreciated.

Thanks in advance,

Best regards,

Francisco

PD. I'm using AidaWeb 5.6 on Damien's web image.

_______________________________________________
Aida mailing list
[hidden email]
http://lists.aidaweb.si/mailman/listinfo/aida
Reply | Threaded
Open this post in threaded view
|

Re: WebCharts

Rob Rothwell
Franscisco,

What does your viewTabComponent method look like?

Rob

On Sat, Mar 7, 2009 at 5:55 PM, Francisco A. Lizarralde <[hidden email]> wrote:
Hi all,

I trying to play with WebCharts. This is the code I use:

viewStats

       | e chart |

       e := WebElement new.
       e addTextH1: 'Stats'.
       e addBreak.
       e add: self viewTabComponent.

       chart := WebChart new
             addData: {1@2. 2@3. 3@4. 4@5} label: 'label1';
             addData: {1@4. 2@3. 3@1. 4@2. 5@3} label: 'label2'.
       chart legend show: true;
      position: 'nw'.
       chart lines show: true;
       lineWidth: 3.
       e addTextH1: 'Stats'.
       e addBreak.
       e add: chart.

       self pageFrameWith: e title: 'Stats'.

but when I refresh the page, I only see the header of the TabView. I
don't know what's I'm doing wrong.

Any help would be appreciated.

Thanks in advance,

Best regards,

Francisco

PD. I'm using AidaWeb 5.6 on Damien's web image.

_______________________________________________
Aida mailing list
[hidden email]
http://lists.aidaweb.si/mailman/listinfo/aida


_______________________________________________
Aida mailing list
[hidden email]
http://lists.aidaweb.si/mailman/listinfo/aida
Reply | Threaded
Open this post in threaded view
|

Re: WebCharts

Francisco A. Lizarralde-2
Hi Rob,

I have a main view with three tabs, and I'm trying to draw a chart in
one of these tabs. The viewTabComponent method creates the tabs.

viewTabComponent
 
        |e|
       
        e := WebElement new.
        e := ViewTabs new.
        e addView: #main description: 'Students'.
        e addView: #tests description: 'Tests'.
        e addView: #stats description: 'Stats'.
        ^e

Best regards,

Francisco

El sáb, 07-03-2009 a las 21:30 -0500, Rob Rothwell escribió:
> Franscisco,
>
> What does your viewTabComponent method look like?
>
> Rob

_______________________________________________
Aida mailing list
[hidden email]
http://lists.aidaweb.si/mailman/listinfo/aida
Reply | Threaded
Open this post in threaded view
|

Re: WebCharts

Rob Rothwell
Hmm...you're code is working fine for me.

I am using Sport 2.031, Swazoo 2.2, and Aida5.6 from http://mc.bioskop.fr/Aida/.

Do you want to save your project and send it to me and I can see if it works for me?

Rob

On Sat, Mar 7, 2009 at 9:39 PM, Francisco A. Lizarralde <[hidden email]> wrote:
Hi Rob,

I have a main view with three tabs, and I'm trying to draw a chart in
one of these tabs. The viewTabComponent method creates the tabs.

viewTabComponent

       |e|

       e := WebElement new.
       e := ViewTabs new.
       e addView: #main description: 'Students'.
       e addView: #tests description: 'Tests'.
       e addView: #stats description: 'Stats'.
       ^e

Best regards,

Francisco

El sáb, 07-03-2009 a las 21:30 -0500, Rob Rothwell escribió:
> Franscisco,
>
> What does your viewTabComponent method look like?
>
> Rob

_______________________________________________
Aida mailing list
[hidden email]
http://lists.aidaweb.si/mailman/listinfo/aida


_______________________________________________
Aida mailing list
[hidden email]
http://lists.aidaweb.si/mailman/listinfo/aida

WebChart.JPG (35K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: WebCharts

Nicolas Petton
Hi,

Are you using ie?

The excanvas.js library is needed for IE for display the charts....I really should add it by default. In the meantime, it's available here: http://excanvas.sourceforge.net/

Cheers!

Nico

2009/3/8 Rob Rothwell <[hidden email]>
Hmm...you're code is working fine for me.

I am using Sport 2.031, Swazoo 2.2, and Aida5.6 from http://mc.bioskop.fr/Aida/.

Do you want to save your project and send it to me and I can see if it works for me?

Rob


On Sat, Mar 7, 2009 at 9:39 PM, Francisco A. Lizarralde <[hidden email]> wrote:
Hi Rob,

I have a main view with three tabs, and I'm trying to draw a chart in
one of these tabs. The viewTabComponent method creates the tabs.

viewTabComponent

       |e|

       e := WebElement new.
       e := ViewTabs new.
       e addView: #main description: 'Students'.
       e addView: #tests description: 'Tests'.
       e addView: #stats description: 'Stats'.
       ^e

Best regards,

Francisco

El sáb, 07-03-2009 a las 21:30 -0500, Rob Rothwell escribió:
> Franscisco,
>
> What does your viewTabComponent method look like?
>
> Rob

_______________________________________________
Aida mailing list
[hidden email]
http://lists.aidaweb.si/mailman/listinfo/aida


_______________________________________________
Aida mailing list
[hidden email]
http://lists.aidaweb.si/mailman/listinfo/aida




--
Nicolas Petton

http://nico.bioskop.fr

_______________________________________________
Aida mailing list
[hidden email]
http://lists.aidaweb.si/mailman/listinfo/aida
Reply | Threaded
Open this post in threaded view
|

Re: WebCharts

Francisco A. Lizarralde-2
Hi Nico,

No, I'm using firefox on Ubuntu. I'm working with Damien's image and
AidaWeb 5.6. Probably I missed something.

Thank you,

Francisco

El dom, 08-03-2009 a las 11:19 +0100, nicolas petton escribió:

> Hi,
>
> Are you using ie?
>
> The excanvas.js library is needed for IE for display the charts....I
> really should add it by default. In the meantime, it's available here:
> http://excanvas.sourceforge.net/
>
> Cheers!
>
> Nico

_______________________________________________
Aida mailing list
[hidden email]
http://lists.aidaweb.si/mailman/listinfo/aida
Reply | Threaded
Open this post in threaded view
|

Re: WebCharts

Francisco A. Lizarralde-2
In reply to this post by Rob Rothwell
Hi Rob,

The only difference is I'm using Swazoo 2.2.
I'll update this and I'll try again. If I can't find the problem, I'll
send you the proyect.

Thank you so much.

Francisco

El sáb, 07-03-2009 a las 22:06 -0500, Rob Rothwell escribió:
> Hmm...you're code is working fine for me.
>
> I am using Sport 2.031, Swazoo 2.2, and Aida5.6 from
> http://mc.bioskop.fr/Aida/.
>
> Do you want to save your project and send it to me and I can see if it
> works for me?
>
> Rob

_______________________________________________
Aida mailing list
[hidden email]
http://lists.aidaweb.si/mailman/listinfo/aida
Reply | Threaded
Open this post in threaded view
|

Re: WebCharts

Rob Rothwell
No problem...I'd be happy to see if this is something we can figure out together!

Rob

On Sun, Mar 8, 2009 at 8:55 AM, Francisco A. Lizarralde <[hidden email]> wrote:
Hi Rob,

The only difference is I'm using Swazoo 2.2.
I'll update this and I'll try again. If I can't find the problem, I'll
send you the proyect.

Thank you so much.

Francisco

El sáb, 07-03-2009 a las 22:06 -0500, Rob Rothwell escribió:
> Hmm...you're code is working fine for me.
>
> I am using Sport 2.031, Swazoo 2.2, and Aida5.6 from
> http://mc.bioskop.fr/Aida/.
>
> Do you want to save your project and send it to me and I can see if it
> works for me?
>
> Rob

_______________________________________________
Aida mailing list
[hidden email]
http://lists.aidaweb.si/mailman/listinfo/aida


_______________________________________________
Aida mailing list
[hidden email]
http://lists.aidaweb.si/mailman/listinfo/aida
Reply | Threaded
Open this post in threaded view
|

Re: WebCharts

Francisco A. Lizarralde-2
In reply to this post by Nicolas Petton
Hi Nico,

I'tried webChartDemoApp with the same result. I only see the page
headers, but the graphics doesn't appear. (I attach a capture)

There are some library needed for firefox ?

Thanks in advance,

Best regards,

Francisco

El dom, 08-03-2009 a las 11:19 +0100, nicolas petton escribió:

> Hi,
>
> Are you using ie?
>
> The excanvas.js library is needed for IE for display the charts....I
> really should add it by default. In the meantime, it's available here:
> http://excanvas.sourceforge.net/
>
> Cheers!
>
> Nico

_______________________________________________
Aida mailing list
[hidden email]
http://lists.aidaweb.si/mailman/listinfo/aida

webChart.jpg (55K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: WebCharts

Nicolas Petton
Le dimanche 08 mars 2009 à 20:08 -0200, Francisco A. Lizarralde a
écrit :
> Hi Nico,
>
> I'tried webChartDemoApp with the same result. I only see the page
> headers, but the graphics doesn't appear. (I attach a capture)
>
> There are some library needed for firefox ?

What version of Firefox are you using?


Cheers!

Nico

>
> Thanks in advance,
>
> Best regards,
>
> Francisco
>
> El dom, 08-03-2009 a las 11:19 +0100, nicolas petton escribió:
> > Hi,
> >
> > Are you using ie?
> >
> > The excanvas.js library is needed for IE for display the charts....I
> > really should add it by default. In the meantime, it's available here:
> > http://excanvas.sourceforge.net/
> >
> > Cheers!
> >
> > Nico
> _______________________________________________
> Aida mailing list
> [hidden email]
> http://lists.aidaweb.si/mailman/listinfo/aida

_______________________________________________
Aida mailing list
[hidden email]
http://lists.aidaweb.si/mailman/listinfo/aida

signature.asc (204 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: WebCharts

Francisco A. Lizarralde-2
I'm using Firefox 3.0.7 on UBUNTU 8.04.

El dom, 08-03-2009 a las 23:34 +0100, nico escribió:

> Le dimanche 08 mars 2009 à 20:08 -0200, Francisco A. Lizarralde a
> écrit :
> > Hi Nico,
> >
> > I'tried webChartDemoApp with the same result. I only see the page
> > headers, but the graphics doesn't appear. (I attach a capture)
> >
> > There are some library needed for firefox ?
>
> What version of Firefox are you using?
>
>
> Cheers!
>
> Nico
> >
> > Thanks in advance,
> >
> > Best regards,
> >
> > Francisco
> >
> > El dom, 08-03-2009 a las 11:19 +0100, nicolas petton escribió:
> > > Hi,
> > >
> > > Are you using ie?
> > >
> > > The excanvas.js library is needed for IE for display the charts....I
> > > really should add it by default. In the meantime, it's available here:
> > > http://excanvas.sourceforge.net/
> > >
> > > Cheers!
> > >
> > > Nico
> > _______________________________________________
> > Aida mailing list
> > [hidden email]
> > http://lists.aidaweb.si/mailman/listinfo/aida
> _______________________________________________
> Aida mailing list
> [hidden email]
> http://lists.aidaweb.si/mailman/listinfo/aida

_______________________________________________
Aida mailing list
[hidden email]
http://lists.aidaweb.si/mailman/listinfo/aida
Reply | Threaded
Open this post in threaded view
|

Re: WebCharts

Nicolas Petton
Le dimanche 08 mars 2009 à 20:48 -0200, Francisco A. Lizarralde a
écrit :
> I'm using Firefox 3.0.7 on UBUNTU 8.04.

Ok, then, do you see this chart?

http://www.deensoft.com/lab/protochart/piechart.php

Cheers!

Nico

>
> El dom, 08-03-2009 a las 23:34 +0100, nico escribió:
> > Le dimanche 08 mars 2009 à 20:08 -0200, Francisco A. Lizarralde a
> > écrit :
> > > Hi Nico,
> > >
> > > I'tried webChartDemoApp with the same result. I only see the page
> > > headers, but the graphics doesn't appear. (I attach a capture)
> > >
> > > There are some library needed for firefox ?
> >
> > What version of Firefox are you using?
> >
> >
> > Cheers!
> >
> > Nico
> > >
> > > Thanks in advance,
> > >
> > > Best regards,
> > >
> > > Francisco
> > >
> > > El dom, 08-03-2009 a las 11:19 +0100, nicolas petton escribió:
> > > > Hi,
> > > >
> > > > Are you using ie?
> > > >
> > > > The excanvas.js library is needed for IE for display the charts....I
> > > > really should add it by default. In the meantime, it's available here:
> > > > http://excanvas.sourceforge.net/
> > > >
> > > > Cheers!
> > > >
> > > > Nico
> > > _______________________________________________
> > > Aida mailing list
> > > [hidden email]
> > > http://lists.aidaweb.si/mailman/listinfo/aida
> > _______________________________________________
> > Aida mailing list
> > [hidden email]
> > http://lists.aidaweb.si/mailman/listinfo/aida
>
> _______________________________________________
> Aida mailing list
> [hidden email]
> http://lists.aidaweb.si/mailman/listinfo/aida

_______________________________________________
Aida mailing list
[hidden email]
http://lists.aidaweb.si/mailman/listinfo/aida

signature.asc (204 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: WebCharts

Francisco A. Lizarralde-2
Yes, perfect !!!

El lun, 09-03-2009 a las 00:04 +0100, nico escribió:

> Le dimanche 08 mars 2009 à 20:48 -0200, Francisco A. Lizarralde a
> écrit :
> > I'm using Firefox 3.0.7 on UBUNTU 8.04.
>
> Ok, then, do you see this chart?
>
> http://www.deensoft.com/lab/protochart/piechart.php
>
> Cheers!
>
> Nico
> >
> > El dom, 08-03-2009 a las 23:34 +0100, nico escribió:
> > > Le dimanche 08 mars 2009 à 20:08 -0200, Francisco A. Lizarralde a
> > > écrit :
> > > > Hi Nico,
> > > >
> > > > I'tried webChartDemoApp with the same result. I only see the page
> > > > headers, but the graphics doesn't appear. (I attach a capture)
> > > >
> > > > There are some library needed for firefox ?
> > >
> > > What version of Firefox are you using?
> > >
> > >
> > > Cheers!
> > >
> > > Nico
> > > >
> > > > Thanks in advance,
> > > >
> > > > Best regards,
> > > >
> > > > Francisco
> > > >
> > > > El dom, 08-03-2009 a las 11:19 +0100, nicolas petton escribió:
> > > > > Hi,
> > > > >
> > > > > Are you using ie?
> > > > >
> > > > > The excanvas.js library is needed for IE for display the charts....I
> > > > > really should add it by default. In the meantime, it's available here:
> > > > > http://excanvas.sourceforge.net/
> > > > >
> > > > > Cheers!
> > > > >
> > > > > Nico
> > > > _______________________________________________
> > > > Aida mailing list
> > > > [hidden email]
> > > > http://lists.aidaweb.si/mailman/listinfo/aida
> > > _______________________________________________
> > > Aida mailing list
> > > [hidden email]
> > > http://lists.aidaweb.si/mailman/listinfo/aida
> >
> > _______________________________________________
> > Aida mailing list
> > [hidden email]
> > http://lists.aidaweb.si/mailman/listinfo/aida
> _______________________________________________
> Aida mailing list
> [hidden email]
> http://lists.aidaweb.si/mailman/listinfo/aida

_______________________________________________
Aida mailing list
[hidden email]
http://lists.aidaweb.si/mailman/listinfo/aida
Reply | Threaded
Open this post in threaded view
|

Re: WebCharts

Francisco A. Lizarralde-2
In reply to this post by Nicolas Petton
Wow !!!!

This charts are wonderful !!! So beautiful !!!

I like it so much.

I expect working with it soon.

Congratulations, wonderful work, Nico.

Cheers,

Francisco

El lun, 09-03-2009 a las 00:04 +0100, nico escribió:

> Le dimanche 08 mars 2009 à 20:48 -0200, Francisco A. Lizarralde a
> écrit :
> > I'm using Firefox 3.0.7 on UBUNTU 8.04.
>
> Ok, then, do you see this chart?
>
> http://www.deensoft.com/lab/protochart/piechart.php
>
> Cheers!
>
> Nico
> >

_______________________________________________
Aida mailing list
[hidden email]
http://lists.aidaweb.si/mailman/listinfo/aida
Reply | Threaded
Open this post in threaded view
|

Re: WebCharts

Rob Rothwell
Ok...so how do we get it working in YOUR image!!!!

Rob

On Sun, Mar 8, 2009 at 7:21 PM, Francisco A. Lizarralde <[hidden email]> wrote:
Wow !!!!

This charts are wonderful !!! So beautiful !!!

I like it so much.

I expect working with it soon.

Congratulations, wonderful work, Nico.

Cheers,

Francisco

El lun, 09-03-2009 a las 00:04 +0100, nico escribió:
> Le dimanche 08 mars 2009 à 20:48 -0200, Francisco A. Lizarralde a
> écrit :
> > I'm using Firefox 3.0.7 on UBUNTU 8.04.
>
> Ok, then, do you see this chart?
>
> http://www.deensoft.com/lab/protochart/piechart.php
>
> Cheers!
>
> Nico
> >

_______________________________________________
Aida mailing list
[hidden email]
http://lists.aidaweb.si/mailman/listinfo/aida


_______________________________________________
Aida mailing list
[hidden email]
http://lists.aidaweb.si/mailman/listinfo/aida
Reply | Threaded
Open this post in threaded view
|

Re: WebCharts

Nicolas Petton
In reply to this post by Francisco A. Lizarralde-2
Le dimanche 08 mars 2009 à 21:21 -0200, Francisco A. Lizarralde a
écrit :
> Wow !!!!
>
> This charts are wonderful !!! So beautiful !!!

There is something wrong with your installation i think.

What versions of aida and aidacharts do you have?

>
> I like it so much.
>
> I expect working with it soon.
>
> Congratulations, wonderful work, Nico.
>
> Cheers,
>
> Francisco
>
> El lun, 09-03-2009 a las 00:04 +0100, nico escribió:
> > Le dimanche 08 mars 2009 à 20:48 -0200, Francisco A. Lizarralde a
> > écrit :
> > > I'm using Firefox 3.0.7 on UBUNTU 8.04.
> >
> > Ok, then, do you see this chart?
> >
> > http://www.deensoft.com/lab/protochart/piechart.php
> >
> > Cheers!
> >
> > Nico
> > >
>
> _______________________________________________
> Aida mailing list
> [hidden email]
> http://lists.aidaweb.si/mailman/listinfo/aida

_______________________________________________
Aida mailing list
[hidden email]
http://lists.aidaweb.si/mailman/listinfo/aida

signature.asc (204 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: WebCharts

Rob Rothwell
Nico,

Works for me (except with a Comet refresh ;) ); I am using Sport 2.031, Swazoo 2.2, Aida/Web 115 that I created to work with Swazoo 2.2, and AidaCharts np.6.

Rob

On Sun, Mar 8, 2009 at 7:33 PM, nico <[hidden email]> wrote:
Le dimanche 08 mars 2009 à 21:21 -0200, Francisco A. Lizarralde a
écrit :
> Wow !!!!
>
> This charts are wonderful !!! So beautiful !!!

There is something wrong with your installation i think.

What versions of aida and aidacharts do you have?
>
> I like it so much.
>
> I expect working with it soon.
>
> Congratulations, wonderful work, Nico.
>
> Cheers,
>
> Francisco
>
> El lun, 09-03-2009 a las 00:04 +0100, nico escribió:
> > Le dimanche 08 mars 2009 à 20:48 -0200, Francisco A. Lizarralde a
> > écrit :
> > > I'm using Firefox 3.0.7 on UBUNTU 8.04.
> >
> > Ok, then, do you see this chart?
> >
> > http://www.deensoft.com/lab/protochart/piechart.php
> >
> > Cheers!
> >
> > Nico
> > >
>
> _______________________________________________
> Aida mailing list
> [hidden email]
> http://lists.aidaweb.si/mailman/listinfo/aida

_______________________________________________
Aida mailing list
[hidden email]
http://lists.aidaweb.si/mailman/listinfo/aida



_______________________________________________
Aida mailing list
[hidden email]
http://lists.aidaweb.si/mailman/listinfo/aida
Reply | Threaded
Open this post in threaded view
|

Re: WebCharts

Francisco A. Lizarralde-2
In reply to this post by Rob Rothwell
Yes Rob, probably the problem is in the image. I'll try with another.

Cheers,

Francisco

El dom, 08-03-2009 a las 19:30 -0400, Rob Rothwell escribió:
> Ok...so how do we get it working in YOUR image!!!!
>
> Rob

_______________________________________________
Aida mailing list
[hidden email]
http://lists.aidaweb.si/mailman/listinfo/aida
Reply | Threaded
Open this post in threaded view
|

Re: WebCharts

Nicolas Petton
In reply to this post by Francisco A. Lizarralde-2
Le dimanche 08 mars 2009 à 21:21 -0200, Francisco A. Lizarralde a
écrit :
> Wow !!!!
>
> This charts are wonderful !!! So beautiful !!!
>
> I like it so much.
>
> I expect working with it soon.

Just to be sure, do you see charts here?
http://scribo.aidaweb.si/charts.html

>
> Congratulations, wonderful work, Nico.
>
> Cheers,
>
> Francisco
>
> El lun, 09-03-2009 a las 00:04 +0100, nico escribió:
> > Le dimanche 08 mars 2009 à 20:48 -0200, Francisco A. Lizarralde a
> > écrit :
> > > I'm using Firefox 3.0.7 on UBUNTU 8.04.
> >
> > Ok, then, do you see this chart?
> >
> > http://www.deensoft.com/lab/protochart/piechart.php
> >
> > Cheers!
> >
> > Nico
> > >
>
> _______________________________________________
> Aida mailing list
> [hidden email]
> http://lists.aidaweb.si/mailman/listinfo/aida

_______________________________________________
Aida mailing list
[hidden email]
http://lists.aidaweb.si/mailman/listinfo/aida

signature.asc (204 bytes) Download Attachment
12