I kind of consider it more of a design omission ;) We wrote this file very early on and I don't think I had even considered the possibility of hierarchies of subclasses components or pages at that time.

The only file changed is ComponentStringResourceLoader and all changes were in the implementation, no changes to the public API. I think this is therefore certainly a candidate for a 1.0.1 release.

regards,
Chris

Martijn Dashorst wrote:

Can we back port this feature into 1.0? I think we have room for a 1.0.1 somewhere in the near future. I think this could be considered to be a bug ;-)

Martijn

Jonathan Carlson wrote:

Thank you!  I'm sorry I didn't notice it before 1.0 was frozen.

- Jonathan


[EMAIL PROTECTED] 2005-07-01 3:08:00 AM >>>

Yes, it is really cheap. Most of the component hierarchies are very shallow and the code to traverse them is very trivial. I have made the changes to ComponentStringResourceLoader (and the test cases) and these are now in CVS HEAD. Example case:

MyPage extends BasePage
MyPanel extends BasePanel
MyPage contains a MyPanel
MyPanel contains a MyLabel whose text is read from a resource bundle

The search order will now be:
search MyPage.properties
search BasePage.properties
search MyPanel.properties
search BasePanel.properties
search  MyLabel.properties

The inheritance of resources by searching BasePage.properties and BasePanel.properties are the new additions.

regards,
Chris



Eelco Hillenius wrote:

Is that still cheap enough? If it is, it sounds like a great idea.

Eelco

Jonathan Locke wrote:

sounds right to me,

Chris Turner wrote:

Oops, I never thought of that when I wrote the resource location code. I'll make the change - shouldn't take me long. The search order will then be:

1) Search properties for current component class
2) Recursively search properties for each super class of the current component class 3) Recursively search properties for each parent mark-up container (following stages 1 and 2 for each)
4) Look in the application properties

regards,
Chris


Jonathan Locke wrote:

you are correct.
reverse component hierarchy search.
no class inheritance search (i was thinking of another project).
seems like class inheritance search could occur for each component searched.
but that's not in there now.

Juergen Donnerstag wrote:

up the component hierarchy and then the application, that is true. But
up the class hierarchy (super class) as well?

Juergen

On 7/1/05, Jonathan Locke <[EMAIL PROTECTED]> wrote:


yes, and then in the application, i think...

Eelco Hillenius wrote:



Yes, properties should be searched up higher in the hierarchy as far
as I know.

Eelco


Jonathan Carlson wrote:



Question: Are properties files inherited like markup files are?

I have a subclass of a panel that doesn't seem to be able to find a resource in the superclasses properties file. I'm still using some pre
1.0 code, were any bugs fixed in this regard shortly before 1.0?

Thanks in advance!

Jonathan



______________________________________________________________________ This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify
the system manager.

Katun Corporation -- www.katun.com _____________________________________________________________________


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________
Wicket-user mailing list
[email protected] https://lists.sourceforge.net/lists/listinfo/wicket-user





-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________
Wicket-user mailing list
[email protected] https://lists.sourceforge.net/lists/listinfo/wicket-user



-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________
Wicket-user mailing list
[email protected] https://lists.sourceforge.net/lists/listinfo/wicket-user





-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&opÌk _______________________________________________
Wicket-user mailing list
[email protected] https://lists.sourceforge.net/lists/listinfo/wicket-user



-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________
Wicket-user mailing list
[email protected] https://lists.sourceforge.net/lists/listinfo/wicket-user


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________
Wicket-user mailing list
[email protected] https://lists.sourceforge.net/lists/listinfo/wicket-user

-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________
Wicket-user mailing list
[email protected] https://lists.sourceforge.net/lists/listinfo/wicket-user




-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________
Wicket-user mailing list
[email protected] https://lists.sourceforge.net/lists/listinfo/wicket-user




-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________
Wicket-user mailing list
[email protected] https://lists.sourceforge.net/lists/listinfo/wicket-user
______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email ______________________________________________________________________

______________________________________________________________________
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

Katun Corporation -- www.katun.com _____________________________________________________________________


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user



-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user




-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to