[jboss-user] [JBoss Seam] - Re: Ajax¤JSF wi th Seam

2006-12-14 Thread cayo
I've got problems with Seam and the actual 1.0.4 version of ajax4jsf (as it's 
bundeled in the 1.1.0 GA release of Seam). 
Tha Java Script console reports A4J is unknown. This seems to mean that the 
js lib of a4j cannot be found. The a4j commandButton then submits the whole 
form instead of the as rerendered marked components.
 
Has anyone made the same experience? 
Tomorrow i would be able to post the configs and the code.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3993979#3993979

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3993979
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Ajax¤JSF wi th Seam

2006-12-14 Thread [EMAIL PROTECTED]
Yes, this problem is known and fixed in Ajax4JSF 1.0.5, released just after 
Seam 1.1.0.GA went out. I've already upgraded CVS.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3993994#3993994

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3993994
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Ajax¤JSF wi th Seam

2006-12-07 Thread milesif
hi everybody,

I'm here again. I deployed the application as detailed in the booking example 
in seamCR1. I have the same problem of my previous post:

javax.el.PropertyNotFoundException: Bean: 
it.severn.data.UsersHome$$EnhancerByCGLIB$$47bd75f6, property: update
at 
com.sun.facelets.el.LegacyELContext$LegacyELResolver.getValue(LegacyELContext.java:146)
at com.sun.el.parser.AstValue.getValue(AstValue.java:117)

Can you help me??

Many Thanks Francesco

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3991949#3991949

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3991949
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Ajax¤JSF wi th Seam

2006-12-06 Thread milesif
Hi everybody,

I am using jboss-4.0.5 and jboss-seam-1.1.0.CR1.
I have tried to use ajax4jsf in an application generated by reverse-engeneering.
I have followed the instructions I read in paragraph 14.2. Configure Ajax4jsf 
of  JBoss Seam: Simplicity and Power Beyond Java EE 5.0:

1. I put the following xml in web.xml

filter
  | display-nameAjax4jsf Filter/display-name
  | filter-nameajax4jsf/filter-name
  | filter-class
  | org.ajax4jsf.Filter
  | /filter-class
  | /filter
  | filter-mapping
  | filter-nameajax4jsf/filter-name
  | servlet-nameFaces Servlet/servlet-name
  | dispatcherREQUEST/dispatcher
  | dispatcherFORWARD/dispatcher
  | dispatcherINCLUDE/dispatcher
  | /filter-mapping
  | context-param
  | param-name
  | org.ajax4jsf.VIEW_HANDLERS
  | /param-name
  | param-value
  | com.sun.facelets.FaceletViewHandler
  | /param-value
  | /context-param
  | 


2. In faces-config.xml I commented 

view-handler
  | com.sun.facelets.FaceletViewHandler
  | /view-handler
  | 


3. I put META-INF ajax4jsf.jar, oscache-2.3.2.jar, el-api.jar, el-ri.jar, 
jsf-facelets.jar in my-app.jar of my my-app.ear


Finally I have replaced

  h:commandButton id=update value=Save 
  |action=#{usersHome.update}
  |rendered=#{usersHome.managed}/
  | 
with

a4j:commandButton type=submit value=Save 
  | reRender=description
  | action=#{usersHome.update}
  | rendered=#{usersHome.managed} /  

in my .xhtml page.

I get the following error:

javax.el.PropertyNotFoundException: Bean: 
it.severn.data.UsersHome$$EnhancerByCGLIB$$54529d2b, property: update
at 
com.sun.facelets.el.LegacyELContext$LegacyELResolver.getValue(LegacyELContext.java:146)
at com.sun.el.parser.AstValue.getValue(AstValue.java:117)
at com.sun.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:192)
at com.sun.facelets.el.ELText$ELTextVariable.toString(ELText.java:174)

Notice that I checked my deployment many times and it conforms to the previous 
instructions and that #{usersHome.update} is not a property, but an action. 
A previous post (describing a very similar problem, but non explaining the 
solution) says that anonymous wrote : Facelets when not finding a tag library 
instead of putting up an ugly error message ingnores it and instead tries to 
evaluate the EL as a property access.
Does that means that Facelets do not find a4j tags? With seam tags everything 
is ok, of course.
Could anyone help me to find out where I am wrong ?

