You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Hendrik Neumann <he...@web.de> on 2005/05/30 22:59:44 UTC

HTML-Frames, "one-way" commandLinks and forced frame reloads

Hi,

I'm still migrating from from x:panelLayout to classic html-frames because I 
have the problem, that I need 100% valid xhtml-code which is valid for the 
mime type application/xhtml+xml but this is extremly hard because JSF 
produces invalid xhtml code (I have descriped this problem in the "Serious 
problems with MyFaces ID allocation which is not conform to XHTML!"-mail). 
THerefore I try to seperate my whole web-app into several frames with 
minimal, but valid xhtml-code.

Now I have the following (simplified) situation: I have 2 frames: one 
navigation-frame on the left side and one big mainframe. The navigation frame 
contains a tree2-component which loads folders and documents from a database 
and gernate for each tree-item a navigation case which targets the mainframe 
and loads a new site in the mainframe. This new loaded mainframe-site then 
contains a self-made article-renderer or a folder-renderer which renders the 
content. Now if the user clicks on the an item in the tree2-component in the 
navigation-frame, the mainframe is loaded and the navigation-frame is of 
course NOT reloaded (because I have frames). If the user then clicks again in 
the nav-frame on a link, the jsf-site will just be reloaded (and showed in 
the mainframe) instead of processing the action-link. Only after this forced 
reload the commandLinks are working again. So I have to reload the navigation 
frame ON EVERY CLICK in the tree2-components which causes A LOT of troubles.

This seems to be a generally problem, that after clicking on a rendered 
commandLink the site which contains this link must to be reloaded. Is there a 
reason why it is like this? Is there a workaround? 

Greetings,
Hendrik

Re: Antwort: HTML-Frames, "one-way" commandLinks and forced frame reloads

Posted by Hendrik Neumann <he...@web.de>.
the good thing: It works - thank you very much mathias!
the bad thing: now I'm forced to use the client-state-saving-method which 
causes new problems...

well, this buggy JSF-spec is totally driving me crazy - Sun Microsystems 
should fire the employees who played a part in the creation of this spec... 
the idea itself is good, myfaces is good but the implementation-spec is 
dreadful...

By the way: how can I contact the JSF-creators? Where can I subscribe to their 
mailing-lists? Where can I talk with them? I have a lot of questions...

Am Dienstag, 31. Mai 2005 11:23 schrieb mathias.werlitz@daimlerchrysler.com:
> What is your state saving method. I guess it is "SERVER". The current JSF
> 1.1 spec seems to have problems with multiple open views (as produced with
> frames).
> Try to set the state saving method to "CLIENT" and it should work
> correctly.

Antwort: HTML-Frames, "one-way" commandLinks and forced frame reloads

Posted by ma...@daimlerchrysler.com.
What is your state saving method. I guess it is "SERVER". The current JSF 
1.1 spec seems to have problems with multiple open views (as produced with 
frames).
Try to set the state saving method to "CLIENT" and it should work 
correctly.