This content has been marked as final.
Show 1 reply
-
1. Re: Facelet component (custom tag) with SEAM-managed behaviour (for providing data)
mikkus70 Dec 9, 2009 11:51 AM (in response to idyoshin)If you mean you want your custom tags to interact with Seam components, sure it can be done and most Seam UI tags already do that. The only catch is that your tag handlers cannot benefit from bijection (they are instanced by JSP/Facelets and not the Seam container and cannot be therefore managed by Seam). But you can get hold of your components via the Seam API.
See the Seam UI source code for practical scenarios (for example the UIGraphicImage class in charge of rendering the <s:graphicImage> tag in org.jboss.seam.ui.graphicImage, which interacts with the Image and GraphicImageStore components in that same package), but basically this is how you retrieve your components via the API:
MyComponent.instance()
or:
Component.getInstance(...)
or even:
Contexts.get...Context().get(...)