You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by Paul Libbrecht <pa...@activemath.org> on 2005/11/04 14:05:01 UTC

[jelly] refillComponent tag ? (was Re: swing example)

Can other Jelly-Swing users comment on such a tag. It really looks to 
be able to solve quite many issues I've met thus far.

thanks

paul


Le 3 nov. 05, à 21:35, Dário Luís Coneglian Oliveros a écrit :
[...]
> Regarding your reloadable strategy, I think it would be great to have 
> something like that. We can discuss it later if you wish.
> [...]
>> Just thinking out loud, I seem to encounter that the following might 
>> be
>> enough:
>>
>> <sw:frame>
>>   blabla
>>    <sw:panel var="myList"/>
>>   </sw:frame>
>>
>> and somewhere else (e.g. as a child of action:
>>
>> <sw:refillComponent name="panel">
>>    <sw:label>casdasa</sw:label>
>>    ....
>> </sw:refillComponent>
>>
>> That is, we would introduce a "target" element that would allow an
>> component to be cleared than repopulated by its content...
>> This seems suddenly pretty easy to implement compared to the
>> "reloadable" kind of things I expected. Would it fit your task ?


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


RE: [jelly] refillComponent tag ? (was Re: swing example)

Posted by Hans Gilde <hg...@gmail.com>.
I agree that it's got plenty of uses. Actually, updating a list wouldn't be
one of my first choices because I'd rather see the list's model get the
update rather than the swing components... :)

If the action was a button and the change didn't affect the button itself, I
don't think that this kind of removing/adding components will affect focus.

-----Original Message-----
From: Paul Libbrecht [mailto:paul@activemath.org] 
Sent: Sunday, November 06, 2005 4:31 PM
To: Jakarta Commons Users List
Subject: Re: [jelly] refillComponent tag ? (was Re: swing example)


Le 6 nov. 05, à 19:48, Hans Gilde a écrit :

> This solution wouldn't be the same as "tabs" or switching between 
> panels
> using a menu.

No but it has many many other usages... for example updating the 
display of a list as result of the push of an "add" or "remove" 
button...
It might loose the focus but that's not entirely avoidable...

> I have a bunch of tab stuff, including a proper <tabbedPane> with
> <tabbedPaneTab> tags that I've been meaning to commit. Will get to it 
> some
> day soon.

That'd be quite lovely!

paul

