This post is a bit late since you have successfully integrated prototype with
Appfuse, but in any case the instructions might be helpful for other users. 
I have both Greybox and Lightbox Gone Wild working with Appfuse 1.9.4 and I
assume integrating with later versions of Appfuse would follow similar
instructions.

Setup with Appfuse is pretty straightforward; this thread covers most of the
configuration, with a bit more js debugging I think you would have had the
solution.  There are three primary areas that need updating; Spring’s
processing of html files, Sitemesh decorators, and Greybox files.


”mraible” wrote:
> 
> Spring MVC should not process *.htm, only *.html.
> 

1.      Rename loader_frame.html to loader_frame.htm


”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.
> 

2.      Exclude loader_frame.htm from Sitemesh

”ddanet” wrote:
> 
>     <excludes>
>         <pattern>/resources/*</pattern>
>         <pattern>/dwr*</pattern>
>         <pattern>*loader_frame*</pattern>
>     </excludes>
> 

3.      Update Greybox files and include

”ddanet” wrote:
> 
> 
> 
> Update gb_scripts.js
> 
> Change this.src_loader=this.root_dir+"loader_frame.html
> To    this.src_loader=this.root_dir+"loader_frame.htm
> 
> Include Greybox dependencies
> 
>   <script type="text/javascript">
>     var GB_ROOT_DIR = "/MyApp/styles/greybox/";
>   </script>
>   <script type="text/javascript" src="<c:url
> value='/scripts/greybox/AJS.js'/>"></script>
>   <script type="text/javascript" src="<c:url
> value='/scripts/greybox/AJS_fx.js'/>"></script>
>   <script type="text/javascript" src="<c:url
> value='/scripts/greybox/gb_scripts.js'/>"></script>
> 
>   Take notice that loader_frame also includes the AJS.js and AJS_fx.js,
> you’ll need to explicitly change these paths or add the two js files to
> your GB_ROOT_DIR.
> 
>   <script>
>     var GB = parent.GB_CURRENT;
>     document.write('<script type="text/javascript"
> src="/MyApp/scripts/greybox/AJS.js"><\/script>');
>     if(GB.use_fx) {
>         document.write('<script type="text/javascript"
> src="/MyApp/scripts/greybox/AJS.js"><\/script>');
>     }
>   </script>
> 

I hope this helps.

dana


____________________________________________________________________________________





thinkboy 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]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/problem-setting-up-greybox-in-appfuse-tf4241315s2369.html#a13885354
Sent from the AppFuse - User mailing list archive at Nabble.com.

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

Reply via email to