Return-Path: Delivered-To: apmail-myfaces-users-archive@www.apache.org Received: (qmail 70469 invoked from network); 10 Jul 2009 11:15:34 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 10 Jul 2009 11:15:34 -0000 Received: (qmail 44105 invoked by uid 500); 10 Jul 2009 11:15:43 -0000 Delivered-To: apmail-myfaces-users-archive@myfaces.apache.org Received: (qmail 44030 invoked by uid 500); 10 Jul 2009 11:15:43 -0000 Mailing-List: contact users-help@myfaces.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "MyFaces Discussion" Delivered-To: mailing list users@myfaces.apache.org Received: (qmail 44022 invoked by uid 99); 10 Jul 2009 11:15:43 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Jul 2009 11:15:43 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of gerhard.petracek@gmail.com designates 209.85.220.207 as permitted sender) Received: from [209.85.220.207] (HELO mail-fx0-f207.google.com) (209.85.220.207) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Jul 2009 11:15:28 +0000 Received: by fxm3 with SMTP id 3so689944fxm.12 for ; Fri, 10 Jul 2009 04:15:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:content-type; bh=iVbg8XwF6KB2nwv5bmqQqfr8Yi+udh6zK1OnF+oSCS4=; b=dbrZ+66ch89pDEghoDnyy7qvblWkjsIoWM8wGx/YlmX+ssEK/aupUGHtIHBORUduf7 jJkBVipHDYNZ67EczS7RbYERjW9UbvKKcxGvGypbtMkrZ6aS80EvoyLzQYCN7l2HbeH7 8NEcH8z89o4lQYF75wjVQX46IwbnjSJ/sJXvk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; b=lRD6PrM12LAf7NFGm+G2X0FiOkCvWDBx84Yb2wBSF+ebiYs9CcYObZA7+2RLCg/s2z MMijtpk2ekOGpTYOz3KBOxl5+RMAnYWOV2vukwIcqGwvu0hNWrf/YhG1QSailLQXHwCx Gd5vbUw9KTE9xG5h/4KczGUwdrpkz5eymAkk4= MIME-Version: 1.0 Received: by 10.103.52.13 with SMTP id e13mr1022588muk.46.1247224507087; Fri, 10 Jul 2009 04:15:07 -0700 (PDT) In-Reply-To: <24425393.post@talk.nabble.com> References: <24409424.post@talk.nabble.com> <2332f63b0907091036q7a1009f7o9042171eb2fdb215@mail.gmail.com> <71235db40907091042v5c092feai9fd18aa600ca6428@mail.gmail.com> <2332f63b0907091127y2ec76a08m2f2e1519b19c9273@mail.gmail.com> <24423102.post@talk.nabble.com> <2332f63b0907100155u5e97c196gd06d10c3862be79b@mail.gmail.com> <24424370.post@talk.nabble.com> <2332f63b0907100301s2b5e74d6j3c39834c6c37e3ed@mail.gmail.com> <24425393.post@talk.nabble.com> From: Gerhard Petracek Date: Fri, 10 Jul 2009 13:14:47 +0200 Message-ID: <2332f63b0907100414qec80f2ya9492ab87d729120@mail.gmail.com> Subject: Re: exception with extval - JSF1054 RENDER_RESPONSE 6 To: MyFaces Discussion Content-Type: multipart/alternative; boundary=0016364166ffb33ec1046e581588 X-Virus-Checked: Checked by ClamAV on apache.org --0016364166ffb33ec1046e581588 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit hi belem, @#1: it's clear with your special constellation. @#2: yes - please send the full stacktrace. regards, gerhard http://www.irian.at Your JSF powerhouse - JSF Consulting, Development and Courses in English and German Professional Support for Apache MyFaces 2009/7/10 Belem > > Hi Gerhard, > > before I applied your provided code, I debugged and set a breakpoint at the > root of my exception and I found: > The exception has it's origin one line above. > DefaultELHelper.java:201 > ValueBindingExpression valueBindingExpression = > getValueBindingExpression(uiComponent, false); > > getValueBindingExpression(uiComponent, false) returns null > > here are two variables: > valueBindingExpression null > > facesContext FacesContextImpl (id=196) > application ApplicationImpl (id=216) > componentMessageLists null > elContext ELContextImpl (id=219) > externalContext ExternalContextImpl (id=222) > lastRk ExtValRenderKit (id=225) > lastRkId "HTML_BASIC" (id=228) > released false > renderResponse true > responseComplete false > responseStream null > responseWriter HtmlResponseWriter (id=229) > rkFactory ExtValRenderKitFactory (id=236) > viewRoot UIViewRoot (id=182) > afterPhase null > attributes UIComponentBase$AttributesMap (id=239) > attributesThatAreSet ArrayList (id=240) > beforeMethodException false > beforePhase null > bindings null > children UIComponentBase$ChildrenList (id=241) > clientId null > events null > facets null > id "j_id_jsp_333505498_0" (id=243) > isUIComponentBase true > isUIComponentBaseIsSet false > lastId 20 > listeners null > locale Locale (id=244) > parent null > pdMap HashMap (id=246) > phaseListenerIterator null > phaseListeners null > rendered true > renderedSet false > rendererType null > renderKitId "HTML_BASIC" (id=228) > skipPhase false > transientFlag false > values null > values null > viewId "/myapp/templates/Layout.jsp" (id=247) > > > Then I applied your code into the StartupListener and the application opens > the requested resource (jsp/jsf file) but further actions on this resource > (like a login button) result in another exception. BTW, I have another > resource, a contact page, that also displays only if a cleaned tomcat is > started twice. This contact site doesn't display any uicomponents in > contrast to the jsp-resource I mentioned before (the one with login button, > let's call it login-page) with the applied code in the StartupListener. > > This other exception (by pressing the login button on login-page) starts > with: > JSF1054: (Phase ID: PROCESS_VALIDATIONS 3, View ID: > /myapp/templates/Layout.jsp) Exception thrown during phase execution: > > javax.faces.event.PhaseEvent[source=com.sun.faces.lifecycle.LifecycleImpl@17a1686 > ] > 10.07.2009 12:44:59 org.apache.catalina.core.ApplicationDispatcher invoke > > Do you want the stack trace of this one too? > > If there are variable' values I could attach of the original or the actual > exception cause, please tell me. > > Thanks, > Belem > > > Gerhard Petracek wrote: > > > > hi belem, > > > > that might be the problem. extval initializes input components with > > metadata > > of the bound property before the component is rendered > > (to provide different features). so extval has to inspect the property of > > every input component. it seems that this isn't compatible with your > > custom > > mechanism. > > you can test it with a custom impl. - use the following code in your > > startup-listener. > > > > protected void init() > > { > > //workaround to allow forced double-rendering used in icefaces > > > > ExtValContext.getContext().addGlobalProperty(ExtValRendererProxy.KEY, > > null); > > > > //deregister the default implementation > > > > > ExtValContext.getContext().denyRendererInterceptor(ValidationInterceptorWithSkipValidationSupport.class); > > > > //register a custom implementation without component > > initialization > > ExtValContext.getContext().registerRendererInterceptor(new > > ValidationInterceptorWithSkipValidationSupport() { > > @Override > > public void beforeEncodeBegin(FacesContext facesContext, > > UIComponent uiComponent, Renderer wrapped) > > throws IOException, SkipBeforeInterceptorsException, > > SkipRendererDelegationException > > { > > //do nothing > > } > > }); > > } > > > > regards, > > gerhard > > > > -- > View this message in context: > http://www.nabble.com/exception-with-extval---JSF1054-RENDER_RESPONSE-6-tp24409424p24425393.html > Sent from the MyFaces - Users mailing list archive at Nabble.com. > > --0016364166ffb33ec1046e581588 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable hi belem,

