Re: Shale + Facelets + Tomahawk [OT?]
On 1/26/07, Reynolds, James <[EMAIL PROTECTED]> wrote: In the taglib file, don't be tempted to list the actual path to the component in the tomahawk jar. Follow the listed in the Facelets wiki I had a feeling it had to do with the tomahawk taglib file. Just so you know we are using that same configuration with our app: MyFaces 1.1.5-SNAPSHOT, Tomahawk 1.1.5-SNAPSHOT, Facelets 1.1.10 and Shale 1.0.4. Greg
RE: Shale + Facelets + Tomahawk [OT?]
Solved. This isn't a Shale issue at all, but since I've already polluted the mail archives with it, I may as well post the solution. In the taglib file, don't be tempted to list the actual path to the component in the tomahawk jar. Follow the listed in the Facelets wiki (I had changed it assuming that the path had changed in later releases). In the case of the commandLink (that I was using for testing to get this up and running), you must also include the . That's the portion missing from the Facelets wiki. Here's what the tag should look like. commandLink org.apache.myfaces.HtmlCommandLink javax.faces.Link -Original Message- From: Reynolds, James [mailto:[EMAIL PROTECTED] Sent: Friday, January 26, 2007 10:05 AM To: user@shale.apache.org Subject: Shale + Facelets + Tomahawk [OT?] I'm having trouble configuring myfaces tomahawk components to work with Facelets and I'm wondering if there is a conflict with Shale. Is anyone else using this combination successfully? Based on instructions at the facelets wiki, this is what I've done so far: I've created a file named tomahawk.taglib.xml under /WEB-INF: http://java.sun.com/dtd/facelet-taglib_1_0.dtd";> http://myfaces.apache.org/tomahawk commandLink org.apache.myfaces.component.html.ext.HtmlCommandLink org.apache.myfaces.renderkit.html.HtmlLinkRenderer I've registered the file in my web.xml: ... facelets.LIBRARIES /WEB-INF/tomahawk.taglib.xml ... I've referenced the namespace declared in the taglib file in the root html element of my page as such: xmlns:t="http://myfaces.apache.org/tomahawk"; Is there something else I need to do on the Shale side to make this work? Thanks E-Mail messages may contain viruses, worms, or other malicious code. By reading the message and opening any attachments, the recipient accepts full responsibility for taking protective action against such code. Sender is not liable for any loss or damage arising from this message. The information in this e-mail is confidential and may be legally privileged. It is intended solely for the addressee(s). Access to this e-mail by anyone else is unauthorized. E-Mail messages may contain viruses, worms, or other malicious code. By reading the message and opening any attachments, the recipient accepts full responsibility for taking protective action against such code. Sender is not liable for any loss or damage arising from this message. The information in this e-mail is confidential and may be legally privileged. It is intended solely for the addressee(s). Access to this e-mail by anyone else is unauthorized.
RE: Shale + Facelets + Tomahawk [OT?]
I do have that setting and I should mention that Facelets + Shale are working great together. The problem I'm having is only with the addition of myfaces tomahawk. In the absence of any obvious conflict, I'll run off to bother the myfaces mailing list for a change :) Thanks for the suggestion and have a great day! On 1/26/07, Reynolds, James <[EMAIL PROTECTED]> wrote: > > I'm having trouble configuring myfaces tomahawk components to work with > Facelets and I'm wondering if there is a conflict with Shale. Is anyone > else using this combination successfully? I've seen people say they did, but can't point directly at a mail thread for you. One critical link for Facelets to work is setting the "default suffix" context init parameter. Did you do that as well? javax.faces.DEFAULT_SUFFIX .xhtml Without this setting, JSF is going to assume the extension is ".jsp" Craig Based on instructions at the facelets wiki, this is what I've done so > far: > > I've created a file named tomahawk.taglib.xml under /WEB-INF: > >"-//Sun Microsystems, Inc.//DTD Facelet Taglib 1.0//EN" > "http://java.sun.com/dtd/facelet-taglib_1_0.dtd";> > > > > http://myfaces.apache.org/tomahawk > > > commandLink > > > org.apache.myfaces.component.html.ext.HtmlCommandLink omponent-type> > > org.apache.myfaces.renderkit.html.HtmlLinkRenderer rer-type> > > > > > I've registered the file in my web.xml: > ... > > facelets.LIBRARIES > /WEB-INF/tomahawk.taglib.xml > > ... > > I've referenced the namespace declared in the taglib file in the root > html element of my page as such: > xmlns:t="http://myfaces.apache.org/tomahawk"; > > Is there something else I need to do on the Shale side to make this > work? > > Thanks > > > > > > E-Mail messages may contain viruses, worms, or other malicious code. By > reading the message and opening any attachments, the recipient accepts full > responsibility for taking protective action against such code. Sender is not > liable for any loss or damage arising from this message. > > The information in this e-mail is confidential and may be legally > privileged. It is intended solely for the addressee(s). Access to this > e-mail by anyone else is unauthorized. > > E-Mail messages may contain viruses, worms, or other malicious code. By reading the message and opening any attachments, the recipient accepts full responsibility for taking protective action against such code. Sender is not liable for any loss or damage arising from this message. The information in this e-mail is confidential and may be legally privileged. It is intended solely for the addressee(s). Access to this e-mail by anyone else is unauthorized.
Re: Shale + Facelets + Tomahawk [OT?]
On 1/26/07, Reynolds, James <[EMAIL PROTECTED]> wrote: I'm having trouble configuring myfaces tomahawk components to work with Facelets and I'm wondering if there is a conflict with Shale. Is anyone else using this combination successfully? I've seen people say they did, but can't point directly at a mail thread for you. One critical link for Facelets to work is setting the "default suffix" context init parameter. Did you do that as well? javax.faces.DEFAULT_SUFFIX .xhtml Without this setting, JSF is going to assume the extension is ".jsp". Craig Based on instructions at the facelets wiki, this is what I've done so far: I've created a file named tomahawk.taglib.xml under /WEB-INF: http://java.sun.com/dtd/facelet-taglib_1_0.dtd";> http://myfaces.apache.org/tomahawk commandLink org.apache.myfaces.component.html.ext.HtmlCommandLink org.apache.myfaces.renderkit.html.HtmlLinkRenderer I've registered the file in my web.xml: ... facelets.LIBRARIES /WEB-INF/tomahawk.taglib.xml ... I've referenced the namespace declared in the taglib file in the root html element of my page as such: xmlns:t="http://myfaces.apache.org/tomahawk"; Is there something else I need to do on the Shale side to make this work? Thanks E-Mail messages may contain viruses, worms, or other malicious code. By reading the message and opening any attachments, the recipient accepts full responsibility for taking protective action against such code. Sender is not liable for any loss or damage arising from this message. The information in this e-mail is confidential and may be legally privileged. It is intended solely for the addressee(s). Access to this e-mail by anyone else is unauthorized.
Shale + Facelets + Tomahawk [OT?]
I'm having trouble configuring myfaces tomahawk components to work with Facelets and I'm wondering if there is a conflict with Shale. Is anyone else using this combination successfully? Based on instructions at the facelets wiki, this is what I've done so far: I've created a file named tomahawk.taglib.xml under /WEB-INF: http://java.sun.com/dtd/facelet-taglib_1_0.dtd";> http://myfaces.apache.org/tomahawk commandLink org.apache.myfaces.component.html.ext.HtmlCommandLink org.apache.myfaces.renderkit.html.HtmlLinkRenderer I've registered the file in my web.xml: ... facelets.LIBRARIES /WEB-INF/tomahawk.taglib.xml ... I've referenced the namespace declared in the taglib file in the root html element of my page as such: xmlns:t="http://myfaces.apache.org/tomahawk"; Is there something else I need to do on the Shale side to make this work? Thanks E-Mail messages may contain viruses, worms, or other malicious code. By reading the message and opening any attachments, the recipient accepts full responsibility for taking protective action against such code. Sender is not liable for any loss or damage arising from this message. The information in this e-mail is confidential and may be legally privileged. It is intended solely for the addressee(s). Access to this e-mail by anyone else is unauthorized.