Hello all,

On a project I am working on we would like to create 'dynamic' tabs in
our application.
To prevent misunderstanding I will explain what I mean by that.

Some users of the application are Salesrepresentatives and they need to
give feedback monthly on several aspects about products.
In the workflow they start by selecting the products they sold in the
previous month.
After that they need to enter their comments for each product. We would
like to use tabbedPane for this, where each selected product will become
a seperate tab.

We are using MyFaces 1.1.3, Tomahawk 1.1.5-SNAPSHOT, sandbox
1.1.5-SNAPSHOT and jsf-facelets 1.1.11

I tried to implement this like this:

<t:panelTabbedPane id="productTabs">
  <ui:repeat var="product" value="#{highlightEditBean.selectedProducts}"
>
    <t:panelTab label="#{product.description}">
      <ui:include src="./modules/productTab.xhtml">  
        <ui:param name="product" value="#{product}"/>
       </ui:include>
    </t:panelTab>
  </ui:repeat>
</t:panelTabbedPane>


But this doesn't get rendered like a tabbedPane.
It result is a table with 1 pane and the content of all 5 tabs to be
display underneath each other on that only pane.
It appairs that the panelTabbedPane doesn't recognizes that multiple
panelTab's should be created.


My questions about this are:
1) Is it possible to generate the panelTab's dynamically?
2) If so: Can somebody give some advice on how to accomplish that?

With kind regards,
    Marco Beelen







------------------------------------------------------------------------------
Notice:  This e-mail message, together with any attachments, contains
information of Merck & Co., Inc. (One Merck Drive, Whitehouse Station,
New Jersey, USA 08889), and/or its affiliates (which may be known
outside the United States as Merck Frosst, Merck Sharp & Dohme or MSD
and in Japan, as Banyu - direct contact information for affiliates is 
available at http://www.merck.com/contact/contacts.html) that may be 
confidential, proprietary copyrighted and/or legally privileged. It is 
intended solely for the use of the individual or entity named on this 
message. If you are not the intended recipient, and have received this 
message in error, please notify us immediately by reply e-mail and then 
delete it from your system.

------------------------------------------------------------------------------

Reply via email to