Hi Julien. "[EMAIL PROTECTED]" wrote : yes, you should work on that I think. This should be done as a an interceptor placed after the ViewInterceptor. It needs to iterate all the windows selected for this request and retain only those who can produce the selected content type. | | On the Window object you can get the Instance and on the Instance you can get the Component object. | | On that Component object you have a method getContentTypes() which returns a plugin of the component responsible for managing the associations between component and content types.
Well, it seems I need more information on selecting right components accorting to their supported MIME type. 1. I get the request : PortalRequest request = (PortalRequest)invocation.getAttachment(AttachmentKey.PORTAL_REQUEST); 2. Then I get the window : Window window = (Window)invocation.getAttachment(AttachmentKey.WINDOW); 3. After that I get the MetaDataHolder : MetaDataHolder mdh = window.getInstance.getComponent().getPlugin(plugin).getMetaData(); Question #1 - what is the correct value of "plugin" ? Question #2 - how to check the MIME type supported by the concrete component of the wondow ? Please, explane the idea in more details. All information is quite fragmented and it is difficult to get the whole picture. Thank you in avance. Cheers, Arturas View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3866464#3866464 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3866464 ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ JBoss-Development mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jboss-development
