[Logo] RSF Discussions Forum
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
how to display 2 rows using UIBranchContainer?  XML
Forum Index -> RSF Help and Problems
Author Message
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

antranig
Request-scope Wrangler

Joined: 03/04/2006 13:29:55
Messages: 643
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").


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?
antranig
Request-scope Wrangler

Joined: 03/04/2006 13:29:55
Messages: 643
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.
 
Forum Index -> RSF Help and Problems
Message Quick Reply
Go to:   
Powered by JForum 2.1.6 © JForum Team