Skip to main content

JSF, Spring Hibernate, Clustering problem in glassfish...

14 replies [Last post]
adisonz
Offline
Joined: 2009-02-18

I wonder why this will happen , all my class already implements Serializable,

An exception or error occurred in the container during the request processing java.lang.ClassCastException: cannot assign instance of java.lang.String to field com.nexbis.nexcode.web.bean.ProvisionOffice.request of type javax.servlet.http.HttpServletRequest in instance of com.nexbis.nexcode.web.bean.ProvisionOffice at java.io.ObjectStreamClass$FieldReflector.setObjFieldValues(ObjectStreamClass.java:2004) at java.io.ObjectStreamClass.setObjFieldValues(ObjectStreamClass.java:1184) at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1914) at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1832) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1719) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:348) at org.apache.catalina.session.StandardSession.readRemainingObject(StandardSession.java:1827) at org.apache.catalina.session.StandardSession.readObject(StandardSession.java:1759) at sun.reflect.GeneratedMethodAccessor117.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:946) at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1809) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1719) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:348) at org.apache.catalina.session.StandardSession.deserialize(StandardSession.java:1125) at org.apache.catalina.session.StoreBase.readSession(StoreBase.java:292) at com.sun.enterprise.ee.web.sessmgmt.ReplicationStore.getSession(ReplicationStore.java:785) at com.sun.enterprise.ee.web.sessmgmt.ReplicationStore.load(ReplicationStore.java:569) at org.apache.catalina.session.PersistentManagerBase.doSwapIn(PersistentManagerBase.java:1081) at org.apache.catalina.session.PersistentManagerBase.swapIn(PersistentManagerBase.java:1042) at com.sun.enterprise.ee.web.sessmgmt.ReplicationManagerBase.findSession(ReplicationManagerBase.java:2046) at org.apache.coyote.tomcat5.CoyoteRequest.isRequestedSessionIdValid(CoyoteRequest.java:2689) at org.apache.coyote.tomcat5.CoyoteRequest.parseSessionCookiesId(CoyoteRequest.java:3627) at org.apache.coyote.tomcat5.CoyoteAdapter.postParseRequest(CoyoteAdapter.java:545) at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:253) at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:647) at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:579) at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:831) at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:341) at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:263) at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:214) at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:265) at com.sun.enterprise.web.connector.grizzly.ssl.SSLWorkerThread.run(SSLWorkerThread.java:106)

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Ryan Lubke

On 3/21/09 7:41 AM, Lincoln Baxter, III wrote:
> Here you go.
>
> This is nested within 3 h:dataTables and a lot of plain HTML. Let me
> know if you need more specific details. I hope bringing all these up
> is helpful and not aggravating! Thanks.
We've checked in a fix for this issue and uploaded new nightly bits to
java.net.
>
> ------------------------------------------
> > valueChangeListener="#{homeTableBean.changeHours}">
>
>
>

