dev@jsftemplating.java.net

Re: JSFTemplating: Re: Editable List

From: Ken Paulsen <Ken.Paulsen_at_Sun.COM>
Date: Wed, 14 Jun 2006 00:16:11 -0700

Looks great!

Thanks,

Ken

Ana Caballero wrote:
> Thanks Ken. I checked in the new Factory(EditableListFactory.java)
> for EditableList in the Rave Component directory.
>
> Ana
>
> Ken Paulsen wrote:
>>
>> Hi Ana,
>>
>> Good question (we need to start a FAQ, this should be on it).
>>
>> To see the list of known ComponentTypes (i.e. components ready to
>> use), you can goto the info.jsf page:
>>
>> http://<machine>:<port>/<context-root>/info.jsf
>>
>> This is a built-in page that only works in debug mode (i.e.
>> -Dcom.sun.jsftemplating.DEBUG=true). It's not currently
>> alphabetized... I should fix it. Anyway, the component you are
>> trying to use must be listed under the list of ComponentTypes. If
>> it's not in the list (in this case it's not), check to see if there
>> is a factory (there's not -- must be an oversight on my part)...
>> you'll either need to add or fix the factory.
>>
>> So in this case, copy the one from the "sun" directory to the "rave"
>> directory and make the necessary changes. Then try again... let me
>> know if this doesn't work. Please check in the new factory once you
>> get it working.
>>
>> Thanks!
>>
>> Ken
>>
>> Ana Caballero wrote:
>>> Hi Ken,
>>>
>>> I'm trying to use the EditableList component and keep getting an
>>> exception(see below). I checked the TLD file and it is supported.
>>> Do you have any idea why this may be happening? Thanks.
>>>
>>> javax.servlet.ServletException: ComponentType 'rave:editableList' not defined!
>>> javax.faces.webapp.FacesServlet.service(FacesServlet.java:256)
>>> com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:73)
>>> com.sun.enterprise.web.VirtualServerPipeline.invoke(VirtualServerPipeline.java:120)
>>> org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:231)
>>> com.sun.enterprise.web.connector.grizzly.ProcessorTask.invokeAdapter(ProcessorTask.java:667)
>>> com.sun.enterprise.web.connector.grizzly.ProcessorTask.processNonBlocked(ProcessorTask.java:574)
>>> com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:844)
>>> com.sun.enterprise.web.connector.grizzly.ReadTask.executeProcessorTask(ReadTask.java:325)
>>> com.sun.enterprise.web.connector.grizzly.ReadTask.doTask(ReadTask.java:250)
>>> com.sun.enterprise.web.connector.grizzly.ReadTask.doTask(ReadTask.java:204)
>>> com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:252)
>>> com.sun.enterprise.web.connector.grizzly.WorkerThreadImpl.run(WorkerThreadImpl.java:104)
>>>
>>>
>>> *root cause*
>>>
>>> java.lang.IllegalArgumentException: ComponentType 'rave:editableList' not defined!
>>> com.sun.jsftemplating.layout.template.TemplateReader.createLayoutComponent(TemplateReader.java:308)
>>> com.sun.jsftemplating.layout.template.BaseProcessingContext.beginComponent(BaseProcessingContext.java:58)
>>> com.sun.jsftemplating.layout.template.TemplateReader.process(TemplateReader.java:267)
>>> com.sun.jsftemplating.layout.template.BaseProcessingContext.beginComponent(BaseProcessingContext.java:82)
>>> com.sun.jsftemplating.layout.template.TemplateReader.process(TemplateReader.java:267)
>>> com.sun.jsftemplating.layout.template.BaseProcessingContext.beginComponent(BaseProcessingContext.java:82)
>>> com.sun.jsftemplating.layout.template.TemplateReader.process(TemplateReader.java:267)
>>> com.sun.jsftemplating.layout.template.BaseProcessingContext.beginComponent(BaseProcessingContext.java:82)
>>> com.sun.jsftemplating.layout.template.TemplateReader.process(TemplateReader.java:267)
>>> com.sun.jsftemplating.layout.template.BaseProcessingContext.beginComponent(BaseProcessingContext.java:82)
>>> com.sun.jsftemplating.layout.template.TemplateReader.process(TemplateReader.java:267)
>>> com.sun.jsftemplating.layout.template.BaseProcessingContext.beginComponent(BaseProcessingContext.java:82)
>>> com.sun.jsftemplating.layout.template.TemplateReader.process(TemplateReader.java:267)
>>> com.sun.jsftemplating.layout.template.BaseProcessingContext.beginComponent(BaseProcessingContext.java:82)
>>> com.sun.jsftemplating.layout.template.TemplateReader.process(TemplateReader.java:267)
>>> com.sun.jsftemplating.layout.template.BaseProcessingContext.beginComponent(BaseProcessingContext.java:82)
>>> com.sun.jsftemplating.layout.template.TemplateReader.process(TemplateReader.java:267)
>>> com.sun.jsftemplating.layout.template.TemplateReader.readLayoutDefinition(TemplateReader.java:155)
>>> com.sun.jsftemplating.layout.template.TemplateReader.read(TemplateReader.java:113)
>>> com.sun.jsftemplating.layout.template.TemplateLayoutDefinitionManager.getLayoutDefinition(TemplateLayoutDefinitionManager.java:160)
>>> com.sun.jsftemplating.layout.LayoutDefinitionManager.getLayoutDefinition(LayoutDefinitionManager.java:205)
>>> com.sun.jsftemplating.layout.LayoutViewRoot.getLayoutDefinition(LayoutViewRoot.java:227)
>>> com.sun.jsftemplating.layout.LayoutViewHandler.createView(LayoutViewHandler.java:128)
>>> com.sun.faces.lifecycle.RestoreViewPhase.execute(RestoreViewPhase.java:219)
>>> com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:266)
>>> com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:132)
>>> javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
>>> com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:73)
>>> com.sun.enterprise.web.VirtualServerPipeline.invoke(VirtualServerPipeline.java:120)
>>> org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:231)
>>> com.sun.enterprise.web.connector.grizzly.ProcessorTask.invokeAdapter(ProcessorTask.java:667)
>>> com.sun.enterprise.web.connector.grizzly.ProcessorTask.processNonBlocked(ProcessorTask.java:574)
>>> com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:844)
>>> com.sun.enterprise.web.connector.grizzly.ReadTask.executeProcessorTask(ReadTask.java:325)
>>> com.sun.enterprise.web.connector.grizzly.ReadTask.doTask(ReadTask.java:250)
>>> com.sun.enterprise.web.connector.grizzly.ReadTask.doTask(ReadTask.java:204)
>>> com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:252)
>>> com.sun.enterprise.web.connector.grizzly.WorkerThreadImpl.run(WorkerThreadImpl.java:104)
>>>
>>>