Hi again Austin,

the purpose of fallbackid is to execute an element when no URL  
matches in the scope of the site. Of course, if you put this on the  
root site, everything that's not an element will cause the fallback  
element to be execute. Without a fallbackid, RIFE's servlet filter  
basically defers the execution to the next filter in the chain, which  
is usually you're servlet container's default filter ... that serves  
files like stylesheets, scripts, images, ...

Now, there's a way around this by using the  
com.uwyn.rife.engine.elements.Defer element (rife/defer.xml if you  
prefer). If you declare elements in your site for all the paths that  
have content, you create elements that will not be caught by  
fallbackid, but still defer the execution to the servlet container.

For instance:

<element id="DeferImages" file="rife/defer.xml" url="/images/*"/>

or

<element id="DeferImages"  
implementation="com.uwyn.rife.engine.elements.Defer" url="/images/*"/>

HTH,

Geert

On 14 Oct 2007, at 16:23, Austin Coose wrote:

>
> And another question,
>
> How exactly do I used the "fallbackid"?
>
> I tried to use the <site fallbackid=".."> ...
>
> But all stylesheets and scripts associated with my application
> disappeared, but when I looked at the source in the browser, it
> displayed the correct (or at least the same) webapp root url. I did
> not even try to tackle this too much, as nothing stood out as a
> problem,  and when I took it away everything was fine again.  I did
> not google search or search the groups, I apologize if I am asking a
> repeat question.
>
> Thanks again for any help,
>
> Austin
>
> >

--
Geert Bevin
Terracotta - http://www.terracotta.org
Uwyn "Use what you need" - http://uwyn.com
RIFE Java application framework - http://rifers.org
Music and words - http://gbevin.com


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"rife-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rife-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to