Just to give you an update...

I managed to work around this issue using a hacked version of
org.apache.hivemind.util.ClasspathResource. Since I already had to hack
another part of Hivemind in order for 'it' to work on
OC4J9.0.4/10.1.2.x.x, I thought it best to centralize these 'hacks'.

public Resource getLocalization(Locale locale)    {
  String path = getPath();

  //hack
  String localizedPath = null;
  Locale pathLocale = null;

  //hack
  if( path.equals("/tapestry/") || path.equals("/dojo/") ) {
      localizedPath = path;
      pathLocale = null;
  } else {
      LocalizedResourceFinder finder
             = new LocalizedResourceFinder(_resolver);
      LocalizedResource localizedResource
             = finder.resolve(path, locale);

      if (localizedResource == null)
          return null;

      localizedPath = localizedResource.getResourcePath();
      pathLocale = localizedResource.getResourceLocale();
  }


  if (localizedPath == null)
            return null;

  if (path.equals(localizedPath))
            return this;

  return new ClasspathResource(_resolver, localizedPath, pathLocale);
}


Just, hoping this will be the end of it.

-J.

> Hi,
>
> Thanks for your suggestion. I am wondering whether a custom
> AjaxShellDelegate will effectively change the fact that the getResource()
> to dojoPath and tapestryPath are called - as this is what causing me
> problems at the moment.
>
> Or to put in other words - will this be sufficient to make the problem go
> away, or do I need to actually hack the hivemind code that performs te
> getResource()?
>
> -J.
>
>
>> You can make the Shell use a custom AjaxShellDelegate, here's the
>> default
>> implementation
>>
>> http://svn.apache.org/viewvc/tapestry/tapestry4/tags/4.1.1/tapestry-framework/src/java/org/apache/tapestry/dojo/AjaxShellDelegate.java?view=markup
>>
>> btw, i'd go for the 4.1.2 version
>>
>> On 5/30/07, Jan Vissers <[EMAIL PROTECTED]> wrote:
>>>
>>> Okay - this might sound stupid...
>>>
>>> It looks like this problem occurs when getResource() needs to get
>>> 'directories' within a library. More specifically in the Shell
>>> component:
>>>
>>>
>>> http://svn.apache.org/viewvc/tapestry/tapestry4/tags/4.1.1/tapestry-framework/src/java/org/apache/tapestry/html/Shell.jwc?view=markup
>>>
>>> <asset name="defaultDojoPath" path="classpath:/dojo/" />
>>> <asset name="defaultTapestryPath" path="classpath:/tapestry/" />
>>>
>>> When these assets are the only ones of their kind in the Tapestry
>>> framework, couldn't I create a custom Shell component that declares
>>> these
>>> assets in some other way?
>>>
>>> Still hoping I can use 4.1.1 - that's why I'm not ready to give up yet.
>>>
>>> -J.
>>>
>>> > Good luck. ;)
>>> >
>>> > p.s. You can always just switch to software not written by bad
>>> programmers
>>> > -
>>> > like jboss or something.  It must work reasonably well if it's good
>>> enough
>>> > for google.
>>> >
>>> > On 5/30/07, Jan Vissers <[EMAIL PROTECTED]> wrote:
>>> >>
>>> >> <snipped/>
>>> >>
>>> >> I'm thinking about filing a service request/bug with Oracle, but
>>> don't
>>> >> think it'll make an impression on them.
>>> >>
>>> >> -J.
>>> >> <snipped/>
>>> >>
>>> >
>>> >
>>> >
>>> > --
>>> > Jesse Kuhnert
>>> > Tapestry/Dojo team member/developer
>>> >
>>> > Open source based consulting work centered around
>>> > dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com
>>> >
>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>
>>>
>>
>>
>> --
>> Andreas Andreou - [EMAIL PROTECTED] - http://andyhot.di.uoa.gr
>> Tapestry / Tacos developer
>> Open Source / JEE Consulting
>>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to