<< Back to previous view

[AJAX4JSF-44] A$J undefined Created: 13/Feb/08  Updated: 13/Feb/08

Status: Open
Project: ajax4jsf
Component/s: www
Affects Version/s: current
Fix Version/s: milestone 1

Type: Bug Priority: Major
Reporter: prashantvermaiiitb Assignee: sergeysmirnov
Resolution: Unresolved Votes: 0
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: All


Issuezilla Id: 44
Tags:
Participants: prashantvermaiiitb and sergeysmirnov

 Description   

Hi,

I am using jboss portal 2.4.1 In that I am trying to incorporate the ajax4jsf by
using richfaces3.1.3GA all the 3 zip files okay.

Now Here is my web.xml entries :-

..some other context parameters then this

<!-- Ajax Code Start-->

<display-name>a4jEchoText</display-name>
<context-param>
<param-name>org.richfaces.SKIN</param-name>
<param-value>blueSky</param-value>
</context-param>

<context-param>
<param-name>javax.faces.STATE_SAVING_METHOD</param-name>
<param-value>server</param-value>
</context-param>

<filter>
<display-name>RichFaces Filter</display-name>
<filter-name>richfaces</filter-name>
<filter-class>org.ajax4jsf.Filter</filter-class>
</filter>

<filter-mapping>
<filter-name>richfaces</filter-name>
<servlet-name>Faces Servlet</servlet-name>
<dispatcher>REQUEST</dispatcher>
<dispatcher>FORWARD</dispatcher>
<dispatcher>INCLUDE</dispatcher>
</filter-mapping>

<servlet>
<servlet-name>Faces Servlet</servlet-name>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>

<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>*.jsf</url-pattern>
</servlet-mapping>

<!-- Ajax Code End-->
.. something more

then this is my page :-

<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<html>
<head>
<title>WebService Caller</title>
</head>
<body>
<f:view>
<h:form id="RichFacesForm">
<rich:panel header="Simple Echo">
<h:inputText id="Model" size="50" value="#{bean.text}">
<a4j:support event="onkeyup" reRender="rep" />
</h:inputText>
<h:selectOneMenu id="rep">
<f:selectItems value="#{bean.Values}"/>
</h:selectOneMenu>
</rich:panel>
</h:form>
</f:view>
</body>
</html>

I have a autocomplete suggestionbox from the richfaces that will fetch the data
from the database as you write the characters in the input box on the keyup
event this ajax must be fired and should get the data.But when I press the key I
recieve this 'A4J is Undefined' for me.

Please suggest as its preventing me from the completion of my project.

Thanks in Advance.

Prashant






[AJAX4JSF-43] A$J undefined Created: 13/Feb/08  Updated: 13/Feb/08

Status: Open
Project: ajax4jsf
Component/s: www
Affects Version/s: current
Fix Version/s: milestone 1

Type: Bug Priority: Major
Reporter: prashantvermaiiitb Assignee: ajax4jsf-issues
Resolution: Unresolved Votes: 0
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: All


Issuezilla Id: 43
Tags:
Participants: ajax4jsf-issues and prashantvermaiiitb

 Description   

Hi,

I am using jboss portal 2.4.1 In that I am trying to incorporate the ajax4jsf by
using richfaces3.1.3GA all the 3 zip files okay.

Now Here is my web.xml entries :-

..some other context parameters then this

<!-- Ajax Code Start-->

<display-name>a4jEchoText</display-name>
<context-param>
<param-name>org.richfaces.SKIN</param-name>
<param-value>blueSky</param-value>
</context-param>

<context-param>
<param-name>javax.faces.STATE_SAVING_METHOD</param-name>
<param-value>server</param-value>
</context-param>

<filter>
<display-name>RichFaces Filter</display-name>
<filter-name>richfaces</filter-name>
<filter-class>org.ajax4jsf.Filter</filter-class>
</filter>

<filter-mapping>
<filter-name>richfaces</filter-name>
<servlet-name>Faces Servlet</servlet-name>
<dispatcher>REQUEST</dispatcher>
<dispatcher>FORWARD</dispatcher>
<dispatcher>INCLUDE</dispatcher>
</filter-mapping>

<servlet>
<servlet-name>Faces Servlet</servlet-name>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>

<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>*.jsf</url-pattern>
</servlet-mapping>

<!-- Ajax Code End-->
.. something more

then this is my page :-

<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<html>
<head>
<title>WebService Caller</title>
</head>
<body>
<f:view>
<h:form id="RichFacesForm">
<rich:panel header="Simple Echo">
<h:inputText id="Model" size="50" value="#{bean.text}">
<a4j:support event="onkeyup" reRender="rep" />
</h:inputText>
<h:selectOneMenu id="rep">
<f:selectItems value="#{bean.Values}"/>
</h:selectOneMenu>
</rich:panel>
</h:form>
</f:view>
</body>
</html>

I have a autocomplete suggestionbox from the richfaces that will fetch the data
from the database as you write the characters in the input box on the keyup
event this ajax must be fired and should get the data.But when I press the key I
recieve this 'A4J is Undefined' for me.

Please suggest as its preventing me from the completion of my project.

Thanks in Advance.

Prashant






[AJAX4JSF-42] Add ability to prevent multiple concurrent ajax requests Created: 14/May/07  Updated: 14/May/07

Status: Open
Project: ajax4jsf
Component/s: www
Affects Version/s: current
Fix Version/s: milestone 1

Type: New Feature Priority: Major
Reporter: reind Assignee: ajax4jsf-issues
Resolution: Unresolved Votes: 0
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: All
URL: http://www.jboss.com/index.html?module=bb&op=viewtopic&t=107492


Issuezilla Id: 42
Tags:
Participants: ajax4jsf-issues and reind

 Description   

Using ajax4jsf and seam conversations causes "conversation processing multiple
requests" errors if a user submits requests on a conversational page too
quickly. (Please see the referenced Seam Forum post.)

A solution would be an option to prevent concurrent ajax requests:

<a4j:support waitUntilRequestCompletes="true"/>

1) Request is sent
2) As the user creates new requests, keep track of the last one but do not send it.
3) When the request in (1) completes, send the latest request in (2) to the server.
4) continue at (1)






[AJAX4JSF-8] Portlets support Created: 01/Aug/06  Updated: 04/Apr/07

Status: Open
Project: ajax4jsf
Component/s: www
Affects Version/s: current
Fix Version/s: milestone 1

Type: New Feature Priority: Major
Reporter: rpa_rio Assignee: ajax4jsf-issues
Resolution: Unresolved Votes: 5
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: All


File Attachments: Text File ajax4Jsf_PortletEnabling_Patch.patch     Zip Archive hello-ajax-portlet.zip    
Issuezilla Id: 8
Tags:
Participants: ajax4jsf-issues, Balázs Zsoldos and rpa_rio

 Description   

I would like see this feature in a4j.



 Comments   
Comment by rpa_rio [ 03/Aug/06 10:49 AM ]

Just as information:

03/08/2006 17:31:30 org.ajax4jsf.framework.renderer.AjaxRendererUtils encodeAreas
SEVERE: Detecting request character encoding is disable.
03/08/2006 17:31:30 org.ajax4jsf.framework.renderer.AjaxRendererUtils encodeAreas
SEVERE: Failed to obtain Response#setHeader() method:
java.lang.NoSuchMethodException:
com.liferay.portlet.RenderResponseImpl.setHeader(java.lang.String, java.lang.String)

PortletResponse doesn't have setHeader method. In portlets scenario the access
to page header is very difficult, this will be fixed in next portlet spec.

To make the things a little more possible, all javascript related stuff can be
appended before generate portlet.

Comment by rpa_rio [ 04/Aug/06 12:42 PM ]

I checked here and the javascript file is being appended correctly, now the main
problem is the setHeader that doesn't exist in Portlet enviroment and the
ServletRequest/Response x PortletRequest/Response related issues.

Comment by rpa_rio [ 05/Aug/06 05:07 AM ]

I also noted all page being submited, not only the porlet view. I'll add a
sample portlet war to help on testing, this is a JSF/Facelets/Ajax4JSF powered
portlet.

Comment by rpa_rio [ 05/Aug/06 05:37 AM ]

Created an attachment (id=1)
hello-ajax-portlet as testcase

Comment by Balázs Zsoldos [ 01/Jan/07 01:29 PM ]

Created an attachment (id=4)
Modifications that needed not to have exception with Liferay

Comment by Balázs Zsoldos [ 04/Apr/07 04:56 AM ]

There is a patch for Liferay 4.2.1 that enables Ajax4Jsf with MyFaces. See
http://support.liferay.com/browse/LEP-1909





[AJAX4JSF-40] MYFACES BUNDLE NOT CORRECTLY RERENDERED Created: 01/Mar/07  Updated: 01/Mar/07

Status: Open
Project: ajax4jsf
Component/s: www
Affects Version/s: current
Fix Version/s: milestone 1

Type: Bug Priority: Major
Reporter: ted74 Assignee: ajax4jsf-issues
Resolution: Unresolved Votes: 1
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: All


Issuezilla Id: 40
Tags:
Participants: ajax4jsf-issues and ted74

 Description   

I have a a4j button and a myfaces button.
Value of myfaces button is loaded from resource bundle (bundle.okValue) and is
correctly rendered.
Myfaces button is at first disabled, according to el expression.
a4j button action set to true attribute, so that now el expression is false.
a4j button rerender myfaces button and now, according to el expression, it is
not disabled.
But button label is now "submit query" (the generic label of html button):
bundle.okValue is not correctly rendered as button label.

WORKAROUD: create an attribute in controller and button label is now "#
{controller.okButtonLabel}", not "#{bundle.okValue}"






[AJAX4JSF-39] PROBLEM WITH AJAX4JSF AND TOMAHAWK ALIASBEAN Created: 01/Mar/07  Updated: 01/Mar/07

Status: Open
Project: ajax4jsf
Component/s: www
Affects Version/s: current
Fix Version/s: milestone 1

Type: Bug Priority: Major
Reporter: ted74 Assignee: ajax4jsf-issues
Resolution: Unresolved Votes: 1
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: All


Issuezilla Id: 39
Tags:
Participants: ajax4jsf-issues and ted74

 Description   

There are problems using ajax4jsf with tomahawk 1.1.4 and aliasBean.

When I use a a4j:region and a4j:support in the included jsp,
during "processValidators" phase, system seems to jump validation phase (it
does not execute "getViewRoot" and does not set values in binded values).
The problem was present when the component parent was AliasBean object.

So, by now, I bypassed the problem putting a4j:region outside the aliasBean
instruction.

WORK
MAINFILE
<a4j:region id="region" renderRegionOnly="false">
<t:aliasBean id="stikz" alias="#{pc_SubjectsAlias}" value="#{pc_Subjects}">
<jsp:directive.include file="../xxx.jsp" />
</t:aliasBean>
</a4j:region>

