PDA

View Full Version : JSF UI Components for Resin 3.1.9


asilter
03-01-2011, 01:32 PM
Hi all,

I would like to use ajax enabled, rich jsf components on our Resin 3.1.9 servlet container. Which core and UI component pack JSF frameworks could you suggest?

Thank you

reza
03-02-2011, 02:02 PM
asilter,

Any Servlet/JSF compatible framework should work. IceFaces and RichFaces are popular solutions as is Oracle ADF but it is really up to you to see what suits your needs the best. Here is a good resource that lists some of the choices: http://www.jsfcentral.com.

Thanks,
Reza

asilter
03-04-2011, 10:53 AM
I've created a project with richfaces jars. I attached the index.jsp, web.xml, faces-config.xml as well.
but I get the error below :

Context: UIViewRoot[/index.jsp]

<UIViewRoot viewId="/index.jsp" renderKitId="HTML_BASIC">
<HtmlOutputText id="j_id0"/>
<AjaxForm id="j_idjsp2">
<HtmlPanel id="j_idjsp3" header="RichFaces Greeter" style="width: 315px">
<HtmlOutputText/>
<HtmlInputText id="j_id_1" value="#{user.name}"/>
<HtmlAjaxCommandButton id="j_idjsp4"/>
<HtmlPanelGroup id="greeting">
<HtmlOutputText rendered="#{not empty user.name}"/>
<HtmlOutputText value="#{user.name}"/>
<HtmlOutputText rendered="#{not empty user.name}"/>
</HtmlPanelGroup>
</HtmlPanel>
</AjaxForm>
</UIViewRoot>

Stack Trace

java.lang.NullPointerException
at org.ajax4jsf.renderkit.AjaxRendererUtils.buildEven tOptions(AjaxRendererUtils.java:267)
at org.ajax4jsf.renderkit.AjaxRendererUtils.buildEven tOptions(AjaxRendererUtils.java:251)
at org.ajax4jsf.renderkit.AjaxRendererUtils.buildOnEv ent(AjaxRendererUtils.java:220)
at org.ajax4jsf.renderkit.AjaxRendererUtils.buildOnCl ick(AjaxRendererUtils.java:165)
at org.ajax4jsf.renderkit.AjaxCommandRendererBase.get OnClick(AjaxCommandRendererBase.java:83)
at org.ajax4jsf.renderkit.html.CommandButtonRenderer. doEncodeEnd(CommandButtonRenderer.java:115)
at org.ajax4jsf.renderkit.html.CommandButtonRenderer. doEncodeEnd(CommandButtonRenderer.java:162)
at org.ajax4jsf.renderkit.RendererBase.encodeEnd(Rend ererBase.java:134)
at javax.faces.component.UIComponentBase.encodeEnd(UI ComponentBase.java:683)
at org.ajax4jsf.renderkit.RendererBase.renderChild(Re ndererBase.java:281)
at org.ajax4jsf.renderkit.RendererBase.renderChildren (RendererBase.java:258)
at org.richfaces.renderkit.html.PanelRenderer.doEncod eChildren(PanelRenderer.java:200)
at org.richfaces.renderkit.html.PanelRenderer.doEncod eChildren(PanelRenderer.java:195)
at org.ajax4jsf.renderkit.RendererBase.encodeChildren (RendererBase.java:120)
at javax.faces.component.UIComponentBase.encodeChildr en(UIComponentBase.java:668)
at javax.faces.component.UIComponent.encodeAll(UIComp onent.java:187)
at javax.faces.component.UIComponent.encodeAll(UIComp onent.java:198)
at javax.faces.component.UIComponent.encodeAll(UIComp onent.java:198)
at com.caucho.jsf.application.JspViewHandler.renderVi ew(JspViewHandler.java:397)
at org.ajax4jsf.application.ViewHandlerWrapper.render View(ViewHandlerWrapper.java:100)
at org.ajax4jsf.application.AjaxViewHandler.renderVie w(AjaxViewHandler.java:179)
at com.caucho.jsf.lifecycle.LifecycleImpl.render(Life cycleImpl.java:292)
at javax.faces.webapp.FacesServlet.service(FacesServl et.java:139)
at com.caucho.server.dispatch.ServletFilterChain.doFi lter(ServletFilterChain.java:103)
at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(Base XMLFilter.java:206)
at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseF ilter.java:290)
at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHa ndleRequest(BaseFilter.java:388)
at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter .java:515)
at com.caucho.server.dispatch.FilterFilterChain.doFil ter(FilterFilterChain.java:87)
at com.caucho.server.webapp.WebAppFilterChain.doFilte r(WebAppFilterChain.java:187)
at com.caucho.server.dispatch.ServletInvocation.servi ce(ServletInvocation.java:265)
at com.caucho.server.http.HttpRequest.handleRequest(H ttpRequest.java:273)
at com.caucho.server.port.TcpConnection.run(TcpConnec tion.java:682)
at com.caucho.util.ThreadPool$Item.runTasks(ThreadPoo l.java:743)
at com.caucho.util.ThreadPool$Item.run(ThreadPool.jav a:662)
at java.lang.Thread.run(Thread.java:595)


Could you please help?
Thanks

reza
03-04-2011, 09:40 PM
asilter,

It looks like we are having issues with zip files on the forum. Can you kindly send me the attachments at reza@caucho.com?

Thanks,
Reza