>
> ------------------------------------------
> com.ocpsoft.socialpm.exceptions.SiteRuntimeException:
> javax.servlet.ServletException: /faces/home/homeTable-story.xhtml
> @54,53 A validator id was not specified. Typically the
> validator id is set in the constructor ValidateHandler(ValidatorConfig)
>
> ------------------------------------------
> package com.ocpsoft.socialpm.pages.validation;
>
> import java.util.ResourceBundle;
>
> import javax.faces.application.FacesMessage;
> import javax.faces.component.UIComponent;
> import javax.faces.context.FacesContext;
> import javax.faces.validator.Validator;
> import javax.faces.validator.ValidatorException;
>
> import com.ocpsoft.socialpm.jsf.FacesSpringContextAware;
> import com.ocpsoft.util.ResourceBundleUtil;
> import com.ocpsoft.util.StringValidations;
>
> public class IntegerValidator extends FacesSpringContextAware
> implements Validator
> {
> private final ResourceBundle messages = ResourceBundleUtil
>
> .loadBundle("com.ocpsoft.socialpm.pages.validation.validationBundle");
>
> @Override
> public void validate(final FacesContext context, final UIComponent
> component, final Object value)
> throws ValidatorException
> {
> String field = value.toString();
> if (!StringValidations.isWholeNumber(field))
> {
> FacesMessage msg = new
> FacesMessage(messages.getString("badWholeNumber"));
> throw new ValidatorException(msg);
> }
> }
> }
>
> ------------------------------------------
> public abstract class FacesSpringContextAware
> {
> protected WebApplicationContext getSpringContext()
> {
> FacesContext context = FacesContext.getCurrentInstance();
> WebApplicationContext springContext = WebApplicationContextUtils
> .getWebApplicationContext((ServletContext)
> context.getExternalContext().getContext());
> return springContext;
> }
>
> protected Object getBean(final String ref)
> {
> return getSpringContext().getBean(ref);
> }
> }
>
> ------------------------------------------
> Caused by: javax.faces.webapp.pdl.facelets.tag.TagException:
> /faces/home/homeTable-story.xhtml @54,53 A validator id
> was not specified. Typically the validator id is set in the
> constructor ValidateHandler(ValidatorConfig)
> at
> com.sun.faces.facelets.tag.jsf.ValidatorTagHandlerDelegateImpl.createValidator(ValidatorTagHandlerDelegateImpl.java:165)
> at
> com.sun.faces.facelets.tag.jsf.ValidatorTagHandlerDelegateImpl.applyAttachedObject(ValidatorTagHandlerDelegateImpl.java:132)
> at
> com.sun.faces.facelets.tag.jsf.ValidatorTagHandlerDelegateImpl.apply(ValidatorTagHandlerDelegateImpl.java:87)
> at
> javax.faces.webapp.pdl.facelets.tag.DelegatingMetaTagHandler.apply(DelegatingMetaTagHandler.java:108)
> at
> javax.faces.webapp.pdl.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:93)
> at
> javax.faces.webapp.pdl.facelets.tag.DelegatingMetaTagHandler.applyNextHandler(DelegatingMetaTagHandler.java:114)
> at
> com.sun.faces.facelets.tag.jsf.ComponentTagHandlerDelegateImpl.apply(ComponentTagHandlerDelegateImpl.java:189)
> at
> javax.faces.webapp.pdl.facelets.tag.DelegatingMetaTagHandler.apply(DelegatingMetaTagHandler.java:108)
> at
> javax.faces.webapp.pdl.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:93)
> at
> javax.faces.webapp.pdl.facelets.tag.DelegatingMetaTagHandler.applyNextHandler(DelegatingMetaTagHandler.java:114)
> at
> com.sun.faces.facelets.tag.jsf.ComponentTagHandlerDelegateImpl.apply(ComponentTagHandlerDelegateImpl.java:189)
> at
> javax.faces.webapp.pdl.facelets.tag.DelegatingMetaTagHandler.apply(DelegatingMetaTagHandler.java:108)
> at
> javax.faces.webapp.pdl.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:93)
> at
> javax.faces.webapp.pdl.facelets.tag.DelegatingMetaTagHandler.applyNextHandler(DelegatingMetaTagHandler.java:114)
> at
> com.sun.faces.facelets.tag.jsf.ComponentTagHandlerDelegateImpl.apply(ComponentTagHandlerDelegateImpl.java:189)
> at
> javax.faces.webapp.pdl.facelets.tag.DelegatingMetaTagHandler.apply(DelegatingMetaTagHandler.java:108)
> at
> javax.faces.webapp.pdl.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:93)
> at
> javax.faces.webapp.pdl.facelets.tag.DelegatingMetaTagHandler.applyNextHandler(DelegatingMetaTagHandler.java:114)
> at
> com.sun.faces.facelets.tag.jsf.ComponentTagHandlerDelegateImpl.apply(ComponentTagHandlerDelegateImpl.java:189)
> at
> javax.faces.webapp.pdl.facelets.tag.DelegatingMetaTagHandler.apply(DelegatingMetaTagHandler.java:108)
> at
> javax.faces.webapp.pdl.facelets.tag.DelegatingMetaTagHandler.applyNextHandler(DelegatingMetaTagHandler.java:114)
> at
> com.sun.faces.facelets.tag.jsf.ComponentTagHandlerDelegateImpl.apply(ComponentTagHandlerDelegateImpl.java:189)
> at
> javax.faces.webapp.pdl.facelets.tag.DelegatingMetaTagHandler.apply(DelegatingMetaTagHandler.java:108)
> at
> com.sun.faces.facelets.tag.ui.CompositionHandler.apply(CompositionHandler.java:170)
> at
> com.sun.faces.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:86)
> at
> com.sun.faces.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:80)
> at
> com.sun.faces.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:285)
> at
> com.sun.faces.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:331)
> at
> com.sun.faces.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:310)
> at
> com.sun.faces.facelets.impl.DefaultFaceletContext.includeFacelet(DefaultFaceletContext.java:181)
> at
> com.sun.faces.facelets.tag.ui.IncludeHandler.apply(IncludeHandler.java:107)
> at
> com.sun.faces.facelets.tag.jsf.core.FacetHandler.apply(FacetHandler.java:101)
> at
> javax.faces.webapp.pdl.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:93)
> at
> javax.faces.webapp.pdl.facelets.tag.DelegatingMetaTagHandler.applyNextHandler(DelegatingMetaTagHandler.java:114)
> at
> com.sun.faces.facelets.tag.jsf.CompositeComponentTagHandler.applyNextHandler(CompositeComponentTagHandler.java:185)
> at
> com.sun.faces.facelets.tag.jsf.ComponentTagHandlerDelegateImpl.apply(ComponentTagHandlerDelegateImpl.java:189)
> at
> javax.faces.webapp.pdl.facelets.tag.DelegatingMetaTagHandler.apply(DelegatingMetaTagHandler.java:108)
> at
> javax.faces.webapp.pdl.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:93)
> at
> javax.faces.webapp.pdl.facelets.tag.DelegatingMetaTagHandler.applyNextHandler(DelegatingMetaTagHandler.java:114)
> at
> com.sun.faces.facelets.tag.jsf.ComponentTagHandlerDelegateImpl.apply(ComponentTagHandlerDelegateImpl.java:189)
> at
> javax.faces.webapp.pdl.facelets.tag.DelegatingMetaTagHandler.apply(DelegatingMetaTagHandler.java:108)
> at
> javax.faces.webapp.pdl.facelets.tag.DelegatingMetaTagHandler.applyNextHandler(DelegatingMetaTagHandler.java:114)
> at
> com.sun.faces.facelets.tag.jsf.ComponentTagHandlerDelegateImpl.apply(ComponentTagHandlerDelegateImpl.java:189)
> at
> javax.faces.webapp.pdl.facelets.tag.DelegatingMetaTagHandler.apply(DelegatingMetaTagHandler.java:108)
> at
> javax.faces.webapp.pdl.facelets.tag.DelegatingMetaTagHandler.applyNextHandler(DelegatingMetaTagHandler.java:114)
> at
> com.sun.faces.facelets.tag.jsf.ComponentTagHandlerDelegateImpl.apply(ComponentTagHandlerDelegateImpl.java:189)
> at
> javax.faces.webapp.pdl.facelets.tag.DelegatingMetaTagHandler.apply(DelegatingMetaTagHandler.java:108)
> at
> javax.faces.webapp.pdl.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:93)
> at
> com.sun.faces.facelets.tag.ui.CompositionHandler.apply(CompositionHandler.java:170)
> at
> com.sun.faces.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:86)
> at
> com.sun.faces.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:80)
> at
> com.sun.faces.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:285)
> at
> com.sun.faces.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:331)
> at
> com.sun.faces.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:310)
> at
> com.sun.faces.facelets.impl.DefaultFaceletContext.includeFacelet(DefaultFaceletContext.java:181)
> at
> com.sun.faces.facelets.tag.ui.IncludeHandler.apply(IncludeHandler.java:107)
> at
> com.sun.faces.facelets.tag.ui.DefineHandler.applyDefinition(DefineHandler.java:101)
> at
> com.sun.faces.facelets.tag.ui.CompositionHandler.apply(CompositionHandler.java:182)
> at
> com.sun.faces.facelets.impl.DefaultFaceletContext$TemplateManager.apply(DefaultFaceletContext.java:376)
> at
> com.sun.faces.facelets.impl.DefaultFaceletContext.includeDefinition(DefaultFaceletContext.java:347)
> at
> com.sun.faces.facelets.tag.ui.InsertHandler.apply(InsertHandler.java:106)
> at
> javax.faces.webapp.pdl.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:93)
> at
> javax.faces.webapp.pdl.facelets.tag.DelegatingMetaTagHandler.applyNextHandler(DelegatingMetaTagHandler.java:114)
> at
> com.sun.faces.facelets.tag.jsf.ComponentTagHandlerDelegateImpl.apply(ComponentTagHandlerDelegateImpl.java:189)
> at
> javax.faces.webapp.pdl.facelets.tag.DelegatingMetaTagHandler.apply(DelegatingMetaTagHandler.java:108)
> at
> javax.faces.webapp.pdl.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:93)
> at
> com.sun.faces.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:86)
> at
> javax.faces.webapp.pdl.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:93)
> at
> com.sun.faces.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:80)
> at
> com.sun.faces.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:285)
> at
> com.sun.faces.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:331)
> at
> com.sun.faces.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:310)
> at
> com.sun.faces.facelets.impl.DefaultFaceletContext.includeFacelet(DefaultFaceletContext.java:181)
> at
> com.sun.faces.facelets.tag.ui.CompositionHandler.apply(CompositionHandler.java:159)
> at
> com.sun.faces.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:86)
> at
> com.sun.faces.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:80)
> at
> com.sun.faces.facelets.impl.DefaultFacelet.apply(DefaultFacelet.java:132)
> at
> com.sun.faces.application.view.FaceletViewHandlingStrategy.buildView(FaceletViewHandlingStrategy.java:391)
> at
> com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:106)
> at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:102)
> at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
> at javax.faces.webapp.FacesServlet.service(FacesServlet.java:311)
> ... 105 more
>
> On Fri, 2009-03-20 at 16:17 -0700, Ryan Lubke wrote:
>> On 3/20/09 4:03 PM, Lincoln Baxter, III wrote:
>>> Did this get picked up in the nightly? Still not working for me.
>>>
>>> On Thu, 2009-03-19 at 16:04 -0700, Ryan Lubke wrote:
>>>> Fixed. New bits pushed to java.net.
>> I saw this issue yesterday adding attached composite component
>> Validator tests.
>> These tests are passing, so perhaps your usage is different.
>>
>> Open an issue with your use case so we can investigate further.