INCLUDED FILE
<h:inputText styleClass="textInput" id="txtInsABI" size="5" value="#
{pc_SubjectsAlias.data}" maxlength="5" readonly="#{! pc_SubjectsAlias.areFieldsUpdatable}">
<a4j:support action="#{pc_SubjectsAlias.handle}" event="onchange"
reRender="txtInsABI" ignoreDupResponses="true" />
</h:inputText>



NOT WORK
MAINFILE
<t:aliasBean id="stikz" alias="#{pc_SubjectsAlias}" value="#{pc_Subjects}">
<jsp:directive.include file="../xxx.jsp" />
</t:aliasBean>

INCLUDED FILE
<a4j:region id="region" renderRegionOnly="false">
<h:inputText styleClass="textInput" id="txtInsABI" size="5" value="#
{pc_SubjectsAlias.data}" maxlength="5" readonly="#{! pc_SubjectsAlias.areFieldsUpdatable}">
<a4j:support action="#{pc_SubjectsAlias.handle}" event="onchange"
reRender="txtInsABI" ignoreDupResponses="true" />
</h:inputText>
</a4j:region>






[AJAX4JSF-37] commandButton with onclick doesn't work after reload (RI 1.1) Created: 06/Feb/07  Updated: 06/Feb/07

Status: Open
Project: ajax4jsf
Component/s: www
Affects Version/s: current
Fix Version/s: milestone 1

Type: Bug Priority: Major
Reporter: pavel_kaplin Assignee: ajax4jsf-issues
Resolution: Unresolved Votes: 0
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: All


Issuezilla Id: 37
Tags:
Participants: ajax4jsf-issues and pavel_kaplin

 Description   

Try the following under RI 1.1_02:

<h:commandButton id="btn" value="First link" onclick="alert('first');"/>
<a4j:commandLink value="ReRender" reRender="btn"/>

Click ReRender link and then click commandButton - it will not work.

See http://forum.java.sun.com/thread.jspa?threadID=5133300






[AJAX4JSF-36] h:commandButton doesn't work with a4j:form ajaxSubmit=true Created: 24/Jan/07  Updated: 24/Jan/07

Status: Open
Project: ajax4jsf
Component/s: www
Affects Version/s: current
Fix Version/s: milestone 1

Type: Bug Priority: Critical
Reporter: wus Assignee: ajax4jsf-issues
Resolution: Unresolved Votes: 1
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: All


Issuezilla Id: 36
Tags:
Participants: ajax4jsf-issues and wus

 Description   

Hi,

My problem is that a4j:form with ajaxSubmit="true" doesn't work for
h:commandButton.
The ajax request is send, but the action and actionListener method are never called.
It seems that this is a general problem with a4j:form and ajaxSubmit="true" when
using h:commandButton.

This is my Example Code:

<f:view>
<a4j:form id="edit1" ajaxSubmit="true">
<h:commandButton value="ajax submit true"
actionListener="#{tabButtonBean.callActionListener}"
action="#{tabButtonBean.callAction}"></h:commandButton>
</a4j:form>
<h:form id="edit2">
<h:commandButton value="standard jsf without ajax"
actionListener="#{tabButtonBean.callActionListener}"
action="#{tabButtonBean.callAction}"></h:commandButton>
</h:form>
<h:form>
<a4j:commandButton value="standard form with a4j:commandButton"
actionListener="#{tabButtonBean.callActionListener}"
action="#{tabButtonBean.callAction}"></a4j:commandButton>
</h:form>
<a4j:log popup="false" level="DEBUG"></a4j:log>
</f:view>

public class TabButtonBean {

public void callActionListener(ActionEvent e) { System.out.println("Hello World " + e); }

public String callAction() { System.out.println("callAction()"); return null; }
}

I'm using MyFaces 1.1.5-SNAPSHOT and Ajax4JSF 1.0.5

Best regards

Stefan






[AJAX4JSF-35] ajax4jsf does not work with Tomahawk inputHtml, inputDate, inputCalendar Created: 19/Jan/07  Updated: 19/Jan/07

Status: Open
Project: ajax4jsf
Component/s: www
Affects Version/s: current
Fix Version/s: milestone 1

Type: Bug Priority: Blocker
Reporter: javaone9 Assignee: ajax4jsf-issues
Resolution: Unresolved Votes: 0
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: All


Issuezilla Id: 35
Tags:
Participants: ajax4jsf-issues and javaone9

 Description   

I added ajax to my jsf page using ajax4jsf.
<inputHtml> stop working correctly if the page is ajax4jsf enabled. IE
reports "Error on Page" on status bar, and all text entered become null on the
server side.

I searched the web, and found that <inputDate> and <inputCalendar> do not work
ajax4jsf either.

I tried to add <a4j:page> under <f:view>. But it did not solve the problem.

I using MyFaces core 1.4, Tomahawk snapshot 1.5, Ajax4jsf 1.0.5.






[AJAX4JSF-34] a4j-1.0.5, Seam-1.1.0.GA and a4j:commandLink EvaluationException Created: 14/Jan/07  Updated: 14/Jan/07

Status: Open
Project: ajax4jsf
Component/s: www
Affects Version/s: current
Fix Version/s: milestone 1

Type: Bug Priority: Critical
Reporter: seanradford Assignee: ajax4jsf-issues
Resolution: Unresolved Votes: 1
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: All


Issuezilla Id: 34
Tags:
Participants: ajax4jsf-issues and seanradford

 Description   

With an a4j:commandLink with an action (or actionListener) whose instance the
value binding method resolves to is a Seam @Factory object you get the following
error:

Caused by: javax.faces.el.EvaluationException: /WEB-INF/tags/simpleTag.xhtml
@35,28 action="#{myExpandBean.expand}": Target Unreachable,
identifier 'myExpandBean' resolved to null
at com.sun.facelets.el.LegacyMethodBinding.invoke(LegacyMethodBinding.java:73)
at
org.apache.myfaces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:63)

(This is even though 'myExpandBean' has been instantiated and placed in
Conversation scope).

In the above case 'myExpandBean' is defined thus:

public class ExpandBean {

@Factory("myExpandBean", scope = ScopeType=CONVERSATION)
public ExpandBean getMyExpandBean() { return new ExpandBean(); }

public void expand() { .. }
}

If, however, you define 'myExpandBean' as in the following, all works ok:

@Name("myExpandBean")
@Scope(ScopeType.CONVERSATION)
public class ExpandBean {
public void expand() { .. } }
}






[AJAX4JSF-22] Ajax4JSF jar is not removed when webapp is undeployed Created: 17/Oct/06  Updated: 06/Jan/07

Status: Open
Project: ajax4jsf
Component/s: www
Affects Version/s: current
Fix Version/s: milestone 1

Type: Bug Priority: Major
Reporter: jjs Assignee: ajax4jsf-issues
Resolution: Unresolved Votes: 2
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: All


File Attachments: Text File Ajax4Jsf_jar_locks.txt    
Issuezilla Id: 22
Tags:
Participants: ajax4jsf-issues, ggranum and jjs

 Description   

When I try to undeploy my web application in tomcat the ajax4jsf.jar is not
released, and subsequent deploys fail. I thought this might be caused by
oscache not shutting down, so I tried the following listener without any success:

<listener>
<listener-class>
com.opensymphony.oscache.web.CacheContextListener
</listener-class>
</listener>

The specifics of my set up are as follows:

Ajax4JSF v1.0.2
OSCache v2.2
Tomcat v5.5.20
Java 5.0.08



 Comments   
Comment by ggranum [ 06/Jan/07 12:55 PM ]

Created an attachment (id=5)
Unclosed resources for ajax4jsf.jar: Output from ZipFileMonitor tool (by Tom Quinn).





[AJAX4JSF-33] java.lang.ClassCastException: org.ajax4jsf.ajax.UIAjaxSupport$State when using Seam Created: 26/Dec/06  Updated: 26/Dec/06

Status: Open
Project: ajax4jsf
Component/s: www
Affects Version/s: current
Fix Version/s: milestone 1

Type: Bug Priority: Blocker
Reporter: valtoni Assignee: sergeysmirnov
Resolution: Unresolved Votes: 1
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: All


Issuezilla Id: 33
Tags:
Participants: sergeysmirnov and valtoni

 Description   

Using seam version 1.0.1GA in Jboss version 4.0.5GA got an ClassCastException
error, with last version (1.0.5) of Ajax4jsf. The stacktrace:
java.lang.ClassCastException: org.ajax4jsf.ajax.UIAjaxSupport$State
at org.ajax4jsf.ajax.UIAjaxSupport.restoreState(UIAjaxSupport.java:401)
at org.ajax4jsf.ajax.html.HtmlAjaxSupport.restoreState(HtmlAjaxSupport.java:493)
at
javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:728)
at
javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:700)
at
javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:719)
at
javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:719)
at
com.sun.faces.application.StateManagerImpl.restoreComponentState(StateManagerImpl.java:352)
at
com.sun.faces.application.StateManagerImpl.restoreView(StateManagerImpl.java:240)
at
org.ajax4jsf.framework.ajax.AjaxStateManager.restoreView(AjaxStateManager.java:76)
at org.jboss.seam.jsf.SeamStateManager.restoreView(SeamStateManager.java:41)
at
org.ajax4jsf.framework.ajax.AjaxStateManager.restoreView(AjaxStateManager.java:76)
at com.sun.faces.application.ViewHandlerImpl.restoreView(ViewHandlerImpl.java:228)
at
org.ajax4jsf.framework.ViewHandlerWrapper.restoreView(ViewHandlerWrapper.java:109)
at
org.ajax4jsf.framework.ajax.AjaxViewHandler.restoreView(AjaxViewHandler.java:140)
at org.jboss.seam.jsf.SeamViewHandler.restoreView(SeamViewHandler.java:64)
at
org.ajax4jsf.framework.ViewHandlerWrapper.restoreView(ViewHandlerWrapper.java:109)
at
org.ajax4jsf.framework.ajax.AjaxViewHandler.restoreView(AjaxViewHandler.java:140)
at com.sun.faces.lifecycle.RestoreViewPhase.execute(RestoreViewPhase.java:157)
at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:90)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:137)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.jboss.seam.servlet.SeamRedirectFilter.doFilter(SeamRedirectFilter.java:30)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at
org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:75)
at org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:213)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at
org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
at
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at
org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
at java.lang.Thread.run(Unknown Source)

This error occur in "echo" application from "Ajax4jsf Developer Guide".
Here the configurations:
(faces-config.xml)
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE faces-config
PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.0//EN"
"http://java.sun.com/dtd/web-facesconfig_1_0.dtd">
<faces-config>

<!-- Phase listener needed for all Seam applications -->

<lifecycle>
<phase-listener>org.jboss.seam.jsf.SeamPhaseListener</phase-listener>
</lifecycle>

