You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-user@portals.apache.org by Ron Wheeler <rw...@artifact-software.com> on 2007/05/22 05:35:12 UTC

AndroMDA

Has anyone figured how AndroMDA can be used to implement Jetspeed portals?


---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org


Re: AndroMDA

Posted by Philip Mark Donaghy <pm...@apache.org>.
Update on how to run an andromda application in j2.

On 5/23/07, Philip Mark Donaghy <pm...@apache.org> wrote:
>
> Hi Ron,
>
> On 5/21/07, Ron Wheeler <rw...@artifact-software.com> wrote:
> > Has anyone figured how AndroMDA can be used to implement Jetspeed
> portals?


I have an andromda project running as a portlet under jetspeed. Here's an
outline of what I had to do.

FYI. Andromda projects allow you to use UML models for page flow, form input
and validation, workflow, and business prcesses. Any logic that can be
expressed in UML can be generated into an application. Running an andromda
project as a portlet can be done with the bridges project. Andromda supports
JSF, Struts, .NET, and similar frameworks. This guide let's us run an
andromda 3.x bpm4struts application as a portlet.

What I would propose doing is creating a Andromda cartridge hosted at Apache
Portals. Ralph, let me know if you would like to help.

ANDROMDA PORTLET HOWTO for the BPM4STRUTS Cartridge

1. Create a portlet.xml using the Struts Bridge.
    <portlet-class>org.apache.portals.bridges.struts.StrutsPortlet
</portlet-class>

2. Include the following init parameters
    <init-param>
      <name>ServletContextProvider</name>
      <value>org.apache.jetspeed.portlet.ServletContextProviderImpl</value>
    </init-param>
    <init-param>
      <name>ViewPage</name>
      <value>/Beverage/Manage.do</value>
    </init-param>

3. Specify the bridges tag lib libraries by changing taglib-imports.jspffrom,
    <%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %> to,
    <%@ taglib uri="
http://portals.apache.org/bridges/struts/tags-portlet-html" prefix="html" %>

4. Specify the Tiles request processor as the controller in
struts-config.xml
    <controller pagePattern="$M$P" inputForward="false" processorClass="
org.apache.portals.bridges.struts.PortletTilesRequestProcessor"/>

5. Your ActionServlet must extent PortletServlet. The class name is
org.apache.portals.bridges.struts.PortletServlet of the bridges project.
Your Andromda project will need a similar dependency in it's web component
project.
    <dependency>
      <id>org.apache.portals.bridges:portals-bridges-struts</id>
      <version>1.2.7-1.0.1</version>
      <properties>
        <war.bundle>true</war.bundle>
      </properties>
    </dependency>

6. TODO Display Tag

I have tried this and there are a few issues that I know off hand. The
> Andromda cartridge needs some modifications depending on if your using
> struts or jsf. I used struts.
>
> The struts tag lib must be replaced with the struts bridges tag lib.
>
> The struts bridge actions must be configured for each of the actions.
>
> And if you use the display tag lib there are some tricks to get this
> working as a portlet.
>
> Philip
>
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
> > For additional commands, e-mail: jetspeed-user-help@portals.apache.org
> >
> >
>
>
> --
> Philip Donaghy
> Apache Portals (portals.apache.org) PMC member
> Skype: philipmarkdonaghy
> Office: +33 5 56 60 88 02
> Mobile: +33 6 20 83 22 62
>



-- 
Philip Donaghy
Apache Portals (portals.apache.org) PMC member
Skype: philipmarkdonaghy
Office: +33 5 56 60 88 02
Mobile: +33 6 20 83 22 62

Re: AndroMDA

Posted by Philip Mark Donaghy <pm...@apache.org>.
Hi Ron,

On 5/21/07, Ron Wheeler <rw...@artifact-software.com> wrote:
> Has anyone figured how AndroMDA can be used to implement Jetspeed portals?

I have tried this and there are a few issues that I know off hand. The
Andromda cartridge needs some modifications depending on if your using
struts or jsf. I used struts.

The struts tag lib must be replaced with the struts bridges tag lib.

The struts bridge actions must be configured for each of the actions.

And if you use the display tag lib there are some tricks to get this
working as a portlet.

Philip

>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
> For additional commands, e-mail: jetspeed-user-help@portals.apache.org
>
>


-- 
Philip Donaghy
Apache Portals (portals.apache.org) PMC member
Skype: philipmarkdonaghy
Office: +33 5 56 60 88 02
Mobile: +33 6 20 83 22 62

---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org