You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Yixing Ma <yi...@interfacemgmt.net> on 2006/01/18 17:05:39 UTC

page refresh question

I have a quick question about the myfaces, jsf.

 

 

I have a jsp page that includes three frames. Every time I do a submit on
either form1 or form2,  or I refresh (toggle) the tree, the whole page
redraws (refreshs). I don't want Form1 and Form2 to be redrawed just because
I fresh the tree, or vice versa.

 

Can anyone help me?

 

 

 


 

Form 1

 

 


 

Myfaces tree2 component 

 

 

 

 

 

 

 

 

 

 

 

 

 

Form 2

 

 

//
Code------------------------------------------------------------------------
---------------------------------------------------------

<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>

<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>

 

<f:loadBundle basename="resources.application" var="bundle"/>

<f:view>

<html>

<head>

  <title><h:outputText value="#{bundle['welcome.title']}" /></title>

</head>

<body>

 

<p>

</p><table width="1016" border="1" cellpadding="0" cellspacing="0"
bordercolor="#000000">

  <tr>

    <img src="/images/header2.png" width="1016" height="90"/>

  </tr>

  <tr>

    <td colspan="2">&nbsp;

    <f:subview id="subPrePlanInfo">

      <jsp:include page="PrePlanInfo.jsp" flush="true"/>

      </f:subview>

    </td>

  </tr>

  <tr>

    <td>

     <f:subview id="subTermOrganizer">

      <jsp:include page="TermOrganizer.jsp" flush="true"/>

     </f:subview>

    </td>

    <td>

    <f:subview id="subCourseInputPanel">

      <jsp:include page="CourseInputPanel.jsp" flush="false"/>

    </f:subview>

    </td>

  </tr>  

  <tr>

    <td colspan="2">&nbsp;<img src="/images/footer.png" width="1016"
height="40"/></td>

  </tr>

  

  

  </table>

  

  

</body>

</html>

</f:view>

//
Code------------------------------------------------------------------------
---------------------------------------------------------

 


Re: page refresh question

Posted by Volker Weber <us...@weber-oldenburg.de>.
Hi,

this is currently not possilbe with pure myfaces/jsf AFAIK.

But it should be possible with ajaxanywhere:

http://ajaxanywhere.sourceforge.net/

see also jsf demo at:

http://ajaxanywhere.sweetdev-labs.org:8080/ajaxAnywhereDemo-1.0.1/facesFrame.jsp

Regards,
  Volker

Yixing Ma wrote:
> I have a quick question about the myfaces, jsf.
> 
>  
> 
>  
> 
> I have a jsp page that includes three frames. Every time I do a submit
> on either form1 or form2,  or I refresh (toggle) the tree, the whole
> page redraws (refreshs). I don’t want Form1 and Form2 to be redrawed
> just because I fresh the tree, or vice versa.
> 
>  
> 
> Can anyone help me?
> 
>  
> 


-- 
Don't answer to From: address!
Mail to this account are droped if not recieved via mailinglist.
To contact me direct create the mail address by
concatenating my forename to my senders domain.