-
1. Re: Session Timeout and Seam Remoting
shane.bryzak Jul 31, 2008 5:05 PM (in response to seamwarrior)They should be cached by the browser. Another alternative is to just copy the content that these resources contain into a static file, and use that instead.
-
2. Re: Session Timeout and Seam Remoting
seamwarrior Jul 31, 2008 5:11 PM (in response to seamwarrior)They MIGHT be cached by the browser, depending on a user's settings.
If you have successfully put them into and served them from static files, please show me how. I'll be mightily impressed. Don't omit the page code.
-
3. Re: Session Timeout and Seam Remoting
shane.bryzak Jul 31, 2008 5:23 PM (in response to seamwarrior)Just simply copy/paste the contents into a text file, and reference that instead of the /seam/resource versions.
-
4. Re: Session Timeout and Seam Remoting
seamwarrior Jul 31, 2008 5:33 PM (in response to seamwarrior)OK, Shane. Stick with me. I am going to try this. You may be the man.
-
5. Re: Session Timeout and Seam Remoting
jnusaira Jul 31, 2008 7:24 PM (in response to seamwarrior)Shane is only the man if he gets his blog fixed again **squint** -
6. Re: Session Timeout and Seam Remoting
seamwarrior Jul 31, 2008 8:32 PM (in response to seamwarrior)Nutz so far. I'll keep attempting tonight.
Perhaps I will have more to ask tomorrow. -
7. Re: Session Timeout and Seam Remoting
seamwarrior Jul 31, 2008 8:38 PM (in response to seamwarrior)Shane, I'm doing something wrong or this is impossible.
I'll post code later.
-
8. Re: Session Timeout and Seam Remoting
shane.bryzak Aug 1, 2008 4:06 AM (in response to seamwarrior)This should be trivial, what are you doing exactly? You simply need to browse to the JavaScript, copy and paste it into a new text file, and then refer to that in your page source:
<script type="javascript" src="/remote.js"/> <script type="javascript" src="/my_object_stubs.js"/>
-
9. Re: Session Timeout and Seam Remoting
seamwarrior Aug 1, 2008 8:07 PM (in response to seamwarrior)No dice! I am using Seam 1.2.1
<script type="text/javascript" src="/jsincludes/remote.js"/>
<script type="text/javascript" src="/jsincludes/object_stubs.js"/>
I get 'Seam is not defined'. I already cried and that didn't help.
web.xml
<servlet>
<servlet-name>Seam Resource Servlet</servlet-name>
<servlet-class>org.jboss.seam.servlet.ResourceServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>Seam Resource Servlet</servlet-name>
<url-pattern>/seam/resource/*</url-pattern>
</servlet-mapping>