<!-- i18n -->

<application>
<locale-config>
<default-locale>pt_BR</default-locale>
<supported-locale>pt_BR</supported-locale>
<supported-locale>en</supported-locale>
</locale-config>
</application>

<navigation-rule>
<navigation-case>
<from-outcome>incluirLugar</from-outcome>
<to-view-id>/incluirLugar.jsp</to-view-id>
</navigation-case>
</navigation-rule>

<navigation-rule>
<navigation-case>
<from-outcome>incluirVotacao</from-outcome>
<to-view-id>/incluirVotacao.jsp</to-view-id>
</navigation-case>
</navigation-rule>

<navigation-rule>
<navigation-case>
<from-outcome>votar</from-outcome>
<to-view-id>/votar.jsp</to-view-id>
</navigation-case>
</navigation-rule>

</faces-config>

(web.xml)
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">

<!-- Seam -->
<listener>
<listener-class>org.jboss.seam.servlet.SeamListener</listener-class>
</listener>

<!-- Sun Jsf -->
<listener>
<listener-class>com.sun.faces.config.ConfigureListener</listener-class>
</listener>

<!-- Propagate conversations across redirects -->
<filter>
<filter-name>Seam Redirect Filter</filter-name>
<filter-class>org.jboss.seam.servlet.SeamRedirectFilter</filter-class>
</filter>

<!-- ajax4jsf -->
<filter>
<display-name>Ajax4jsf Filter</display-name>
<filter-name>ajax4jsf</filter-name>
<filter-class>org.ajax4jsf.Filter</filter-class>
</filter>

<filter-mapping>
<filter-name>ajax4jsf</filter-name>
<url-pattern>*.seam</url-pattern>
</filter-mapping>

<filter-mapping>
<filter-name>Seam Redirect Filter</filter-name>
<url-pattern>*.seam</url-pattern>
</filter-mapping>

<filter>
<filter-name>Seam Exception Filter</filter-name>
<filter-class>
org.jboss.seam.servlet.SeamExceptionFilter
</filter-class>
</filter>

<filter-mapping>
<filter-name>Seam Exception Filter</filter-name>
<url-pattern>*.jsf</url-pattern>
</filter-mapping>

<!-- JSF -->
<context-param>
<param-name>javax.faces.STATE_SAVING_METHOD</param-name>
<param-value>client</param-value>
</context-param>

<context-param>
<param-name>com.sun.faces.validateXml</param-name>
<param-value>true</param-value>
</context-param>

<context-param>
<param-name>com.sun.faces.verifyObjects</param-name>
<param-value>true</param-value>
</context-param>

<context-param>
<param-name>org.ajax4jsf.SKIN</param-name>
<param-value>DEFAULT</param-value>
</context-param>

<context-param>
<param-name>javax.faces.CONFIG_FILES</param-name>
<param-value>/WEB-INF/faces-config.xml</param-value>
</context-param>

<servlet>
<servlet-name>Faces Servlet</servlet-name>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>

<!-- Faces Servlet Mapping -->
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>*.seam</url-pattern>
</servlet-mapping>

</web-app>






[AJAX4JSF-32] IllegalStateException while work Created: 25/Dec/06  Updated: 25/Dec/06

Status: Open
Project: ajax4jsf
Component/s: www
Affects Version/s: current
Fix Version/s: milestone 1

Type: Bug Priority: Critical
Reporter: oren2000 Assignee: ajax4jsf-issues
Resolution: Unresolved Votes: 1
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: Windows 2000
Platform: All


Issuezilla Id: 32
Tags:
Participants: ajax4jsf-issues and oren2000

 Description   

This exception occurs while working with SUN RI 1.1

java.lang.IllegalStateException
at
com.sun.faces.context.FacesContextImpl.assertNotReleased(FacesContextImpl.java:382)
at
com.sun.faces.context.FacesContextImpl.getExternalContext(FacesContextImpl.java:110)
at
org.ajax4jsf.framework.ajax.AjaxContext.isAjaxRequest(AjaxContext.java:508)
at
org.ajax4jsf.framework.ajax.AjaxViewHandler.renderView(AjaxViewHandler.java:223)
at
com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87)
at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)
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.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:243)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:275)
at
org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:161)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:245)
at
org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:50)
at
org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:156)
at java.security.AccessController.doPrivileged(Native Method)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:152)
at
org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:97)
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.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:243)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:275)
at
org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:217)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:197)
at
org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:50)
at
org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:156)
at java.security.AccessController.doPrivileged(Native Method)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:152)
at
org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:144)
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.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:243)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:275)
at
org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:217)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:197)
at
org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:50)
at
org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:156)
at java.security.AccessController.doPrivileged(Native Method)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:152)
at
redsea.conf.filter.SessionExpiredFilter.doFilter(SessionExpiredFilter.java:80)
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.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:243)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:275)
at
org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:217)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:197)
at
org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:50)
at
org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:156)
at java.security.AccessController.doPrivileged(Native Method)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:152)
at redsea.conf.filter.LoginFilter.doFilter(LoginFilter.java:63)
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.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:243)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:275)
at
org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:217)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:197)
at
org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:50)
at
org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:156)
at java.security.AccessController.doPrivileged(Native Method)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:152)
at
org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:75)
at
org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:213)
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.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:243)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:275)
at
org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:217)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:197)
at
org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:50)
at
org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:156)
at java.security.AccessController.doPrivileged(Native Method)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:152)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
at
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:595)






[AJAX4JSF-31] a4j:poll only executes once when limitToList="true" Created: 21/Dec/06  Updated: 21/Dec/06

Status: Open
Project: ajax4jsf
Component/s: www
Affects Version/s: current
Fix Version/s: milestone 1

Type: Bug Priority: Critical
Reporter: mojavelinux Assignee: ajax4jsf-issues
Resolution: Unresolved Votes: 3
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: All


Issuezilla Id: 31
Tags:
Participants: ajax4jsf-issues and mojavelinux

 Description   

For whatever reason, a4j:poll only executes one time when the attribute
limitToList is set to "true". It appears that the javascript is not being
properly reinitialized when the page is recontructed to continue polling.

A sample is provided below:

<a4j:region id="region1">
<a4j:poll interval="5000" action="#{backingBean.refetchItems}" reRender="items"
limitToList="true" />
<h:dataTable id="items" var="item" value="#{backingBean.items}">
...
</h:dataTable>
<a4j:outputPanel ajaxRendered="true">
I will be redrawn if limitToList is not used.
</a4j:outputPanel>
</a4j:region>

Taking out the limitToList="true" in the above example will allow the polling to
occur more than once. However, the a4j:outputPanel will also be re-rendered.






[AJAX4JSF-29] A4J is undefined - IE fails to load the a4j generated javascript Created: 11/Dec/06  Updated: 11/Dec/06

Status: Open
Project: ajax4jsf
Component/s: www
Affects Version/s: current
Fix Version/s: milestone 1

Type: Bug Priority: Critical
Reporter: timleung622 Assignee: alexsmirnov
Resolution: Unresolved Votes: 0
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: Windows XP
Platform: PC


Issuezilla Id: 29
Tags:
Participants: alexsmirnov, sergeysmirnov and timleung622

 Description   

I have a project that uses a4j 1.0.4, together with YUI, JSF RI and Tomahawk
using Facelets running on Tomcat 5.5. The page renders fine in Firefox and the
a4j commandLinks are working 80% of time (sometimes it gets also A4J undefined
error, but after clearing the browser cache and maybe restarting the server, the
page will work).

Unfortunately, the a4j commandLinks don't work in IE although the initial page
rendering works fine. I get "A4J is undefined" javascript error in IE all the
time, and when I enter the URL
http://localhost:8080/mywebapp/a4j.res/org.ajax4jsf.framework.ajax.AjaxScript.faces,
I got 0 byte file.

Did I miss anything setting it up (browser and server)? Or is it a known defect?

Thanks
timleung622



 Comments   
Comment by sergeysmirnov [ 11/Dec/06 08:47 AM ]

Fixed in the 1.0.4 MR1 . Test it, please





[AJAX4JSF-28] java script include not generated Created: 10/Nov/06  Updated: 10/Nov/06

Status: Open
Project: ajax4jsf
Component/s: www
Affects Version/s: current
Fix Version/s: milestone 1

Type: Bug Priority: Major
Reporter: raidermike99 Assignee: ajax4jsf-issues
Resolution: Unresolved Votes: 0
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: All


Issuezilla Id: 28
Tags:
Participants: ajax4jsf-issues and raidermike99

 Description   

when I run I recieve a java script error of A4J is undefined.
It looks like tha java script includes are not generated.






[AJAX4JSF-27] class not found error Created: 09/Nov/06  Updated: 09/Nov/06

Status: Open
Project: ajax4jsf
Component/s: www
Affects Version/s: current
Fix Version/s: milestone 1

Type: Bug Priority: Major
Reporter: raidermike99 Assignee: ajax4jsf-issues
Resolution: Unresolved Votes: 0
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: All


Issuezilla Id: 27
Tags:
Participants: ajax4jsf-issues and raidermike99

 Description   

I installed the components in to Webshpere 6 under IBM RAD tool version 6.0.1.
I am getting the following error on server start up

