You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Frank Russo <fr...@FXALL.com> on 2006/04/01 00:12:27 UTC

RE: Issue with selectOneRow and Facelets

That got me past that problem. I had to create my own
sandbox.taglib.xml. I thought the component-type was the name of the
class with the full package name, but in this case, it wasn't. I found
that in faces-config in the jar thanks.
 
Now, I've got a new problem. I think it might be facelets related
though. Let me look it over and see if I can figure it out...

Frank Russo
Senior Developer
FX Alliance, LLC


-----Original Message-----
From: Dennis Byrne [mailto:dennis@dbyrne.net] 
Sent: Friday, March 31, 2006 4:59 PM
To: MyFaces Discussion
Subject: Re: Issue with selectOneRow and Facelets

There is a resource called faces-config.xml under META-INF in
sandbox.jar .  In there each component is registered.  Does this custom
jar of yours have a file with this name and this component ?  The TLD
only registers the tag, faces-config is needed to register the component
that a tag is "mapped" to.

Dennis Byrne

>-----Original Message-----
>From: Frank Russo [mailto:frank.russo@FXALL.com]
>Sent: Friday, March 31, 2006 04:53 PM
>To: 'MyFaces Discussion'
>Subject: RE: Issue with selectOneRow and Facelets
>
>Can someone take a look at this? I've been working on this for hours, 
>and I have absolutely no clue why. I have the taglib.xml file in my 
>WEB-INF folder, and it's referenced in the web.xml. Both the tomahawk 
>jar () and the sandbox jar (a scaled down version with just the 
>selectOneRow classes and dependencies as recommended) are on the 
>classpath in WEB-INF/lib. I checked everywhere under Tomcat and my 
>project, for any clashing jars, but nothing.
>
>I'm really stuck. Thanks...
>
>Frank Russo
>Senior Developer
>FX Alliance, LLC
>
>
>-----Original Message-----
>From: Frank Russo
>Sent: Friday, March 31, 2006 9:33 AM
>To: MyFaces Discussion
>Subject: RE: Issue with selectOneRow and Facelets
>
>I added the sandbox.taglib.xml, which I had mistaken called 
>tomahawk.taglib.xml, however now I get an Exception:
>
>   javax.servlet.ServletException: Expression Error: Named Object:
>'org.apache.myfaces.custom.selectOneRow.SelectOneRow' 
>   not found.
>      javax.faces.webapp.FacesServlet.service(FacesServlet.java:202)
>
>   root cause 
>   javax.faces.FacesException: Expression Error: Named Object:
>'org.apache.myfaces.custom.selectOneRow.SelectOneRow'  
>   not found.
>	
>com.sun.faces.application.ApplicationImpl.createComponent(ApplicationIm
>p
>l.java:360)
>	
>com.sun.faces.application.ApplicationImpl.createComponent(ApplicationIm
>p
>l.java:392)
>	
>com.sun.facelets.tag.jsf.ComponentHandler.createComponent(ComponentHand
>l
>er.java:217)
>	
>com.sun.facelets.tag.jsf.ComponentHandler.apply(ComponentHandler.java:1
>3
>5)
>	
>com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHand
>l
>er.java:47)
>	
>com.sun.facelets.tag.jsf.ComponentHandler.apply(ComponentHandler.java:1
>6
>4)
>	
>com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHand
>l
>er.java:47)
>	
>com.sun.facelets.tag.jsf.ComponentHandler.apply(ComponentHandler.java:1
>6
>4)
>	
>com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHand
>l
>er.java:47)
>	
>com.sun.facelets.tag.jsf.ComponentHandler.apply(ComponentHandler.java:1
>6
>4)
>	
>com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHand
>l
>er.java:47)
>	
>com.sun.facelets.tag.jsf.core.ViewHandler.apply(ViewHandler.java:102)
>	
>com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHand
>l
>er.java:47)
>	
>com.sun.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:
>4
>9)
>	
>com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHand
>l
>er.java:47)
>	
>com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:248)
>	
>com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:294)
>	
>com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:273)
>	
>com.sun.facelets.impl.DefaultFaceletContext.includeFacelet(DefaultFacel
>e
>tContext.java:140)
>	
>com.sun.facelets.tag.ui.CompositionHandler.apply(CompositionHandler.jav
>a
>:113)
>	
>com.sun.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:
>4
>9)
>	
>com.sun.facelets.impl.DefaultFacelet.apply(DefaultFacelet.java:95)
>	
>com.sun.facelets.FaceletViewHandler.buildView(FaceletViewHandler.java:4
>6
>3)
>	
>com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:
>5
>05)
>	
>com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase
.
>java:87)
>	
>com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
>	
>com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
>	javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)
>
>I checked my WEB-INF/lib, and the sandbox-project-1.1.2-SNAPSHOT.jar,
>which contains the files. I checked the rest of Tomcat to see if there 
>were any conflicting jars, but there don't appear to be any. Does this 
>need to be somewhere else?
>
>Frank Russo
>Senior Developer
>FX Alliance, LLC
>
>
>-----Original Message-----
>From: Frank Russo
>Sent: Friday, March 31, 2006 7:56 AM
>To: MyFaces Discussion
>Subject: RE: Issue with selectOneRow and Facelets
>
>I got the namespace tag. I thought I included the taglib. Let me check 
>my build script to make sure it's including it.
> 
>Thanks. I'll post again if that's not the problem...
>
>Frank Russo
>Senior Developer
>FX Alliance, LLC
>
>
>-----Original Message-----
>From: Mike Kienenberger [mailto:mkienenb@gmail.com]
>Sent: Thursday, March 30, 2006 5:46 PM
>To: MyFaces Discussion
>Subject: Re: Issue with selectOneRow and Facelets
>
>On 3/30/06, Mike Kienenberger <mk...@gmail.com> wrote:
>> On 3/30/06, Frank Russo <fr...@fxall.com> wrote:
>> > <s:selectOneRow groupName="entityName" id="entityName"
value="BANK5"
>> > binding=""></s:selectOneRow>
>>
>> Generally means that the sandbox taglib.xml file hasn't been
>> created/processed.   Or that you didn't put a selectOneRow tag in it.
>
>Or that you left of the xml namespace tag for "s"
>
>
>
>
>
>
>
>
>
>