Thanks in advance Francesco




View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3991740#3991740

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3991740
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Ajax¤JSF wi th Seam

2006-12-06 Thread milesif
I found that the booking example in seam1.1  is using ajax4jsf.
I'll try that, before bothering you again.

Thanks Francesco

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3991757#3991757

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3991757
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Ajax¤JSF wi th Seam

2006-08-05 Thread armita
I tried the guid line in this thread, but faced an exception

  | 16:36:28,160 ERROR [PhaseListenerManager] Exception in PhaseListener 
RENDER_RESPONSE(6) beforePhase.
  | javax.faces.el.EvaluationException: Cannot get value for expression 
'#{campusList==null}'
  | at 
org.apache.myfaces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:402)
  | at 
javax.faces.component.UIComponentBase.isRendered(UIComponentBase.java:1076)
  | at 
org.ajax4jsf.framework.renderer.AjaxContainerRenderer.encodeAjaxChild(AjaxContainerRenderer.java:160)
  | at 
org.ajax4jsf.framework.renderer.AjaxContainerRenderer.encodeAjax(AjaxContainerRenderer.java:126)
  | at org.ajax4jsf.ajax.UIAjaxRegion.encodeAjax(UIAjaxRegion.java:224)
  | at 
org.ajax4jsf.framework.renderer.AjaxRenderPhaseListener.renderAjaxRegion(AjaxRenderPhaseListener.java:306)
  | at 
org.ajax4jsf.framework.renderer.AjaxRenderPhaseListener.processAjaxRender(AjaxRenderPhaseListener.java:252)
  | at 
org.ajax4jsf.framework.renderer.AjaxRenderPhaseListener.beforePhase(AjaxRenderPhaseListener.java:229)
  | at 
org.apache.myfaces.lifecycle.PhaseListenerManager.informPhaseListenersBefore(PhaseListenerManager.java:70)
  | at 
org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:373)
  | at javax.faces.webapp.FacesServlet.service(FacesServlet.java:138)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
  | at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
  | at 
org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:144)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
  | at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
  | at 
org.jboss.seam.servlet.SeamExceptionFilter.doFilter(SeamExceptionFilter.java:45)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
  | 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:65)
  | at 
org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:226)
  | 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.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(Thread.java:595)
  | Caused by: java.lang.NullPointerException
  | at 
org.jboss.seam.contexts.PageContext.getCurrentReadableMap(PageContext.java:62)
  | at org.jboss.seam.contexts.PageContext.get(PageContext.java:52)
  | at 
org.jboss.seam.contexts.Contexts.lookupInStatefulContexts(Contexts.java:125)
  | at org.jboss.seam.Component.getInstance(Component.java:1245)
  | at 

[jboss-user] [JBoss Seam] - Re: Ajax¤JSF wi th Seam

2006-07-24 Thread gus888
That is great! Thank you so much, Thomas.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3958063#3958063

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3958063
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Ajax¤JSF wi th Seam

2006-07-17 Thread [EMAIL PROTECTED]
Yes, i proposed this as the simplest workaround.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3958388#3958388

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3958388
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Ajax¤JSF wi th Seam

2006-07-14 Thread [EMAIL PROTECTED]
I got it to work yesterday, and will provide an example in the codebase 
probably based on the booking store demo.

The simplest way is to put facelets and ajax4jsf libraries into 
server/default/deploy/jbossweb-xxx/jsf-libs
(Of course remove them from your war file)

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3957974#3957974

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3957974
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Ajax¤JSF wi th Seam

2006-07-14 Thread [EMAIL PROTECTED]
anonymous wrote : The simplest way is to put facelets and ajax4jsf libraries 
into server/default/deploy/jbossweb-xxx/jsf-libs
  | (Of course remove them from your war file)

Unfortunately this approach is not good enough for the Seam examples packaging. 
All dependencies must go into the EAR.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3958147#3958147

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3958147
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Ajax¤JSF wi th Seam

2006-07-13 Thread tobad
Are you using Embedded Tomcat or JBoss?
I'm using Tomcat with the Embedded Container and it works very well.

This is my config

