[Logo] RSF Discussions Forum
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Table headers... IKAT algorithms  XML
Forum Index -> RSF Help and Problems
Author Message
stevegithens
Request-scope Wrangler

Joined: 04/04/2006 20:34:52
Messages: 84
Location: ooeepooee
Offline

Forgive me for starting a new topic before finishing the previous one.

I have a few questions about the IKAT algorithm. I've started to look at the code for it and the wiki entry, but haven't had time to really sit down and work through it, so parts of it are still a little mysterious.

1. I thought that maybe I could use the following to generate some table headers, and it would figure out the <td>'s around the links:

Code:
 <thead><tr>
 	<td><a href="" rsf:id="headerrow:">Column 1</a></td> 
 	<td><a href="" rsf:id="headerrow:">Column 2</a></td> 
 </tr></thead>
 


But of course I ended up with everything in one column.

In general, will a repeating list of a tag in a tag need always need to be a colon'ed id with non-colon'ed id's inside? Like:

Code:
 <thead><tr>
   <td rsf:id="column:">
     <a rsf:id="headerlink">Sort by column</a>
   </td>
 ...
 </tr></thead>
 


2. Is there any documentation on the wiki that breaks down the ID's in the resulting html?

For instance:
Code:
 <tr rsf:id="tablerow:">
 	<td  id="tablerow:::integers">1</td>
 	<td  id="tablerow:::english">one</td>
 	<td  id="tablerow:::japanese">ichi</td>
 	<td  id="tablerow:::spanish">uno</td>
 </tr>
 <tr rsf:id="tablerow:">
 	<td  id="tablerow:::integers">2</td>
 	<td  id="tablerow:::english">two</td>
 	<td  id="tablerow:::japanese">ni</td>
 	<td  id="tablerow:::spanish">dos</td>
 </tr><tr rsf:id="tablerow:">
 	<td  id="tablerow:::integers">3</td>
 	<td  id="tablerow:::english">three</td>
 	<td  id="tablerow:::japanese">san</td>
 	<td  id="tablerow:::spanish">tres</td>
 </tr>
 


I have a pretty good idea what the 3 colons are indicating, but am just wondering if there is an 'official' list of the different patterns that might appear. For example the numbers appearing in the hibernate tutorial and whatnot.

Thanks!
[WWW]
antranig
Request-scope Wrangler

Joined: 03/04/2006 13:29:55
Messages: 643
Offline

OK, point 1: Yes, in general the "colon"ed tag will be the one on which branching works. So the code you have in your second example is correct - you need a colon tag to perform the selection of the td element, and then a further non-colon tag if you want any components inside that.

There is a tiny exception to this which is the special rsf:id of "payload-component". This deals with the quite common case where you have a leaf component you want to switch in and out, but the rsf component peer is on some lower level. For example,

<div rsf:id="link"> spacing stuff you want around the link <a rsf:id="payload-component" href="#">link text</a> stuff after the link</div>

But this trick does not work with branch components. To the best of my knowledge

2. The "Full ID" algorithm is explained in the wiki in the page on IDs. You can also refer to the docs in the code for getFullID() in UIComponent
stevegithens
Request-scope Wrangler

Joined: 04/04/2006 20:34:52
Messages: 84
Location: ooeepooee
Offline

Great thanks! I must have missed that page on the wiki.
[WWW]
 
Forum Index -> RSF Help and Problems
Message Quick Reply
Go to:   
Powered by JForum 2.1.6 © JForum Team