Return-Path: Delivered-To: apmail-myfaces-users-archive@www.apache.org Received: (qmail 41828 invoked from network); 8 Dec 2005 09:10:42 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 8 Dec 2005 09:10:42 -0000 Received: (qmail 69497 invoked by uid 500); 8 Dec 2005 09:10:37 -0000 Delivered-To: apmail-myfaces-users-archive@myfaces.apache.org Received: (qmail 69417 invoked by uid 500); 8 Dec 2005 09:10:36 -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 69404 invoked by uid 99); 8 Dec 2005 09:10:36 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 Dec 2005 01:10:36 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [80.123.121.133] (HELO wmxsrv.sys.wimaxtelecom.at) (80.123.121.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 Dec 2005 01:10:33 -0800 Content-class: urn:content-classes:message Subject: AW: panelTabbedPane with dynamic-tabs MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Date: Thu, 8 Dec 2005 10:11:23 +0100 X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: panelTabbedPane with dynamic-tabs Thread-Index: AcX7xf6fc9p9pTtoS7SHBE4W8FVQ1QAEOe3A From: =?iso-8859-1?Q?Harald_M=FCller?= To: "MyFaces Discussion" X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi! Thank you for your response. This is my first attempt to do some component-binding ... and it looks = now like this: jsp: bean: public HtmlPanelTabbedPane getTabPane() { HtmlPanelTabbedPane hptp =3D new HtmlPanelTabbedPane(); =09 // tab 1 HtmlPanelTab tab0 =3D new HtmlPanelTab(); tab0.setParent(hptp); tab0.setId("panelTab0"); tab0.getAttributes().put("label", "Tab 1"); =09 hptp.getChildren().add(tab0); =09 // tab 2 HtmlPanelTab tab1 =3D new HtmlPanelTab(); tab1.setParent(hptp); tab1.setId("panelTab1"); tab1.getAttributes().put("label", "Tab 2"); =09 hptp.getChildren().add(tab1); =20 return hptp; } Ok ... this gives me two tabs on my page - so far so good. But ... how can i fill up each tab with content now? Is there a way to = do that from my jsp? By the way ... somebody knows a good tutorial that could help me with = component-binding? Thanks, Harry -----Urspr=FCngliche Nachricht----- Von: Dennis Byrne [mailto:dennis@dbyrne.net]=20 Gesendet: Donnerstag, 08. Dezember 2005 08:05 An: MyFaces Discussion Betreff: Re: panelTabbedPane with dynamic-tabs Try using the the binding attribute with=20 . This will allow you to=20 programmatically add or substract each tab. ---- Original message ---- >Date: Thu, 8 Dec 2005 00:39:28 +0100 >From: Harald M=FCller =20 >Subject: panelTabbedPane with dynamic-tabs =20 >To: > >Hi! > >I'd like to use the "panelTabbedPane" and create the tabs=20 dynamically (reading from a xml-file). > >I'm getting a list of "objects" from my bean and for each=20 list-item a new tab should be >generated. > >My jsf-code looks like this: > > > > > > =20 > > > > >I think it's not a good idea to mix jstl with jsf ... so i=20 tried the "dataList" from tomahawk too. > >Something like: > > > > > =20 > > > > >But I'm just getting weird results ... and nothing seems to=20 work. > >What am I doing wrong? ... Thanks for advise! > >Is a possible solution for my problem mentioned here: >http://www.mail- archive.com/users@myfaces.apache.org/msg11352.html >??? > >regards >Harry Dennis Byrne