You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@turbine.apache.org by Fabio Daprile <fa...@wuerth.it> on 2001/12/14 16:36:07 UTC

Problems using frames with Turbine!

Hi!

I'm using turbine with a frame template.

           here is the login Layout:

                       $screen_placeholder


           here the Default layout:

                       <html>
                         <head>
                            <title>Bug Tracker </title>
                              ##  <link REL=stylesheet HREF=exstyle.css 
TYPE=text/css>
                             <meta name="keywords" content="Speedy">
                             <meta http-equiv="expires" content="0">
                          </head>

                           $screen_placeholder
                           </html>
                     here the Index.VM:

                           <frameset rows="111,45,*,42" border=0 
frameborder=0 framespacing=0>
                                     <frame name="top" 
src="$link.setPage("/Top.vm")" SCROLLING="no" MARGINWIDTH="0" 
MARGINHEIGHT="0" FRAMEBORDER="no" BORDER="0" NORESIZE/>
                                   <frame name="fastSearch" 
src="$link.setPage("/FastSearch.vm")" SCROLLING="no" MARGINWIDTH="0" 
MARGINHEIGHT="0" FRAMEBORDER="no" BORDER="0" NORESIZE/>
                                     <frame name="main" 
src="$link.setPage("/Home.vm").addQueryData("Mode","display")" 
MARGINWIDTH="0" MARGINHEIGHT="0"/>  (all my pages go in this frame)
                                     <frame name="bottom" 
src="$link.setPage("/Bottom.vm")" frameborder=0 framespacing=0 
SCROLLING="no" MARGINWIDTH="0" MARGINHEIGHT="0" FRAMEBORDER="no" 
BORDER="0" NORESIZE/>
                           </frameset>



I keep useful data for my frames in the Session object.
The problem is that each time i press the reload button on the browser, 
it executes again the LoginAction
(I've made some changes to this action, i need to keep some additional 
ACL data for my users), keeps the turbine objects in the session, but 
deletes the objects i've saved in the session object.

Explorer prompts me asks me to repost the username and password.
Netscape gives me an ERROR in the "main" frame, because it does not find 
the objects i saved. (Null Pointer EXCEPTION)

Why does turbine call the LoginAction again?

Turbine cleans the session, recreates the turbine-user and other objects 
it uses.
How can i tell turbine not to call the LoginAction again?.

If somebody can help me i'll be grateful.

Thx! Fabio Daprile

-- 


Würth Phoenix Srl
Via Kravogl 4, I-39100 Bolzano
Tel: +39 0471/564111
Fax: +39 0471/564122

mailto:fabio.daprile@wuerth-phoenix.com
http://www.wuerth-phoenix.com



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Problems using frames with Turbine!

Posted by John McNally <jm...@collab.net>.
Not sure what this has to do with frames.  Look at my response to the
subject: How to prevent form resubmit

john mcnally

Fabio Daprile wrote:
> 
> Hi!
> 
> I'm using turbine with a frame template.
> 
>            here is the login Layout:
> 
>                        $screen_placeholder
> 
>            here the Default layout:
> 
>                        <html>
>                          <head>
>                             <title>Bug Tracker </title>
>                               ##  <link REL=stylesheet HREF=exstyle.css
> TYPE=text/css>
>                              <meta name="keywords" content="Speedy">
>                              <meta http-equiv="expires" content="0">
>                           </head>
> 
>                            $screen_placeholder
>                            </html>
>                      here the Index.VM:
> 
>                            <frameset rows="111,45,*,42" border=0
> frameborder=0 framespacing=0>
>                                      <frame name="top"
> src="$link.setPage("/Top.vm")" SCROLLING="no" MARGINWIDTH="0"
> MARGINHEIGHT="0" FRAMEBORDER="no" BORDER="0" NORESIZE/>
>                                    <frame name="fastSearch"
> src="$link.setPage("/FastSearch.vm")" SCROLLING="no" MARGINWIDTH="0"
> MARGINHEIGHT="0" FRAMEBORDER="no" BORDER="0" NORESIZE/>
>                                      <frame name="main"
> src="$link.setPage("/Home.vm").addQueryData("Mode","display")"
> MARGINWIDTH="0" MARGINHEIGHT="0"/>  (all my pages go in this frame)
>                                      <frame name="bottom"
> src="$link.setPage("/Bottom.vm")" frameborder=0 framespacing=0
> SCROLLING="no" MARGINWIDTH="0" MARGINHEIGHT="0" FRAMEBORDER="no"
> BORDER="0" NORESIZE/>
>                            </frameset>
> 
> I keep useful data for my frames in the Session object.
> The problem is that each time i press the reload button on the browser,
> it executes again the LoginAction
> (I've made some changes to this action, i need to keep some additional
> ACL data for my users), keeps the turbine objects in the session, but
> deletes the objects i've saved in the session object.
> 
> Explorer prompts me asks me to repost the username and password.
> Netscape gives me an ERROR in the "main" frame, because it does not find
> the objects i saved. (Null Pointer EXCEPTION)
> 
> Why does turbine call the LoginAction again?
> 
> Turbine cleans the session, recreates the turbine-user and other objects
> it uses.
> How can i tell turbine not to call the LoginAction again?.
> 
> If somebody can help me i'll be grateful.
> 
> Thx! Fabio Daprile
> 
> --
> 
> Würth Phoenix Srl
> Via Kravogl 4, I-39100 Bolzano
> Tel: +39 0471/564111
> Fax: +39 0471/564122
> 
> mailto:fabio.daprile@wuerth-phoenix.com
> http://www.wuerth-phoenix.com
> 
> --
> To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>