On Tue, 22 May 2001, Gunther Birznieks wrote:

> What I am really looking for is a library that abstracts and allows widgets 
> to be developed that are tied to an application not to a set of HTML 
> necessarily. I guess I will start by providing an example of what I want 
> based on what we currently do in our Java framework when he use Templating 
> there. I'd like it if someone has developed the same thing in Perl that we 
> could reuse, otherwise, we may need to write this.

This sounds very useful and powerful.  I've been looking for a project to
help out with, and this one sounds interesting to me.  Let me know if you
want some help developing it, or someone to bounce ideas off...

> <TR>
>    <TH>First Name:</TH><TD><widget id="fname"/></TD>
>    <TH>Last Name:</TH><TD><widget id="lname"/></TD>
>    <TH>Comments</TH><TD><widget id="comments"/></TD>
> </TR>

One thing that I think is very important is to let designers have control
over the look and feel of the interface.  Your widget library should have
some mechanism to allow a template designer to specify attributes for a
widget (like width, height, colour, etc...).

<widget id="comments" width="100" height="5" color="red">
- or -
<widget id="comments" attr="width=100; height=5; color=red">

You can still allow programmers to have control over how the data is
verified, and other attributed like maxlength for text fields and
such.  

Of course these attributes will not be useful in every type of widget.  
ie if the programmer decided that this widget is going to be a text field
instead of a textarea, then the above height attribute would be useless,
and ignored.


Cees


Reply via email to