| Version | 1.0 |
|---|---|
| Date | 23rd Dec 02 |
| Author | Jeya Balaji [email protected] |
<body>
<%@taglib uri=... prefix="spectator">
<spectator:prepareSpectator attr >
...
<spectator:acceptComment attr />
...
<spectator:acceptComment attr />
...
</spectator:prepareSpectator>
...
</body>
The <prepareSpectator> tag acts as a frame for the inner tags. The outer tag prompts (generates text field) for the reviewer to enter his/her name. Also all the initialization are done here.
The </prepareSpectator> tag closes the frame and generate code to display a submit button to save all the comments entered by the user.
The inner tag, <acceptComment>, places a text area for user input. Each of these tags gets comments pertaining to that portion of the document. These tags needs to be uniquely identified; so, an attribute name is expected. This name value should be unique among all the <acceptComment> tags of this document.
Along with the text area, this tag displays available comments for this portion (which might be entered by other reviewers).
The following optional attributes are available for the outer and inner tags.
| Attribute Name | Allowed values | Description |
|---|---|---|
| name | Single word | Expected in <acceptComment> tag. This value is used to uniquely identify this particular tag. |
| inlineReviews | true (default) false |
Either display the reviews in the same document, or provide a link and display the reviews in separate page. |
| inlineAccept | true (default) false |
Provide the text area (for reviewer to input comments) either document, or provide a link and accept reviews in separate page. |
| bgColor | #hhhhhh | Background color in which the reviews are displayed. |
| fgColor | #hhhhhh | Foreground color in which the reviews are displayed. |
<reviews>
<review>
<name>MultiThreadSync</name>
<comment>
<author>[email protected]</author>
<machineId>134.92.38.183</machineId>
<date>23.Dec.02</date>
<message>This is great. Need some change.
</message>
</comment>
<comment>
<author>[email protected]</author>
<machineId>123.42.28.101</machineId>
<date>21.Dec.02</date>
<message>Can u change int j?
</message>
</comment>
</review>
<review>
<name>LinearSearch</name>
<comment>
<author>Elango KR</author>
<machineId>176.23.34.752</machineId>
<date>25.Dec.02</date>
<message>Why dont we try binary?
</message>
</comment>
</review>
</reviews>