| Previous · Next | |
| User | Message |
|
super_drone
|
Date: 9/7/2006 7:10 pm · Subject: Assets vs Widgets · Rating: 9
Hi All Still trying to learn new WebGUI paradigm of doing things.I've gotten hang of Assets and how they make up a page (well..somewhat). My Questions 1. Can Assets be compared to Widgets in traditional GUI frameworks (like Java Swing)? How far this analogy goes? 2. Are Assets like Classes whose 'instances' are placed on a Page? If so, does each 'instance' get it's own unique ID? Can Each 'instance' of an Asset be customized via it's own set of styles? If I had a 'Grid' Widget, can I place it on multiple pages and connect each to a different data source (ie table) in the database? 3. When a Page is rendered, does it recursively call 'view' on all it's Child Assets which then 'draw' themselves? 4. What is the concept of 'container' as used in WebGUI? 5. It would be very instructive to know how a request gets processed from beginning to the end..what steps it goes thru before response is generated? Thanks for your help in understanding this new system. I do think it's revolutionary.
|
| Back to Top |
Rate [ | ]
|
|
crythias
|
Date: 9/7/2006 8:00 pm · Subject: Re: Assets vs Widgets · Rating: 5
I think you're right on. 1) I am unfamiliar with the Java concepts, but I'm likely to say, yes. Generally, I think of Assets as content chunks that can be arranged on a page. They can be clicked and dragged all over the place. Plus, you can make a copy of or a shortcut to any asset. Further, you can call any asset from within another asset using the AssetProxy macro. 2) Yes. Yes. Yes, with default, and customizable, templates. Yes. -- |
| Back to Top |
Rate [ | ]
|
|
xdanger
|
Date: 9/7/2006 10:10 pm · Subject: Re: Assets vs Widgets · Rating: -3
5. It would be very instructive to know how a request gets processed from beginning to the end..what steps it goes thru before response is generated? Probably the best way to show this to you is to point you to an old post on the developer mailing list =) http://mail.plainblack.com:8000/Lists/webguidev-old/Message/2622.html |
| Back to Top |
Rate [ | ]
|
|
JT
|
Date: 9/7/2006 11:00 pm · Subject: Re: Assets vs Widgets · Rating: -4
> 1. Can Assets be compared to Widgets in traditional GUI frameworks (like Java Swing)? >How far this analogy goes? To some extent, but comparing the two really doesn't get you anywhere since swing is so very diffferent from the web. Asset = Application An asset can do something as simple as serve up an image, or something as complex as be an entire game. It's all up to you. > 2. Are Assets like Classes whose 9instances9 are placed on a Page? If so, does each >9instance9 get it9s own unique ID? Yes assets are classes and instances are generated. However, a "page" is a relative concept. Every asset has it's own URL so every asset is, in essense, a page. If you're talking about a "page layout" when you say "page", then the asset is really a child of the page, not placed on the page. > Can Each 9instance9 of an Asset be customized via it9s own set of styles? Yup. > If I had a 9Grid9 Widget, can I place it on multiple pages and connect each to a >different data source (ie table) in the database? Yes. > 3. When a Page is rendered, does it recursively call 9view9 on all it9s Child Assets >which then 9draw9 themselves? Again you must be talking about a Page Layout asset here. And it doesn't call anything recursively. Only it's children, not all it's descendants. But yes, it calls the view method of each of it's child assets, except for other layouts, because then you'd get a feedback problem. > 4. What is the concept of 9container9 as used in WebGUI? Containers are just assets. But the concept of a container allows us to make decisions when traversing a tree. For example, when you add an asset, you're always returned to view it's container rather than itself. It just makes things easier for the end user. Technically any asset can be a container. > 5. It would be very instructive to know how a request gets processed f! rom beginning >to the end..what steps it goes thru before response is generated? > Thanks for your help in understanding this new system. I do think it9s revolutionary. The drawings that jukka pointed out are good, but they are out of date. I'm working on updating them, and once they are, they'll be on webguidev.com JT ~ Plain Black ph: 703-286-2525 ext. 810 fax: 312-264-5382 http://www.plainblack.com I reject your reality, and substitute my own. ~ Adam Savage |
| Back to Top |
Rate [ | ]
|