Right, that is the use case for the most apps. JSF-SPRING is only interesting, when you *really* need spring beans to have jsf scope (spring 2.0 has that build-in too).
-Matthias On 8/21/06, Frank Russo <[EMAIL PROTECTED]> wrote:
That's what I use. It works perfectly... Frank Russo Senior Developer FX Alliance, LLC ________________________________ From: Cagatay Civici [mailto:[EMAIL PROTECTED] Sent: Monday, August 21, 2006 10:44 AM To: MyFaces Discussion Subject: Re: [SPAM] compatibility of jsf-spring provided by de.mindmatters with jars provided by jenia Why not try the DelegatingVariableResolver which is already shipped built-in with Spring. It's simple and no third party "re-inventing the wheel" library is needed. Cagatay On 8/21/06, nimisha sharma <[EMAIL PROTECTED]> wrote: > > no takers for this one?? :( > > > > On 8/18/06, nimisha sharma <[EMAIL PROTECTED] > wrote: > > > > > > I actually have no clue about using shale. Will check that out too.. cud u give me some pointers regd that? > > I have jsf-spring 3.0.0RC2 from sourceforge( that is whr the spingframework site directs you to). Do you have any facility in your application that has checkboxes in a datatable? I mean i expected jsf to provide that kind of component.. if not, i thought myfaces wud be having something like that... sad that i cudnt find it.. > > So i went to Jenia where i got these 2 jar files: jenia-dataTools and jenia-commons. What they do here is assign a value to the checkboxes so that we can have the selected data in our bean. If you want to check out these jars, you can get them at: > > http://www.jenia.org/jsp/home.jsf >> family>> data tools.. and a working example from : > > http://www.javaworld.com/javaworld/jw-07-2006/jw-0731-myfaces.html > > I did get my code working with these jars just fine. but as soon as i put these jars with the jsf-spring code, it shoots the error given in my previous mail which does mention something like: > > > > > > > > > > > > 2006-08-17T16:59:50.039-0400|SEVERE|sun-appserver-pe8.2|javax.enterprise.system.container.web|_ThreadID=10;|WebModule[/JSF_Spring]Exception sending context initialized event to listener instance of class de.mindmatters.faces.spring.context.ContextLoaderListener > > > > org.springframework.beans.factory.BeanDefinitionStoreException > > > > > > Do i need to modify the ContextLoaderListener somehow? Need to get this done!! > > Thanks a lot for showing interest in this.. > > > > Regards, > > > > Nimisha. > > > > > > > > > > > > On 8/18/06, Yee CN <[EMAIL PROTECTED]> wrote: > > > > > > > > > > > > > > > > > > Shale also provides a jsf-spring bridge. It is relatively easy to setup. Maybe you should give it a try? > > > > > > Which version of jsf-spring are you using? I have been using jsf-spring from de.mindmatters for about a year without problems. Please report your findings as I would like to know whether there is any gotcha hidden under the surface. > > > > > > > > > > > > Regards, > > > > > > Yee > > > > > > > > > > > > ________________________________ > > > > > > From: nimisha sharma [mailto: [EMAIL PROTECTED] > > > Sent: Friday, August 18, 2006 9:18 PM > > > To: MyFaces Discussion > > > Subject: [SPAM] compatibility of jsf-spring provided by de.mindmatters with jars provided by jenia > > > Importance: Low > > > > > > > > > > > > > > > > > > Hi, > > > > > > > > > > > > > > > > > > I just cannot figure out what is it that is conflicting between these two jars. coz if i use the jenia files without jsf-spring jar, it works fine and vice versa.. but i have to use both of them.. > > > > > > > > > has anyone worked wih jsf-spring and also displaying checkboxes that the end user can save the values.. > > > > > > > > > > > > > > > > > > wud really appreciate any comments and help on this. > > > > > > > > > > > > > > > > > > Thanks, > > > > > > > > > Nimisha. > > > > > > > > > > > > > > > On 8/17/06, nimisha sharma < [EMAIL PROTECTED]> wrote: > > > > > > > > > > > > Hi, > > > > > > > > > > > > > > > > > > I am using jsf with spring. and in my screen, i need a datatable with checkboxes where the user can update some data. > > > > > > > > > For this, i got to know that i can use the jars provided by jenia. Somehow, when i try to deploy my app, it gives me the following exception: > > > > > > > > > > > > > > > > > > [#|2006-08-17T16:59:50.029-0400|SEVERE|sun-appserver-pe8.2|de.mindmatters.faces.spring.context.ContextLoader|_ThreadID=10;|Context initialization failed > > > > > > org.springframework.beans.factory.BeanDefinitionStoreException > > > > > > : IOException parsing XML document from URL [jar:file:/C:/Sun/AppServer/domains/domain1/lib/ext/jenia4faces-dataTools_1.2.jar!/META-INF/faces-config.xml]; nested exception is java.io.FileNotFoundException : C:\Sun\AppServer\bin\jenia-dataTools-config.xml (The system cannot find the file specified) > > > > > > java.io.FileNotFoundException > > > > > > : C:\Sun\AppServer\bin\jenia-dataTools-config.xml (The system cannot find the file specified) > > > > > > at java.io.FileInputStream.open( > > > > > > Native Method) > > > > > > at java.io.FileInputStream.<init>( > > > > > > FileInputStream.java:106) > > > > > > at java.io.FileInputStream.<init>( > > > > > > FileInputStream.java:66) > > > > > > at sun.net.www.protocol.file.FileURLConnection.connect( > > > > > > FileURLConnection.java:70) > > > > > > at sun.net.www.protocol.file.FileURLConnection.getInputStream( > > > > > > FileURLConnection.java:161) > > > > > > at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrentEntity( > > > > > > XMLEntityManager.java:973) > > > > > > at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.startEntity( > > > > > > XMLEntityManager.java:905) > > > > > > at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.startEntity( > > > > > > XMLEntityManager.java:843) > > > > > > at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEntityReference( > > > > > > XMLDocumentFragmentScannerImpl.java:1334 ) > > > > > > at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch( > > > > > > XMLDocumentFragmentScannerImpl.java:1756 ) > > > > > > at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument( > > > > > > XMLDocumentFragmentScannerImpl.java:368 ) > > > > > > at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse( > > > > > > XML11Configuration.java:834) > > > > > > at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse( > > > > > > XML11Configuration.java:764) > > > > > > at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse( > > > > > > XMLParser.java:148) > > > > > > at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse( > > > > > > DOMParser.java:250) > > > > > > at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse( > > > > > > DocumentBuilderImpl.java:292) > > > > > > at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions( > > > > > > XmlBeanDefinitionReader.java:222 ) > > > > > > at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions( > > > > > > XmlBeanDefinitionReader.java:173 ) > > > > > > at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions( > > > > > > XmlBeanDefinitionReader.java:148 ) > > > > > > at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions( > > > > > > AbstractBeanDefinitionReader.java:126 ) > > > > > > at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions( > > > > > > AbstractBeanDefinitionReader.java:142 ) > > > > > > at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions( > > > > > > XmlWebApplicationContext.java:126 ) > > > > > > at de.mindmatters.faces.spring.context.support.DefaultFacesWebApplicationContext.loadBeanDefinitions( > > > > > > DefaultFacesWebApplicationContext.java:139 ) > > > > > > at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions( > > > > > > XmlWebApplicationContext.java:94 ) > > > > > > at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory( > > > > > > AbstractRefreshableApplicationContext.java:89 ) > > > > > > at org.springframework.context.support.AbstractApplicationContext.refresh( > > > > > > AbstractApplicationContext.java:269 ) > > > > > > at org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh( > > > > > > AbstractRefreshableWebApplicationContext.java:134 ) > > > > > > at de.mindmatters.faces.spring.context.ContextLoader.createWebApplicationContext( > > > > > > ContextLoader.java:247) > > > > > > at de.mindmatters.faces.spring.AbstractContextLoader.initWebApplicationContext( > > > > > > AbstractContextLoader.java:80) > > > > > > at de.mindmatters.faces.spring.AbstractContextLoaderListener.contextInitialized( > > > > > > AbstractContextLoaderListener.java:52 ) > > > > > > at org.apache.catalina.core.StandardContext.listenerStart( > > > > > > StandardContext.java:4010) > > > > > > at org.apache.catalina.core.StandardContext.start( > > > > > > StandardContext.java:4522) > > > > > > at com.sun.enterprise.web.WebModule.start( > > > > > > WebModule.java:241) > > > > > > at org.apache.catalina.core.ContainerBase.start( > > > > > > ContainerBase.java:1086) > > > > > > at org.apache.catalina.core.StandardHost.start( > > > > > > StandardHost.java:847) > > > > > > at org.apache.catalina.core.ContainerBase.start( > > > > > > ContainerBase.java:1086) > > > > > > at org.apache.catalina.core.StandardEngine.start( > > > > > > StandardEngine.java:483) > > > > > > at org.apache.catalina.startup.Embedded.start( > > > > > > Embedded.java:894) > > > > > > at com.sun.enterprise.web.WebContainer.start( > > > > > > WebContainer.java:741) > > > > > > at com.sun.enterprise.web.PEWebContainer.startInstance( > > > > > > PEWebContainer.java:515) > > > > > > at com.sun.enterprise.web.PEWebContainerLifecycle.onStartup( > > > > > > PEWebContainerLifecycle.java:54 ) > > > > > > at com.sun.enterprise.server.ApplicationServer.onStartup( > > > > > > ApplicationServer.java:300) > > > > > > at com.sun.enterprise.server.PEMain.run( > > > > > > PEMain.java:294) > > > > > > at com.sun.enterprise.server.PEMain.main( > > > > > > PEMain.java:220) > > > > > > |#] > > > > > > [#| > > > > > > 2006-08-17T16:59:50.039-0400|SEVERE|sun-appserver-pe8.2|javax.enterprise.system.container.web|_ThreadID=10;|WebModule[/JSF_Spring]Exception sending context initialized event to listener instance of class de.mindmatters.faces.spring.context.ContextLoaderListener > > > > > > org.springframework.beans.factory.BeanDefinitionStoreException > > > > > > : IOException parsing XML document from URL [jar:file:/C:/Sun/AppServer/domains/domain1/lib/ext/jenia4faces-dataTools_1.2.jar!/META-INF/faces-config.xml]; nested exception is java.io.FileNotFoundException : C:\Sun\AppServer\bin\jenia-dataTools-config.xml (The system cannot find the file specified) > > > > > > java.io.FileNotFoundException > > > > > > : C:\Sun\AppServer\bin\jenia-dataTools-config.xml (The system cannot find the file specified) > > > > > > at java.io.FileInputStream.open( > > > > > > Native Method) > > > > > > at java.io.FileInputStream.<init>( > > > > > > FileInputStream.java:106) > > > > > > at java.io.FileInputStream.<init>( > > > > > > FileInputStream.java:66) > > > > > > at sun.net.www.protocol.file.FileURLConnection.connect( > > > > > > FileURLConnection.java:70) > > > > > > at sun.net.www.protocol.file.FileURLConnection.getInputStream( > > > > > > FileURLConnection.java:161) > > > > > > at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrentEntity( > > > > > > XMLEntityManager.java:973) > > > > > > at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.startEntity( > > > > > > XMLEntityManager.java:905) > > > > > > at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.startEntity( > > > > > > XMLEntityManager.java:843) > > > > > > at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEntityReference( > > > > > > XMLDocumentFragmentScannerImpl.java:1334 ) > > > > > > at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch( > > > > > > XMLDocumentFragmentScannerImpl.java:1756 ) > > > > > > at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument( > > > > > > XMLDocumentFragmentScannerImpl.java:368 ) > > > > > > at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse( > > > > > > XML11Configuration.java:834) > > > > > > at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse( > > > > > > XML11Configuration.java:764) > > > > > > at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse( > > > > > > XMLParser.java:148) > > > > > > at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse( > > > > > > DOMParser.java:250) > > > > > > at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse( > > > > > > DocumentBuilderImpl.java:292) > > > > > > at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions( > > > > > > XmlBeanDefinitionReader.java:222 ) > > > > > > at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions( > > > > > > XmlBeanDefinitionReader.java:173 ) > > > > > > at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions( > > > > > > XmlBeanDefinitionReader.java:148 ) > > > > > > at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions( > > > > > > AbstractBeanDefinitionReader.java:126 ) > > > > > > at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions( > > > > > > AbstractBeanDefinitionReader.java:142 ) > > > > > > at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions( > > > > > > XmlWebApplicationContext.java:126 ) > > > > > > at de.mindmatters.faces.spring.context.support.DefaultFacesWebApplicationContext.loadBeanDefinitions( > > > > > > DefaultFacesWebApplicationContext.java:139 ) > > > > > > at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions( > > > > > > XmlWebApplicationContext.java:94 ) > > > > > > at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory( > > > > > > AbstractRefreshableApplicationContext.java:89 ) > > > > > > at org.springframework.context.support.AbstractApplicationContext.refresh( > > > > > > AbstractApplicationContext.java:269 ) > > > > > > at org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh( > > > > > > AbstractRefreshableWebApplicationContext.java:134 ) > > > > > > at de.mindmatters.faces.spring.context.ContextLoader.createWebApplicationContext( > > > > > > ContextLoader.java:247) > > > > > > at de.mindmatters.faces.spring.AbstractContextLoader.initWebApplicationContext( > > > > > > AbstractContextLoader.java:80) > > > > > > at de.mindmatters.faces.spring.AbstractContextLoaderListener.contextInitialized( > > > > > > AbstractContextLoaderListener.java:52 ) > > > > > > at org.apache.catalina.core.StandardContext.listenerStart( > > > > > > StandardContext.java:4010) > > > > > > at org.apache.catalina.core.StandardContext.start( > > > > > > StandardContext.java:4522) > > > > > > at com.sun.enterprise.web.WebModule.start( > > > > > > WebModule.java:241) > > > > > > at org.apache.catalina.core.ContainerBase.start( > > > > > > ContainerBase.java:1086) > > > > > > at org.apache.catalina.core.StandardHost.start( > > > > > > StandardHost.java:847) > > > > > > at org.apache.catalina.core.ContainerBase.start( > > > > > > ContainerBase.java:1086) > > > > > > at org.apache.catalina.core.StandardEngine.start( > > > > > > StandardEngine.java:483) > > > > > > at org.apache.catalina.startup.Embedded.start( > > > > > > Embedded.java:894) > > > > > > at com.sun.enterprise.web.WebContainer.start( > > > > > > WebContainer.java:741) > > > > > > at com.sun.enterprise.web.PEWebContainer.startInstance( > > > > > > PEWebContainer.java:515) > > > > > > at com.sun.enterprise.web.PEWebContainerLifecycle.onStartup( > > > > > > PEWebContainerLifecycle.java:54 ) > > > > > > at com.sun.enterprise.server.ApplicationServer.onStartup( > > > > > > ApplicationServer.java:300) > > > > > > at com.sun.enterprise.server.PEMain.run( > > > > > > PEMain.java:294) > > > > > > at com.sun.enterprise.server.PEMain.main( > > > > > > PEMain.java:220) > > > > > > I tried using the source from these jar files.. but in that case, it fails to compile. The error in this case is: > > > > > > Diagnosis: Compilation failure > > > > > > FATAL ERROR: Error executing Maven for a project > > > > > > org.apache.maven.BuildFailureException: Compilation failure > > > > > > at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java :555) > > > > > > at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java :475) > > > > > > at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java :454) > > > > > > at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures (DefaultLifecycleExecutor.java :306) > > > > > > at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java :273) > > > > > > at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java :140) > > > > > > at org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java:441) > > > > > > at org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java:382) > > > > > > at org.maven.ide.eclipse.Maven2Executor.main(Maven2Executor.java:68) > > > > > > Caused by: org.apache.maven.plugin.CompilationFailureException: Compilation failure > > > > > > at org.apache.maven.plugin.AbstractCompilerMojo.execute(AbstractCompilerMojo.java :505) > > > > > > at org.apache.maven.plugin.CompilerMojo.execute(CompilerMojo.java:111) > > > > > > at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java :412) > > > > > > at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java :534) > > > > > > Any help is greatly appreciated.. > > > > > > Thanks, > > > > > > Nimisha. > > > > > > > > > > > > > > >
-- Matthias Wessendorf further stuff: blog: http://jroller.com/page/mwessendorf mail: mwessendorf-at-gmail-dot-com

