Re: DirectLink in Abstract Component

2006-10-12 Thread Norbert Sándor
If you must use AbstractComponent as subclass, try something like: public abstract class MyComponent extends AbstractComponent implements IDirect {     ...     public void renderComponent(...)     { writer.begin("a"); writer.attribute("href", getLink(cycle)); writer.attribute("onmouseo

Re: DirectLink in Abstract Component

2006-10-12 Thread jake123
;); writer.begin("span"); writer.print(menu.getName()); writer.end(); //end span writer.end(); // end a becouse I put in jwcid:s and ognl etc in already generated html. So the question is how can I generate the link and add that to the writer? Thanks Jacob -- View this m

Re: DirectLink in Abstract Component

2006-10-11 Thread Norbert Sándor
The DirectLink component is not that complex: it uses the "direct" service to create a link. When the user clicks on the link, the "direct" service handles almost everything. What you can do (for example) is to implement IDirect in your component (which extends AbstractComponent) and generate

Re: DirectLink in Abstract Component

2006-10-11 Thread jake123
Please, have anybody created a DirectLink in a Custom Component that extends from AbstractComponent? How do you do that? I could really need some pointers! Thanks in advance, Jacob -- View this message in context: http://www.nabble.com/DirectLink-in-Abstract-Component-tf2419541.html#a6761175

DirectLink in Abstract Component

2006-10-10 Thread jake123
LinkArticlePage(Long articleId) { getArticlePage().setArticleId(articleId); return getArticlePage(); } } The menu component is rendering correctly, but nothing happens when I try to click on my DirectLinks. Hopefully I just missed something small, but I c