11/9/06 15:46:34:387 EST] 00000062 SystemErr R
java.lang.NoClassDefFoundError: org/apache/commons/digester/Digester
at org.ajax4jsf.framework.resource.ResourceBuilderImpl.registerConfig
(ResourceBuilderImpl.java:119)
at org.ajax4jsf.framework.resource.ResourceBuilderImpl.registerResources
(ResourceBuilderImpl.java:202)
at org.ajax4jsf.framework.resource.ResourceBuilderImpl.<init>
(ResourceBuilderImpl.java:108)
at org.ajax4jsf.framework.resource.InternetResourceBuilder.getInstance
(InternetResourceBuilder.java:148)
at org.ajax4jsf.framework.renderer.RendererBase.getResourceBuilder
(RendererBase.java:129)
at org.ajax4jsf.framework.renderer.RendererBase.getResource
(RendererBase.java:124)
at org.ajax4jsf.renderers.ajax.FormRenderer.<init>(FormRenderer.java:51)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance
(NativeConstructorAccessorImpl.java(Compiled Code))
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance
(DelegatingConstructorAccessorImpl.java(Compiled Code))
at java.lang.reflect.Constructor.newInstance(Constructor.java(Compiled
Code))
at java.lang.Class.newInstance3(Class.java(Compiled Code))
at java.lang.Class.newInstance(Class.java(Compiled Code))
at com.ibm.ws.jsf.configuration.FacesConfigParser.createInstance
(FacesConfigParser.java:2059)
at com.ibm.ws.jsf.configuration.FacesConfigParser.addRenderKits
(FacesConfigParser.java:383)
at
com.ibm.ws.jsf.configuration.FacesConfigParser.initializeConfiguration
(FacesConfigParser.java:338)
at com.ibm.ws.jsf.util.FacesConfigUtil._parseJSFConfiguration
(FacesConfigUtil.java:128)
at com.ibm.ws.jsf.util.FacesConfigUtil.parseJSFConfiguration
(FacesConfigUtil.java:82)
at com.sun.faces.util.Util.verifyFactoriesAndInitDefaultRenderKit
(Util.java:465)
at com.ibm.ws.jsf.configuration.FacesConfig.initialize
(FacesConfig.java:96)
at
com.ibm.ws.jsf.extprocessor.JSFExtensionFactory.createExtensionProcessor
(JSFExtensionFactory.java:108)
at com.ibm.ws.webcontainer.webapp.WebApp.initializeExtensionProcessors
(WebApp.java:1068)
at com.ibm.ws.webcontainer.webapp.WebApp.initialize(WebApp.java:363)
at com.ibm.ws.webcontainer.webapp.WebGroup.addWebApplication
(WebGroup.java:114)
at com.ibm.ws.webcontainer.VirtualHost.addWebApplication
(VirtualHost.java:127)
at com.ibm.ws.webcontainer.WebContainer.addWebApp(WebContainer.java:776)
at com.ibm.ws.webcontainer.WebContainer.addWebApplication
(WebContainer.java:729)
at com.ibm.ws.runtime.component.WebContainerImpl.install
(WebContainerImpl.java:140)
at com.ibm.ws.runtime.component.WebContainerImpl.start
(WebContainerImpl.java:360)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.start
(ApplicationMgrImpl.java:1019)
at
com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectStart
(DeployedApplicationImpl.java:1028)
at com.ibm.ws.runtime.component.DeployedModuleImpl.start
(DeployedModuleImpl.java:538)
at com.ibm.ws.runtime.component.DeployedApplicationImpl.start
(DeployedApplicationImpl.java:724)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication
(ApplicationMgrImpl.java:683)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication
(ApplicationMgrImpl.java:1161)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:85)
at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:58)
at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java(Compiled Code))
at java.lang.reflect.Method.invoke(Method.java(Compiled Code))
at javax.management.modelmbean.RequiredModelMBean.invokeMethod
(RequiredModelMBean.java:1366)
at javax.management.modelmbean.RequiredModelMBean.invoke
(RequiredModelMBean.java:1012)
at mx4j.server.interceptor.InvokerMBeanServerInterceptor.invoke
(InvokerMBeanServerInterceptor.java:233)
at mx4j.server.interceptor.DefaultMBeanServerInterceptor.invoke
(DefaultMBeanServerInterceptor.java:128)
at mx4j.server.interceptor.SecurityMBeanServerInterceptor.invoke
(SecurityMBeanServerInterceptor.java:86)
at mx4j.server.interceptor.DefaultMBeanServerInterceptor.invoke
(DefaultMBeanServerInterceptor.java:128)
at mx4j.server.interceptor.DefaultMBeanServerInterceptor.invoke
(DefaultMBeanServerInterceptor.java:128)
at
mx4j.server.interceptor.ContextClassLoaderMBeanServerInterceptor.invoke
(ContextClassLoaderMBeanServerInterceptor.java:167)
at mx4j.server.MX4JMBeanServer.invoke(MX4JMBeanServer.java:1249)
at com.ibm.ws.management.AdminServiceImpl$1.run
(AdminServiceImpl.java:901)
at com.ibm.ws.security.util.AccessController.doPrivileged
(AccessController.java(Compiled Code))
at com.ibm.ws.management.AdminServiceImpl.invoke
(AdminServiceImpl.java:817)
at
com.ibm.ws.management.application.sync.StartDeploymentTask.startDeployment
(StartDeploymentTask.java:196)
at
com.ibm.ws.management.application.sync.StartDeploymentTask.fullAppUpdate
(StartDeploymentTask.java:92)
at
com.ibm.ws.management.application.sync.StartDeploymentTask.performTask
(StartDeploymentTask.java:81)
at
com.ibm.ws.management.application.sync.AppBinaryProcessor$AppBinThread.run
(AppBinaryProcessor.java:631)
at com.ibm.ws.management.application.sync.AppBinaryProcessor.postProcess
(AppBinaryProcessor.java:408)
at
com.ibm.ws.management.application.sync.AppBinaryProcessor._onChangeCompletion
(AppBinaryProcessor.java:330)
at com.ibm.ws.management.application.sync.AppBinaryProcessor$2.run
(AppBinaryProcessor.java:302)
at com.ibm.ws.security.util.AccessController.doPrivileged
(AccessController.java(Compiled Code))
at
com.ibm.ws.management.application.sync.AppBinaryProcessor.onChangeCompletion
(AppBinaryProcessor.java:296)
at com.ibm.ws.management.repository.FileRepository.postNotify
(FileRepository.java:1653)
at com.ibm.ws.management.repository.FileRepository.update
(FileRepository.java:1211)
at
com.ibm.ws.management.repository.client.LocalConfigRepositoryClient.update
(LocalConfigRepositoryClient.java:189)
at com.ibm.ws.sm.workspace.impl.WorkSpaceMasterRepositoryAdapter.update
(WorkSpaceMasterRepositoryAdapter.java:482)
at com.ibm.ws.sm.workspace.impl.RepositoryContextImpl.update
(RepositoryContextImpl.java:1730)
at com.ibm.ws.sm.workspace.impl.RepositoryContextImpl.synch
(RepositoryContextImpl.java:1676)
at com.ibm.ws.sm.workspace.impl.WorkSpaceImpl.synch
(WorkSpaceImpl.java:455)
at
com.ibm.ws.management.application.task.ConfigRepoHelper.removeWorkSpace
(ConfigRepoHelper.java:107)
at com.ibm.ws.management.application.SchedulerImpl.cleanup
(SchedulerImpl.java:355)
at com.ibm.ws.management.application.SchedulerImpl.run
(SchedulerImpl.java:272)
at java.lang.Thread.run(Thread.java:568)

[11/9/06 15:46:34:387 EST] 00000062 SystemErr R at
org.ajax4jsf.framework.resource.ResourceBuilderImpl.registerConfig
(ResourceBuilderImpl.java:119)
[11/9/06 15:46:34:387 EST] 00000062 SystemErr R at
org.ajax4jsf.framework.resource.ResourceBuilderImpl.registerResources
(ResourceBuilderImpl.java:202)
[11/9/06 15:46:34:387 EST] 00000062 SystemErr R at
org.ajax4jsf.framework.resource.ResourceBuilderImpl.<init>
(ResourceBuilderImpl.java:108)
[11/9/06 15:46:34:387 EST] 00000062 SystemErr R at
org.ajax4jsf.framework.resource.InternetResourceBuilder.getInstance
(InternetResourceBuilder.java:148)
[11/9/06 15:46:34:387 EST] 00000062 SystemErr R at
org.ajax4jsf.framework.renderer.RendererBase.getResourceBuilder
(RendererBase.java:129)
[11/9/06 15:46:34:387 EST] 00000062 SystemErr R at
org.ajax4jsf.framework.renderer.RendererBase.getResource(RendererBase.java:124)
[11/9/06 15:46:34:387 EST] 00000062 SystemErr R at
org.ajax4jsf.renderers.ajax.FormRenderer.<init>(FormRenderer.java:51)
[11/9/06 15:46:34:387 EST] 00000062 SystemErr R at
sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
[11/9/06 15:46:34:387 EST] 00000062 SystemErr R at
sun.reflect.NativeConstructorAccessorImpl.newInstance
(NativeConstructorAccessorImpl.java(Compiled Code))
[11/9/06 15:46:34:387 EST] 00000062 SystemErr R at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance
(DelegatingConstructorAccessorImpl.java(Compiled Code))
[11/9/06 15:46:34:387 EST] 00000062 SystemErr R at
java.lang.reflect.Constructor.newInstance(Constructor.java(Compiled Code))
[11/9/06 15:46:34:387 EST] 00000062 SystemErr R at
java.lang.Class.newInstance3(Class.java(Compiled Code))
[11/9/06 15:46:34:387 EST] 00000062 SystemErr R at
java.lang.Class.newInstance(Class.java(Compiled Code))
[11/9/06 15:46:34:387 EST] 00000062 SystemErr R at
com.ibm.ws.jsf.configuration.FacesConfigParser.createInstance
(FacesConfigParser.java:2059)
[11/9/06 15:46:34:387 EST] 00000062 SystemErr R at
com.ibm.ws.jsf.configuration.FacesConfigParser.addRenderKits
(FacesConfigParser.java:383)
[11/9/06 15:46:34:387 EST] 00000062 SystemErr R at
com.ibm.ws.jsf.configuration.FacesConfigParser.initializeConfiguration
(FacesConfigParser.java:338)
[11/9/06 15:46:34:387 EST] 00000062 SystemErr R at
com.ibm.ws.jsf.util.FacesConfigUtil._parseJSFConfiguration
(FacesConfigUtil.java:128)
[11/9/06 15:46:34:387 EST] 00000062 SystemErr R at
com.ibm.ws.jsf.util.FacesConfigUtil.parseJSFConfiguration
(FacesConfigUtil.java:82)
[11/9/06 15:46:34:387 EST] 00000062 SystemErr R at
com.sun.faces.util.Util.verifyFactoriesAndInitDefaultRenderKit(Util.java:465)
[11/9/06 15:46:34:387 EST] 00000062 SystemErr R at
com.ibm.ws.jsf.configuration.FacesConfig.initialize(FacesConfig.java:96)
[11/9/06 15:46:34:387 EST] 00000062 SystemErr R at
com.ibm.ws.jsf.extprocessor.JSFExtensionFactory.createExtensionProcessor
(JSFExtensionFactory.java:108)
[11/9/06 15:46:34:387 EST] 00000062 SystemErr R at
com.ibm.ws.webcontainer.webapp.WebApp.initializeExtensionProcessors
(WebApp.java:1068)
[11/9/06 15:46:34:387 EST] 00000062 SystemErr R at
com.ibm.ws.webcontainer.webapp.WebApp.initialize(WebApp.java:363)
[11/9/06 15:46:34:387 EST] 00000062 SystemErr R at
com.ibm.ws.webcontainer.webapp.WebGroup.addWebApplication(WebGroup.java:114)
[11/9/06 15:46:34:387 EST] 00000062 SystemErr R at
com.ibm.ws.webcontainer.VirtualHost.addWebApplication(VirtualHost.java:127)
[11/9/06 15:46:34:387 EST] 00000062 SystemErr R at
com.ibm.ws.webcontainer.WebContainer.addWebApp(WebContainer.java:776)
[11/9/06 15:46:34:387 EST] 00000062 SystemErr R at
com.ibm.ws.webcontainer.WebContainer.addWebApplication(WebContainer.java:729)
[11/9/06 15:46:34:387 EST] 00000062 SystemErr R at
com.ibm.ws.runtime.component.WebContainerImpl.install(WebContainerImpl.java:140)
[11/9/06 15:46:34:387 EST] 00000062 SystemErr R at
com.ibm.ws.runtime.component.WebContainerImpl.start(WebContainerImpl.java:360)
[11/9/06 15:46:34:387 EST] 00000062 SystemErr R at
com.ibm.ws.runtime.component.ApplicationMgrImpl.start
(ApplicationMgrImpl.java:1019)
[11/9/06 15:46:34:387 EST] 00000062 SystemErr R at
com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectStart
(DeployedApplicationImpl.java:1028)
[11/9/06 15:46:34:387 EST] 00000062 SystemErr R at
com.ibm.ws.runtime.component.DeployedModuleImpl.start
(DeployedModuleImpl.java:538)






