First my q: couldn't you use an easier solution?

For example:
- enumerating all FaqItem components in the page (or in the body of FaqSummary), and getting the title values from their parameters? This solution is somewhat easier to implement if you do not need fully flexible component hierarchy (I mean for example FaqItems are rendered from multiple pages). - if data of FaqItems come from a database, you can use the same query to fill the FaqSummary
- etc :)

Regards,
Norbi

Regards,
Norbi

Jean-Eric Cuendet wrote:

In such advanced cases you can use IMarkupWriter.getNestedWriter():
When rendering the page:
- render all FaqItems to a nested writer
- render the FaqSummary itself
- close() the nested writer (which implicitly commits its content to the main writer)

Thanks a lot, that makes sense.
But where do I put what?

I'll have something like:

<span jwcid="@FaqSummary"/>

<span jwcid="@FaqItem" title="title1">
Body of FAQ #1
</span>

<span jwcid="@FaqItem" title="title2">
Body of FAQ #2
</span>

Where do I put the Nested thing?
-jec




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to