Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » trinidad-api & trinidad-impl
trinidad-api & trinidad-impl [message #210479] Tue, 18 March 2008 09:58 Go to next message
Eclipse UserFriend
Originally posted by: mzupan.vup.hr

I wish to use trinidad components in my wtp pallette, so is it enough to
copy trinidad-api-1.2.7.jar to my WEB-INF/lib or trinidad-impl-1.2.7.jar is
also needed?
Re: trinidad-api & trinidad-impl [message #210594 is a reply to message #210479] Wed, 19 March 2008 09:50 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mzupan.vup.hr

"Mario" <mzupan@vup.hr> wrote in message
news:fro3na$n5k$1@build.eclipse.org...
>I wish to use trinidad components in my wtp pallette, so is it enough to
>copy trinidad-api-1.2.7.jar to my WEB-INF/lib or trinidad-impl-1.2.7.jar is
>also needed?
>
I put both in a project WEB-INF/lib but won't work after I started on a
Tomcat. While researching JSF tutorials I didn't find what I need to add to
web.xml
Re: trinidad-api & trinidad-impl [message #210972 is a reply to message #210594] Tue, 25 March 2008 20:54 Go to previous message
Tobias F is currently offline Tobias FFriend
Messages: 35
Registered: July 2009
Member
Hello Mario,
You have to place both jar files in WEB-INF/lib as you did.
Is your problem to get the components into the palette or to get trinidad
running at all?

I just copied the two jars in WEB-INF/lib and I have them in my palette.

One info before. Trinidad 1.2.7 makes some problems with my app. This is why
I use 1.2.2

http://myfaces.apache.org/trinidad/devguide/configuration.ht ml has a pretty
goog instruction to configure trinidad. Don't forget that you need the jsf
reference implementation or the myfaces implementation of jsf to use
trinidad.

Below I show you my JSF related content of the web.xml and faces-context.xml

web.xml:

<context-param>
<param-name>javax.faces.CONFIG_FILES</param-name>
<param-value>/WEB-INF/faces-config.xml</param-value>
</context-param>
<context-param>
<param-name>javax.faces.STATE_SAVING_METHOD</param-name>
<param-value>server</param-value>
</context-param>
<context-param>
<param-name>com.sun.faces.expressionFactory</param-name>
<param-value>org.apache.el.ExpressionFactoryImpl</param-value >
</context-param>
<context-param>
<param-name>javax.faces.DEFAULT_SUFFIX</param-name>
<param-value>.jsp</param-value>
</context-param>
<context-param>
<param-name>org.apache.myfaces.trinidad.ENABLE_LIGHTWEIGHT_DIALOGS </param-name>
<param-value>true</param-value>
</context-param>
<context-param>
<param-name> org.apache.myfaces.trinidadinternal.renderkit.USE_DIALOG_POP UP </param-name>
<param-value>true</param-value>
</context-param>
<servlet>
<servlet-name>Faces Servlet</servlet-name>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class >
<load-on-startup>1</load-on-startup>
</servlet>
<servlet>
<servlet-name>resources</servlet-name>
<servlet-class>org.apache.myfaces.trinidad.webapp.ResourceServlet </servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>/faces/*</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>resources</servlet-name>
<url-pattern>/adf/*</url-pattern>
</servlet-mapping>

WEB-INF/faces-context.xml

<application>
<default-render-kit-id>org.apache.myfaces.trinidad.core</default-render-kit-id >
</application>

Then you need some beans and navigation rules in the faces-context.

Tobias


"Mario" <mzupan@vup.hr> schrieb im Newsbeitrag
news:frqnln$9hj$1@build.eclipse.org...
>
> "Mario" <mzupan@vup.hr> wrote in message
> news:fro3na$n5k$1@build.eclipse.org...
>>I wish to use trinidad components in my wtp pallette, so is it enough to
>>copy trinidad-api-1.2.7.jar to my WEB-INF/lib or trinidad-impl-1.2.7.jar
>>is also needed?
>>
> I put both in a project WEB-INF/lib but won't work after I started on a
> Tomcat. While researching JSF tutorials I didn't find what I need to add
> to web.xml
>
Previous Topic:JavaScript debugging not available
Next Topic:XML Catalog - reference to an XSD placed in a zip file
Goto Forum:
  


Current Time: Thu Mar 28 11:10:22 GMT 2024

Powered by FUDForum. Page generated in 0.03993 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top