[AJAX4JSF-26] Filter. reformatting page breaks jsf-comp Created: 08/Nov/06  Updated: 09/Nov/06

Status: Open
Project: ajax4jsf
Component/s: www
Affects Version/s: current
Fix Version/s: milestone 1

Type: Bug Priority: Major
Reporter: welshofdave Assignee: ajax4jsf-issues
Resolution: Unresolved Votes: 0
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: All


Issuezilla Id: 26
Tags:
Participants: ajax4jsf-issues and welshofdave

 Description   

I'm using MyFaces (1.1.4), Facelets, jsf-comp and ajax4jsf. Adding the latter
changed the behaviour of jsf-comp.

jsf-comp clientvalidators can display in-page error messages as well as popups.
It takes the value for the popup message from the innerHTML from an in-page
error div element. However, this is broken by using ajax4jsf.

The following config section in my web.xml

<filter>
<display-name>Ajax4jsf Filter</display-name>
<filter-name>ajax4jsf</filter-name>
<filter-class>org.ajax4jsf.Filter</filter-class>
</filter>
<filter-mapping>
<filter-name>ajax4jsf</filter-name>
<servlet-name>Faces Servlet</servlet-name>
<dispatcher>REQUEST</dispatcher>
<dispatcher>FORWARD</dispatcher>
<dispatcher>INCLUDE</dispatcher>
</filter-mapping>

caused this HTML (when page is loaded without the above config section):

<FONT class="defaultValidationMsgClass"><div id="loginForm:_id12"
class="dynamicDivClass">Username is required</div></FONT>

to be changed into this (when page is loaded with the above config section):

<div id="loginForm:_id12" class="dynamicDivClass"><font
class="defaultValidationMsgClass">Username is required</font></div>

I don't know why ajax4jsf does this, or even if it should.



 Comments   
Comment by welshofdave [ 08/Nov/06 02:15 AM ]

Updating the subject since it seems there are a couple of other issues with the
filter.

Comment by welshofdave [ 09/Nov/06 01:45 AM ]

Found that putting this into the filter makes the problem go away.

<init-param>
<param-name>forceparser</param-name>
<param-value>false</param-value>
</init-param>





[AJAX4JSF-25] ajax4jsf 1.0.3 generates javascript error on WAS 6.0.2.5 Created: 26/Oct/06  Updated: 08/Nov/06

Status: Open
Project: ajax4jsf
Component/s: www
Affects Version/s: current
Fix Version/s: milestone 1

Type: Bug Priority: Major
Reporter: Oliver Thomsen Assignee: ajax4jsf-issues
Resolution: Unresolved Votes: 0
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: Windows XP
Platform: PC


Issuezilla Id: 25
Tags:
Participants: ajax4jsf-issues and Oliver Thomsen

 Description   

Hi,

i've been trying to get ajax4jsf 1.0.3 running on WAS 6.0.2.5.

When I run the sample application (simple-repeater) I've get a javascript error
"A4J is not defined". If you look at the generated HTML-code, you'll see that
the DOCTYPE and the script tags are missing. The strange thing is, that if I
take an older ajax4jsf.jar (like 1.0rc2) it works!!!

Have you got any ideas?

Regards, Oliver.

PS: Enclosed are several config-files. I'm using Sun's JSF RI 1.1 and also tried
IBM's JSF RI 1.1. Both give me the same error message.

WAS-Information:
WebSphere Platform 6.0 [BASE 6.0.2.5 cf50549.21] running with process name
ws013013Node01Cell\ws013013Node01\server1 and process id 2096
Host Operating System is Windows XP, version 5.1
Java version = J2RE 1.4.2 IBM Windows 32 build cn142ifx-20060307 (142SR4-1 +
98226) (JIT enabled: jitc), Java Compiler = jitc, Java VM name = Classic VM

generated HTML-code:
<html><head><title>ajax4jsf. Simple Repeator Demo</title></head><body><form
id="_id0" method="post" action="/a4j_103_sun_ri/pages/demo.jsf"
enctype="application/x-www-form-urlencoded"><table><tbody><tr><td>Type the
Text:</td><td><input type="text" name="_id0:_id3" value=""
onkeyup="A4J.AJAX.Submit('_viewRoot','_id0',event,{'parameters':{'_id0:_id4':'_id0:_id4'}})"
size="50"></td></tr><tr><td>Text in the AJAX Response:</td><td><span
id="_id0:repeater"></span></td></tr></tbody></table><input type="hidden"
name="_id0" value="_id0"></form><hr>Source Code of This Page: <pre><%@ taglib
uri="https://ajax4jsf.dev.java.net/ajax" prefix="a4j"%>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<html>
<head>
<title>a4j Simple Repeator Demo</title>
</head>
<body>
<f:view>
<h:form>
<h:panelGrid columns="2">

<h:outputText value="Type the Text:" />
<h:inputText value="#{bean.text}">
<a4j:support event="onkeyup"
reRender="repeater" />
</h:inputText>

<h:outputText value="Text in the AJAX Response:" />
<h:outputText id="repeater" value="#{bean.text}" />

</h:panelGrid>
</h:form>
<hr />
<h:outputText value="Source Code of This Page:" />
<f:verbatim>
....
</f:verbatim>

</f:view>
</body>
</html>
</pre></body></html>

faces-config.xml:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE faces-config SYSTEM "./web-facesconfig_1_1.dtd">
<faces-config>
<managed-bean>
<managed-bean-name>bean</managed-bean-name>
<managed-bean-class>demo.Bean</managed-bean-class>
<managed-bean-scope>request</managed-bean-scope>
<managed-property>
<property-name>text</property-name>
<value />
</managed-property>
</managed-bean>

<managed-bean>
<description>Input Value Holder</description>
<managed-bean-name>nameBean</managed-bean-name>
<managed-bean-class>demo.NameBean</managed-bean-class>
<managed-bean-scope>session</managed-bean-scope>
<managed-property>
<property-name>userName</property-name>
<property-class>java.lang.String</property-class>
<value />
</managed-property>
</managed-bean>

<navigation-rule>
<from-view-id>/pages/a4jStatus.jsp</from-view-id>
</navigation-rule>
</faces-config>

web.xml:
<?xml version="1.0" encoding="UTF-8"?>
<web-app id="WebApp_ID" version="2.4"
xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
<display-name>a4j_103_sun_ri</display-name>

<context-param>
<param-name>javax.faces.STATE_SAVING_METHOD</param-name>
<param-value>server</param-value>
</context-param>

<!-- Ajax4JSF Initial parameters -->
<filter>
<display-name>Ajax4jsf Filter</display-name>
<filter-name>ajax4jsf</filter-name>
<filter-class>org.ajax4jsf.Filter</filter-class>
</filter>
<filter-mapping>
<filter-name>ajax4jsf</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>ajax4jsf</filter-name>
<servlet-name>Faces Servlet</servlet-name>
<dispatcher>REQUEST</dispatcher>
<dispatcher>FORWARD</dispatcher>
<dispatcher>INCLUDE</dispatcher>
</filter-mapping>
<!-- Ajax4JSF Initial parameters -->

<listener>
<listener-class>
com.sun.faces.config.ConfigureListener
</listener-class>
</listener>

<!-- Faces Servlet -->
<servlet>
<servlet-name>Faces Servlet</servlet-name>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>

<!-- Faces Servlet Mapping -->
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>*.jsf</url-pattern>
</servlet-mapping>

<welcome-file-list>
<welcome-file>./index.jsp</welcome-file>
</welcome-file-list>
</web-app>



 Comments   
Comment by Oliver Thomsen [ 26/Oct/06 12:42 PM ]

Hi,

I did some research: ajax4jsf.jar 1.0 and 1.0.1 are working, so the the problem
occurs in versions 1.0.2 and greater!

Regards, Oliver.

Comment by Oliver Thomsen [ 08/Nov/06 05:20 AM ]

Hi,
just solved the problem! Added

<init-param>
<param-name>forceparser</param-name>
<param-value>false</param-value>
</init-param>

to the Ajax4JSF Filter in the web.xml and now it works!

Regards, Oliver.

PS Issue can be closed!





[AJAX4JSF-24] Use provided converter to serialize object in a4j:actionparam Created: 26/Oct/06  Updated: 26/Oct/06

Status: Open
Project: ajax4jsf
Component/s: www
Affects Version/s: current
Fix Version/s: milestone 1

Type: New Feature Priority: Minor
Reporter: pablotdl Assignee: ajax4jsf-issues
Resolution: Unresolved Votes: 0
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: All


Issuezilla Id: 24
Tags:
Participants: ajax4jsf-issues and pablotdl

 Description   

It would be nice that the a4j:actionparam uses the assigned converter (if
provided) to serialize the value besides using it to deserialize it.

My current use case is this:

<c:forEach var="photo" items=#{photoController.userPhotos}">
<h:commandLink......>
<a4j:support event="onclick" action=.....>
<a4j:actionparam assignTo="#{photoController.currentPhoto}" value="#{photo}"
converter="photoConverter" />
</a4j:support>
</h:commandLink>

Where photo is a BusinessObject, and the converter is declared in
faces-config.xml and uses object serialization to convert the value to String
and from String. The problem is that only the getAsObject method is called, and
not the getAsString. As a result, I get a String parameter that's nothing but
the object's toString(), so when I try to deserialize it I get a IOException.

I could change the object's toString method, but I'd rather not pollute my
business object with behaviour that is specific to the presentation
techonologies. I'd also like to be able to change the serialization method
without modifying my BO.

It's the first issue I ever fill, I hope I did it correctly.
Best Regards.






[AJAX4JSF-23] a4j-gwtMap source archive is broken Created: 19/Oct/06  Updated: 19/Oct/06

Status: Open
Project: ajax4jsf
Component/s: www
Affects Version/s: current
Fix Version/s: milestone 1

Type: Bug Priority: Major
Reporter: robjellinghaus Assignee: ajax4jsf-issues
Resolution: Unresolved Votes: 0
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: All


