| Author |
Message |
![[Post New]](/rsf/templates/default/images/icon_minipost_new.gif) 10/08/2006 19:53:49
|
ruifeng
Request-scope Wrangler
Joined: 26/06/2006 20:33:20
Messages: 57
Offline
|
I want to use UIBranchContainer to display table cells in 2 rows?
What approach to achieve this?
If I use two row ids like below:
<tr rsf:id="itemheaderrow:">
<tr rsf:id="itemtextrow:">
and 2 UIBranchContainer for each row. The table would be display all the rows for the first <tr rsf:id="itemheaderrow:">, then display the second
<tr rsf:id="itemtextrow:">.
But what I want is to display 2 rows alternatively.
Or in another way, these 2 rows could be just one row logically, but just displayed in separate row.
How to do it? Hope my question is clear.
Thanks
|
|
|
 |
![[Post New]](/rsf/templates/default/images/icon_minipost_new.gif) 10/08/2006 20:10:50
|
antranig
Request-scope Wrangler
Joined: 03/04/2006 13:29:55
Messages: 641
Offline
|
You need to use the "RSF suffix system".
These two rows should both share the same prefix, so for example:
<tr rsf:id="itemrow:header">
<tr rsf:id="itemrow:text">
Now you may alternate components issued from your producer as UIBranchContainers with these different kind of rows in any order you choose. Note that the same restrictions on repetitive components apply, i.e. there must be NO OTHER components defined in between the itemrow: components (although you are allowed a small amount of static "glue").
|
|
|
 |
![[Post New]](/rsf/templates/default/images/icon_minipost_new.gif) 10/08/2006 21:57:39
|
ruifeng
Request-scope Wrangler
Joined: 26/06/2006 20:33:20
Messages: 57
Offline
|
if the row has suffix, is "itemrow:header" the ID of the row?
UIBranchContainer.make(form,"itemrow:header", Integer.toString(i));
UIBranchContainer.make(form,"itemrow:text", Integer.toString(i));
How RSF IKAT identify alternate row? Using the row prefix?
|
|
|
 |
![[Post New]](/rsf/templates/default/images/icon_minipost_new.gif) 10/08/2006 22:02:14
|
antranig
Request-scope Wrangler
Joined: 03/04/2006 13:29:55
Messages: 641
Offline
|
Your example there seems correct. Not sure what the question is? Now by alternating BranchContainers of the two kinds you have there, you can achieve altenration of the two kinds of row. The constraint is that all containers with the same prefix "itemrow" must occur next to each other.
|
|
|
 |
|
|