Yes this could be a nice generic way to handle dynamic tabs, whether
behaviour- or data-driven. It is good to be aware of this as an
alternative possibility. With teh current problems it may well be
easier than using the tabs component. In any case, in the general
interest of improving on the built-in tabs component, it is worth
pursuing why creating them dynamically creates problems...

But, thanks for the suggestion...

mario


On 5/17/07, Not Zippy <[EMAIL PROTECTED]> wrote:
First i wouldn't use the basetab pane class, I dont think it was ever
designed for dynamic tab creation (same with the slider class).
I would try breaking it down into something easy, then work up.
So you want a series of tabs based on data, simply put that is a view
with clickable text nodes that are based on the XML. If you want to
know which node is clicked simply pass up the node, you then have
access to the datapath which allows you to retrieve any information
you want.
Laid out like
<view layout="axis:x">
 <view name="content"/>
 <view name="tabs" layout="axis:y">
  <text datapath="xyz/text()" clickable="true"/>
 </view>
</view>

I recently made a list selector in a similar fashion, basically
splitting 2500 names into a tabable selector of lists consisting of 60
names each. Its fast and easily navigates the names in a quick and
concise manner.

z

Reply via email to