> -----Original Message-----
> From: Paul Libbrecht [mailto:paul@activemath.org]
> Sent: Friday, November 04, 2005 8:05 AM
> To: Jakarta Commons Users List
> Subject: [jelly] refillComponent tag ? (was Re: swing example)
>
> Can other Jelly-Swing users comment on such a tag. It really looks to
> be able to solve quite many issues I've met thus far.
>
> thanks
>
> paul
>
>
> Le 3 nov. 05, à 21:35, Dário Luís Coneglian Oliveros a écrit :
> [...]
>> Regarding your reloadable strategy, I think it would be great to have
>> something like that. We can discuss it later if you wish.
>> [...]
>>> Just thinking out loud, I seem to encounter that the following might
>>> be
>>> enough:
>>>
>>> <sw:frame>
>>>   blabla
>>>    <sw:panel var="myList"/>
>>>   </sw:frame>
>>>
>>> and somewhere else (e.g. as a child of action:
>>>
>>> <sw:refillComponent name="panel">
>>>    <sw:label>casdasa</sw:label>
>>>    ....
>>> </sw:refillComponent>
>>>
>>> That is, we would introduce a "target" element that would allow an
>>> component to be cleared than repopulated by its content...
>>> This seems suddenly pretty easy to implement compared to the
>>> "reloadable" kind of things I expected. Would it fit your task ?
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-user-help@jakarta.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-user-help@jakarta.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Re: [jelly] refillComponent tag ? (was Re: swing example)

Posted by Paul Libbrecht <pa...@activemath.org>.
Le 6 nov. 05, à 19:48, Hans Gilde a écrit :

> This solution wouldn't be the same as "tabs" or switching between 
> panels
> using a menu.

No but it has many many other usages... for example updating the 
display of a list as result of the push of an "add" or "remove" 
button...
It might loose the focus but that's not entirely avoidable...

> I have a bunch of tab stuff, including a proper <tabbedPane> with
> <tabbedPaneTab> tags that I've been meaning to commit. Will get to it 
> some
> day soon.

That'd be quite lovely!

paul

> -----Original Message-----
> From: Paul Libbrecht [mailto:paul@activemath.org]
> Sent: Friday, November 04, 2005 8:05 AM
> To: Jakarta Commons Users List
> Subject: [jelly] refillComponent tag ? (was Re: swing example)
>
> Can other Jelly-Swing users comment on such a tag. It really looks to
> be able to solve quite many issues I've met thus far.
>
> thanks
>
> paul
>
>
> Le 3 nov. 05, à 21:35, Dário Luís Coneglian Oliveros a écrit :
> [...]
>> Regarding your reloadable strategy, I think it would be great to have
>> something like that. We can discuss it later if you wish.
>> [...]
>>> Just thinking out loud, I seem to encounter that the following might
>>> be
>>> enough:
>>>
>>> <sw:frame>
>>>   blabla
>>>    <sw:panel var="myList"/>
>>>   </sw:frame>
>>>
>>> and somewhere else (e.g. as a child of action:
>>>
>>> <sw:refillComponent name="panel">
>>>    <sw:label>casdasa</sw:label>
>>>    ....
>>> </sw:refillComponent>
>>>
>>> That is, we would introduce a "target" element that would allow an
>>> component to be cleared than repopulated by its content...
>>> This seems suddenly pretty easy to implement compared to the
>>> "reloadable" kind of things I expected. Would it fit your task ?
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-user-help@jakarta.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-user-help@jakarta.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


RE: [jelly] refillComponent tag ? (was Re: swing example)

Posted by Hans Gilde <hg...@gmail.com>.
This solution wouldn't be the same as "tabs" or switching between panels
using a menu.

I have a bunch of tab stuff, including a proper <tabbedPane> with
<tabbedPaneTab> tags that I've been meaning to commit. Will get to it some
day soon.

-----Original Message-----
From: Paul Libbrecht [mailto:paul@activemath.org] 
Sent: Friday, November 04, 2005 8:05 AM
To: Jakarta Commons Users List
Subject: [jelly] refillComponent tag ? (was Re: swing example)

Can other Jelly-Swing users comment on such a tag. It really looks to 
be able to solve quite many issues I've met thus far.

thanks

paul


Le 3 nov. 05, à 21:35, Dário Luís Coneglian Oliveros a écrit :
[...]
> Regarding your reloadable strategy, I think it would be great to have 
> something like that. We can discuss it later if you wish.
> [...]
>> Just thinking out loud, I seem to encounter that the following might 
>> be
>> enough:
>>
>> <sw:frame>
>>   blabla
>>    <sw:panel var="myList"/>
>>   </sw:frame>
>>
>> and somewhere else (e.g. as a child of action:
>>
>> <sw:refillComponent name="panel">
>>    <sw:label>casdasa</sw:label>
>>    ....
>> </sw:refillComponent>
>>
>> That is, we would introduce a "target" element that would allow an
>> component to be cleared than repopulated by its content...
>> This seems suddenly pretty easy to implement compared to the
>> "reloadable" kind of things I expected. Would it fit your task ?


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


RE: [jelly] refillComponent tag ? (was Re: swing example)

Posted by Hans Gilde <hg...@gmail.com>.
Should be fine. It would implement ContainerTag and would just clear the
container, then run its body. The body components would add themselves and
then it may need of call pack if it's visible. There are a couple of tricky
bits, like ensuring that it's addChild method has all the features of
ComponentTag's addChild.

It could extend ComponentTag, but one would have to look carefully at what
must be overridden.

One question is: this new tag is essentially acting like the original panel
in terms of allowing children to add components to it. Would it go one step
further and allow you to change the bean fields of that panel using
attributes in the tag?

For instance, would this work:

<sw:frame>
	<sw:panel name="myPanel" var="myList"/>
</sw:frame>

.....
<!--refillComponent is now proxying for the panel tag above-->
<sw:refillComponent name="yourPanel" ref="myList">
	<sw:label>the panel now has the bean property
name=yourPanel</sw:label>
</sw:refillComponent>

-----Original Message-----
From: Paul Libbrecht [mailto:paul@activemath.org] 
Sent: Friday, November 04, 2005 8:05 AM
To: Jakarta Commons Users List
Subject: [jelly] refillComponent tag ? (was Re: swing example)

Can other Jelly-Swing users comment on such a tag. It really looks to 
be able to solve quite many issues I've met thus far.

thanks

paul


Le 3 nov. 05, à 21:35, Dário Luís Coneglian Oliveros a écrit :
[...]
> Regarding your reloadable strategy, I think it would be great to have 
> something like that. We can discuss it later if you wish.
> [...]
>> Just thinking out loud, I seem to encounter that the following might 
>> be
>> enough:
>>
>> <sw:frame>
>>   blabla
>>    <sw:panel var="myList"/>
>>   </sw:frame>
>>
>> and somewhere else (e.g. as a child of action:
>>
>> <sw:refillComponent name="panel">
>>    <sw:label>casdasa</sw:label>
>>    ....
>> </sw:refillComponent>
>>
>> That is, we would introduce a "target" element that would allow an
>> component to be cleared than repopulated by its content...
>> This seems suddenly pretty easy to implement compared to the
>> "reloadable" kind of things I expected. Would it fit your task ?


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org