[jbosstools-dev] Re: https://jira.jboss.org/jira/browse/JBIDE-3635 & the New Seam Project wizard

Snjezana Peco snjezana.peco at redhat.com
Mon Feb 9 10:55:35 EST 2009


We agreed about the possibility of adding RichFaces libraries because 
PortletBridge requires their specific version.
If the user wants to add them, he could do it either from the 
PortletBridge or from the RichFaces distribution.
IDE wouldn't force the user to do anything of that.

The problem with the New Seam Project wizard is that it doesn't allow 
any other facet to contribute to EAR, EJB or test project because these 
projects are created after executing the web facet actions. This isn't 
related to the libraries. We can't add any contribution to these projects.

Snjeza

Max Rydahl Andersen wrote:
> God - I hate IDE's that needs to do tricks to manipulate jars ;)
>
> /max
>> Hi,
>>
>> you can just add something like new SeamProjectCreator().execute() in 
>> your wizard as well as we do in SeamProjectWizard.performFinish().
>> Or, which is better, add some factory to create new 
>> SeamProjectCreator() for particular IDataModel.
>> So the code could looks like:
>> performFinish() {
>> ...
>> SeamProjectCreatorFactory().getInstance().getProjectCreator(dataModel).execute(); 
>>
>> ...
>> }
>> I'm not sure we should move EAR project creating to Seam facet 
>> install deligate again.
>>
>> Snjezana Peco wrote:
>>> Hi,
>>>
>>> I need to add richfaces libraries to some projects within this wizard.
>>> When choosing an EAR project, it is necessary to do the following:
>>>
>>> - change richfaces-impl.jar and richfaces-ui.jar in WAR project
>>> - change richfaces-api.jar in EAR project
>>>
>>> This has to be done in the (Post) Install Delegate action. However, 
>>> the EAR project can't be changed because it is created after 
>>> executing all web facet actions (in the wizard's performFinish method).
>>>
>>> I propose to create ear/ejb/test projects 
>>> (SeamProjectCreator.execute) in the Install Delegate action within 
>>> the Seam facet. Calling SeamProjectCreator.execute could depend on a 
>>> varijable.
>>>
>>> Snjeza
>>>
>>
>




More information about the jbosstools-dev mailing list