Return-Path: Delivered-To: apmail-myfaces-users-archive@www.apache.org Received: (qmail 30032 invoked from network); 13 Feb 2008 15:41:34 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 13 Feb 2008 15:41:34 -0000 Received: (qmail 70882 invoked by uid 500); 13 Feb 2008 15:41:25 -0000 Delivered-To: apmail-myfaces-users-archive@myfaces.apache.org Received: (qmail 70852 invoked by uid 500); 13 Feb 2008 15:41:25 -0000 Mailing-List: contact users-help@myfaces.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "MyFaces Discussion" Delivered-To: mailing list users@myfaces.apache.org Received: (qmail 70841 invoked by uid 99); 13 Feb 2008 15:41:25 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Feb 2008 07:41:25 -0800 X-ASF-Spam-Status: No, hits=3.2 required=10.0 tests=HTML_MESSAGE,SPF_HELO_PASS,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [212.227.126.179] (HELO moutng.kundenserver.de) (212.227.126.179) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Feb 2008 15:40:54 +0000 Received: from Swaczinna (c249180.customer.hansenet.de [213.39.249.180]) by mrelayeu.kundenserver.de (node=mrelayeu2) with ESMTP (Nemesis) id 0MKwtQ-1JPJjI0env-0005Vw; Wed, 13 Feb 2008 16:41:00 +0100 Message-ID: <000c01c86e56$d5476d50$5b01a8c0@Swaczinna> From: "Helmut Swaczinna" To: "MyFaces Discussion" References: Subject: Re: [Tobago] renderedPartially doesn't work in treeNodeCommand Date: Wed, 13 Feb 2008 16:40:59 +0100 Organization: WLP Systems GmbH MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0009_01C86E5F.36BAA810" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.3138 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198 X-Provags-ID: V01U2FsdGVkX19lrAUN7TGNedtyaj50uMgGyl/U9XLzcelXs+F gVvF0BmA17V6GWA2MYwN8AgEVUxe1zOBCNIFBK7WOT2SCxuA3I M+cwIoMyYof8G6+bjeiqQkTF5i/zbT+sOhUz702M3Y= X-Virus-Checked: Checked by ClamAV on apache.org This is a multi-part message in MIME format. ------=_NextPart_000_0009_01C86E5F.36BAA810 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi, just one idea: Does the action mainTree.showInDetail returns an outcome = !=3D null ? If so the whole page gets reloaded. Helmut ----- Original Message -----=20 From: Raj .G. Narasimhan=20 To: users@myfaces.apache.org=20 Sent: Wednesday, February 13, 2008 4:30 PM Subject: [Tobago] renderedPartially doesn't work in treeNodeCommand I'm having problem with partial reloading while invoking = 'treeNodeCommand'. I am using Tobago 1.0.14 on Tomcat 6. On clicking the node link, the detail page including the tree gets = reloaded, even though the 's 'renderedPartially' value is = set to body of the page(showing the detailed node info). This issue was = raised and resolved during mid of '07(fixed in Tobago 1.0.12). This tree = holds around 300 nodes (user Objects with 4-5 string properties). I = have tried without mode=3D"menu" as suggested by Helmut. Still the = problem exists. I don't know, where and what I'm missing and I have been = trying to fix this since two days... Here's the code, that I'm trying: =20 Here's the portion of main page (where this detail page will have to = be loaded) ...... .... <%-- --%> ..... And in the generated html source, I could see the following: var mainpage_navigator_nav_treeNodeCommand =3D = \"Tobago.reloadComponent('mainpage:rightPanel',this.id, {}); Appreciate your help! --=20 Thanks, Raj .G. Narasimhan ------=_NextPart_000_0009_01C86E5F.36BAA810 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hi,
 
just one idea: Does the action mainTree.showInDetail returns an = outcome !=3D null=20 ?
If so the whole page gets reloaded.
 
Helmut
 
----- Original Message -----
From:=20 Raj = .G.=20 Narasimhan
Sent: Wednesday, February 13, = 2008 4:30=20 PM
Subject: [Tobago] = renderedPartially=20 doesn't work in treeNodeCommand

I'm having problem with partial reloading while = invoking=20 'treeNodeCommand'.  I am using Tobago 1.0.14 on Tomcat = 6.