Web.xml (including tomahawk code)
Notice that I'am using the nekohtml based FastFilter for Ajax4Jsf
This means that you need to download NekoHtml from 
http://java-source.net/open-source/html-parsers/nekohtml
and probably Xerces


  | ?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-classorg.jboss.seam.servlet.SeamListener/listener-class
  | /listener
  | 
  | !-- JSF --
  | context-param
  | param-namejavax.faces.STATE_SAVING_METHOD/param-name
  | param-valueclient/param-value
  | /context-param
  | 
  | context-param
  | param-namejavax.faces.DEFAULT_SUFFIX/param-name
  | param-value.html/param-value
  | /context-param
  | 
  | context-param
  | param-namefacelets.DEVELOPMENT/param-name
  | param-valuetrue/param-value
  | /context-param
  | 
  | context-param
  | param-namefacelets.LIBRARIES/param-name
  | param-value/WEB-INF/tomahawk.taglib.xml/param-value
  | /context-param  
  |   
  | context-param
  | 
param-nameorg.apache.myfaces.NUMBER_OF_VIEWS_IN_SESSION/param-name
  | param-value50/param-value
  | /context-param
  | 
  | servlet
  | servlet-nameFaces Servlet/servlet-name
  | servlet-classjavax.faces.webapp.FacesServlet/servlet-class
  | load-on-startup1/load-on-startup
  | /servlet
  | 
  |  !-- Faces Servlet Mapping --
  | 
  | servlet-mapping
  | servlet-nameFaces Servlet/servlet-name
  | url-pattern*.jsf/url-pattern
  | /servlet-mapping
  | 
  | servlet
  | servlet-nameSeam Remoting/servlet-name
  | 
servlet-classorg.jboss.seam.remoting.SeamRemotingServlet/servlet-class
  | /servlet
  | 
  | servlet-mapping
  | servlet-nameSeam Remoting/servlet-name
  | url-pattern/seam/remoting/*/url-pattern
  | /servlet-mapping   
  | 
  | !-- Seam filters --
  | !-- Ajax4JSF Initial parameters --
  | filter
  | display-nameAjax4jsf Filter/display-name
  | filter-nameajax4jsf/filter-name
  | filter-classorg.ajax4jsf.FastFilter/filter-class
  | /filter
  | filter-mapping
  | filter-nameajax4jsf/filter-name
  | url-pattern*.jsf/url-pattern
  | /filter-mapping
  | filter-mapping
  | filter-nameajax4jsf/filter-name
  | url-pattern/faces/*/url-pattern
  | /filter-mapping
  | 
  | context-param
  | param-nameorg.ajax4jsf.VIEW_HANDLERS/param-name
  | param-valuecom.sun.facelets.FaceletViewHandler/param-value
  | /context-param   
  |  context-param
  | param-nameorg.ajax4jsf.Filter/param-name
  | param-valueorg.ajax4jsf.FastFilter/param-value
  | /context-param   
  | 
  | 
  | 
  | !-- Propagate conversations across redirects --
  | filter
  | filter-nameSeam Redirect Filter/filter-name
  | 
filter-classorg.jboss.seam.servlet.SeamRedirectFilter/filter-class
  | /filter
  | 
  | filter-mapping
  | filter-nameSeam Redirect Filter/filter-name
  | url-pattern*.jsf/url-pattern
  | /filter-mapping
  | 
  | filter
  | filter-nameSeam Servlet Filter/filter-name
  | 
