Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > YUI/Struts2: tabs initially unrendered or clone hidden region with idmutations

Reply
Thread Tools

YUI/Struts2: tabs initially unrendered or clone hidden region with idmutations

 
 
david.karr
Guest
Posts: n/a
 
      03-08-2008
It's always a challenge to come up with a cogent subject line when I
don't know what the heck I'm talking about.

I'm using Struts2 and YUI, and I'm pretty new to YUI and JavaScript.

I'm trying to figure out the best strategies for implementing a
dynamic tab panel that will eventually be submitted en masse to the
server. There will be a couple of "static" tabs with a bunch of
fields in them, and there will be actions on the page to add/remove
dynamic tabs, each of which will have quite a few fields, but all the
same fields on all the dynamic tabs. the "id" attributes will specify
an array index to allow the server-side code to differentiate between
the tabs.

When I tried building this prototype with JSF/RichFaces, I ended up
rendering a max of 10 dynamic tabs, but all initially unrendered.
Actions on the page would set or clear the rendered flag on a tab.
I'm not sure whether this strategy will work with YUI. I think not.

Alternatively, I wonder if I can "clone" a hidden region in JavaScript
and mutate all the id fields to reflect an array index.

I could use some comments on this and some ideas.

Thanks.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Michael Jackson ‘stole’ the tapes of a song released almost four months after his death and his estate did not initially credit its co-author, the songwriter at asim malik C Programming 0 10-13-2009 05:11 PM
To clone or not to clone.. lordy Java 3 07-07-2006 04:30 PM
Why are style objects initially null? Stewart Javascript 4 05-19-2004 05:10 PM
Filemaker 6.0 very very slow in loading initially Idris Alooma Computer Support 0 09-22-2003 12:10 AM
PyQt: Can't show PY variable in QT filedialog as initially parameter ulysses Python 4 09-18-2003 12:33 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57