[att1.html]

Lincoln Baxter, III

Since updating from the 1/29/2009 to the 3/16/2009 snapshots of JSF2, I
now get the following exceptions for all of our custom validators:

com.ocpsoft.social.exceptions.SiteRuntimeException:
javax.servlet.ServletException: /faces/profile/userProfile.xhtml @76,53
A validator id was not specified. Typically the validator
id is set in the constructor ValidateHandler(ValidatorConfig)

Has this interface changed?
[att1.html]

Ryan Lubke

On 3/18/09 10:12 PM, Lincoln Baxter, III wrote:
> Since updating from the 1/29/2009 to the 3/16/2009 snapshots of JSF2,
> I now get the following exceptions for all of our custom validators:
>
> com.ocpsoft.social.exceptions.SiteRuntimeException:
> javax.servlet.ServletException: /faces/profile/userProfile.xhtml
> @76,53 A validator id was not specified. Typically the
> validator id is set in the constructor ValidateHandler(ValidatorConfig)
>
> Has this interface changed?
Fixed. New bits pushed to java.net.

---------------------------------------------------------------------
To unsubscribe, e-mail: webtier-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: webtier-help@glassfish.dev.java.net

Lincoln Baxter, III

Did this get picked up in the nightly? Still not working for me.

On Thu, 2009-03-19 at 16:04 -0700, Ryan Lubke wrote:

> Fixed. New bits pushed to java.net.
[att1.html]

Ryan Lubke

On 3/20/09 4:03 PM, Lincoln Baxter, III wrote:
> Did this get picked up in the nightly? Still not working for me.
>
> On Thu, 2009-03-19 at 16:04 -0700, Ryan Lubke wrote:
>> Fixed. New bits pushed to java.net.
I saw this issue yesterday adding attached composite component Validator
tests.
These tests are passing, so perhaps your usage is different.

Open an issue with your use case so we can investigate further.
[att1.html]

Lincoln Baxter, III

Here you go.

This is nested within 3 h:dataTables and a lot of plain HTML. Let me
know if you need more specific details. I hope bringing all these up is
helpful and not aggravating! Thanks.

------------------------------------------
valueChangeListener="#{homeTableBean.changeHours}">


------------------------------------------
com.ocpsoft.socialpm.exceptions.SiteRuntimeException:
javax.servlet.ServletException: /faces/home/homeTable-story.xhtml @54,53
A validator id was not specified. Typically the validator
id is set in the constructor ValidateHandler(ValidatorConfig)

------------------------------------------
package com.ocpsoft.socialpm.pages.validation;

import java.util.ResourceBundle;

import javax.faces.application.FacesMessage;
import javax.faces.component.UIComponent;
import javax.faces.context.FacesContext;
import javax.faces.validator.Validator;
import javax.faces.validator.ValidatorException;

import com.ocpsoft.socialpm.jsf.FacesSpringContextAware;
import com.ocpsoft.util.ResourceBundleUtil;
import com.ocpsoft.util.StringValidations;

public class IntegerValidator extends FacesSpringContextAware implements
Validator
{
private final ResourceBundle messages = ResourceBundleUtil
.loadBundle("com.ocpsoft.socialpm.pages.validation.validationBundle");

@Override
public void validate(final FacesContext context, final UIComponent
component, final Object value)
throws ValidatorException
{
String field = value.toString();
if (!StringValidations.isWholeNumber(field))
{
FacesMessage msg = new
FacesMessage(messages.getString("badWholeNumber"));
throw new ValidatorException(msg);
}
}
}

