Sounds like your component output is occuring once for each tab, but
on each invocatino, it is writing content for each tab that follows
the current tab, as well as the current tab.  So 1st tab get s written
once, then each tab after it.  Then 2nd tab gets written again, plus
each tab after it, and so on.

--sam


On 4/9/06, Andreas Bulling <[EMAIL PROTECTED]> wrote:
> Well, in the meanwhile I've reached this point:
>
> @Component(type = "DirectLink", bindings = {
>         "listener=ognl:listeners.onTabClicked", "parameters=ognl:tab.id" })
> public abstract DirectLink getTabLink();
>
> @Component(type = "Insert", bindings = { 
> "value=ognl:page.getMessage(tab.title)" })
> public abstract Insert getTabTitle();
>
> [...]
>
> Iterator i = getTabs().iterator();
> while (i.hasNext())
> {
>         Tab tab = (Tab) i.next();
>         setTab(tab);
>
>         [...]
>
>         getTabLink().addBody(getTabTitle());
>         getTabLink().render(writer, cycle);
>
>         [...]
>
> }
>
> The problem now is, that the title of the first
> tab is written once, but the second two times and
> the third three times. Why does that happen and how
> can I fix this?
>
> Kind regards,
>   Andreas
>
> ---------------------------------------------------------------------
> 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