@#1:
it's clear with your special constellation.
@#2:
yes - please send the full stacktrace.

regards,
gerh= ard

http://www.irian.at

Your JSF powerhouse -
JSF Consulting, Development and
Courses in Engl= ish and German

Professional Support for Apache MyFaces



2009/7/10 Belem &l= t;lissabon@online.de>

Hi Gerhard,

before I applied your provided code, I debugged and set a breakpoint at the=
root of my exception and I found:
The exception has it's origin one line above.
DefaultELHelper.java:201
=A0ValueBindingExpression valueBindingExpression =3D
getValueBindingExpression(uiComponent, false);

getValueBindingExpression(uiComponent, false) returns null

here are two variables:
valueBindingExpression =A0null

facesContext =A0 =A0FacesContextImpl =A0(id=3D196)
=A0 =A0 =A0 =A0application =A0 =A0 ApplicationImpl =A0(id=3D216)
=A0 =A0 =A0 =A0componentMessageLists =A0 null
=A0 =A0 =A0 =A0elContext =A0 =A0 =A0 ELContextImpl =A0(id=3D219)
=A0 =A0 =A0 =A0externalContext ExternalContextImpl =A0(id=3D222)
=A0 =A0 =A0 =A0lastRk =A0ExtValRenderKit =A0(id=3D225)
=A0 =A0 =A0 =A0lastRkId =A0 =A0 =A0 =A0"HTML_BASIC" (id=3D228) =A0 =A0 =A0 =A0released =A0 =A0 =A0 =A0false
=A0 =A0 =A0 =A0renderResponse =A0true
=A0 =A0 =A0 =A0responseComplete =A0 =A0 =A0 =A0false
=A0 =A0 =A0 =A0responseStream =A0null
=A0 =A0 =A0 =A0responseWriter =A0HtmlResponseWriter =A0(id=3D229)
=A0 =A0 =A0 =A0rkFactory =A0 =A0 =A0 ExtValRenderKitFactory =A0(id=3D236)<= br> =A0 =A0 =A0 =A0viewRoot =A0 =A0 =A0 =A0UIViewRoot =A0(id=3D182)
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0afterPhase =A0 =A0 =A0null
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0attributes =A0 =A0 =A0UIComponentBase$Attri= butesMap =A0(id=3D239)
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0attributesThatAreSet =A0 =A0ArrayList<E&= gt; =A0(id=3D240)
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0beforeMethodException =A0 false
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0beforePhase =A0 =A0 null
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0bindings =A0 =A0 =A0 =A0null
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0children =A0 =A0 =A0 =A0UIComponentBase$Chi= ldrenList =A0(id=3D241)
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0clientId =A0 =A0 =A0 =A0null
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0events =A0null
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0facets =A0null
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0id =A0 =A0 =A0"j_id_jsp_333505498_0&qu= ot; (id=3D243)
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0isUIComponentBase =A0 =A0 =A0 true
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0isUIComponentBaseIsSet =A0false
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0lastId =A020
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0listeners =A0 =A0 =A0 null
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0locale =A0Locale =A0(id=3D244)
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0parent =A0null
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0pdMap =A0 HashMap<K,V> =A0(id=3D246)<= br> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0phaseListenerIterator =A0 null
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0phaseListeners =A0null
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0rendered =A0 =A0 =A0 =A0true
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0renderedSet =A0 =A0 false
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0rendererType =A0 =A0null
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0renderKitId =A0 =A0 "HTML_BASIC" = (id=3D228)
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0skipPhase =A0 =A0 =A0 false
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0transientFlag =A0 false
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0values =A0null
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0values =A0null
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0viewId =A0"/myapp/templates/Layout.jsp= " (id=3D247)


