From adffaces-user-return-1327-apmail-incubator-adffaces-user-archive=incubator.apache.org@incubator.apache.org Wed Nov 01 03:43:03 2006 Return-Path: Delivered-To: apmail-incubator-adffaces-user-archive@locus.apache.org Received: (qmail 39140 invoked from network); 1 Nov 2006 03:43:03 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 1 Nov 2006 03:43:03 -0000 Received: (qmail 96830 invoked by uid 500); 1 Nov 2006 03:43:13 -0000 Delivered-To: apmail-incubator-adffaces-user-archive@incubator.apache.org Received: (qmail 96816 invoked by uid 500); 1 Nov 2006 03:43:13 -0000 Mailing-List: contact adffaces-user-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: adffaces-user@incubator.apache.org Delivered-To: mailing list adffaces-user@incubator.apache.org Received: (qmail 96805 invoked by uid 99); 1 Nov 2006 03:43:13 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 31 Oct 2006 19:43:13 -0800 X-ASF-Spam-Status: No, hits=3.1 required=10.0 tests=DNS_FROM_RFC_ABUSE,DNS_FROM_RFC_POST,DNS_FROM_RFC_WHOIS,MAILTO_TO_SPAM_ADDR X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [206.190.37.29] (HELO web53708.mail.yahoo.com) (206.190.37.29) by apache.org (qpsmtpd/0.29) with SMTP; Tue, 31 Oct 2006 19:43:01 -0800 Received: (qmail 73862 invoked by uid 60001); 1 Nov 2006 03:42:39 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=NSfJX5rLiuJNn879cyvnQsEzWrr4vVTE179bklPguC+TEezPOWjo2lri3qSbfZbg675l83RtWAz6U7fzCS+2sbqHvi0lGq1y+cZNgTdaknhrTd0NSGe+Hu5R9gns5J8kD5RrtFADzPb/nT8ZjOSxyOYCGFghk/SjAPSwO1YjSjw= ; Message-ID: <20061101034239.73860.qmail@web53708.mail.yahoo.com> Received: from [70.216.134.211] by web53708.mail.yahoo.com via HTTP; Tue, 31 Oct 2006 19:42:39 PST Date: Tue, 31 Oct 2006 19:42:39 -0800 (PST) From: d sanders Subject: Re: page component and global buttons To: adffaces-user@incubator.apache.org Cc: matt.faces@gmail.com In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org This works around the global buttons issue, but there does seem to be a bug in the action handling. Clicking on a menu item sends me to the same/current page. David --- Matt Cooper wrote: > Hi David, > > It appears that navigationPane does support > stamping. There might be a > small bug with its handling of action but it may be > worth trying the > stamping approach in your app in case I'm just > seeing a setup issue on my > end. > > Regards, > Matt > > On 10/31/06, Matt Cooper > wrote: > > > > By "page template" I meant like a jspx page that > could be re-used over an > > over (sort of like page templates in word > processing programs). > > > > For now, I think for now you really want to take a > use the panelPage > > component. It has a facet for each of the > navigation levels ( e.g. > > navigationGlobal, navigation1, etc. ...and > location for breadCrumbs). > > Inside of those facet, you'll put a navigationPane > and specify level="1", > > etc. so that it will consume a particular level of > the Menu Model, e.g. > > something along the lines of: > > > > > > > xmlns:f=" http://java.sun.com/jsf/core" > > > xmlns:t="http://myfaces.apache.org/trinidad" > > version=" 1.2"> > > contentType="text/html;charset=utf-8"/> > > > > > > > > > > > > layout="horizontal"> > > > > > > > > > > > > > var="node" > > value="#{menuModel.model}" > > level="0" > > hint="buttons"> > > > > > text="#{ node.label}" > > action="#{node.getOutcome}" > > > rendered="#{node.type=='global'}"/> > > > > > > > > > > > var="node" > > value="#{menuModel.model}" > > level="0" > > hint="buttons"> > > > > > text="#{node.label}" > > action="#{ node.getOutcome}" > > > rendered="#{node.type!='global'}"/> > > > > > > > > ... > > > > > > > > > > > > > > However, there is one problem with this... today, > the navigationPane > > doesn't fully support stamped > commandNavigationItem components, instead, it > > only supports indexed children like this: > > > > > > > xmlns:f=" http://java.sun.com/jsf/core" > > > xmlns:t="http://myfaces.apache.org/trinidad" > > version="1.2"> > > contentType="text/html;charset=utf-8"/> > > > > > > > > > > > > layout="horizontal"> > > > > > > > > > > > > > hint="buttons"> > > > text="Global 1" > > action="global1"/> > > > text="Global 2" > > action="global2"/> > > > > > > > > > hint="buttons"> > > > text="Primary 1" > > action="primary1"/> > > > text="Primary 2" > > action="primary2"/> > > > > > > > > > > > > > > > > > > > > Unfortunately, it appears that there isn't an easy > solution for what you > > are looking for right now until navigationPane is > enhanced to support > > stamping. > > > > Regards, > > Matt > > > > On 10/31/06, d sanders > wrote: > > > > > > Hi, > > > > > > Thanks for the info. One option might be to > make the > > > global buttons defined using a separate facet > and then > > > have the nodeStamp facet represent the tabs as > the > > > root of the navigation tree. > > > > > > What do you mean by 'page template'? Is this a > > > component or just a standard way of using > individual > > > components together? > > > > > > David > > > > > > > > > --- Matt Cooper wrote: > > > > > > > Hi David, > > > > > > > > I believe there were two reasons for this. > The > > > > first being complexity: > > > > since the model is in a tree structure, the > default > > > > layout should keep the > > > > that tree structure. The second is that the > page > > > > component is not very > > > > flexible. Instead, a page template solution > would > > > > be much better because it > > > > would be much more flexible and thus could > allow > > > > page developers to emulate > > > > the consumption of the MenuModel so that it > matches > > > > the ADF Faces > > > > 10.1.3format (through EL bindings on the > rendered > > > > attribute, > > > > e.g. rendered="#{node.type=='global'}" or > > > > rendered=#{node.type!='global'}) > > > > or whatever special format they want. I > expect === message truncated === __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com