On=20 clicking the node link, the detail page including the tree gets = reloaded, even=20 though the <tc:command>'s 'renderedPartially' value is set to = body of=20 the page(showing the detailed node info). This issue was raised and = resolved=20 during mid of '07(fixed in Tobago 1.0.12). This tree holds around 300 = nodes=20 (user Objects with 4-5 string properties).  I have tried without=20 mode=3D"menu" as suggested by Helmut. Still the problem exists. I = don't know,=20 where and what I'm missing and I have been trying to fix this since = two=20 days...

Here's the code, that I'm trying:

<tc:tree=20 value=3D"#{mainTree.rootNode}" mode=3D"menu"=20 = id=3D"nav"
          = ; =20 nameReference=3D"userObject.label"=20 = idReference=3D"userObject.id"
      &nbs= p;    =20 tipReference=3D"userObject.label"=20 = state=3D"#{mainTree.state}"
       =     =20 showIcons=3D"false" showJunctions=3D"true"=20 showRoot=3D"false">
      =20
            = <f:facet=20 = name=3D"treeNodeCommand">
       = ;        =20 <tc:command=20 = action=3D"#{mainTree.showInDetail}">
     =             &= nbsp; =20 <tc:attribute value=3D":mainpage:rightPanel" = name=3D"renderedPartially"=20 = />
          &nbs= p;    =20 = </tc:command>
        &n= bsp;  =20 </f:facet>
</tc:tree>


Here's the portion of = main=20 page (where this detail page will have to be loaded)

<f:view = locale=3D"#{configController.locale}">
   =20 <tc:loadBundle basename=3D"cb_bundle" var=3D"rsrcBundle"=20 />
    <tc:page=20 = applicationIcon=3D"icon/Vzicon.ico"
     &nbs= p; =20 label=3D"#{rsrcBundle.pageTitle}" id=3D"mainpage" width=3D"900px"=20 height=3D"830px">

......

    = <tc:cell=20 = spanX=3D"2">
         =   =20 <tc:panel=20 = id=3D"middleBox">
        &= nbsp;      =20 <f:facet=20 = name=3D"layout">
        &n= bsp;          =20 <tc:gridLayout rows=3D"fixed;fixed;*"=20 = columns=3D"*;2*"
         = ;            =   =20 id=3D"boxToolbarLayout"=20 = />
          &nbs= p;    =20 = </f:facet>
....

       = ;        =20 <tc:cell=20 = spanX=3D"2">
         =           =20 <tc:panel=20 = id=3D"treeAndRightPanel">

      &= nbsp;           &n= bsp;    =20 <f:facet=20 = name=3D"layout">
        &n= bsp;           &nb= sp;      =20 <tc:gridLayout border=3D"1" rows=3D"*" columns=3D"*;2*"=20 = />
          &nbs= p;            = ;=20 = </f:facet>
         = ;            =   =20 = <tc:cell>
         =             &= nbsp;     =20 <jsp:include page=3D"/WEB-INF/cdbmain/navigation.jsp"=20 = />
          &nbs= p;            = ;    =20 <%-- <tc:panel=20 = id=3D"leftPanel">
        &= nbsp;           &n= bsp;          =20 <f:facet=20 = name=3D"layout">
        &n= bsp;           &nb= sp;           &nbs= p;  =20 <tc:gridLayout rows=3D"*" columns=3D"*"=20 = />
          &nbs= p;            = ;        =20 = </f:facet>

        &= nbsp;           &n= bsp;      =20 = </tc:panel>--%>
       &nb= sp;           &nbs= p;   =20 = </tc:cell>

        &= nbsp;           &n= bsp;  =20 = <tc:cell>
         =             &= nbsp;     =20 <tc:panel=20 = id=3D"rightPanel">
        =             &= nbsp;          =20 <f:facet=20 = name=3D"layout">
        &n= bsp;           &nb= sp;           &nbs= p;  =20 <tc:gridLayout rows=3D"*" columns=3D"*"=20 = />
          &nbs= p;            = ;        =20 = </f:facet>
         = ;            =           =20 <jsp:doBody=20 = />
          &nbs= p;            = ;    =20 = </tc:panel>
        &nbs= p;            = ;  =20 = </tc:cell>

        &= nbsp;          =20 = </tc:panel>
        &nbs= p;      =20 </tc:cell>
.....

And in the generated html source, I = could see=20 the following:

var mainpage_navigator_nav_treeNodeCommand =3D=20 \"Tobago.reloadComponent('mainpage:rightPanel',this.id, {});


Appreciate your = help!
--=20
Thanks,

Raj .G. Narasimhan ------=_NextPart_000_0009_01C86E5F.36BAA810--