hey pat can we get this in for a 2.0 release? doesnt seem like a painfull feature to add and its usefull

Cameron Braid wrote:

I can leave it till 2.0 is released.
I am currently using this code in 3 projects, so its stable, and its a fairly small change.
1 new property on abstractUiTag
2 if statements
But... I'll leave it till after the release.
When is the release ?
:)


    -----Original Message-----
    *From:* [EMAIL PROTECTED]
    [mailto:[EMAIL PROTECTED] *On Behalf
    Of *Pat Lightbody
    *Sent:* Monday, 6 October 2003 12:25 PM
    *To:* [EMAIL PROTECTED]
    *Subject:* Re: [OS-webwork] Idea to enhance the velocity templates
    for re-use

    Well, it sounds somewhat useful, but right now I'm not that
    interested in new features but rather making sure the ones 1.3 are
    all supported and we have cleared out all our bugs. Maybe in a
    release after 2.0?

        ----- Original Message -----
        *From:* Cameron Braid <mailto:[EMAIL PROTECTED]>
        *To:* [EMAIL PROTECTED]
        <mailto:[EMAIL PROTECTED]>
        *Sent:* Sunday, October 05, 2003 6:59 PM
        *Subject:* RE: [OS-webwork] Idea to enhance the velocity
        templates for re-use

I meant to mention that this isn't in the CVS repo currently. It is an extension that I am using on some projects.
Cameron.


            -----Original Message-----
            *From:* [EMAIL PROTECTED]
            <mailto:[EMAIL PROTECTED]>
            [mailto:[EMAIL PROTECTED]
            *On Behalf Of *Cameron Braid
            *Sent:* Monday, 6 October 2003 11:53 AM
            *To:* [EMAIL PROTECTED]
            <mailto:[EMAIL PROTECTED]>
            *Subject:* [OS-webwork] Idea to enhance the velocity
            templates for re-use

I have implemented an extension to the AbstractUITag and the
/templates/xhtml/controlheader.vm and controlfooter.vm to
allow me to re-use the ui components with different layouts.
What I have done is added a new property of the ui tags
called "controlTemplate"
this specifies the name of the controlhead and controlfooter
tempaltes to use instead of the defaults.
This allows the same input controls to be used with
different layouts.
The modification that I have made to controlheader.vm is :
** *#if* ($tag.controlTemplate)
*#if*($tag.controlTemplate != "")
*#parse* ("${theme}${tag.controlTemplate}-header.vm")
*#end*
*#else*
* ## default contents*
*#end*
and a similiar pattern in the footer.
Then, if you use
<ww:textfield controlTemplate="filterbox" name="name"/>
you can have filterbox-header.vm and filterbox-footer.vm in
the /templates/xhtml folder to layout the label and errors
differently.
Is this something that other people want included in the core ?
Cameron.





------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork

Reply via email to