------------------------------------------
public abstract class FacesSpringContextAware
{
protected WebApplicationContext getSpringContext()
{
FacesContext context = FacesContext.getCurrentInstance();
WebApplicationContext springContext = WebApplicationContextUtils
.getWebApplicationContext((ServletContext)
context.getExternalContext().getContext());
return springContext;
}

protected Object getBean(final String ref)
{
return getSpringContext().getBean(ref);
}
}

------------------------------------------
Caused by:
javax.faces.webapp.pdl.facelets.tag.TagException: /faces/home/homeTable-story.xhtml @54,53 A validator id was not specified. Typically the validator id is set in the constructor ValidateHandler(ValidatorConfig)
at
com.sun.faces.facelets.tag.jsf.ValidatorTagHandlerDelegateImpl.createValidator(ValidatorTagHandlerDelegateImpl.java:165)
at
com.sun.faces.facelets.tag.jsf.ValidatorTagHandlerDelegateImpl.applyAttachedObject(ValidatorTagHandlerDelegateImpl.java:132)
at
com.sun.faces.facelets.tag.jsf.ValidatorTagHandlerDelegateImpl.apply(ValidatorTagHandlerDelegateImpl.java:87)
at
javax.faces.webapp.pdl.facelets.tag.DelegatingMetaTagHandler.apply(DelegatingMetaTagHandler.java:108)
at
javax.faces.webapp.pdl.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:93)
at
javax.faces.webapp.pdl.facelets.tag.DelegatingMetaTagHandler.applyNextHandler(DelegatingMetaTagHandler.java:114)
at
com.sun.faces.facelets.tag.jsf.ComponentTagHandlerDelegateImpl.apply(ComponentTagHandlerDelegateImpl.java:189)
at
javax.faces.webapp.pdl.facelets.tag.DelegatingMetaTagHandler.apply(DelegatingMetaTagHandler.java:108)
at
javax.faces.webapp.pdl.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:93)
at
javax.faces.webapp.pdl.facelets.tag.DelegatingMetaTagHandler.applyNextHandler(DelegatingMetaTagHandler.java:114)
at
com.sun.faces.facelets.tag.jsf.ComponentTagHandlerDelegateImpl.apply(ComponentTagHandlerDelegateImpl.java:189)
at
javax.faces.webapp.pdl.facelets.tag.DelegatingMetaTagHandler.apply(DelegatingMetaTagHandler.java:108)
at
javax.faces.webapp.pdl.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:93)
at
javax.faces.webapp.pdl.facelets.tag.DelegatingMetaTagHandler.applyNextHandler(DelegatingMetaTagHandler.java:114)
at
com.sun.faces.facelets.tag.jsf.ComponentTagHandlerDelegateImpl.apply(ComponentTagHandlerDelegateImpl.java:189)
at
javax.faces.webapp.pdl.facelets.tag.DelegatingMetaTagHandler.apply(DelegatingMetaTagHandler.java:108)
at
javax.faces.webapp.pdl.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:93)
at
javax.faces.webapp.pdl.facelets.tag.DelegatingMetaTagHandler.applyNextHandler(DelegatingMetaTagHandler.java:114)
at
com.sun.faces.facelets.tag.jsf.ComponentTagHandlerDelegateImpl.apply(ComponentTagHandlerDelegateImpl.java:189)
at
javax.faces.webapp.pdl.facelets.tag.DelegatingMetaTagHandler.apply(DelegatingMetaTagHandler.java:108)
at
javax.faces.webapp.pdl.facelets.tag.DelegatingMetaTagHandler.applyNextHandler(DelegatingMetaTagHandler.java:114)
at
com.sun.faces.facelets.tag.jsf.ComponentTagHandlerDelegateImpl.apply(ComponentTagHandlerDelegateImpl.java:189)
at
javax.faces.webapp.pdl.facelets.tag.DelegatingMetaTagHandler.apply(DelegatingMetaTagHandler.java:108)
at
com.sun.faces.facelets.tag.ui.CompositionHandler.apply(CompositionHandler.java:170)
at
com.sun.faces.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:86)
at
com.sun.faces.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:80)
at
com.sun.faces.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:285)
at
com.sun.faces.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:331)
at
com.sun.faces.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:310)
at
com.sun.faces.facelets.impl.DefaultFaceletContext.includeFacelet(DefaultFaceletContext.java:181)
at
com.sun.faces.facelets.tag.ui.IncludeHandler.apply(IncludeHandler.java:107)
at
com.sun.faces.facelets.tag.jsf.core.FacetHandler.apply(FacetHandler.java:101)
at
javax.faces.webapp.pdl.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:93)
at
javax.faces.webapp.pdl.facelets.tag.DelegatingMetaTagHandler.applyNextHandler(DelegatingMetaTagHandler.java:114)
at
com.sun.faces.facelets.tag.jsf.CompositeComponentTagHandler.applyNextHandler(CompositeComponentTagHandler.java:185)
at
com.sun.faces.facelets.tag.jsf.ComponentTagHandlerDelegateImpl.apply(ComponentTagHandlerDelegateImpl.java:189)
at
javax.faces.webapp.pdl.facelets.tag.DelegatingMetaTagHandler.apply(DelegatingMetaTagHandler.java:108)
at
javax.faces.webapp.pdl.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:93)
at
javax.faces.webapp.pdl.facelets.tag.DelegatingMetaTagHandler.applyNextHandler(DelegatingMetaTagHandler.java:114)
at
com.sun.faces.facelets.tag.jsf.ComponentTagHandlerDelegateImpl.apply(ComponentTagHandlerDelegateImpl.java:189)
at
javax.faces.webapp.pdl.facelets.tag.DelegatingMetaTagHandler.apply(DelegatingMetaTagHandler.java:108)
at
javax.faces.webapp.pdl.facelets.tag.DelegatingMetaTagHandler.applyNextHandler(DelegatingMetaTagHandler.java:114)
at
com.sun.faces.facelets.tag.jsf.ComponentTagHandlerDelegateImpl.apply(ComponentTagHandlerDelegateImpl.java:189)
at
javax.faces.webapp.pdl.facelets.tag.DelegatingMetaTagHandler.apply(DelegatingMetaTagHandler.java:108)
at
javax.faces.webapp.pdl.facelets.tag.DelegatingMetaTagHandler.applyNextHandler(DelegatingMetaTagHandler.java:114)
at
com.sun.faces.facelets.tag.jsf.ComponentTagHandlerDelegateImpl.apply(ComponentTagHandlerDelegateImpl.java:189)
at
javax.faces.webapp.pdl.facelets.tag.DelegatingMetaTagHandler.apply(DelegatingMetaTagHandler.java:108)
at
javax.faces.webapp.pdl.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:93)
at
com.sun.faces.facelets.tag.ui.CompositionHandler.apply(CompositionHandler.java:170)
at
com.sun.faces.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:86)
at
com.sun.faces.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:80)
at
com.sun.faces.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:285)
at
com.sun.faces.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:331)
at
com.sun.faces.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:310)
at
com.sun.faces.facelets.impl.DefaultFaceletContext.includeFacelet(DefaultFaceletContext.java:181)
at
com.sun.faces.facelets.tag.ui.IncludeHandler.apply(IncludeHandler.java:107)
at
com.sun.faces.facelets.tag.ui.DefineHandler.applyDefinition(DefineHandler.java:101)
at
com.sun.faces.facelets.tag.ui.CompositionHandler.apply(CompositionHandler.java:182)
at com.sun.faces.facelets.impl.DefaultFaceletContext
$TemplateManager.apply(DefaultFaceletContext.java:376)
at
com.sun.faces.facelets.impl.DefaultFaceletContext.includeDefinition(DefaultFaceletContext.java:347)
at
com.sun.faces.facelets.tag.ui.InsertHandler.apply(InsertHandler.java:106)
at
javax.faces.webapp.pdl.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:93)
at
javax.faces.webapp.pdl.facelets.tag.DelegatingMetaTagHandler.applyNextHandler(DelegatingMetaTagHandler.java:114)
at
com.sun.faces.facelets.tag.jsf.ComponentTagHandlerDelegateImpl.apply(ComponentTagHandlerDelegateImpl.java:189)
at
javax.faces.webapp.pdl.facelets.tag.DelegatingMetaTagHandler.apply(DelegatingMetaTagHandler.java:108)
at
javax.faces.webapp.pdl.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:93)
at
com.sun.faces.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:86)
at
javax.faces.webapp.pdl.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:93)
at
com.sun.faces.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:80)
at
com.sun.faces.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:285)
at
com.sun.faces.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:331)
at
com.sun.faces.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:310)
at
com.sun.faces.facelets.impl.DefaultFaceletContext.includeFacelet(DefaultFaceletContext.java:181)
at
com.sun.faces.facelets.tag.ui.CompositionHandler.apply(CompositionHandler.java:159)
at
com.sun.faces.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:86)
at
com.sun.faces.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:80)
at
com.sun.faces.facelets.impl.DefaultFacelet.apply(DefaultFacelet.java:132)
at
com.sun.faces.application.view.FaceletViewHandlingStrategy.buildView(FaceletViewHandlingStrategy.java:391)
at
com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:106)
at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:102)
at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:311)
... 105 more

