Re: Re: How I plan to move forward.

CrossHelix <[email protected]> Sun, 19 Feb 2006 21:10:32 -0600
Newsgroups gmane.comp.ide.eclipse.spindle.devel
Organization Cross Helix
Message-ID <[email protected]>
Geoff -

  Is there a way... (what a way to start a question :-/) to add
exclusions? In asking that question, I glanced through some of the code
I have access to and am afraid there's no sort of 'exclusion rule' that
would solve the namespace problem in it so I guess my question is aimed
at education vs. reality. I see this more of a possibility with more the
Tapestry code situation as opposed to the /WEB-INF/foo.application +
/WEB-INF/bar.library one.

  As for hard to explain and hard for end users to accept - I'd actually
venture to replace "hard" with "impossible". And that's just going by
what I've already had to explain without outside of this issue.

  fyi:  a reply to your email goes directly to you, not the list.

Brian
 
Geoff Longman wrote:
> I have been writing code and tests to enforce tradeoff #3
>
> (3)"Namespaces of any kind, application or library, must not overlap"
>
> and as I have progressed it has become clear how this will impact
> users of Spindle.
>
> "must not overlap" is actually easy to test for.
>
> This is legal:
>
> /WEB-INF/foo/foo.application
> /WEB-INF/bar/bar.libary
> /WEB-INF/cat/cat.libary
>
> none of the above overlap. No page/component in any of the above
> namespaces can be referenced by another namespace.
>
> This is illegal:
>
> /WEB-INF/foo.application
> /WEB-INF/bar.library
>
> if Foo is a component in foo.application, Foo is also a component in
> bar.library.
>
> This is legal (but undesired IMHO:
>
> /bar/bar.library
> /WEB-INF/foo.application
>
> Undesirable as bar.library is outside of /WEB-INF/ and therefore
> "servable" to a browser.
>
> This would appear to be illegal (and is by the current detection routine):
>
> /bar.library
> /WEB-INF/foo.application
>
> Since a page in bar.libary could reference component Foo in
> foo.application like this:
>
> @WEB-INF/Foo
>
> But WEB-INF is not allowed in component names so an error would be
> thrown by Tapestry.
> So /bar.library is legal.
>
> But, this is illegal
>
> /bar.library
> /cat/cat.library
> /WEB-INF/foo.application
>
> foo.application is safe but all the pages/components in cat are also
> part of bar.
>
> To make the last one legal one would have to move bar:
>
> /bar/bar.library
> /cat/cat.library
> /WEB-INF/foo.application
>
>
> Illegal:
>
> /com/iw/foo.library
> /com/iw/bar/bar.library
>
> Legal:
>
> /com/iw/foo/foo.library
> /com/iw/bar/bar.library
>
> I'm getting nervous that
>
> (3)"Namespaces of any kind, application or library, must not overlap"
>
> is too:
>
> - Hard to explain
> - Hard to accept by end users.
>
>
> And to make this even more special, Tapestry itself violates the rule:
>
> /org/apache/tapestry/Framework.library
> /org/apache/tapestry/contrib/Contrib.library
> /org/apache/tapestry/contrib/inspector/Inspector.library
>
> Which the detection routine would reject as illegal.
>
> I'm trying to underestand the implications of this and am spending
> some time this evening coming up with an example application.
>
> Geoff
>
> --
> The Spindle guy.          http://spindle.sf.net
> Get help with Spindle:   
> http://lists.sourceforge.net/mailman/listinfo/spindle-user
> Blog:                     http://jroller.com/page/glongman
> Feature Updates:          http://spindle.sf.net/updates
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
> for problems?  Stop!  Download the new AJAX search engine that makes
> searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
> http://sel.as-us.falkag.net/sel?cmd=k&kid3432&bid#0486&dat1642
> _______________________________________________
> Spindle-developer mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/spindle-developer
>
>   


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642