Subject: expected a myfaces custom component class in package org.apache.myfaces.custom

2006-11-03 Thread Matt Tyson

Trying to extend the JSCookMenu renderer.  I subclassed 
HtmlJSCookMenuRenderer and added a faces-config entry like this: 
 
render-kit 
render-kit-idHTML_BASIC/render-kit-id 
 renderer 
component-familyjavax.faces.Command/component-family 
renderer-typeorg.apache.myfaces.JSCookMenu/renderer-type 
   
renderer-classcom.company.toolbox.jsf.renderer.MyHtmlJSCookMenuRenderer/renderer-class
 
/renderer 
/render-kit 
 
But I get: expected a myfaces custom component class in package 
org.apache.myfaces.custom 
 
What am I not doing right? 
 
Thanks very much. 
 
Matt Tyson 
-- 
View this message in context: 
http://www.nabble.com/Subject%3A-expected-a-myfaces-custom-component-class-in-package-org.apache.myfaces.custom-tf2568868.html#a7160628
Sent from the MyFaces - Users mailing list archive at Nabble.com.



Re: Subject: expected a myfaces custom component class in package org.apache.myfaces.custom

2006-11-03 Thread Dennis Byrne
Matt,

HTML_BASIC may be the root of your problem.  JsCookMenu is a part of either 
core JSF tag lib renderers.  It is a member of MyFaces extended library.  Try 
removing the render-kit-id element.  Also, make sure this configuration file is 
correctly referenced in the deployment descriptor.

Dennis Byrne

