Re: Programmatically generating DirectLinks with updateComponents

2008-01-17 Thread Kaspar Fischer
For others running into a similar problem. I've solved it as follows. My markup contains: updateComponents="result" async="true" parameters="ognl: {page.parameter}"> At the place where I need to programmatically generate the link, I call my page's setLinkText() method (which I added as

Re: Programmatically generating DirectLinks with updateComponents

2007-12-24 Thread Andreas Andreou
I'm wondering if you can just extend from BaseComponent, include an html template that just has a DirectLink and in your renderComponent() call super.renderComponent() each time you want to output the direct link The other solution is to implement IDirect (similarly to what DirectLink does) On De

Re: Programmatically generating DirectLinks with updateComponents

2007-12-24 Thread Kaspar Fischer
On 22.12.2007, at 23:30, Andreas Andreou wrote: Hi, what's the html template for ResultElement ? Can't you add the link there? ResultElement does not have a HTML but is an AbstractComponent rendering its content using the renderComponent(). The name "ResultElement" is a little missleading;

Re: Programmatically generating DirectLinks with updateComponents

2007-12-22 Thread Andreas Andreou
Hi, what's the html template for ResultElement ? Can't you add the link there? On Dec 22, 2007 11:48 PM, Kaspar Fischer <[EMAIL PROTECTED]> wrote: > On 21.12.2007, at 19:29, Kaspar Fischer wrote: > > > Hi, > > > > My custom component needs to emit in its renderComponent() method > > several > > Di

Re: Programmatically generating DirectLinks with updateComponents

2007-12-22 Thread Kaspar Fischer
On 21.12.2007, at 19:29, Kaspar Fischer wrote: Hi, My custom component needs to emit in its renderComponent() method several DirectLink with updateComponents information. That is, I need to output the same HTML as updateComponents="result"> generates non-programmatically, but from wit

Programmatically generating DirectLinks with updateComponents

2007-12-21 Thread Kaspar Fischer
Hi, My custom component needs to emit in its renderComponent() method several DirectLink with updateComponents information. That is, I need to output the same HTML as updateComponents="result"> generates non-programmatically, but from within renderComponent(). How can I do this? Tha