commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hans Gilde <>
Subject RE: [jelly][swing] reloadable component ?
Date Mon, 27 Sep 2004 23:35:50 GMT
You have an existing JFrame and you want to change its contents (I think)
based on XML.

That JFrame contains a content panel. You can construct a panel using Jelly
XML. Set the var attribute on the panel like this <panel name="foo"

The Jelly script would look like this:

<xml header here>
<panel name="foo" var="bar">
	<panel contents here>

That panel is now set into the JellyContext with the variable name "bar".
After you run the script, you can get this variable out of the context a
using context.getVariable().

Now, you can replace the content panel of your frame with this new panel. 

Is this what you were thinking?


-----Original Message-----
From: Paul Libbrecht [] 
Sent: Friday, September 24, 2004 3:13 AM
To: Jakarta Commons Developers List
Subject: [jelly][swing] reloadable component ?


I am wondering how much of the following is now doable with the 
clean-up of attached beans that has happened recently: I'd like to use 
jelly-swing components in a similar way to browser windows with an 
ability to reset and refill them with, probably, the same jelly script.

Is it safe for me to just recall doTag on this component?
I fear not.


To unsubscribe, e-mail:
For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message