I've tried other sandbox components in the past, but have had similar
problems.

Here is my info:

        Web.xml entry: 
                <context-param>
                <param-name>facelets.LIBRARIES</param-name>
                <param-value>
                    /WEB-INF/tomahawk.taglib.xml;
                    /WEB-INF/sandbox.taglib.xml;
                </param-value>
              </context-param>  

        Namespace definitions:
                <html   xmlns="http://www.w3.org/1999/xhtml";
                        xmlns:h="http://java.sun.com/jsf/html";
                        xmlns:f="http://java.sun.com/jsf/core";
                        xmlns:ui="http://java.sun.com/jsf/facelets";
                        xmlns:s="http://myfaces.apache.org/sandbox";
                >

        Page code:
                <h:selectBooleanCheckbox
value="#{mapping.loadIntoSettlementCenterFlag}">
                        <s:convertBoolean trueValue="Y" falseValue="N"/>
            </h:selectBooleanCheckbox>

        sandbox.taglib.xml file:
                <?xml version="1.0"?>
                <!DOCTYPE facelet-taglib PUBLIC
                  "-//Sun Microsystems, Inc.//DTD Facelet Taglib
1.0//EN"
                  "http://java.sun.com/dtd/facelet-taglib_1_0.dtd";>
                
                <facelet-taglib>
        
<namespace>http://myfaces.apache.org/sandbox</namespace>
                    <tag>
                        <tag-name>convertBoolean</tag-name>
                        <converter>
        
<converter-id>org.apache.myfaces.custom.convertboolean.BooleanConverter<
/converter-id>
                        </converter>
                    </tag>
                </facelet-taglib>

Frank Russo
Senior Developer
FX Alliance, LLC


-----Original Message-----
From: Mike Kienenberger [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 27, 2006 4:15 PM
To: MyFaces Discussion
Subject: Re: General Converter Question

Only thing I can think of is a missing or incorrect xmlns entry at the
top of the page (or wherever you're specifying them).   Is this the
first sandbox component you're using?

Other than that, your best bet is to post your web.xml facelets library
init param, your page code, and your sandbox.taglib.xml file.

On 4/27/06, Frank Russo <[EMAIL PROTECTED]> wrote:
> It's definitely not finding the converter. It renders as:
>         <s:convertBoolean trueValue="Y"
> falseValue="N"></s:convertBoolean>
>
> I've added the tag to the page. I've included the sandbox.taglib.xml 
> file to my web.xml. Both the taglib and the sandbox jar are included 
> in my webapp. Is there something I'm missing?
>
> Frank Russo
> Senior Developer
> FX Alliance, LLC
>
>
> -----Original Message-----
> From: Mike Kienenberger [mailto:[EMAIL PROTECTED]
> Sent: Thursday, April 27, 2006 3:03 PM
> To: MyFaces Discussion
> Subject: Re: General Converter Question
>
> On 4/27/06, Frank Russo <[EMAIL PROTECTED]> wrote:
> > Actually, I thought it was working, but it was getting a null, but 
> > the
>
> > checkbox rendered unchecked. When I set a value, I get the exception

> > below. It seems to not be finding the converter, as it's never
called.
> >
> > I've added the sandbox.taglib.xml file to my web-inf directory. I've

> > added the reference to it in my web.xml. I have the sanbox jar in my

> > app's web-inf/lib directory. Am I missing something?
>
> My guess is it's not finding the converter.  Did you add a converter 
> tag to your page?  Does the resulting html still show the tag or was 
> it properly interpreted as a converter?
>
>
>
>



Reply via email to