Sorry I missed it.  I was on the road, connected over my phone, and didn't
have the bandwidth to scour the code changes.

You guys are just too good!

THANKS!

Jeremy

On Sat, Jul 26, 2008 at 12:48 AM, Igor Vaynberg <[EMAIL PROTECTED]>
wrote:

> already fixed in m3
>
> -igor
>
> On Fri, Jul 25, 2008 at 10:41 PM, Jeremy Thomerson
> <[EMAIL PROTECTED]> wrote:
> > Please take a look at this and tell me what you think.  I'm on 1.4-m2
> > (haven't upgraded to m3 yet - but looking forward to it).
> >
> > Localizer : 332
> >            while (cursor != null)
> >            {
> >                buffer.append("-").append(cursor.getClass().getName());
> >                buffer.append(":").append(cursor.getId());
> >                cursor = cursor.getParent();
> >                if (cursor instanceof Page)
> >                    break;
> >            }
> >
> > I think that the cursor = cursor.getParent(); needs to go after the if /
> > break check.  In my case, I have two subclasses of SomePage, each
> containing
> > SomePanel, which contains SomeOtherPanel, which has a label in it with
> > string resource model (same happens with wicket:message).  The cache key
> > ends up being
> >
> RESOURCE-KEY-SomeOtherPanelClassName:SomeOtherPanelWicketID-SomePanelClassName:SomeOtherPanelWicketID
> >
> > If it were:
> >
> RESOURCE-KEY-SomeOtherPanelClassName:SomeOtherPanelWicketID-SomePanelClassName:SomeOtherPanelWicketID:SomePageTypeOne
> > and
> >
> RESOURCE-KEY-SomeOtherPanelClassName:SomeOtherPanelWicketID-SomePanelClassName:SomeOtherPanelWicketID:SomePageTypeTwo
> > then the resources would be looked up properly in
> SomePageTypeOne.properties
> > and SomePageTypeTwo.properties - which is the exact situation I have.
> >
> > Is there a reason the page isn't included in the cache key?  This seems
> > suspicious to me.  There are many times that you might have the same
> > component tree, but in different pages, and need different resources
> loaded
> > for each, especially with naming patterns where your panels end up with
> > similar names across many pages.
> >
> > I tried this by copying the code for Localizer to my local source tree
> and
> > changing it there - it works great.  Something must've changed in one of
> the
> > 1.4 versions (I haven't looked to see where) because this used to work
> fine
> > for me, pulling the values from the correct properties files.
> >
> > Thanks!
> > Jeremy Thomerson
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

Reply via email to