[JBoss Tools (users)] - Making Maven Archetype created Seam Project JBoss Tool compa
by speleomaniac
Hi everybody,
I had created a Seam Project from a Maven Archetype of Wasley Hayes. It functions perfect, I can deploy the maven project to the server and it works.
Now the next big question is, how to correctly Seam enable the project in JBoss Tools so the content assist and everyhing works fine for Seam...
Naturally, I gone to the project properties page of the web project and adjusted the Seam Settings and facets (by looking to the way it is created by the seam wizard) then I did the same thing for the ejb module (enable seam settings which I have to manually configure the parent project because Seam Settings wizard was not capable of doing it) and ear project...
Now content assist works correctly for the references inside of the web project, so wenn I create a session bean in web project content assist show the name of the session bean defined by @Name annotation.
The problem is when I configure the ejb project with ejbmodule and the session bean is created there, content assist is not able to find the bean with mentioned @Name annotation..
I am suspecting the reason is, maven project structure is considerably different then the eclipse ejbModule project... (when I configure the ejbModule I have to give the ejbModule directory as src/main/java but META-INF and everything else is under src/main/resources)...
So does anybody know what is the mechanism Seam Facet use to discover the Session Beans from ejbModule may be I can configure everything to work out....
Thx for the answers...
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4194281#4194281
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4194281
17 years, 7 months
[JBoss Portal] - Re: Custom navigation region
by JohnnyTheHun
I have been thinking about this concept.
Wouldn't it be a more elegant solution if I would use a custom regionRenderer, that renders a specific portlet if it finds a
injectPortlet="MyPortletToInjectInstance"
property in a region?
But I don't know how to do this.
What I found, is that the
1. DivRegionRenderer iterates through RegionRendererContext.getWindows()
Of course this getWindows() function will not return a WindowRendererContext for the injected portlet since it is not configured via xml or the admin page.
2. For every WindowRendererContext it renders the window via RendererContext.render()
So I assume I need to create a WindowRendererContext for every injected portlet too and call the RendererContext.render() with them.
3. JBoss implements whis WindowRendererContext with the WindowContext class.
The constructor of this class is:
WindowContext(java.lang.String id, java.lang.String regionName, java.lang.String order, WindowResult result)
- What is the id?
- regionname I can handle
- what is the order?
I think the above parameters can be easily created, but for the last parameter - WindowResult - I have no idea what to write.
The constructor of WindowResult is:
WindowResult(java.lang.String title, java.lang.String content, java.util.Map actions, java.util.Map windowProperties, java.util.List<org.w3c.dom.Element> headerContent, org.jboss.portal.WindowState windowState, org.jboss.portal.Mode mode)
Can anyone help me on this?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4194272#4194272
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4194272
17 years, 7 months