On Fri, 2009-03-20 at 16:17 -0700, Ryan Lubke wrote:

> On 3/20/09 4:03 PM, Lincoln Baxter, III wrote:
>
> > Did this get picked up in the nightly? Still not working for me.
> >
> > On Thu, 2009-03-19 at 16:04 -0700, Ryan Lubke wrote:
> >
> > > Fixed. New bits pushed to java.net.
>
> I saw this issue yesterday adding attached composite component
> Validator tests.
> These tests are passing, so perhaps your usage is different.
>
> Open an issue with your use case so we can investigate further.
[att1.html]

Ryan Lubke

On 3/21/09 7:41 AM, Lincoln Baxter, III wrote:
> Here you go.
>
> This is nested within 3 h:dataTables and a lot of plain HTML. Let me
> know if you need more specific details. I hope bringing all these up
> is helpful and not aggravating! Thanks.
Taking a look at this now, and no, it's not aggravating. We very much
appreciate the feedback you've been providing.
>
> ------------------------------------------
> > valueChangeListener="#{homeTableBean.changeHours}">
>
>
>

>
> ------------------------------------------
> com.ocpsoft.socialpm.exceptions.SiteRuntimeException:
> javax.servlet.ServletException: /faces/home/homeTable-story.xhtml
> @54,53 A validator id was not specified. Typically the
> validator id is set in the constructor ValidateHandler(ValidatorConfig)
>
> ------------------------------------------
> package com.ocpsoft.socialpm.pages.validation;
>
> import java.util.ResourceBundle;
>
> import javax.faces.application.FacesMessage;
> import javax.faces.component.UIComponent;
> import javax.faces.context.FacesContext;
> import javax.faces.validator.Validator;
> import javax.faces.validator.ValidatorException;
>
> import com.ocpsoft.socialpm.jsf.FacesSpringContextAware;
> import com.ocpsoft.util.ResourceBundleUtil;
> import com.ocpsoft.util.StringValidations;
>
> public class IntegerValidator extends FacesSpringContextAware
> implements Validator
> {
> private final ResourceBundle messages = ResourceBundleUtil
>
> .loadBundle("com.ocpsoft.socialpm.pages.validation.validationBundle");
>
> @Override
> public void validate(final FacesContext context, final UIComponent
> component, final Object value)
> throws ValidatorException
> {
> String field = value.toString();
> if (!StringValidations.isWholeNumber(field))
> {
> FacesMessage msg = new
> FacesMessage(messages.getString("badWholeNumber"));
> throw new ValidatorException(msg);
> }
> }
> }
>
> ------------------------------------------
> public abstract class FacesSpringContextAware
> {
> protected WebApplicationContext getSpringContext()
> {
> FacesContext context = FacesContext.getCurrentInstance();
> WebApplicationContext springContext = WebApplicationContextUtils
> .getWebApplicationContext((ServletContext)
> context.getExternalContext().getContext());
> return springContext;
> }
>
> protected Object getBean(final String ref)
> {
> return getSpringContext().getBean(ref);
> }
> }
>
> ------------------------------------------
> Caused by: javax.faces.webapp.pdl.facelets.tag.TagException:
> /faces/home/homeTable-story.xhtml @54,53 A validator id
> was not specified. Typically the validator id is set in the
> constructor ValidateHandler(ValidatorConfig)
> at
> com.sun.faces.facelets.tag.jsf.ValidatorTagHandlerDelegateImpl.createValidator(ValidatorTagHandlerDelegateImpl.java:165)
> at
> com.sun.faces.facelets.tag.jsf.ValidatorTagHandlerDelegateImpl.applyAttachedObject(ValidatorTagHandlerDelegateImpl.java:132)
> at
> com.sun.faces.facelets.tag.jsf.ValidatorTagHandlerDelegateImpl.apply(ValidatorTagHandlerDelegateImpl.java:87)
> at
> javax.faces.webapp.pdl.facelets.tag.DelegatingMetaTagHandler.apply(DelegatingMetaTagHandler.java:108)
> at
> javax.faces.webapp.pdl.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:93)
> at
> javax.faces.webapp.pdl.facelets.tag.DelegatingMetaTagHandler.applyNextHandler(DelegatingMetaTagHandler.java:114)
> at
> com.sun.faces.facelets.tag.jsf.ComponentTagHandlerDelegateImpl.apply(ComponentTagHandlerDelegateImpl.java:189)
> at
> javax.faces.webapp.pdl.facelets.tag.DelegatingMetaTagHandler.apply(DelegatingMetaTagHandler.java:108)
> at
> javax.faces.webapp.pdl.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:93)
> at
> javax.faces.webapp.pdl.facelets.tag.DelegatingMetaTagHandler.applyNextHandler(DelegatingMetaTagHandler.java:114)
> at
> com.sun.faces.facelets.tag.jsf.ComponentTagHandlerDelegateImpl.apply(ComponentTagHandlerDelegateImpl.java:189)
> at
> javax.faces.webapp.pdl.facelets.tag.DelegatingMetaTagHandler.apply(DelegatingMetaTagHandler.java:108)
> at
> javax.faces.webapp.pdl.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:93)
> at
> javax.faces.webapp.pdl.facelets.tag.DelegatingMetaTagHandler.applyNextHandler(DelegatingMetaTagHandler.java:114)
> at
> com.sun.faces.facelets.tag.jsf.ComponentTagHandlerDelegateImpl.apply(ComponentTagHandlerDelegateImpl.java:189)
> at
> javax.faces.webapp.pdl.facelets.tag.DelegatingMetaTagHandler.apply(DelegatingMetaTagHandler.java:108)
> at
> javax.faces.webapp.pdl.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:93)
> at
> javax.faces.webapp.pdl.facelets.tag.DelegatingMetaTagHandler.applyNextHandler(DelegatingMetaTagHandler.java:114)
> at
> com.sun.faces.facelets.tag.jsf.ComponentTagHandlerDelegateImpl.apply(ComponentTagHandlerDelegateImpl.java:189)
> at
> javax.faces.webapp.pdl.facelets.tag.DelegatingMetaTagHandler.apply(DelegatingMetaTagHandler.java:108)
> at
> javax.faces.webapp.pdl.facelets.tag.DelegatingMetaTagHandler.applyNextHandler(DelegatingMetaTagHandler.java:114)
> at
> com.sun.faces.facelets.tag.jsf.ComponentTagHandlerDelegateImpl.apply(ComponentTagHandlerDelegateImpl.java:189)
> at
> javax.faces.webapp.pdl.facelets.tag.DelegatingMetaTagHandler.apply(DelegatingMetaTagHandler.java:108)
> at
> com.sun.faces.facelets.tag.ui.CompositionHandler.apply(CompositionHandler.java:170)
> at
> com.sun.faces.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:86)
> at
> com.sun.faces.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:80)
> at
> com.sun.faces.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:285)
> at
> com.sun.faces.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:331)
> at
> com.sun.faces.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:310)
> at
> com.sun.faces.facelets.impl.DefaultFaceletContext.includeFacelet(DefaultFaceletContext.java:181)
> at
> com.sun.faces.facelets.tag.ui.IncludeHandler.apply(IncludeHandler.java:107)
> at
> com.sun.faces.facelets.tag.jsf.core.FacetHandler.apply(FacetHandler.java:101)
> at
> javax.faces.webapp.pdl.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:93)
> at
> javax.faces.webapp.pdl.facelets.tag.DelegatingMetaTagHandler.applyNextHandler(DelegatingMetaTagHandler.java:114)
> at
> com.sun.faces.facelets.tag.jsf.CompositeComponentTagHandler.applyNextHandler(CompositeComponentTagHandler.java:185)
> at
> com.sun.faces.facelets.tag.jsf.ComponentTagHandlerDelegateImpl.apply(ComponentTagHandlerDelegateImpl.java:189)
> at
> javax.faces.webapp.pdl.facelets.tag.DelegatingMetaTagHandler.apply(DelegatingMetaTagHandler.java:108)
> at
> javax.faces.webapp.pdl.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:93)
> at
> javax.faces.webapp.pdl.facelets.tag.DelegatingMetaTagHandler.applyNextHandler(DelegatingMetaTagHandler.java:114)
> at
> com.sun.faces.facelets.tag.jsf.ComponentTagHandlerDelegateImpl.apply(ComponentTagHandlerDelegateImpl.java:189)
> at
> javax.faces.webapp.pdl.facelets.tag.DelegatingMetaTagHandler.apply(DelegatingMetaTagHandler.java:108)
> at
> javax.faces.webapp.pdl.facelets.tag.DelegatingMetaTagHandler.applyNextHandler(DelegatingMetaTagHandler.java:114)
> at
> com.sun.faces.facelets.tag.jsf.ComponentTagHandlerDelegateImpl.apply(ComponentTagHandlerDelegateImpl.java:189)
> at
> javax.faces.webapp.pdl.facelets.tag.DelegatingMetaTagHandler.apply(DelegatingMetaTagHandler.java:108)
> at
> javax.faces.webapp.pdl.facelets.tag.DelegatingMetaTagHandler.applyNextHandler(DelegatingMetaTagHandler.java:114)
> at
> com.sun.faces.facelets.tag.jsf.ComponentTagHandlerDelegateImpl.apply(ComponentTagHandlerDelegateImpl.java:189)
> at
> javax.faces.webapp.pdl.facelets.tag.DelegatingMetaTagHandler.apply(DelegatingMetaTagHandler.java:108)
> at
> javax.faces.webapp.pdl.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:93)
> at
> com.sun.faces.facelets.tag.ui.CompositionHandler.apply(CompositionHandler.java:170)
> at
> com.sun.faces.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:86)
> at
> com.sun.faces.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:80)
> at
> com.sun.faces.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:285)
> at
> com.sun.faces.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:331)
> at
> com.sun.faces.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:310)
> at
> com.sun.faces.facelets.impl.DefaultFaceletContext.includeFacelet(DefaultFaceletContext.java:181)
> at
> com.sun.faces.facelets.tag.ui.IncludeHandler.apply(IncludeHandler.java:107)
> at
> com.sun.faces.facelets.tag.ui.DefineHandler.applyDefinition(DefineHandler.java:101)
> at
> com.sun.faces.facelets.tag.ui.CompositionHandler.apply(CompositionHandler.java:182)
> at
> com.sun.faces.facelets.impl.DefaultFaceletContext$TemplateManager.apply(DefaultFaceletContext.java:376)
> at
> com.sun.faces.facelets.impl.DefaultFaceletContext.includeDefinition(DefaultFaceletContext.java:347)
> at
> com.sun.faces.facelets.tag.ui.InsertHandler.apply(InsertHandler.java:106)
> at
> javax.faces.webapp.pdl.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:93)
> at
> javax.faces.webapp.pdl.facelets.tag.DelegatingMetaTagHandler.applyNextHandler(DelegatingMetaTagHandler.java:114)
> at
> com.sun.faces.facelets.tag.jsf.ComponentTagHandlerDelegateImpl.apply(ComponentTagHandlerDelegateImpl.java:189)
> at
> javax.faces.webapp.pdl.facelets.tag.DelegatingMetaTagHandler.apply(DelegatingMetaTagHandler.java:108)
> at
> javax.faces.webapp.pdl.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:93)
> at
> com.sun.faces.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:86)
> at
> javax.faces.webapp.pdl.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:93)
> at
> com.sun.faces.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:80)
> at
> com.sun.faces.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:285)
> at
> com.sun.faces.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:331)
> at
> com.sun.faces.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:310)
> at
> com.sun.faces.facelets.impl.DefaultFaceletContext.includeFacelet(DefaultFaceletContext.java:181)
> at
> com.sun.faces.facelets.tag.ui.CompositionHandler.apply(CompositionHandler.java:159)
> at
> com.sun.faces.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:86)
> at
> com.sun.faces.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:80)
> at
> com.sun.faces.facelets.impl.DefaultFacelet.apply(DefaultFacelet.java:132)
> at
> com.sun.faces.application.view.FaceletViewHandlingStrategy.buildView(FaceletViewHandlingStrategy.java:391)
> at
> com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:106)
> at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:102)
> at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
> at javax.faces.webapp.FacesServlet.service(FacesServlet.java:311)
> ... 105 more
>
> On Fri, 2009-03-20 at 16:17 -0700, Ryan Lubke wrote:
>> On 3/20/09 4:03 PM, Lincoln Baxter, III wrote:
>>> Did this get picked up in the nightly? Still not working for me.
>>>
>>> On Thu, 2009-03-19 at 16:04 -0700, Ryan Lubke wrote:
>>>> Fixed. New bits pushed to java.net.
>> I saw this issue yesterday adding attached composite component
>> Validator tests.
>> These tests are passing, so perhaps your usage is different.
>>
>> Open an issue with your use case so we can investigate further.

