|
From: dajevtic <do-...@jb...> - 2006-06-05 17:38:18
|
Exactly. Needless to say: It works out of the box ;-) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3949161#3949161 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3949161 |
|
From: dajevtic <do-...@jb...> - 2006-06-06 01:37:15
|
If you're not using the portal, then the extension listener will work perfectly. You don't need to include the .js files manually, because this will be done by DefaultAddResource :-) Regards View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3949116#3949116 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3949116 |
|
From: prenger <do-...@jb...> - 2006-06-06 01:54:56
|
WHoooHooo! It's working. Thanks a lot. By the way, I am not using the portal, my project is a usual myfaces web application with the jboss 4.0.3 server, but this configuration works there either. You really helped me a lot with this. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3949107#3949107 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3949107 |
|
From: prenger <do-...@jb...> - 2006-06-06 02:01:30
|
Hi. I would really appreciate if you can post the configuration. I'm trying to use the schedule component and hope that your solution can help me. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3948985#3948985 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3948985 |
|
From: prenger <do-...@jb...> - 2006-06-06 02:10:31
|
That's correct. I also do not have to edit the index.xhtml or the Faces Servlet section in the web.xml. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3949132#3949132 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3949132 |
|
From: dajevtic <do-...@jb...> - 2006-06-06 02:39:42
|
I have opened an issue with tomahawk myfaces team to make the MyFacesExtensionFilter work with portals, however I didn't want to wait.
Ok! here goes for the schedule :-)
First of all do a svn checkout of the newest myfaces sources and build. schedule has left the sandbox and has been moved into tomahawk!
Remove all files inside the deploy/jbossweb-tomcat55.sar/jsf-libs directory and copy the following jars into it (I'm not sure if all are needed, but that's the ones who are inside the generated war-file of myfaces):
antlr-2.7.2.jar
| commons-beanutils-1.7.0.jar
| commons-codec-1.3.jar
| commons-collections-3.1.jar
| commons-digester-1.6.jar
| commons-el-1.0.jar
| commons-fileupload-1.0.jar
| commons-lang-2.1.jar
| commons-logging-1.0.4.jar
| commons-validator-1.2.0.jar
| jstl-1.1.0.jar
| myfaces-api-1.1.4-SNAPSHOT.jar
| myfaces-impl-1.1.4-SNAPSHOT.jar
| oro-2.0.8.jar
| struts-1.2.8.jar
| tomahawk-1.1.4-SNAPSHOT.jar
| tomahawk-sandbox-1.1.4-SNAPSHOT.jar
| xalan-2.5.1.jar
| xml-apis-1.0.b2.jar
|
|
| Remove tomahawk.jar and tomahawk.tld from the portal-core.war file of the jboss portal.
|
| Change the deploy/jbossweb-tomcat55.sar/conf/web.xml inside jboss server to:
|
| <init-param>
| | <description>MyFaces tlds</description>
| | <param-name>tagLibJar0</param-name>
| | <param-value>jsf-libs/myfaces-impl-1.1.4-SNAPSHOT.jar</param-value>
| | </init-param>
| | <init-param>
| | <description>Sandbox tlds</description>
| | <param-name>tagLibJar1</param-name>
| | <param-value>jsf-libs/tomahawk-sandbox-1.1.4-SNAPSHOT.jar</param-value>
| | </init-param>
| | <init-param>
| | <description>Tomahawk tlds</description>
| | <param-name>tagLibJar2</param-name>
| | <param-value>jsf-libs/tomahawk-1.1.4-SNAPSHOT.jar</param-value>
| | </init-param>
| |
|
| As of now, jboss is running under the new myfaces version, rendering the management pages of the portal unusable.
|
| To fix this you have to:
| change the line
| org.apache.myfaces.tree2.CLIENT_SIDE_TOGGLE="#{false}" inside the index.xhtml to
| clientSideToggle="false"
|
| Then, surround any <h:commandLink> tag with a <h:form> tag where there is none (there are not too many). Now the management portlets work fine again.
|
|
| Here is a snippet of how your own web.xml file should look like (be sure to also update the web.xml inside the portal-core.war of jboss portal):
|
| <filter>
| | <filter-name>MyFacesExtensionsFilter</filter-name>
| | <filter-class>org.apache.myfaces.webapp.filter.ExtensionsFilter</filter-class>
| | <init-param>
| | <description>Set the size limit for uploaded files.
| | Format: 10 - 10 bytes
| | 10k - 10 KB
| | 10m - 10 MB
| | 1g - 1 GB</description>
| | <param-name>uploadMaxFileSize</param-name>
| | <param-value>100m</param-value>
| | </init-param>
| | <init-param>
| | <description>Set the threshold size - files
| | below this limit are stored in memory, files above
| | this limit are stored on disk.
| |
| | Format: 10 - 10 bytes
| | 10k - 10 KB
| | 10m - 10 MB
| | 1g - 1 GB</description>
| | <param-name>uploadThresholdSize</param-name>
| | <param-value>100k</param-value>
| | </init-param>
| | </filter>
| | <!-- extension mapping for serving page-independent resources (javascript, stylesheets, images, etc.) -->
| | <filter-mapping>
| | <filter-name>MyFacesExtensionsFilter</filter-name>
| | <url-pattern>/faces/myFacesExtensionResource/*</url-pattern>
| | </filter-mapping>
| |
| | <filter-mapping>
| | <filter-name>MyFacesExtensionsFilter</filter-name>
| | <url-pattern>*.jsf</url-pattern>
| | </filter-mapping>
| | <filter-mapping>
| | <filter-name>MyFacesExtensionsFilter</filter-name>
| | <url-pattern>/faces/*</url-pattern>
| | </filter-mapping>
| |
| | <context-param>
| | <param-name>org.apache.myfaces.ALLOW_JAVASCRIPT</param-name>
| | <param-value>true</param-value>
| | </context-param>
| | <context-param>
| | <param-name>org.apache.myfaces.DETECT_JAVASCRIPT</param-name>
| | <param-value>false</param-value>
| | </context-param>
| | <context-param>
| | <param-name>org.apache.myfaces.AUTO_SCROLL</param-name>
| | <param-value>true</param-value>
| | </context-param>
| | <context-param>
| | <param-name>org.apache.myfaces.PRETTY_HTML</param-name>
| | <param-value>true</param-value>
| | </context-param>
| | <context-param>
| | <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
| | <param-value>.xhtml</param-value>
| | </context-param>
| |
| | <context-param>
| | <param-name>org.apache.myfaces.CHECK_EXTENSIONS_FILTER</param-name>
| | <param-value>false</param-value>
| | </context-param>
| |
| | <!-- Must be commented out
| | <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>-->
| |
| |
|
| Now for the faces-config.xml:
| <managed-bean>
| | <managed-bean-name>ScheduleBrowserBean</managed-bean-name>
| | <managed-bean-class>de.livemediagroup.ecatalog.web.ScheduleBrowserBean</managed-bean-class>
| | <managed-bean-scope>request</managed-bean-scope>
| | </managed-bean>
|
| Your portlet.jsp should look something like this. I placed the .js files as a quick hack into the portal-core folder. I usually have them in a /static folder inside my apache web server:
| <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
| | <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
| | <%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t"%>
| |
| | <html>
| | <head>
| | <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
| | <title>Zeitplan</title>
| | <link rel='stylesheet' type='text/css'
| | href='/portal-core/style/default/schedule.css' />
| |
| | <script type="text/javascript"
| | src="/portal-core/style/default/schedule.js"><!--
| |
| | //--></script>
| | <script type="text/javascript"
| | src="/portal-core/style/default/alphaAPI.js"><!--
| |
| | //--></script>
| | <script type="text/javascript"
| | src="/portal-core/style/default/domLib.js"><!--
| |
| | //--></script>
| | <script type="text/javascript" src="/portal-core/style/default/domTT.js"><!--
| |
| | //--></script>
| | <script type="text/javascript"
| | src="/portal-core/style/default/fadomatic.js"><!--
| |
| | //--></script>
| |
| |
| | </head>
| | <body>
| |
| | <f:view>
| |
| | <h:form>
| |
| | <t:schedule value="#{ScheduleBrowserBean.model}" id="schedule" theme="default" tooltip="true" />
| |
| | </h:form>
| | </f:view>
| | </body>
| | </html>
| |
|
|
| One last small thing. If you are using facelets:
| Add <tag>
| | <tag-name>schedule</tag-name>
| | <component>
| | <component-type>org.apache.myfaces.Schedule</component-type>
| | <renderer-type>org.apache.myfaces.Schedule</renderer-type>
| | </component>
| | </tag>
| | to the tomahawl.taglib.xml
|
| I think that's all. Please try and let me know if it worked.
| Since I am using jboss-seam I hope I haven't forgotten anything.
| If I did, sorry, I'll post the remaining things if needed.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3949070#3949070
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3949070
|
|
From: dajevtic <do-...@jb...> - 2006-06-06 02:56:58
|
Hey! Disappointing news. The 1.1.2 release of tomahawk is not compatible, however when building the current svn-sources of 1.1.4-SNAPSHOT it DOES work. Even the tomahawk-sandbox examples work without modifications. I guess we'll have to wait for the myfaces team to bring out a stable release of its new tomahawk version :-( If someone doesn't care about using myfaces' new svn version of tomahawk, let me know, and I'll post the necessary configuration. Regards, dj View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3948948#3948948 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3948948 |
|
From: prenger <do-...@jb...> - 2006-06-15 18:48:21
|
Sorry, very disappointing news. I thought it's working, because the schedule is rendered correctly. But when I select an entry, I am kicked back to the start page of my application. I think this happens, because I forgot to include the (very important)
<filter-mapping>
<filter-name>MyFacesExtensionsFilter</filter-name>
<url-pattern>/faces/myFacesExtensionResource/*</url-pattern>
</filter-mapping>
in my web.xml
If I add this, I get a deployment exception. I hope you are still watching this topic, because this component is very essential for my application, which has to run on Jboss. I would be really great, if you could help me to get this working.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3951124#3951124
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3951124
|
|
From: dajevtic <do-...@jb...> - 2006-06-15 19:02:35
|
I might have an idea, why. Post the StackTrace and I'll take a look at it. Which version of myfaces are you using? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3951126#3951126 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3951126 |
|
From: prenger <do-...@jb...> - 2006-06-15 19:46:37
|
Here we go:
21:45:52,109 ERROR [MainDeployer] Could not start deployment: file:/C:/jboss-4.0
.3SP1/server/default/deploy/CRM.war
org.jboss.deployment.DeploymentException: URL file:/C:/jboss-4.0.3SP1/server/def
ault/tmp/deploy/tmp16986CRM-exp.war/ deployment failed
at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeployInternal(TomcatD
eployer.java:349)
at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeploy(TomcatDeployer.
java:88)
at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:357)
at org.jboss.web.WebModule.startModule(WebModule.java:68)
at org.jboss.web.WebModule.startService(WebModule.java:46)
at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanS
upport.java:274)
at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMB
eanSupport.java:230)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
er.java:141)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.
java:245)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceControl
ler.java:943)
at $Proxy0.start(Unknown Source)
at org.jboss.system.ServiceController.start(ServiceController.java:428)
at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
er.java:141)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.
java:245)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
at $Proxy30.start(Unknown Source)
at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:40
0)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
er.java:141)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractIntercept
or.java:118)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelM
BeanOperationInterceptor.java:127)
at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor
.java:80)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.
java:245)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
at $Proxy31.start(Unknown Source)
at org.jboss.deployment.MainDeployer.start(MainDeployer.java:989)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:790)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:753)
at sun.reflect.GeneratedMethodAccessor49.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
er.java:141)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractIntercept
or.java:118)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelM
BeanOperationInterceptor.java:127)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.
java:245)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
at $Proxy9.deploy(Unknown Source)
at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymen
tScanner.java:319)
at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentS
canner.java:489)
at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.
doScan(AbstractDeploymentScanner.java:192)
at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.
loop(AbstractDeploymentScanner.java:203)
at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.
run(AbstractDeploymentScanner.java:182)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3951133#3951133
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3951133
|
|
From: prenger <do-...@jb...> - 2006-06-15 19:47:37
|
Right now I'm using the 1.1.4 snapshot View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3951134#3951134 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3951134 |
|
From: dajevtic <do-...@jb...> - 2006-06-15 19:56:22
|
Have you followed all the steps under http://myfaces.apache.org/tomahawk/extensionsFilter.html ??? Note that the filter is a new package!!! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3951135#3951135 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3951135 |
|
From: prenger <do-...@jb...> - 2006-06-15 20:20:26
|
Yes, I did. Here's a part of my web.xml:
<filter-name>extensionsFilter</filter-name>
<filter-class>org.apache.myfaces.component.html.util.ExtensionsFilter</filter-class>
<init-param>
Set the size limit for uploaded files.
Format: 10 - 10 bytes
10k - 10 KB
10m - 10 MB
1g - 1 GB
<param-name>uploadMaxFileSize</param-name>
<param-value>100m</param-value>
</init-param>
<init-param>
Set the threshold size - files
below this limit are stored in memory, files above
this limit are stored on disk.
Format: 10 - 10 bytes
10k - 10 KB
10m - 10 MB
1g - 1 GB
<param-name>uploadThresholdSize</param-name>
<param-value>100k</param-value>
</init-param>
<init-param>
<param-name>uploadRepositoryPath</param-name>
<param-value>/temp</param-value>
</init-param>
<filter-mapping>
<filter-name>MyFacesExtensionsFilter</filter-name>
<servlet-name>FacesServlet</servlet-name>
</filter-mapping>
<filter-mapping>
<filter-name>MyFacesExtensionsFilter</filter-name>
<url-pattern>/faces/myFacesExtensionResource/*</url-pattern>
</filter-mapping>
I'm very sorry, but what do you mean with "filter is a new package" ? My guess is, that I should use org.apache.myfaces.component.html.util.ExtensionsFilter and not
org.apache.myfaces.webapp.filter.ExtensionsFilter. But I get the exception with both opportunities.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3951137#3951137
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3951137
|
|
From: dajevtic <do-...@jb...> - 2006-06-15 20:24:05
|
Not quite. In one part you are calling your filter extensionsFilter but you are referring to it as MyExtesionsFilter. They must be the same. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3951138#3951138 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3951138 |
|
From: dajevtic <do-...@jb...> - 2006-06-15 20:24:52
|
I think the ...html.util... package is the old one. Use the other one. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3951139#3951139 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3951139 |
|
From: prenger <do-...@jb...> - 2006-06-15 21:09:32
|
Ooops, my mistake. Too much despaired copy and paste. But the Problem remains. With the corrected web.xml (like this):
<filter-name>extensionsFilter</filter-name>
<filter-class>org.apache.myfaces.webapp.filter.ExtensionsFilter</filter-class>
<init-param>
Set the size limit for uploaded files.
Format: 10 - 10 bytes
10k - 10 KB
10m - 10 MB
1g - 1 GB
<param-name>uploadMaxFileSize</param-name>
<param-value>100m</param-value>
</init-param>
<init-param>
Set the threshold size - files
below this limit are stored in memory, files above
this limit are stored on disk.
Format: 10 - 10 bytes
10k - 10 KB
10m - 10 MB
1g - 1 GB
<param-name>uploadThresholdSize</param-name>
<param-value>100k</param-value>
</init-param>
<init-param>
<param-name>uploadRepositoryPath</param-name>
<param-value>/temp</param-value>
</init-param>
<filter-mapping>
<filter-name>extensionsFilter</filter-name>
<url-pattern>*.jsf</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>extensionsFilter</filter-name>
<url-pattern>/faces/*</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>extensionsFilter</filter-name>
<url-pattern>/faces/myFacesExtensionResource/*</url-pattern>
</filter-mapping>
I do not get the exception, but my application goes back to
/rootdir/# everytime I select a schedule entry.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3951143#3951143
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3951143
|
|
From: prenger <do-...@jb...> - 2006-06-15 21:10:18
|
By the way, I appreciate your help very much. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3951144#3951144 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3951144 |
|
From: dajevtic <do-...@jb...> - 2006-06-15 21:25:25
|
n/p I just hope, we get it straightened out. Are you using any kind of listeners (in web.xml or faces-config.xml)? please post your complete faces-config.xml and your web.xml View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3951147#3951147 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3951147 |
|
From: prenger <do-...@jb...> - 2006-06-15 21:46:17
|
My 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"> <context-param> State saving method: "client" or "server" (= default) See JSF Specification 2.5.2 <param-name>javax.faces.STATE_SAVING_METHOD</param-name> <param-value>client</param-value> </context-param> <context-param> <param-name>org.apache.myfaces.ALLOW_JAVASCRIPT</param-name> <param-value>true</param-value> </context-param> <context-param> <param-name>org.apache.myfaces.DETECT_JAVASCRIPT</param-name> <param-value>false</param-value> </context-param> <context-param> <param-name>org.apache.myfaces.PRETTY_HTML</param-name> <param-value>true</param-value> </context-param> <context-param> <param-name>org.apache.myfaces.CHECK_EXTENSIONS_FILTER</param-name> <param-value>false</param-value> </context-param> <context-param> <param-name>org.apache.myfaces.AUTO_SCROLL</param-name> <param-value>true</param-value> </context-param> <filter-name>extensionsFilter</filter-name> <filter-class>org.apache.myfaces.webapp.filter.ExtensionsFilter</filter-class> <init-param> <param-name>uploadMaxFileSize</param-name> <param-value>100m</param-value> </init-param> <init-param> <param-name>uploadThresholdSize</param-name> <param-value>100k</param-value> </init-param> <init-param> <param-name>uploadRepositoryPath</param-name> <param-value>/temp</param-value> </init-param> <filter-mapping> <filter-name>extensionsFilter</filter-name> <url-pattern>*.jsf</url-pattern> </filter-mapping> <filter-mapping> <filter-name>extensionsFilter</filter-name> <url-pattern>/faces/*</url-pattern> </filter-mapping> <filter-mapping> <filter-name>extensionsFilter</filter-name> <url-pattern>/faces/myFacesExtensionResource/*</url-pattern> </filter-mapping> <listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class> <servlet-name>Faces Servlet</servlet-name> <servlet-class>javax.faces.webapp.FacesServlet</servlet-class> <load-on-startup>1</load-on-startup> <servlet-mapping> <servlet-name>Faces Servlet</servlet-name> <url-pattern>*.jsf</url-pattern> </servlet-mapping> <welcome-file-list> <welcome-file>login.jsf</welcome-file> </welcome-file-list> </web-app> The faces-config.xml just contains managed beans and navigation rules. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3951149#3951149 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3951149 |
|
From: dajevtic <do-...@jb...> - 2006-06-15 21:51:50
|
do you get an exception if you remove the listener-class entry? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3951152#3951152 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3951152 |
|
From: dajevtic <do-...@jb...> - 2006-06-15 21:56:38
|
second, did you package any libs with your war file? (in /WEB-INF/lib) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3951154#3951154 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3951154 |
|
From: dajevtic <do-...@jb...> - 2006-06-15 22:00:27
|
FYI! This is the web.xml I use with the current svn version of myfaces, which works fine. Have you tried using server state saving?: | <?xml version="1.0" encoding="UTF-8"?> | <web-app 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" version="2.4"> | <description>debug web.xml</description> | <context-param> | <description>Comma separated list of URIs of (additional) faces config files. | (e.g. /WEB-INF/my-config.xml) | See JSF 1.0 PRD2, 10.3.2 | Attention: You do not need to put /WEB-INF/faces-config.xml in here. | </description> | <param-name>javax.faces.CONFIG_FILES</param-name> | <param-value>/WEB-INF/examples-config.xml</param-value> | </context-param> | <context-param> | <description>State saving method: "client" or "server" (= default) | See JSF Specification 2.5.3</description> | <param-name>javax.faces.STATE_SAVING_METHOD</param-name> | <param-value>server</param-value> | </context-param> | <context-param> | <description>Only applicable if state saving method is "server" (= default). | Defines the amount (default = 20) of the latest views are stored in session.</description> | <param-name>org.apache.myfaces.NUMBER_OF_VIEWS_IN_SESSION</param-name> | <param-value>20</param-value> | </context-param> | <context-param> | <description>Only applicable if state saving method is "server" (= default). | If true (default) the state will be serialized to a byte stream before it | is written to the session. | If false the state will not be serialized to a byte stream.</description> | <param-name>org.apache.myfaces.SERIALIZE_STATE_IN_SESSION</param-name> | <param-value>true</param-value> | </context-param> | <context-param> | <description>Only applicable if state saving method is "server" (= default) and if | org.apache.myfaces.SERIALIZE_STATE_IN_SESSION is true (= default) | If true (default) the serialized state will be compressed before it | is written to the session. If false the state will not be compressed.</description> | <param-name>org.apache.myfaces.COMPRESS_STATE_IN_SESSION</param-name> | <param-value>true</param-value> | </context-param> | <context-param> | <description>This parameter tells MyFaces if javascript code should be allowed in the | rendered HTML output. | If javascript is allowed, command_link anchors will have javascript code | that submits the corresponding form. | If javascript is not allowed, the state saving info and nested parameters | will be added as url parameters. | Default: "true"</description> | <param-name>org.apache.myfaces.ALLOW_JAVASCRIPT</param-name> | <param-value>true</param-value> | </context-param> | <context-param> | <param-name>org.apache.myfaces.DETECT_JAVASCRIPT</param-name> | <param-value>false</param-value> | </context-param> | <context-param> | <description>If true, rendered HTML code will be formatted, so that it is "human readable". | i.e. additional line separators and whitespace will be written, that do not | influence the HTML code. | Default: "true"</description> | <param-name>org.apache.myfaces.PRETTY_HTML</param-name> | <param-value>true</param-value> | </context-param> | <context-param> | <description>If true, a javascript function will be rendered that is able to restore the | former vertical scroll on every request. Convenient feature if you have pages | with long lists and you do not want the browser page to always jump to the top | if you trigger a link or button action that stays on the same page. | Default: "false"</description> | <param-name>org.apache.myfaces.AUTO_SCROLL</param-name> | <param-value>true</param-value> | </context-param> | | <context-param> | <description> | Validate managed beans and navigation rules. | </description> | <param-name>org.apache.myfaces.validate</param-name> | <param-value>true</param-value> | </context-param> | | <!-- | <context-param> | <description>A class implementing the | org.apache.myfaces.shared.renderkit.html.util.AddResource | interface. It is responsible to | place scripts and css on the right position in your HTML document. | Default: "org.apache.myfaces.shared.renderkit.html.util.DefaultAddResource"</description> | <param-name>org.apache.myfaces.ADD_RESOURCE_CLASS</param-name> | <param-value>org.apache.myfaces.component.html.util.StreamingAddResource</param-value> | </context-param> | --> | | <filter> | <filter-name>extensionsFilter</filter-name> | <filter-class>org.apache.myfaces.webapp.filter.ExtensionsFilter</filter-class> | <init-param> | <description>Set the size limit for uploaded files. | Format: 10 - 10 bytes | 10k - 10 KB | 10m - 10 MB | 1g - 1 GB</description> | <param-name>uploadMaxFileSize</param-name> | <param-value>100m</param-value> | </init-param> | <init-param> | <description>Set the threshold size - files | below this limit are stored in memory, files above | this limit are stored on disk. | | Format: 10 - 10 bytes | 10k - 10 KB | 10m - 10 MB | 1g - 1 GB</description> | <param-name>uploadThresholdSize</param-name> | <param-value>100k</param-value> | </init-param> | </filter> | <filter-mapping> | <filter-name>extensionsFilter</filter-name> | <url-pattern>*.jsf</url-pattern> | </filter-mapping> | <filter-mapping> | <filter-name>extensionsFilter</filter-name> | <url-pattern>/faces/*</url-pattern> | </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> | | <welcome-file-list> | <welcome-file>index.jsp</welcome-file> | <welcome-file>index.html</welcome-file> | </welcome-file-list> | <error-page> | <error-code>500</error-code> | <location>/error.jsp</location> | </error-page> | </web-app> | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3951155#3951155 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3951155 |
|
From: prenger <do-...@jb...> - 2006-06-16 08:04:28
|
I get no exception when I remove the listener entry. And I have no jars in the lib directory. I changed my web.xml to your settings, but that does not solve the problem. Which examples are you using? The ones for version 1.1.1 or newer? To specify the problem, this is, what is rendered for the schedule entry:
<a onmouseover="return makeTrue(domTT_activate(this, event, 'caption', 'Test', 'content', '<i></i><br/>Hallo?', 'trail', true));" href="#" onmouseup="fireEntrySelected('_idJsp2', '_idJsp2:schedule1', 'null');" class="entry" style="position: absolute; height: 365px; top: 74px; left: 0.0%; width: 99.5%; padding: 0px; overflow: hidden; border-width: 1.0px; border-style:solid;">Test
If I click on the entry, the function "fireEntrySelected" is called, which redirects to "/Appdir/#" and does not stay on the actual page. I also tried to place the schedule in a sepparated form. Doesn't work.
Have you tried to select an entry with your solution? Does it work properly?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3951247#3951247
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3951247
|
|
From: prenger <do-...@jb...> - 2006-06-16 08:08:02
|
Sorry, I forgot to disable html in my post. This is (again) waht is rendered for the schedule entry:
<a onmouseover="return makeTrue(domTT_activate(this, event, 'caption', 'Test', 'content', '<i></i><br/>Hallo?', 'trail', true));" href="#" onmouseup="fireEntrySelected('_idJsp2', '_idJsp2:schedule1', 'null');" class="entry" style="position: absolute; height: 365px; top: 74px; left: 0.0%; width: 99.5%; padding: 0px; overflow: hidden; border-width: 1.0px; border-style:solid;">Test
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3951248#3951248
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3951248
|
|
From: prenger <do-...@jb...> - 2006-06-16 08:11:56
|
Sorry, somehow I can't deactivate html, but I hope you get the point. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3951250#3951250 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3951250 |