commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mark Dimon" <mark.di...@btinternet.com>
Subject [Jelly] bug's in gridBagDemo.jelly
Date Tue, 12 Nov 2002 02:54:22 GMT
Hi ,

The way combo's are set up in gridBagDemo does not apear  to work , a cut
down example:

<j:jelly xmlns:j="jelly:core" xmlns="jelly:swing">
    <frame title="Combo Test" var="frame" size="400,200">
        <panel>
            <comboBox name="c" var="c">
                ${c.addItem("this is combo 1")}
            </comboBox>
            <comboBox name="c" var="c">
                ${c.addItem("this is combo 2")}
            </comboBox>
        </panel>
    </frame>
    ${frame.show()}
</j:jelly>

The first combo displays "this is combo2" and the second nothing !

However , moving the assigment out of the combo tag works :

<j:jelly xmlns:j="jelly:core" xmlns="jelly:swing">
    <frame title="Combo Test" var="frame" size="400,200">
        <panel>
            <comboBox name="c" var="c">
            </comboBox>
                ${c.addItem("this is combo 1")}
            <comboBox name="c" var="c">
            </comboBox>
                ${c.addItem("this is combo 2")}
        </panel>
    </frame>
    ${frame.show()}
</j:jelly>

Is this a bug , or error in gridBagDemo.jelly and should we be setting vars
from within the same tag that defines it ?

Regards mark.



--
To unsubscribe, e-mail:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>


Mime
View raw message