Issuezilla Id: 23
Tags:
Participants: ajax4jsf-issues and robjellinghaus

 Description   

I am starting to work with g4jsf (see thread between me and Sergey Smirnov
titled "Example EJB3 GWT apps?" on code.google.com/webtoolkit forum). I have
just downloaded the a4j-gwtMap and a4j-gwtKickStart samples.

In each one, I copied build.properties.sample to build.properties and edited it
appropriately. Then I ran "ant" in each project's ant directory.

In a4j-gwtKickStart, the default ant target (ant war) ran perfectly.

In a4j-gwtMap, it failed with this error:

compile.js:
[java] Loading module 'demo.gwt.GoogleMaps'
[java] [ERROR] Unable to find 'demo/gwt/GoogleMaps.gwt.xml' on your
classpath; could be a typo, or maybe you forgot to include a classpath entry for
source?
[java] [ERROR] Build failed
[java] Java Result: 1

This turns out to be because the only copy of GoogleMaps.gwt.xml in that zip
file is at the following path in the zip:

WebContent/WEB-INF/classes/demo/gwt/GoogleMaps.gwt.xml

Which is indeed not anywhere on the classpath for the compile.js target. And it
seems like the wrong place for it anyway, since all the classes should be under
the "build" directory.

In the properly working a4j-gwtKickStart sample, the corresponding .gwt.xml file
is at:

JavaSource\demo\gwt\HelloWidget.gwt.xml

Which makes much more sense and is correct.

Please fix the broken sample source zip file... it would seem that you haven't
had too many people try it, if no one has noticed this error yet :-\






[AJAX4JSF-21] Display failure using Buttons with < Created: 16/Oct/06  Updated: 16/Oct/06

Status: Open
Project: ajax4jsf
Component/s: www
Affects Version/s: current
Fix Version/s: milestone 1

Type: Bug Priority: Major
Reporter: swells77 Assignee: ajax4jsf-issues
Resolution: Unresolved Votes: 0
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: All


Issuezilla Id: 21
Tags:
Participants: ajax4jsf-issues and swells77

 Description   

There seems to be an issue using "<" (or "<<") on buttons with a4j - using the
equivalent h:commandButton shows them properly, using a4j:commandButton results
in no text being displayed. also note that the string is procured from a
message bundle property but it doesn't seem to matter whether the value is
escaped or not (ie < as button text results in same failure)






[AJAX4JSF-19] The filter is corrupting imported Java Script Created: 05/Oct/06  Updated: 06/Oct/06

Status: Open
Project: ajax4jsf
Component/s: www
Affects Version/s: current
Fix Version/s: milestone 1

Type: Bug Priority: Major
Reporter: agdean Assignee: ajax4jsf-issues
Resolution: Unresolved Votes: 0
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: All


File Attachments: XML File web.xml    
Issuezilla Id: 19
Tags:
Participants: agdean, ajax4jsf-issues and sergeysmirnov

 Description   

My company has a standard header that should be used on internally facing
applications. Here's how I use it:

<%@page contentType="text/html" pageEncoding="UTF-8"%>

<%@taglib uri="https://ajax4jsf.dev.java.net/ajax" prefix="a4j"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

<html>
<c:import
url="http://spigce.jpmorganchase.com/portal/spi/common/gceservice/GCEBodyInclude
.jsp?siteCode=409"/>
Hi
</html>

When processed as a plain jsp the header displays perfectly. When processed by
org.ajax4jsf.Filter, some of the JavaScript contained in that page gets
displayed. FWIW, the part that gets displayed is between the greater than /
less than comparisons in a couple different if statements.

I've tested this with the a4j filter being the only filter defined in web.xml.

This has been tested on Sun Application Server 9, on both Windows and Solaris.



 Comments   
Comment by agdean [ 05/Oct/06 02:33 PM ]

Created an attachment (id=2)
web.xml

Comment by sergeysmirnov [ 05/Oct/06 03:23 PM ]

If you add this to your ajax4jsf filter definition:
<init-param>
<param-name>forceparser</param-name>
<param-value>false</param-value>
</init-param>

does it work for you?

Comment by agdean [ 06/Oct/06 08:59 AM ]

Yes! Somewhat. It fixed the import problem, so I added back in some code
using a Tomahawk component. It seems Tomahawk's popup breaks with this change.

If I remove the forceparser param, the import is broken but Tomahawk works.
With the param the import works, but Tomahawk is broken.

Any suggestions or is this a tomahawk problem?

Comment by sergeysmirnov [ 06/Oct/06 09:36 AM ]

Probably, it is a matter of correctness of included code than the tag for
include. The correctness the code against w3c spec helps to keep it working in
Ajax mode. I told about it here:
https://ajax4jsf.dev.java.net/servlets/ReadMsg?listName=users&msgNo=1075

Take a look at the mailing archive for users@ajax4jsf.dev.java.net. This is a
very popular issue.





[AJAX4JSF-20] JSEncoder generates \u escape sequence with two hex digits only Created: 06/Oct/06  Updated: 06/Oct/06

Status: Open
Project: ajax4jsf
Component/s: www
Affects Version/s: current
Fix Version/s: milestone 1

Type: Bug Priority: Major
Reporter: cschmid Assignee: ajax4jsf-issues
Resolution: Unresolved Votes: 0
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: All


Issuezilla Id: 20
Tags:
Participants: ajax4jsf-issues and cschmid

 Description   

org.ajax4jsf.framework.util.javascript.JSEncoder.encode(char c)

can generate escape sequences of the form:

\uXX where X is a hex digit.

\u should, however, be followed by four hex digits, so an escape sequence of the
form \xXX should actually be generated instead.

Source code lines 105-106 should read instead:

char ret[] = { '\\', 'x', ENCODE_HEX[c >> 0x4 & 0xf], ENCODE_HEX[c & 0xf] };

where 'u' has been replaced by 'x'.

Regards,
Claus






[AJAX4JSF-18] Problems in selectOneMenu Created: 05/Oct/06  Updated: 05/Oct/06

Status: Open
Project: ajax4jsf
Component/s: www
Affects Version/s: current
Fix Version/s: milestone 1

Type: Bug Priority: Major
Reporter: junglika Assignee: mauro_castaldo
Resolution: Unresolved Votes: 0
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: Windows XP
Platform: All


Issuezilla Id: 18
Tags:
Participants: junglika and mauro_castaldo

 Description   

Hello!!

The SelectOneMenu component fails when I don't select any option (the
problem appears in "processValidations" method in LifecycleImpl class). I see
that the problem is in "Ajax.js" (in "A4J.Query.prototype"):
...
Now :
'select-one' : function(control){ this._value_query(control); },

This option sends in any situation a paratemer with value="", and when the
component tries to validate the value, this validation fails.

And i think that a better solution is:

'select-one' : function(control){
for( var i in control.childNodes ){
var child=control.childNodes[i];
if( child.selected ){ this._value_query(control); break; }
}
},

if i don't select any option, i mustn't send the parameter.

Thanks.






[AJAX4JSF-17] only one status component is active on a single page. Created: 25/Sep/06  Updated: 25/Sep/06

Status: Open
Project: ajax4jsf
Component/s: www
Affects Version/s: current
Fix Version/s: milestone 1

Type: Bug Priority: Blocker
Reporter: aussiestaceus Assignee: ajax4jsf-issues
Resolution: Unresolved Votes: 0
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: Windows XP
Platform: All


Issuezilla Id: 17
Tags:
Participants: ajax4jsf-issues and aussiestaceus

 Description   

only one status component is active on a single page. Even if the a4j
components point to different status components, only one is updated. It seems
to me since we have a status attribute in the coponents so we can update only a
specific status component rather than a single default one.






[AJAX4JSF-16] Duplicate faces-config.xml in ajax4jsf.jar Created: 22/Sep/06  Updated: 22/Sep/06

Status: Open
Project: ajax4jsf
Component/s: www
Affects Version/s: current
Fix Version/s: milestone 1

Type: Bug Priority: Major
Reporter: jacek Assignee: ajax4jsf-issues
Resolution: Unresolved Votes: 0
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: All


Issuezilla Id: 16
Tags:
Participants: ajax4jsf-issues, jacek and sergeysmirnov

 Description   

The duplicate faces-config.xml in the ajax4jsf.jar/META breaks most IDEs from
actually using the library.

For example, both Netbeans and Sun Java Studio Creator throw exception when
Ajax4JSF is added to the classlib for a project. Removing the faces-config.xml
from the jar is the only way to get Ajax4JSF to work with Netbeans/JSC.

Please provide a standard built JAR without this problematic faces-config.xml file.



 Comments   
Comment by sergeysmirnov [ 22/Sep/06 11:19 AM ]

Any JSF component library should provide META-INF/faces-config.xml file in the
JAR file according to the JSF specification. JSF Implementation must load the
resources defined in such file.

See:
Section 9.4 JSF Core Tag Library
Section 9.5 Standard HTML RenderKit Tag Library
Section 10.2.6.1 #3 FactoryFinder
Section 10.3.2 Application Startup Behavior

The problem might be in the extension part of the file, that tool does not
recognize correctly.

Comment by jacek [ 22/Sep/06 11:23 AM ]

Hm, I see...I was going after seeing this discussion:
http://forum.sun.com/jive/thread.jspa?forumID=123&threadID=105802

Please close this issue, I will file it with the Netbeans team instead.
Thank you





[AJAX4JSF-15] required selects will not repopulate options Created: 12/Sep/06  Updated: 12/Sep/06

Status: Open
Project: ajax4jsf
Component/s: www
Affects Version/s: current
Fix Version/s: milestone 1

Type: Bug Priority: Major
Reporter: tbush Assignee: ajax4jsf-issues
Resolution: Unresolved Votes: 0
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: Windows XP
Platform: PC


Issuezilla Id: 15
Tags:
Participants: ajax4jsf-issues and tbush

 Description   

Using MyFaces 1.1.1 and Facelets 1.1.4. I've developed a text box / select box
combo. When data is entered into the text box, a query is executed to populate
the select box. If the select box's required property is set to true, the
options are never updated. If I set the required property to false, things are
groovy.

See below code. This code is part of a facelets template

<a4j:region id="provNameNumRegion" selfRendered="true">
<tr>
<td>
<c:if test="${debug}">
<a4j:status startText="sending data"
stopText="request finished"
for="provNameNumRegion"/>
<br/>
</c:if>
<h:inputText id="providerNumber"
value="${provNum}"
size="6"
tabindex="${provNumTab}"
title="ProviderNumber">
<a4j:support event="onchange"
reRender="ddProviderName"
action="#{provActionBean.populateFacilityFromProvNum}" />
</h:inputText>
</td>
<td>
<select id="ddProviderName"
jsfc="h:selectOneMenu"
value="${provName}"
tabindex="${provNameTab}"
title="Provider Name"
required="${isRequired}">
<option jsfc="f:selectItem" itemValue="" itemLabel="Select One" />
<option jsfc="f:selectItems" value="${provNamePop}" />
<q:facilityConverter service="#{providerService}" />
<a4j:support event="onchange" reRender="providerNumber" />
</select>
<h:message for="ddProviderName" styleClass="errorFeedback" />
</td>
</tr>
</a4j:region>






