You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by José de Jesus Vargas Ibañez <jv...@rmmi.com> on 2006/04/08 04:34:34 UTC
Problem with and
Hi:
I've been searching in your mail archive for answers about my problem. I
found some people reporting the same issue. But I didn't found any
answer to their mails so I'd like to try making the question again.
I'm ussing the <h:panelTabbenPane>. It looks great in my application so
I decided to use it. But the problems started when I used an
<h:commandLink> inside the <h:panelTab> tag. When I put the
<h:commandLink> the server throws an Exception:
java.lang.NullPointerException
com.sun.faces.renderkit.html_basic.CommandLinkRenderer.getHiddenFieldName(CommandLinkRenderer.java:136)
com.sun.faces.renderkit.html_basic.CommandLinkRenderer.encodeEnd(CommandLinkRenderer.java:318)
javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:720)
com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:443)
com.sun.faces.renderkit.html_basic.GroupRenderer.encodeChildren(GroupRenderer.java:130)
javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:701)
com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:435)
com.sun.faces.renderkit.html_basic.TableRenderer.encodeChildren(TableRenderer.java:257)
javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:701)
com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:435)
com.sun.faces.renderkit.html_basic.GroupRenderer.encodeChildren(GroupRenderer.java:130)
javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:701)
com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:435)
com.sun.faces.renderkit.html_basic.GridRenderer.encodeChildren(GridRenderer.java:233)
javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:701)
com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:435)
com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:440)
com.sun.faces.renderkit.html_basic.GroupRenderer.encodeChildren(GroupRenderer.java:130)
javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:701)
org.apache.myfaces.renderkit.RendererUtils.renderChild(RendererUtils.java:488)
org.apache.myfaces.custom.tabbedpane.HtmlTabbedPaneRenderer.writeTabCell(HtmlTabbedPaneRenderer.java:437)
org.apache.myfaces.custom.tabbedpane.HtmlTabbedPaneRenderer.encodeEnd(HtmlTabbedPaneRenderer.java:214)
javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:720)
javax.faces.webapp.UIComponentTag.encodeEnd(UIComponentTag.java:623)
javax.faces.webapp.UIComponentTag.doEndTag(UIComponentTag.java:546)
org.apache.myfaces.taglib.UIComponentBodyTagBase.doEndTag(UIComponentBodyTagBase.java:98)
org.apache.jsp.wfr.eventDetails.EMM_005fEventConsole_jsp._jspx_meth_th_panelTabbedPane_0(EMM_005fEventConsole_jsp.java:6959)
org.apache.jsp.wfr.eventDetails.EMM_005fEventConsole_jsp._jspx_meth_f_view_0(EMM_005fEventConsole_jsp.java:546)
org.apache.jsp.wfr.eventDetails.EMM_005fEventConsole_jsp._jspService(EMM_005fEventConsole_jsp.java:283)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:322)
com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:130)
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)
org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(ExtensionsFilter.java:112)
com.rmmi.sima.acl.filter.LoginInterceptingFilter.doFilter(LoginInterceptingFilter.java:116)
As you can see it makes reference to the class:
com.sun.faces.renderkit.html_basic.CommandLinkRenderer.getHiddenFieldName(CommandLinkRenderer.java:136)
If I delete the <h:commandLink> tag the page renders perfectly. You may
say I can use <h:commandButton> but I really need the use the
<h:commandLink> because it will look horrible with so many buttons in
the page. I hope you can help me, maybe you have fixed this issue or a
form to make it work.
Thank you =)
--
Ing. José de Jesús Vargas Ibáñez
aklara
Conm. (52 55) 5000-4200
Dir. (52 55) 5000-4204
Fax. (52 55) 5000-4242
jvargas@aklara.com
http://www.aklara.com
Re: Problem with and
Posted by Mike Kienenberger <mk...@gmail.com>.
On 4/7/06, José de Jesus Vargas Ibañez <jv...@rmmi.com> wrote:
> I've been searching in your mail archive for answers about my problem. I
> found some people reporting the same issue. But I didn't found any
> answer to their mails so I'd like to try making the question again.
>
> I'm ussing the <h:panelTabbenPane>. It looks great in my application so
> I decided to use it. But the problems started when I used an
> <h:commandLink> inside the <h:panelTab> tag. When I put the
> <h:commandLink> the server throws an Exception:
I don't know what would cause this, but you might try using a
<t:commandLink> if one is included in Tomahawk as a temporary
workaround. But I'm sure if we've implemented that component yet
either. Also, if you're not using the latest Tomahawk snapshot, that
would be another thing to try. If both of those fail, please open a
JIRA issue and attach a simple example demonstrating the problem.
Re: Problem with and
Posted by Todd Papaioannou <lu...@luckyspin.org>.
The error message you are getting from the Sun implementation is really
telling you that you don't have your command link wrapped in an h:form. Try
adding that.
--
View this message in context: http://www.nabble.com/Problem-with-%3Ch%3ApanelTab%3E-and-%3Ch%3AcommanLink%3E-t1415426.html#a4034892
Sent from the MyFaces - Users forum at Nabble.com.