Then I applied your code into the StartupListener and the application opens=
the requested resource (jsp/jsf file) but further actions on this resource<= br> (like a login button) result in another exception. BTW, I have another
resource, a contact page, that also displays only if a cleaned tomcat is started twice. This contact site doesn't display any uicomponents in contrast to the jsp-resource I mentioned before (the one with login button,=
let's call it login-page) with the applied code in the StartupListener.=

This other exception (by pressing the login button on login-page) starts with:
JSF1054: (Phase ID: PROCESS_VALIDATIONS 3, View ID:
/myapp/templates/Layout.jsp) Exception thrown during phas= e execution:
javax.faces.event.PhaseEvent[source=3Dcom.sun.faces.lifecycle.Lifecyc= leImpl@17a1686]
10.07.2009 12:44:59 org.apache.catalina.core.ApplicationDispatcher invoke
Do you want the stack trace of this one too?

If there are variable' values I could attach of the original or the act= ual
exception cause, please tell me.

Thanks,
Belem


Gerhard Petracek wrote:
>
> hi belem,
>
> that might be the problem. extval initializes input components with > metadata
> of the bound property before the component is rendered
> (to provide different features). so extval has to inspect the property= of
> every input component. it seems that this isn't compatible with yo= ur
> custom
> mechanism.
> you can test it with a custom impl. - use the following code in your > startup-listener.
>
> =A0 =A0 protected void init()
> =A0 =A0 {
> =A0 =A0 =A0 =A0 //workaround to allow forced double-rendering used in = icefaces
>
> ExtValContext.getContext().addGlobalProperty(ExtValRendererProxy.KEY,<= br> > null);
>
> =A0 =A0 =A0 =A0 //deregister the default implementation
>
> ExtValContext.getContext().denyRendererInterceptor(ValidationIntercept= orWithSkipValidationSupport.class);
>
> =A0 =A0 =A0 =A0 //register a custom implementation without component > initialization
> =A0 =A0 =A0 =A0 ExtValContext.getContext().registerRendererInterceptor= (new
> ValidationInterceptorWithSkipValidationSupport() {
> =A0 =A0 =A0 =A0 =A0 =A0 @Override
> =A0 =A0 =A0 =A0 =A0 =A0 public void beforeEncodeBegin(FacesContext fac= esContext,
> UIComponent uiComponent, Renderer wrapped)
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 throws IOException, SkipBeforeIntercep= torsException,
> SkipRendererDelegationException
> =A0 =A0 =A0 =A0 =A0 =A0 {
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 //do nothing
> =A0 =A0 =A0 =A0 =A0 =A0 }
> =A0 =A0 =A0 =A0 });
> =A0 =A0 }
>
> regards,
> gerhard
>

--
View this message in context: http://www.nabble.com/exception-with-extval---JSF1054-RENDER_RESPONS= E-6-tp24409424p24425393.html
Sent from the MyFaces - Users mail= ing list archive at Nabble.com.


--0016364166ffb33ec1046e581588--