-Original Message-
From: Matt Tyson [mailto:[EMAIL PROTECTED]
Sent: Friday, November 3, 2006 11:20 AM
To: users@myfaces.apache.org
Subject: Subject: expected a myfaces custom component class in package 
org.apache.myfaces.custom


Trying to extend the JSCookMenu renderer.  I subclassed
HtmlJSCookMenuRenderer and added a faces-config entry like this:

render-kit
render-kit-idHTML_BASIC/render-kit-id
 renderer
component-familyjavax.faces.Command/component-family
renderer-typeorg.apache.myfaces.JSCookMenu/renderer-type

renderer-classcom.company.toolbox.jsf.renderer.MyHtmlJSCookMenuRenderer/renderer-class
/renderer
/render-kit

But I get: expected a myfaces custom component class in package
org.apache.myfaces.custom

What am I not doing right?

Thanks very much.

Matt Tyson
--
View this message in context: 
http://www.nabble.com/Subject%3A-expected-a-myfaces-custom-component-class-in-package-org.apache.myfaces.custom-tf2568868.html#a7160628
Sent from the MyFaces - Users mailing list archive at Nabble.com.






Re: Subject: expected a myfaces custom component class in package org.apache.myfaces.custom

2006-11-03 Thread Dennis Byrne
JsCookMenu is a part of either core JSF tag lib renderers.

Oops.  JsCookMenu is *NOT* a part of either core JSF tag lib renderers.

Dennis Byrne

-Original Message-
From: Matt Tyson [mailto:[EMAIL PROTECTED]
Sent: Friday, November 3, 2006 11:20 AM
To: users@myfaces.apache.org
Subject: Subject: expected a myfaces custom component class in package 
org.apache.myfaces.custom


Trying to extend the JSCookMenu renderer.  I subclassed 
HtmlJSCookMenuRenderer and added a faces-config entry like this: 
 
render-kit 
render-kit-idHTML_BASIC/render-kit-id 
 renderer 
component-familyjavax.faces.Command/component-family 
renderer-typeorg.apache.myfaces.JSCookMenu/renderer-type 
   
renderer-classcom.company.toolbox.jsf.renderer.MyHtmlJSCookMenuRenderer/renderer-class
 
/renderer 
/render-kit 
 
But I get: expected a myfaces custom component class in package 
org.apache.myfaces.custom 
 
What am I not doing right? 
 
Thanks very much. 
 
Matt Tyson 
-- 
View this message in context: 
http://www.nabble.com/Subject%3A-expected-a-myfaces-custom-component-class-in-package-org.apache.myfaces.custom-tf2568868.html#a7160628
Sent from the MyFaces - Users mailing list archive at Nabble.com.









Re: Subject: expected a myfaces custom component class in package org.apache.myfaces.custom

2006-11-03 Thread Matt Tyson

Dennis,

That fixed it.  I REALLY appreciate your assistance.  

I removed the rendit-kit-id from the faces-config entry that registered my
subclass of the JSCookMenu converter and it resolved the error in the
subject line.

Again, thank you very much.

Matt Tyson

P.S. I removed this topic from the myfaces-dev forum where I incorrectly
posted it.



Dennis Byrne wrote:
 
JsCookMenu is a part of either core JSF tag lib renderers.
 
 Oops.  JsCookMenu is *NOT* a part of either core JSF tag lib renderers.
 
Dennis Byrne

-Original Message-
From: Matt Tyson [mailto:[EMAIL PROTECTED]
Sent: Friday, November 3, 2006 11:20 AM
To: users@myfaces.apache.org
Subject: Subject: expected a myfaces custom component class in package
org.apache.myfaces.custom


Trying to extend the JSCookMenu renderer.  I subclassed 
HtmlJSCookMenuRenderer and added a faces-config entry like this: 
 
render-kit 
render-kit-idHTML_BASIC/render-kit-id 
 renderer 
component-familyjavax.faces.Command/component-family 
renderer-typeorg.apache.myfaces.JSCookMenu/renderer-type 
   
renderer-classcom.company.toolbox.jsf.renderer.MyHtmlJSCookMenuRenderer/renderer-class
 
/renderer 
/render-kit 
 
But I get: expected a myfaces custom component class in package 
org.apache.myfaces.custom 
 
What am I not doing right? 
 
Thanks very much. 
 
Matt Tyson 
-- 
View this message in context:
http://www.nabble.com/Subject%3A-expected-a-myfaces-custom-component-class-in-package-org.apache.myfaces.custom-tf2568868.html#a7160628
Sent from the MyFaces - Users mailing list archive at Nabble.com.





 
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Re%3A-Subject%3A-expected-a-myfaces-custom-component-class-in-package--org.apache.myfaces.custom-tf2568930.html#a7162737
Sent from the MyFaces - Users mailing list archive at Nabble.com.



Re: Subject: expected a myfaces custom component class in package org.apache.myfaces.custom

2006-11-03 Thread Matt Tyson

Dang it.  That didn't fix it actually.

I've tried like this:

faces-config
render-kit
renderer
render-kit-idHTML_BASIC/render-kit-id
component-familyjavax.faces.Command/component-family
renderer-typeorg.apache.myfaces.JSCookMenu/renderer-type
   
renderer-classcom.company.toolbox.jsf.renderer.HtmlJSCookMenuRendererCompany/renderer-class
/renderer
/render-kit
/faces-config

and without the render-kit-id.  I know the config file is being picked up
(if I comment out this renderer, everything loads).

Can anyone tell me what else I might be doing wrong here?  Just trying to
replace the renderer with my own subclass.

Thanks.

Matt Tyson




Matt Tyson wrote:
 
 Dennis,
 
 That fixed it.  I REALLY appreciate your assistance.  
 
 I removed the rendit-kit-id from the faces-config entry that registered my
 subclass of the JSCookMenu renderer and it resolved the error in the
 subject line.
 
 Again, thank you very much.
 
 Matt Tyson
 
 P.S. I removed this topic from the myfaces-dev forum where I incorrectly
 posted it.
 
 
 
 Dennis Byrne wrote:
 
JsCookMenu is a part of either core JSF tag lib renderers.
 
 Oops.  JsCookMenu is *NOT* a part of either core JSF tag lib renderers.
 
Dennis Byrne

-Original Message-
From: Matt Tyson [mailto:[EMAIL PROTECTED]
Sent: Friday, November 3, 2006 11:20 AM
To: users@myfaces.apache.org
Subject: Subject: expected a myfaces custom component class in package
org.apache.myfaces.custom


Trying to extend the JSCookMenu renderer.  I subclassed 
HtmlJSCookMenuRenderer and added a faces-config entry like this: 
 
render-kit 
render-kit-idHTML_BASIC/render-kit-id 
 renderer 
component-familyjavax.faces.Command/component-family 
renderer-typeorg.apache.myfaces.JSCookMenu/renderer-type 
   
renderer-classcom.company.toolbox.jsf.renderer.MyHtmlJSCookMenuRenderer/renderer-class
 
/renderer 
/render-kit 
 
But I get: expected a myfaces custom component class in package 
org.apache.myfaces.custom 
 
What am I not doing right? 
 
Thanks very much. 
 
Matt Tyson 
-- 
View this message in context:
http://www.nabble.com/Subject%3A-expected-a-myfaces-custom-component-class-in-package-org.apache.myfaces.custom-tf2568868.html#a7160628
Sent from the MyFaces - Users mailing list archive at Nabble.com.





 
 
 
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Re%3A-Subject%3A-expected-a-myfaces-custom-component-class-in-package--org.apache.myfaces.custom-tf2568930.html#a7166258
Sent from the MyFaces - Users mailing list archive at Nabble.com.



Re: Subject: expected a myfaces custom component class in package org.apache.myfaces.custom

2006-11-03 Thread Matt Tyson

If looks like the problem is in the call to MyFacesResourceHandler:

 java.lang.IllegalArgumentException: expected a myfaces custom component
class in package org.apache.myfaces.cu
stom
at
org.apache.myfaces.renderkit.html.util.MyFacesResourceHandler.validateCustomComponent(MyFacesResour
ceHandler.java:75)
 
Which I thought was fixed in the current code base.  Unfortunately, since
the JsCookMenu renderer uses private methods instead of protected, I'm doing
some cut-and-paste that makes the call to MyFacesResourceHandler.

Suggestions?




Matt Tyson wrote:
 
 Dang it.  That didn't fix it actually.
 
 I've tried like this:
 
 faces-config
   render-kit
   renderer
   render-kit-idHTML_BASIC/render-kit-id
   component-familyjavax.faces.Command/component-family
 renderer-typeorg.apache.myfaces.JSCookMenu/renderer-type

 renderer-classcom.company.toolbox.jsf.renderer.HtmlJSCookMenuRendererCompany/renderer-class
 /renderer
 /render-kit
 /faces-config
 
 and without the render-kit-id.  I know the config file is being picked up
 (if I comment out this renderer, everything loads).
 
 Can anyone tell me what else I might be doing wrong here?  Just trying to
 replace the renderer with my own subclass.
 
 Thanks.
 
 Matt Tyson
 
 
 
 
 Matt Tyson wrote:
 
 Dennis,
 
 That fixed it.  I REALLY appreciate your assistance.  
 
 I removed the rendit-kit-id from the faces-config entry that registered
 my subclass of the JSCookMenu renderer and it resolved the error in the
 subject line.
 
 Again, thank you very much.
 
 Matt Tyson
 
 P.S. I removed this topic from the myfaces-dev forum where I incorrectly
 posted it.
 
 
 
 Dennis Byrne wrote:
 
JsCookMenu is a part of either core JSF tag lib renderers.
 
 Oops.  JsCookMenu is *NOT* a part of either core JSF tag lib renderers.
 
Dennis Byrne

-Original Message-
From: Matt Tyson [mailto:[EMAIL PROTECTED]
Sent: Friday, November 3, 2006 11:20 AM
To: users@myfaces.apache.org
Subject: Subject: expected a myfaces custom component class in package
org.apache.myfaces.custom


Trying to extend the JSCookMenu renderer.  I subclassed 
HtmlJSCookMenuRenderer and added a faces-config entry like this: 
 
render-kit 
render-kit-idHTML_BASIC/render-kit-id 
 renderer 
component-familyjavax.faces.Command/component-family 
   
 renderer-typeorg.apache.myfaces.JSCookMenu/renderer-type 
   
renderer-classcom.company.toolbox.jsf.renderer.MyHtmlJSCookMenuRenderer/renderer-class
 
/renderer 
/render-kit 
 
But I get: expected a myfaces custom component class in package 
org.apache.myfaces.custom 
 
What am I not doing right? 
 
Thanks very much. 
 
Matt Tyson 
-- 
View this message in context:
http://www.nabble.com/Subject%3A-expected-a-myfaces-custom-component-class-in-package-org.apache.myfaces.custom-tf2568868.html#a7160628
Sent from the MyFaces - Users mailing list archive at Nabble.com.





 
 
 
 
 
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Re%3A-Subject%3A-expected-a-myfaces-custom-component-class-in-package--org.apache.myfaces.custom-tf2568930.html#a7166310
Sent from the MyFaces - Users mailing list archive at Nabble.com.