[att1.html]

lincolnbaxter
Offline
Joined: 2008-03-26

Confirmed, this is working now.

Lincoln Baxter, III

Hi JSF2 Ajax Gurus,

Got a weird one... seems like ajax updates are partially broken (were
working in the 1.29.2009 build, but no longer in 3.16.2009)... not
submitting this as a bug because I'm guessing something changed that I
haven't heard about, but, here goes.

The XML comes back fine, but the DOM is sometimes not updated (changes
are never seen client side, and the following JavaScript exception is
thrown)... everything else works fine.
[Exception... "'Error: jsf.ajax.response: TPLmessages not found'
when calling method: [nsIDOMEventListener::handleEvent]"
nsresult: "0x8057001c (NS_ERROR_XPC_JS_THREW_JS_OBJECT)"
location: "" data: no]

Here is the composite component which refuses to be re-rendered (we give
it the global HTML id of "TPLmessages")

"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:composite="http://java.sun.com/jsf/composite">


type="Boolean" />
type="Boolean" />



globalOnly="#{compositeComponent.attrs.globalOnly}"
errorClass="ui-state-error ui-corner-all"
fatalClass="TPLmessagesFatal"
infoClass="ui-state-highlight ui-corner-all"
warnClass="TPLmessagesWarning" />

Here is where we use the component in our Facelets Template:

name="bodyheader">Default Body Header name="messages">

Default Body

Here is the relevant generated HTML source from the page:

id="myTasks:pTable:0:j_id162:sTable:2:tTable:0:status"
name="myTasks:pTable:0:j_id162:sTable:2:tTable:0:status"
size="1" onchange="jsf.ajax.request(this, event,
{execute:'myTasks:pTable:0:j_id162:sTable:2:tTable:0:status',render:'TPLmessages'});">


Here is the XML HTTP response:
--------------------------------------------


href="/ocpsoft-social-pm/javax.faces.resource/ocpcommon/ui.theme.css.xhtml" />
  • Hours updated: 1



type="text"
name="myTasks:pTable:0:j_id162:sTable:0:tTable:0:hours"
value="1" size="1" onchange="jsf.ajax.request(this, event,
{execute:'myTasks:pTable:0:j_id162:sTable:0:tTable:0:hours',render:'myTasks:pTable:0:j_id162:sTable:0:tTable:0:hours TPLmessages'});" />

... viewstate
here ...


Here is the XML HTTP request:

(Request-Line) POST /ocpsoft-social-pm/home HTTP/1.1
Host localhost:8080
User-Agent Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.7)
Gecko/2009030422 Ubuntu/8.10 (intrepid) Firefox/3.0.7
Accept text/html,application/xhtml
+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language en-us,en;q=0.5
Accept-Encoding gzip,deflate
Accept-Charset ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive 300
Connection keep-alive
Faces-Request partial/ajax
Content-Type application/x-www-form-urlencoded; charset=UTF-8
Referer http://localhost:8080/ocpsoft-social-pm/home
Content-Length 21772
Cookie com.sun.faces.extensions.flash.PostbackRequest=86;
JSESSIONID=256aa4e10bac376ddc468860f053;
SPRING_SECURITY_REMEMBER_ME_COOKIE=bGluY29sbjoxMjM4NDY3ODUwODMwOjllZWNlM2JiZjJlMDM5OTQ2NmYzYjE3MmVmN2UyNTg4
Pragma no-cache
Cache-Control no-cache