filter-classorg.jboss.seam.servlet.SeamServletFilter/filter-class
  | /filter  
  |   
  | filter-mapping
  | filter-nameSeam Servlet Filter/filter-name
  | url-pattern/servlets/*/url-pattern
  | /filter-mapping  
  | 
  | !-- MyFaces --
  | listener
  | 
listener-classorg.apache.myfaces.webapp.StartupServletContextListener/listener-class
  | /listener
  | 
  | filter
  | filter-nameExtensionsFilter/filter-name
  | filter-class
  | org.apache.myfaces.component.html.util.ExtensionsFilter
  | /filter-class
  | init-param
  | param-nameuploadMaxFileSize/param-name
  | param-value10m/param-value
  | /init-param
  | init-param
  | param-nameuploadThresholdSize/param-name
  | param-value100k/param-value
  | /init-param
  | /filter
  | filter-mapping
  | filter-nameExtensionsFilter/filter-name
  | servlet-nameFaces Servlet/servlet-name
  | /filter-mapping   
  | filter-mapping
  | filter-nameExtensionsFilter/filter-name
  | url-pattern*.jsf/url-pattern
  | /filter-mapping
  | filter-mapping
  | filter-nameExtensionsFilter/filter-name
  |

[jboss-user] [JBoss Seam] - Re: Ajax¤JSF wi th Seam

2006-07-13 Thread gus888
I got a feedback from the Ajax4jsf developer as follows for the exception when 
using Ajax4jsf + Seam, maybe it is helpful for Seam integration with Ajax4jsf 
in future:
anonymous wrote : Date: Thu, 13 Jul 2006 10:29:56 +0400
  | From: Alexander Smirnov [EMAIL PROTECTED]
  | Content-Type: text/plain; charset=ISO-8859-1; format=flowed
  | Subject: Cannot run ajax4jsf on Seam
  | 
  | 
  | It's problem from JBOSS ClassLoader configuration - see 
  | http://wiki.jboss.org/wiki/Wiki.jsp?page=ClassLoadingOverview .
  | We use apache commons-degetester for got web application configuration 
  | details,  and this message mean that class for store filter 
  | configuration can't be loaded by degitester. See Jboss wiki for possible 
  | workaroutd, I thing that You must turn web-app classloading from 
  | JBOSS-specific to JEE spec - see jboss-service.xml for embedded tomcat.
  | I will be made sample application and provide detail instructions.

The exception which I got is reposted again as below:
java.lang.ClassNotFoundException: No ClassLoaders found for: 
org.ajax4jsf.framework.util.config.FilterBean
  | at org.jboss.mx.loading.LoadMgr3.beginLoadTask(LoadMgr3.java:212)
  | at 
org.jboss.mx.loading.RepositoryClassLoader.loadClassImpl(RepositoryClassLoader.java:511)
  | at 
org.jboss.mx.loading.RepositoryClassLoader.loadClass(RepositoryClassLoader.java:405)
  | at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
  | at org.apache.commons.digester.ObjectCreateRule.begin(ObjectCreateRule.java 
:204)
  | ...
Thank you.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3957904#3957904

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3957904
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Ajax¤JSF wi th Seam

2006-07-12 Thread tobad
Hi Gavin
Sorry for not nullifiying this thread.
It turned out that Facelets when not finding a tag library instead of putting 
up an ugly error message ingnores it and instead tries to evaluate the EL as a 
property access.

Regarding Ajax4JSF it works pretty perfectly for me now and is very easy to use.

I have tried it within conversations and using DataModels etc and everything 
works as expected. I would check it out as it looks like it is very similar to 
the whole idea of Avatar for JSF

Regards
Tobias

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3957252#3957252

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3957252
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Ajax¤JSF wi th Seam

2006-07-12 Thread gus888
Hi TOBAD and Gavin,

I tried to use the ajax4jsf on JBoss Seam, but unfortunatly, I always got an 
exception when I run it on JBoss4.0.4.GA:
anonymous wrote : java.lang.ClassNotFoundException: No ClassLoaders found for: 
org.ajax4jsf.framework.util.config.FilterBean
  | at org.jboss.mx.loading.LoadMgr3.beginLoadTask(LoadMgr3.java:212)
  | at 
org.jboss.mx.loading.RepositoryClassLoader.loadClassImpl(RepositoryClassLoader.java:511)
  | at 
org.jboss.mx.loading.RepositoryClassLoader.loadClass(RepositoryClassLoader.java:405)
  | at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
  | at 
org.apache.commons.digester.ObjectCreateRule.begin(ObjectCreateRule.java :204)
  | ...
In my web.xml, I added the following codes: 
  |   !-- Ajax4JSF Initial parameters --
  |  filter
  | display-nameAjax4jsf Filter/display-name
  | filter-nameajax4jsf/filter-name
  | filter-classorg.ajax4jsf.Filter/filter-class
  |  /filter
  |  filter-mapping
  |filter-nameajax4jsf/filter-name
  |url-pattern/*/url-pattern
  |  /filter-mapping
  | 
I also added the ajax4jsf.jar and oscache-2.2.jar in WEB/lib/.

I really appreciate it if you can give me some guidance. Thank you in advance.

GUS

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3957602#3957602

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3957602
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user