[AJAX4JSF-14] mediaOutput displays image at incorrect location in IE 6 Created: 02/Sep/06  Updated: 02/Sep/06

Status: Open
Project: ajax4jsf
Component/s: www
Affects Version/s: current
Fix Version/s: milestone 1

Type: Bug Priority: Critical
Reporter: aussiestaceus Assignee: ajax4jsf-issues
Resolution: Unresolved Votes: 1
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: NetBSD
Platform: All


Issuezilla Id: 14
Tags:
Participants: ajax4jsf-issues and aussiestaceus

 Description   

When I have the mediaOutput render an image in IE 6 (Works fine in FF). The
image is placed at the incorrect location. Almost seems as if the the full html
dom is build prior to the java outstream and therefore the image is placed
outside its source location.






[AJAX4JSF-13] AJAX4JSF Filter breaks CSS loading in IE6 Created: 24/Aug/06  Updated: 24/Aug/06

Status: Open
Project: ajax4jsf
Component/s: www
Affects Version/s: current
Fix Version/s: milestone 1

Type: Bug Priority: Major
Reporter: tbush Assignee: ajax4jsf-issues
Resolution: Unresolved Votes: 0
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: Windows XP
Platform: PC


Issuezilla Id: 13
Tags:
Participants: ajax4jsf-issues and tbush

 Description   

Using the AJAX4JSF filter seems to break CSS loading in IE6, works fine in
FireFox 1.5.

Added AJAX4JSF functionality to xhtml page.
Rendered page in IE, Ajax functionality works fine, but page is not using CSS sheets
Rendered page in Firefox, ajax functionality works fine, CSS works fine
Removed ajax filter from web.xml, restart web server.
Rendered page in IE, CSS works.

If I set the init-param forceparser to false, both CSS and ajax works perfectly.






[AJAX4JSF-12] A simple way to integrate Ajax4JSF into t:dataTable and t:dataScroller Created: 18/Aug/06  Updated: 18/Aug/06

Status: Open
Project: ajax4jsf
Component/s: www
Affects Version/s: current
Fix Version/s: milestone 1

Type: Improvement Priority: Major
Reporter: urubatan Assignee: ajax4jsf-issues
Resolution: Unresolved Votes: 0
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: All


Issuezilla Id: 12
Tags:
Participants: ajax4jsf-issues and urubatan

 Description   

It would be great to integrate ajax4jsf into t:dataTable and t:dataScroller
components from tomahawk.
or at least an example of how to do it ...






[AJAX4JSF-11] <h:commandLink> inside <f:facet name="footer"> does not work properly. Created: 14/Aug/06  Updated: 14/Aug/06

Status: Open
Project: ajax4jsf
Component/s: www
Affects Version/s: current
Fix Version/s: milestone 1

Type: Bug Priority: Major
Reporter: jgenchik Assignee: ajax4jsf-issues
Resolution: Unresolved Votes: 1
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: Windows XP
Platform: All


Issuezilla Id: 11
Tags:
Participants: ajax4jsf-issues and jgenchik

 Description   

Under certain conditions, commandLink doesn’t work on the first click, while
inside a <f:facet name="footer"> but works fine outside of a facet.
When a <h:inputText> with a <a4j:support> sub element is modified and command
link inside facet is pressed first time, action is not called, but the second
time it works fine.
I am using JSF 1.2 RI with Facelets.
Following is a page code:

<?xml version="1.0" encoding="ISO-8859-1" ?>

<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t" %>
<%@ taglib uri="http://java.sun.com/jsf/facelets" prefix="ui" %>
<%@ taglib uri="https://ajax4jsf.dev.java.net/ajax" prefix="a4j"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:t="http://myfaces.apache.org/tomahawk"
xmlns:a4j="https://ajax4jsf.dev.java.net/ajax">

<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
</head>

<body>

<ui:composition template="/template.xhtml">
<ui:param name="focusId" value="monthlyPassPrice" />

<ui:define name="title_text">
Fair Calculator
</ui:define>

<ui:define name="body">
<h:messages styleClass="errorMessage" infoClass="infoMessage"
showSummary="true" showDetail="true" globalOnly="false" />

<h:form id="fairCalculatorForm" prependId="false">

<h:panelGrid id="page1Grid" columns="4" width="100%"
columnClasses="panelLabelColumn,panelDataColumn">
<h:outputLabel id="monthlyPassPriceLabel" for="monthlyPassPrice"
value="Monthly pass price:" title="Price of a monthly path" />
<h:panelGroup>
<h:inputText id="monthlyPassPrice"
value="#{fairCalculatorBean.monthlyPassPrice}" title="Enter price of a monthly
path" size="6" required="true" requiredMessage="Please enter price of a monthly
pass" />
<h:message for="monthlyPassPrice" errorClass="errorMessage"
infoClass="infoMessage" />
</h:panelGroup>

<h:outputLabel id="startDateLabel" for="startDate" value="Start date:"
title="Enter start date (mm/dd/yyyy)" />
<h:panelGroup>
<h:inputText id="startDate" value="#{fairCalculatorBean.startDate}"
title="Enter start date (mm/dd/yyyy)" size="10" required="true">
<f:converter converterId="bmgch.dateNoTimeConverter" />
<a4j:support id="startDateAjax" event="onchange" reRender="workDays"
requestDelay="30" />
</h:inputText>
<h:message for="startDate" errorClass="errorMessage"
infoClass="infoMessage" />
</h:panelGroup>

<h:outputLabel id="holidaysLabel" for="holidays" value="Holidays:"
title="Number of holidays in the time period" />
<h:inputText id="holidays" value="#{fairCalculatorBean.holidays}"
title="Enter number of holidays in the time period" size="1">
<f:validateLongRange minimum="0" maximum="31" />
<a4j:support id="holidaysAjax" event="onkeyup" reRender="workDays"
requestDelay="30" />
</h:inputText>

<h:outputLabel id="workDaysLabel" for="workDays" value="Work days:"
title="Number of work days in the time period" />
<h:outputText id="workDays" value="#{fairCalculatorBean.workDays}"
title="Number of work days in the time period" />

<h:outputLabel id="ticketPriceLabel" for="ticketPrice" value="Ticket(s)
price:" title="Enter ticket(s) price" />
<h:inputText id="ticketPrice" value="#{fairCalculatorBean.ticketPrice}"
title="Enter ticket(s) price" size="6">
<a4j:support id="ticketPriceAjax" event="onchange"
reRender="oneTicketPrice" />
</h:inputText>

<h:outputLabel id="numberOfTicketsLabel" for="numberOfTickets"
value="Number of tickets:" title="Enter number of tickets" />
<h:inputText id="numberOfTickets"
value="#{fairCalculatorBean.numberOfTickets}" title="Enter number of tickets"
size="6">
</h:inputText>

<h:outputLabel id="oneTicketPriceLabel" for="oneTicketPrice" value="One
ticket:" />
<h:outputText id="oneTicketPrice" value="#{fairCalculatorBean.oneTicketPrice}">
<f:convertNumber type="currency"/>
</h:outputText>

<h:panelGroup />
<h:panelGroup />

<h:outputLabel id="monthlyPricePerTripLabel" for="monthlyPricePerTrip"
value="Price per trip:" />
<h:outputText id="monthlyPricePerTrip"
value="#{fairCalculatorBean.monthlyPricePerTrip}">
<f:convertNumber type="currency"/>
</h:outputText>

<h:panelGroup />
<h:commandLink id="calculateFairButton2"
action="#{fairCalculatorBean.calculateFair}" value="Calculate" />

<f:facet name="footer">
<h:commandLink id="calculateFairButton"
action="#{fairCalculatorBean.calculateFair}" value="Calculate AJAX" />
</f:facet>

</h:panelGrid>
</h:form>

</ui:define>

</ui:composition>

</body>
</html>

Here is template’s code:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t" %>
<%@ taglib uri="http://java.sun.com/jsf/facelets" prefix="ui" %>
<%@ taglib uri="https://ajax4jsf.dev.java.net/ajax" prefix="a4j"%>

<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:t="http://myfaces.apache.org/tomahawk"
xmlns:a4j="https://ajax4jsf.dev.java.net/ajax">

<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title><ui:insert name="title_text">BMG Columbia House Sample Facelets
Application</ui:insert></title>
<link rel="stylesheet" type="text/css" href="style.css" />
<f:loadBundle basename="messages" var="msgs" />

<script language="JavaScript" type="text/javascript">

/**

  • Sets focus on the specified field. It is being called from the body onLoad.
  • The value of the Tiles property focusId contains the id of the element
  • that will receive focus.
    */
    function setInitialFocus(){
    var focusElementId = "#{focusId}";
    var focusElement = document.getElementById(focusElementId);

if(focusElement != null){ focusElement.focus(); }
}
</script>
</head>

<body onLoad="setInitialFocus();">
<f:view>
<a4j:page>
<h:panelGrid columns="1" border="0" cellpadding="0" cellspacing="0"
width="100%" id="headerMenuContentLayoutGrid" styleClass="gridClass"
headerClass="headerClass" rowClasses="c, c" columnClasses="contentColumnClass"
style="position:relative;top:70px;width:700px;">
<f:facet name="header">
<ui:insert name="title">Default Title</ui:insert>
</f:facet>
<ui:insert name="body">Default Body</ui:insert>
</h:panelGrid>
</a4j:page>
</f:view>
</body>

</html>






[AJAX4JSF-7] NullPointerException - org.ajax4jsf.framework.resource.InternetResourceBase.getUri Created: 29/Jul/06  Updated: 29/Jul/06

Status: Open
Project: ajax4jsf
Component/s: www
Affects Version/s: current
Fix Version/s: milestone 1

Type: Bug Priority: Major
Reporter: swells77 Assignee: ajax4jsf-issues
Resolution: Unresolved Votes: 0
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: Linux
Platform: Other


Issuezilla Id: 7
Tags:
Participants: ajax4jsf-issues and swells77

 Description   

I am experiencing NullPointerException (stack trace below) while trying to
integrate A4J - the filter loads all OK but the exception is thrown when
rendering an established JSF file, without any additions for A4J. Platform
= JBoss 4.0.4, Fedora Core 4, Sun JDK 1.0.5.06