myTasks myTasks
myTasks:pTable:0:j_id162:sTable:0:tTable:0:hours 1
myTasks:pTable:0:j_id162:sTable:0:tTable:0:status NOT_STARTED
myTasks:pTable:0:j_id162:sTable:1:tTable:0:hours 1
myTasks:pTable:0:j_id162:sTable:1:tTable:0:status IN_PROGRESS
myTasks:pTable:0:j_id162:sTable:1:tTable:1:hours 2
myTasks:pTable:0:j_id162:sTable:1:tTable:1:status NOT_STARTED
myTasks:pTable:0:j_id162:sTable:2:tTable:0:hours 4
myTasks:pTable:0:j_id162:sTable:2:tTable:0:status IN_PROGRESS
javax.faces.ViewState ...viewstate here...
javax.faces.partial.source
myTasks:pTable:0:j_id162:sTable:0:tTable:0:hours
javax.faces.partial.execute
myTasks:pTable:0:j_id162:sTable:0:tTable:0:hours
javax.faces.partial.render
myTasks:pTable:0:j_id162:sTable:0:tTable:0:hours TPLmessages
javax.faces.partial.ajax true
myTasks:pTable:0:j_id162:sTable:0:tTable:0:hours 1

[att1.html]

rogerk
Offline
Joined: 2004-05-06

Hello..

Are you saying this same exact example worked in a prior release?
I'd have to go back and see what changed.

Lincoln Baxter, III

Correct, this was working, and now is not.

On Mon, 2009-03-16 at 20:21 -0700, webtier@javadesktop.org wrote:

> Hello..
>
> Are you saying this same exact example worked in a prior release?
> I'd have to go back and see what changed.
> [Message sent by forum member 'rogerk' (rogerk)]
>
> http://forums.java.net/jive/thread.jspa?messageID=337333
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: webtier-unsubscribe@glassfish.dev.java.net
> For additional commands, e-mail: webtier-help@glassfish.dev.java.net
>
[att1.html]

lincolnbaxter
Offline
Joined: 2008-03-26

Still not working for me. All I really want to do is update page-level FacesMessages on some AJAX events.

Anything I can do to help this one along?

Lincoln Baxter, III

Has anyone seen this yet? (This is from the 1.29.2009 build)

Seems like if not operating in an initialized Faces environment (Eg. In
a Unit Test,) it is not possible to add children to the a class
extending UIComponentBase.

Thoughts?
Thanks,
Lincoln

java.lang.NullPointerException
at
javax.faces.component.UIComponentBase.isPostbackAndRestoreView(UIComponentBase.java:1627)
at
javax.faces.component.UIComponentBase.doPostAddProcessing(UIComponentBase.java:1576)
at
javax.faces.component.UIComponentBase.setParent(UIComponentBase.java:371)
at javax.faces.component.UIComponentBase
$ChildrenList.add(UIComponentBase.java:2022)
at javax.faces.component.UIComponentBase
$ChildrenList.add(UIComponentBase.java:1994)
at
com.ocpsoft.pretty.component.PrettyUrlBuilderTest.setUpBeforeClass(PrettyUrlBuilderTest.java:60)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.junit.runners.model.FrameworkMethod
$1.runReflectiveCall(FrameworkMethod.java:44)
at
org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
at
org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
at
org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:27)
at
org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
at org.junit.runners.ParentRunner.run(ParentRunner.java:220)
at
org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:45)
at
org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)

[att1.html]

Lincoln Baxter, III

Still occurring in nightly snapshot.

On Mon, 2009-03-16 at 22:28 -0400, Lincoln Baxter, III wrote:

> Has anyone seen this yet? (This is from the 1.29.2009 build)
>
> Seems like if not operating in an initialized Faces environment (Eg.
> In a Unit Test,) it is not possible to add children to the a class
> extending UIComponentBase.
>
> Thoughts?
> Thanks,
> Lincoln
>
> java.lang.NullPointerException
> at
> javax.faces.component.UIComponentBase.isPostbackAndRestoreView(UIComponentBase.java:1627)
> at
> javax.faces.component.UIComponentBase.doPostAddProcessing(UIComponentBase.java:1576)
> at
> javax.faces.component.UIComponentBase.setParent(UIComponentBase.java:371)
> at javax.faces.component.UIComponentBase
> $ChildrenList.add(UIComponentBase.java:2022)
> at javax.faces.component.UIComponentBase
> $ChildrenList.add(UIComponentBase.java:1994)
> at
> com.ocpsoft.pretty.component.PrettyUrlBuilderTest.setUpBeforeClass(PrettyUrlBuilderTest.java:60)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:585)
> at org.junit.runners.model.FrameworkMethod
> $1.runReflectiveCall(FrameworkMethod.java:44)
> at
> org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
> at
> org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
> at
> org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:27)
> at
> org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
> at org.junit.runners.ParentRunner.run(ParentRunner.java:220)
> at
> org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:45)
> at
> org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
> at
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
> at
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
> at
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
> at
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
>
>
[att1.html]