I did all of this (see original post) but have not gotten it to work. We are
using Facelets/MyFaces and not JSP.
In XHTML files, am including like this:
<html
xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:t="http://myfaces.apache.org/tomahawk"
xmlns:ft="http://sourceforge.net/projects/facestrace">
I created a facestrace.taglib.xml and dropped it into WEB-INF and updated my
web.xml and restarted tomcat but still no luck. I think I am missing
something simple. Should something appear on the page or is there another
URL that needs to be referenced with /faces/ in it to see the trace?
thanks for your help
Lisa
yigit darcin-2 wrote:
>
> Hi,
>
> if you look at http://facestrace.sourceforge.net/main/gettingStarted.html
>
> you just need to add taglib to your page:
>
> <%@ taglib uri="http://sourceforge.net/projects/facestrace" prefix="ft"%>
>
> do servlet mapping as :
> <servlet-mapping
> <servlet-name>Faces Servlet</servlet-name>
> <url-pattern>/faces/*</url-pattern>
> </servlet-mapping>
>
> and lastly put the facestrace in your form as:
>
> <ft:trace />
>
> and make sure facestrace jar is in your lib folder and nothing more.
>
> for the facelets please look at :
>
> http://www.jroller.com/page/cagataycivici?entry=facestrace_with_facelets
>
> Regards,
>
> Yigit.
>
> On 1/15/07, Mick Knutson <[EMAIL PROTECTED]> wrote:
>>
>> I have also not gotten it to work with facelets.
>>
>>
>>
>>
>>
>> On 1/15/07, Lisa <[EMAIL PROTECTED] > wrote:
>> >
>> >
>> > I came onto a project that has a lot of problems so decided to use
>> > facestrace
>> > to see if I could debug some things.
>> >
>> > We are using Maven2 so I put the facestrace.jar in our Subversion
>> > repository. I see that it gets downloaded to
>> > $home/.m2/repository/myfaces/facestrace/0.8.1_SNAPSHOT/ and that the
>> jar
>> > is
>> > there.
>> >
>> > I put the tag in an .xhtml file, I put the servlet-mapping in web.xml.
>> >
>> > web.xml now looks like this.
>> >
>> > <servlet>
>> > <servlet-name>Faces Servlet</servlet-name>
>> > <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
>> > <load-on-startup>1</load-on-startup>
>> > </servlet>
>> >
>> > <!-- Faces Servlet Mapping -->
>> > <!-- extension mapping -->
>> > <servlet-mapping>
>> > <servlet-name>Faces Servlet</servlet-name>
>> > <url-pattern>*.jsf</url-pattern>
>> > </servlet-mapping>
>> >
>> > <!-- facestrace -->
>> > <servlet-mapping>
>> > <servlet-name>Faces Servlet</servlet-name>
>> > <url-pattern>/faces/*</url-pattern>
>> > </servlet-mapping>
>> >
>> > Now what?
>> >
>> >
>> > I am accessing my main web application (login page) like so:
>> >
>> > http://localhost:8080/jspShare/web/startup/Start.jsf
>> >
>> > I put <ft:trace /> into Start.jsf but do not see anything. What I am
>> > missing? How is the facestrace info accessed?
>> >
>> > Thanks
>> >
>> >
>> > Lisa
>> > --
>> > View this message in context:
>> http://www.nabble.com/Anyone-get-facestrace-working--tf3017036.html#a8378666
>> >
>> > Sent from the MyFaces - Users mailing list archive at
>> Nabble.com<http://nabble.com/>
>> > .
>> >
>> >
>>
>>
>> --
>> Thanks
>>
>> DJ MICK
>>
>> (Mick Knutson)
>> http://www.djmick.com
>> http://www.myspace.com/djmick_dot_com
>> http://www.thumpradio.com
>
>
--
View this message in context:
http://www.nabble.com/Anyone-get-facestrace-working--tf3017036.html#a8380272
Sent from the MyFaces - Users mailing list archive at Nabble.com.