2006-07-29 09:45:46,055 ERROR [org.apache.catalina.core.ContainerBase.
[jboss.web].[localhost].[/homeXtreme].[jsp]] Servlet.service() for servlet jsp
threw exception
java.lang.NullPointerException
at org.ajax4jsf.framework.resource.InternetResourceBase.getUri
(InternetResourceBase.java:214)
at org.ajax4jsf.framework.resource.BaseResourceRenderer.encodeBegin
(BaseResourceRenderer.java:47)
at org.ajax4jsf.framework.resource.OneTimeRenderer.encodeBegin
(OneTimeRenderer.java:41)
at org.ajax4jsf.framework.resource.BaseResourceRenderer.encode
(BaseResourceRenderer.java:33)
at org.ajax4jsf.framework.resource.InternetResourceBase.encode
(InternetResourceBase.java:300)
at
org.ajax4jsf.framework.renderer.HeaderResourcesRendererBase.encodeResourcesArray
(HeaderResourcesRendererBase.java:124)
at
org.ajax4jsf.framework.renderer.HeaderResourcesRendererBase.preEncodeBegin
(HeaderResourcesRendererBase.java:110)
at org.ajax4jsf.framework.renderer.RendererBase.encodeBegin
(RendererBase.java:87)
at javax.faces.component.UIComponentBase.encodeBegin
(UIComponentBase.java:683)
at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive
(HtmlBasicRenderer.java:433)
at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive
(HtmlBasicRenderer.java:440)
at com.sun.faces.renderkit.html_basic.GridRenderer.encodeChildren
(GridRenderer.java:233)
at javax.faces.component.UIComponentBase.encodeChildren
(UIComponentBase.java:701)
at javax.faces.webapp.UIComponentTag.encodeChildren
(UIComponentTag.java:607)
at javax.faces.webapp.UIComponentTag.doEndTag(UIComponentTag.java:544)
at com.sun.faces.taglib.html_basic.PanelGridTag.doEndTag
(PanelGridTag.java:460)
at org.apache.jsp.common.baseViewLayout_jsp._jspx_meth_h_panelGrid_0
(org.apache.jsp.common.baseViewLayout_jsp:183)
at org.apache.jsp.common.baseViewLayout_jsp._jspService
(org.apache.jsp.common.baseViewLayout_jsp:81)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at org.apache.jasper.servlet.JspServletWrapper.service
(JspServletWrapper.java:322)
at org.apache.jasper.servlet.JspServlet.serviceJspFile
(JspServlet.java:314)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter
(ApplicationFilterChain.java:173)
at org.apache.catalina.core.ApplicationDispatcher.invoke
(ApplicationDispatcher.java:672)
at org.apache.catalina.core.ApplicationDispatcher.doInclude
(ApplicationDispatcher.java:574)
at org.apache.catalina.core.ApplicationDispatcher.include
(ApplicationDispatcher.java:499)
at org.apache.jasper.runtime.JspRuntimeLibrary.include
(JspRuntimeLibrary.java:966)
at org.apache.jasper.runtime.PageContextImpl.doInclude
(PageContextImpl.java:633)
at org.apache.jasper.runtime.PageContextImpl.include
(PageContextImpl.java:627)
at sun.reflect.GeneratedMethodAccessor143.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.tiles.TilesUtilImpl.doInclude(TilesUtilImpl.java:164)
at org.apache.tiles.TilesUtil.doInclude(TilesUtil.java:178)
at org.apache.tiles.taglib.InsertTag.doInclude(InsertTag.java:907)
at org.apache.tiles.taglib.InsertTag$InsertHandler.doEndTag
(InsertTag.java:1113)
at org.apache.tiles.taglib.InsertTag.doEndTag(InsertTag.java:485)
at org.apache.jsp.hx.pond_jsp._jspx_meth_t_insert_0
(org.apache.jsp.hx.pond_jsp:132)
at org.apache.jsp.hx.pond_jsp._jspx_meth_f_view_0
(org.apache.jsp.hx.pond_jsp:101)
at org.apache.jsp.hx.pond_jsp._jspService(org.apache.jsp.hx.pond_jsp:67)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at org.apache.jasper.servlet.JspServletWrapper.service
(JspServletWrapper.java:322)
at org.apache.jasper.servlet.JspServlet.serviceJspFile
(JspServlet.java:314)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter
(ApplicationFilterChain.java:173)
at org.apache.catalina.core.ApplicationDispatcher.invoke
(ApplicationDispatcher.java:672)
at org.apache.catalina.core.ApplicationDispatcher.processRequest
(ApplicationDispatcher.java:463)
at org.apache.catalina.core.ApplicationDispatcher.doForward
(ApplicationDispatcher.java:398)
at org.apache.catalina.core.ApplicationDispatcher.forward
(ApplicationDispatcher.java:301)
at com.sun.faces.context.ExternalContextImpl.dispatch
(ExternalContextImpl.java:322)
at com.sun.faces.application.ViewHandlerImpl.renderView
(ViewHandlerImpl.java:130)
at org.ajax4jsf.framework.ViewHandlerWrapper.renderView
(ViewHandlerWrapper.java:101)
at com.sun.faces.lifecycle.RenderResponsePhase.execute
(RenderResponsePhase.java:87)
at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter
(ApplicationFilterChain.java:173)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter
(ReplyHeaderFilter.java:96)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter
(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke
(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke
(StandardContextValve.java:178)
at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke
(CustomPrincipalValve.java:54)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke
(SecurityAssociationValve.java:174)
at org.jboss.web.tomcat.security.JaccContextValve.invoke
(JaccContextValve.java:74)
at org.apache.catalina.core.StandardHostValve.invoke
(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke
(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke
(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service
(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process
(Http11Processor.java:868)
at
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConne
ction(Http11BaseProtocol.java:663)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket
(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run
(MasterSlaveWorkerThread.java:112)
at java.lang.Thread.run(Thread.java:595)



 Comments   
Comment by swells77 [ 29/Jul/06 09:56 AM ]

Also JSF = Sun 1.1 RI

Comment by swells77 [ 29/Jul/06 02:40 PM ]

SORRY USER ERROR - I got a little ahead of myself; more than one web app
involved and was (already) copying a4j .jars to (another's) web-inf/lib dir
without yet including it's web.xml declarations. Once those were declared
there, too, old page works as it did.





[AJAX4JSF-6] IDs not handled correctly for components inside tables Created: 27/Jul/06  Updated: 27/Jul/06

Status: Open
Project: ajax4jsf
Component/s: www
Affects Version/s: current
Fix Version/s: milestone 1

Type: Bug Priority: Major
Reporter: timslater Assignee: ajax4jsf-issues
Resolution: Unresolved Votes: 3
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: All


Issuezilla Id: 6
Tags:
Participants: ajax4jsf-issues and timslater

 Description   

Ids for components to be reRendered are not correctly interpreted if the a4j
component (and the component to be re-rendered) is inside a table. The row
number component of the id is missed out causing the javascript rerendering to
fail in locating the component to be updating. The following patch appears to
fix the issue for me. I am unsure of any side effects, but have not noticed any
so far. Have tested with JSF RI 1.2 and Facelets 1.1.8.

diff -u -w -r java/org/ajax4jsf/framework/renderer/AjaxContainerRenderer.java
javaPatched/org/ajax4jsf/framework/renderer/AjaxContainerRenderer.java
— java/org/ajax4jsf/framework/renderer/AjaxContainerRenderer.java 2006-07-25
13:43:46.000000000 +1000
+++ javaPatched/org/ajax4jsf/framework/renderer/AjaxContainerRenderer.java
2006-07-26 16:14:48.765625000 +1000
@@ -24,6 +24,7 @@

import javax.faces.component.NamingContainer;
import javax.faces.component.UIComponent;
+import javax.faces.component.UIData;
import javax.faces.context.FacesContext;

import org.ajax4jsf.ajax.UILoadBundle;
@@ -165,7 +166,8 @@
// list for rendering may contains absolute id ( best ),
// component Id or client ID
String elementId = element.getId();

  • String absoluteId = currentPath + elementId;
    + String absoluteId = AjaxRendererUtils.getAbsoluteId(element);
    + // String absoluteId = currentPath + elementId;
    // String clientId = element.getClientId(context);
    if (ids.contains(absoluteId) || ids.contains(elementId)) {
    if (log.isDebugEnabled()) {
    @@ -190,8 +192,24 @@
    if(special){ element.encodeBegin(context); }
    +
    + // OVERRIDDEN CODE
    + // check for UIData, iterate through rows.
    + if (element instanceof UIData)
    Unknown macro: {+ UIData data = (UIData) element;+ + int i = 0;+ data.setRowIndex(i);+ while (data.isRowAvailable()) { + data.setRowIndex(i++); + encodeAjaxChild(context, element, currentPath, ids, + renderedAreas); + }+ data.setRowIndex(-1);+ }
    else { encodeAjaxChild(context, element, currentPath, ids, renderedAreas); + }
    if(special){ element.encodeEnd(context); }
    diff -u -w -r java/org/ajax4jsf/framework/renderer/AjaxRendererUtils.java
    javaPatched/org/ajax4jsf/framework/renderer/AjaxRendererUtils.java
      • java/org/ajax4jsf/framework/renderer/AjaxRendererUtils.java 2006-07-25
        13:43:48.000000000 +1000
        +++ javaPatched/org/ajax4jsf/framework/renderer/AjaxRendererUtils.java
        2006-07-26 16:06:11.578125000 +1000
        @@ -550,22 +550,26 @@
        throw new NullPointerException(Messages
        .getMessage(Messages.COMPONENT_NULL_ERROR_2));
  • StringBuffer idBuf = new StringBuffer();
    -
  • idBuf.append(component.getId());
    +// StringBuffer idBuf = new StringBuffer();
    +//
    +// idBuf.append(component.getId());
    +//
    +// UIComponent parent = component;
    +//
    +// while ((parent = parent.getParent()) != null)
    Unknown macro: {+// if (parent instanceof NamingContainer) { +// idBuf.insert(0, NamingContainer.SEPARATOR_CHAR); +// idBuf.insert(0, parent.getId()); +// }+// }

    +// idBuf.insert(0, NamingContainer.SEPARATOR_CHAR);
    +// log.debug(Messages.getMessage(Messages.CALCULATE_COMPONENT_ID_INFO,
    +// component.getId(), idBuf.toString()));
    +// return idBuf.toString();
  • UIComponent parent = component;
    + // OVERRIDEN CODE
    + return component.getClientId(FacesContext.getCurrentInstance());
  • while ((parent = parent.getParent()) != null) {
  • if (parent instanceof NamingContainer) { - idBuf.insert(0, NamingContainer.SEPARATOR_CHAR); - idBuf.insert(0, parent.getId()); - }
  • }
  • idBuf.insert(0, NamingContainer.SEPARATOR_CHAR);
  • log.debug(Messages.getMessage(Messages.CALCULATE_COMPONENT_ID_INFO,
  • component.getId(), idBuf.toString()));
  • return idBuf.toString();
    }

/**






Generated at Fri Apr 18 00:17:43 UTC 2014 using JIRA 4.0.2#472.