forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tim Williams <william...@gmail.com>
Subject Re: locationmap mounting [was: Re: [jira] Commented: (FOR-573) Provide locationmap mounting capability
Date Tue, 30 Aug 2005 00:37:23 GMT
On 8/29/05, Thorsten Scherler <thorsten@apache.org> wrote:
> On Mon, 2005-08-29 at 15:39 -0400, Tim Williams wrote:
> > On 8/29/05, Thorsten Scherler (JIRA) <jira@apache.org> wrote:
> > >     [ http://issues.apache.org/jira/browse/FOR-573?page=comments#action_12320465
]
> > >
> > > Thorsten Scherler commented on FOR-573:
> > > ---------------------------------------
> > >
> > > I tried to rewrite the internal.view plugin with the locationmap, but that
was not working like I expected. I only have been able to see the lm rewritting when I did
forrest run in the root of the plugin. I reckon it is because of this issue.
> > >
> > > Is there a an example of the mount in the lm?
> >
> > I'm replying onlist instead of through JIRA to keep JIRA clean of
> > free-flowing discussion -- assuming that's desired.
> >
> > I've pasted a mounting example below.  Note that because of another
> > issue, the lm being mounted *must* exist.  I'm hoping to fix that this
> > evening though.  Then the syntax will change to become:
> > <select>
> >   <mount src="somelocationmap.xml"/>
> > </select>
> >
> > That said, I'm not sure if that's causing your issue or not.  Are you
> > saying you the locationmap isn't working when you try it on a
> > seed-sample site?  I actually would have expected it to be the other
> > way around since plugin-locationmaps have yet to be tested at all and
> > aren't even being mounted via the workaround AFAIK.
> 
> Your suspected right.
> 
> I added
> plugins/org.apache.forrest.plugin.internal.view/src/documentation/content/locationmap.xml
and changed the internal.xmap to use {lm:test}.
> 
> When I now change to org.apache.forrest.plugin.internal.view and do
> forrest run then everything works fine like I expected.
> 
> Now I change my test project and the locationmap {lm:test} do not get
> matched anymore within views.
> 
> I wonder how the daisy plugin is working from a new seed.
> 
> To understand it right, we would have to mount all locationsmap from
> plugins from the main lm in forrest, right. Did we thought about
> mounting them dynamically?

There hasn't been a use-case for plugin locationmaps yet.  It
shouldn't be too difficult to do though.  I think the model is already
there with the *.xmap's for plugins, however they are added to a
project, the same approach would be taken along with an exists-based
mounting in forrest:locationmap.xml.

Having said that, I think Ross's reply is the preferred approach --
let's go ahead with views' final destination and get it in the core
via a branch.

Either way, I'm here to help you get this working however you want to proceed.  
--tim

Mime
View raw message