Spring MVC should not process *.htm, only *.html.

You might look into using Prototype Window - I don't know if you can
load external content into them or not.

http://prototype-window.xilinus.com/index.html

I haven't looked at Greybox until today - but it looks like a slick
library. Can you please enter an issue for it into JIRA and I'll take
a look at making it work before the next release?

http://issues.appfuse.org/browse/APF

Thanks,

Matt

On 9/19/07, syg6 <[EMAIL PROTECTED]> wrote:
>
> Well I don't know if I'd go so far as to ask for Greybox to work with Appfuse
> out of the box. I don't know if getting rid of pop-ups is something people
> are generally interested in, and even if they were there are many flavors
> out there (Thickbox, Thickbox reloaded, etc.), I'm not sure Greybox is a
> standard or anything ...
>
> That said, it would be swell if it did work. :) I think rather than change
> all of my pages to be .htm so one single .html page will work correctly is
> much more difficult that changing one page (loader_frame.html) to .htm and
> leaving everything else alone. I've grown fond of .html.
>
> By default does Spring MVC process *.htm files?
>
> Shouldn't it be possible to tell Spring MVC not to process *.htm, either
> with StaticFilter or somewhere else in web.xml? (Where do we tell Spring MVC
> to handle *.html? I can't seem to find it ...)
>
> Regardless, it should at the very least not decorate it, since I have
> /scripts/greybox_static/* in my decorators.xml. But it does ...
>
> I have to move along and actually do some core stuff for the project, for
> the moment I am just going to use plain old pop-ups. I'll come back to it
> and try your suggestions when I get a chance. If in the mean time someone
> gets it to work, all the better.
>
> Thanks,
> Bob
>
>
>
> mraible wrote:
> >
> > I'm sure it's possible to get Greybox working. If you'd like us to
> > configure AppFuse so it works out-of-the-box with Grebox, please enter
> > an issue in JIRA and mark "fix for" to 2.0.1.
> >
> > One solution that should work is to change your default extension for
> > Spring MVC. I'd try removing the StaticFilter (and its mapping) from
> > web.xml, re-enabling the servlet-mapping for Spring MVC and setting
> > it's extension to something like *.htm. Then modify
> > dispatcher-servlet.xml and web-tests.xml to use .htm instead of .html.
> >
> > Matt
> >
> > On 9/19/07, syg6 <[EMAIL PROTECTED]> wrote:
> >>
> >> I got rid of all the stuff I had created - GreyboxController,
> >> greybox.jsp,
> >> and the reference to it in dispatcherservlet.xml. I am now back to using
> >> loader_frame.html, which lives in /scripts/greybox_static/.
> >>
> >> In default.jsp I have defined the GB_ROOT_DIR like this:
> >>
> >> var GB_ROOT_DIR = "<c:url value='/scripts/greybox_static/'/>";
> >>
> >> And in my jsp I have defined this line:
> >>
> >> href="<c:url value='/findplaces.html'/>" onclick="return GB_show('Find
> >> places', this.href)">Find places
> >>
> >> This in turn tries to load the loader_frame.html page. I changed the
> >> following line in my web.xml (in bold):
> >>
> >> <filter>
> >>         <filter-name>staticFilter</filter-name>
> >>
> >> <filter-class>org.appfuse.webapp.filter.StaticFilter</filter-class>
> >>         <init-param>
> >>             <param-name>includes</param-name>
> >>
> >> <param-value>/scripts/dojo/*,/dwr/*,/scripts/greybox_static/*</param-value>
> >>         </init-param>
> >>         <init-param>
> >>             <param-name>servletName</param-name>
> >>             <param-value>dispatcher</param-value>
> >>         </init-param>
> >>     </filter>
> >>
> >> and no go. When I click on the above link it greys out the page and
> >> creates
> >> a greybox but loads nothing in it. No errors. And if I try to load
> >> /scripts/greybox_static/loader_frame.html directly in the browser it
> >> seems
> >> that Spring MVC is still processing it because it is decorating the page.
> >> Theoretically I shouldn't have to put this page in decorators.xml,
> >> correct?
> >> The idea in putting it in the StaticFilter section of web.xml is so
> >> Spring
> >> MVC does nothing at all with it, and lets it be served by the web server
> >> as
> >> a normal html page.
> >>
> >> Something tells me these fancy js scripts weren't designed to (easily)
> >> work
> >> with complex envirnoments like Appfuse. For now I am going to use
> >> pop-ups.
> >> Unfortunately the client has already seen and loves greybox. Ugh.
> >>
> >> Bob
> >>
> >>
> >>
> >>
> >> syg6 wrote:
> >> >
> >> > I am using 2.0 RC1. I haven't tried configuring StaticFilter, I am
> >> going
> >> > to give it a try. I have to un-do all the stuff I have just done -
> >> > changing loader_frame.html back into loader_frame.htm, etc.
> >> >
> >> > I will let you (the list) know.
> >> >
> >> > Thanks,
> >> > Bob
> >> >
> >> >
> >> > mraible wrote:
> >> >>
> >> >> Have you tried adding /scripts/* to your StaticFilter? What version of
> >> >> AppFuse you are using?
> >> >>
> >> >> Matt
> >> >>
> >> >> On 9/18/07, syg6 <[EMAIL PROTECTED]> wrote:
> >> >>>
> >> >>> Did anyone every get this to work? I was thiiiiiiis close but no
> >> cigar.
> >> >>>
> >> >>> The problem is that internally greybox uses a page,
> >> loader_frame.html,
> >> >>> to do
> >> >>> most of the work. This page is found with other 'static' files, like
> >> css
> >> >>> and
> >> >>> gif, in a directory you specify in the GB_ROOT_DIR variable. When you
> >> >>> create
> >> >>> a link that opens a Greybox it calls that page passing it the url you
> >> >>> want
> >> >>> to open.
> >> >>>
> >> >>> The problem of course is that Spring MVC wants to manage the
> >> >>> loader_frame.html url because Spring manages all *.html urls. So I
> >> made
> >> >>> myself an empty controller, LoaderFrameController, that redirects to
> >> >>> loaderFrame.jsp which is nothing more than the old loader_frame.html.
> >> >>> And I
> >> >>> also made an entry in decorators.xml so that page wouldn't be
> >> decorated.
> >> >>> I
> >> >>> figured I might have to change the .js so it finds the images and
> >> .css
> >> >>> but
> >> >>> that's all ...
> >> >>>
> >> >>> But it doesn't work. No error, just doesn't load the page. At this
> >> >>> point,
> >> >>> after trying unsuccessfully to get both thickbox and greybox to work
> >> >>> with
> >> >>> Appfuse, I think I am going to give up and just use normal pop-ups.
> >> It
> >> >>> might
> >> >>> be as simple as telling Spring MVC not to manage loader_frame.html.
> >> Or
> >> >>> changing loader_frame.html to loader_frame.htm (I already tried this
> >> ...
> >> >>> doesn't work either. It seems Spring MVC is also managing *.htm. And
> >> it
> >> >>> ignored the line I put in decorators.xml no not decorate
> >> >>> /scripts/greybox_static/loading_frame.htm)
> >> >>>
> >> >>> If anyone has successfully used Thickbox or Greybox with Appfuse
> >> (Spring
> >> >>> MVC) I'd be interested in knowing how you did it. Otherwise, it looks
> >> >>> like
> >> >>> window.open for me!
> >> >>>
> >> >>> Bob
> >> >>>
> >> >>>
> >> >>> climbingrose wrote:
> >> >>> >
> >> >>> > I think you have to disable the script in global.js which runs when
> >> >>> the
> >> >>> > page
> >> >>> > load because it interferes with greybox.
> >> >>> >
> >> >>> > On 8/10/07, thinkboy <[EMAIL PROTECTED]> wrote:
> >> >>> >>
> >> >>> >>
> >> >>> >> hi matt
> >> >>> >> even I remove all sitemesh decorator from my jsp. it still show
> >> >>> error:
> >> >>> >> seems having error on something else. never mind, hopefully, I
> >> will
> >> >>> get
> >> >>> >> it
> >> >>> >> work someday.
> >> >>> >> btw, greybox is really nice.  i am so sad that I could not get it
> >> >>> running
> >> >>> >> :-(
> >> >>> >> sorry to trouble u friends ..
> >> >>> >>
> >> >>> >> ----
> >> >>> >> error message in greybox window
> >> >>> >> ----
> >> >>> >> The page isn't redirecting properly
> >> >>> >> Firefox has detected that the server is redirecting the request
> >> for
> >> >>> >> this address in a way that will never complete.
> >> >>> >>
> >> >>> >>
> >> >>> >>
> >> >>> >>
> >> >>> >>
> >> >>> >> mraible wrote:
> >> >>> >> >
> >> >>> >> > You might try disabling SiteMesh on your page (by excluding it
> >> in
> >> >>> >> > decorators.xml or commenting out the filter-mapping in web.xml).
> >> >>> That
> >> >>> >> > should allow you to view things w/o worrying about AppFuse's
> >> >>> default
> >> >>> >> > JavaScript or CSS.
> >> >>> >> >
> >> >>> >> > Matt
> >> >>> >> >
> >> >>> >> > On 8/9/07, Thinkboy <[EMAIL PROTECTED]> wrote:
> >> >>> >> >> hi,
> >> >>> >> >>
> >> >>> >> >> sorry, this issue may not be very much about appfuse problem.
> >> >>> >> >>
> >> >>> >> >> anyone has successfully setup greybox in appfuse?  it is very
> >> >>> beauiful
> >> >>> >> >> for popup windows: http://orangoo.com/labs/GreyBox/
> >> >>> >> >>
> >> >>> >> >> however. I am unable to set it up in appfuse and not able to
> >> find
> >> >>> any
> >> >>> >> >> solution via google. i just doubt  it may due to any conflict
> >> in
> >> >>> js or
> >> >>> >> >> css  which are existing in appfuse.
> >> >>> >> >>
> >> >>> >> >> pls help!.
> >> >>> >> >>
> >> >>> >> >> [scenario:]
> >> >>> >> >> 1) I installation greybox:
> >> >>> >> >> 2) in decorator/default.jsp, i added the following snippet in
> >> >>> between
> >> >>> >> >> <head> tag
> >> >>> >> >>         <script type="text/javascript">
> >> >>> >> >>         var GB_ROOT_DIR = "./greybox/";
> >> >>> >> >>         </script>
> >> >>> >> >> <script type="text/javascript"
> >> >>> >> src="/platform/greybox/AJS.js"></script>
> >> >>> >> >>                 <script type="text/javascript"
> >> >>> >> >> src="/platform/greybox/gb_scripts.js"></script>
> >> >>> >> >>                 <link rel="stylesheet" type="text/css"
> >> media="all"
> >> >>> >> >> href="http:/mydomain.com/platform/greybox/gb_styles.css"/>
> >> >>> >> >>                                         <decorator:head />
> >> >>> >> >>
> >> >>> >> >>
> >> >>> >> >> 3) add to  my jsp page:
> >> >>> >> >>  http://google.com/ Launch
> >> >>> >> >> google.com in fullscreen window
> >> >>> >> >>
> >> >>> >> >>
> >> >>> >> >> 4) on web page, a grebox is popup , but it shows  an error
> >> message
> >> >>> >> >> ----
> >> >>> >> >> error message in greybox window
> >> >>> >> >> ----
> >> >>> >> >> The page isn't redirecting properly
> >> >>> >> >> Firefox has detected that the server is redirecting the request
> >> >>> for
> >> >>> >> >> this address in a way that will never complete.
> >> >>> >> >>
> >> >>> >> >>
> >> >>> >> >>
> >> >>> ---------------------------------------------------------------------
> >> >>> >> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> >>> >> >> For additional commands, e-mail:
> >> [EMAIL PROTECTED]
> >> >>> >> >>
> >> >>> >> >>
> >> >>> >> >
> >> >>> >> >
> >> >>> >> > --
> >> >>> >> > http://raibledesigns.com
> >> >>> >> >
> >> >>> >> >
> >> >>> ---------------------------------------------------------------------
> >> >>> >> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> >>> >> > For additional commands, e-mail: [EMAIL PROTECTED]
> >> >>> >> >
> >> >>> >> >
> >> >>> >> >
> >> >>> >>
> >> >>> >> --
> >> >>> >> View this message in context:
> >> >>> >>
> >> >>>
> >> http://www.nabble.com/problem-setting-up-greybox-in-appfuse-tf4241315s2369.html#a12076455
> >> >>> >> Sent from the AppFuse - User mailing list archive at Nabble.com.
> >> >>> >>
> >> >>> >>
> >> ---------------------------------------------------------------------
> >> >>> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> >>> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >> >>> >>
> >> >>> >>
> >> >>> >
> >> >>> >
> >> >>> > --
> >> >>> > Regards,
> >> >>> >
> >> >>> > Cuong Hoang
> >> >>> >
> >> >>> >
> >> >>>
> >> >>> --
> >> >>> View this message in context:
> >> >>>
> >> http://www.nabble.com/problem-setting-up-greybox-in-appfuse-tf4241315s2369.html#a12758398
> >> >>> Sent from the AppFuse - User mailing list archive at Nabble.com.
> >> >>>
> >> >>> ---------------------------------------------------------------------
> >> >>> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> >>> For additional commands, e-mail: [EMAIL PROTECTED]
> >> >>>
> >> >>>
> >> >>
> >> >>
> >> >> --
> >> >> http://raibledesigns.com
> >> >>
> >> >> ---------------------------------------------------------------------
> >> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >> >>
> >> >>
> >> >>
> >> >
> >> >
> >>
> >> --
> >> View this message in context:
> >> http://www.nabble.com/problem-setting-up-greybox-in-appfuse-tf4241315s2369.html#a12774454
> >> Sent from the AppFuse - User mailing list archive at Nabble.com.
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >>
> >
> >
> > --
> > http://raibledesigns.com
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
>
> --
> View this message in context: 
> http://www.nabble.com/problem-setting-up-greybox-in-appfuse-tf4241315s2369.html#a12779388
>
> Sent from the AppFuse - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
http://raibledesigns.com

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

Reply via email to