new web app with jsf and shale
Hi, I am just about to start new web project and I would like to use JSF together with shale. Just couple of questions. How stable are nightly builds? I suppose we will developed new project for a while before it goes live so would you recommend to use nightly builds because new version will be out soon or should I stick with latest release rather? Does it have any advantage to use nightly builds over the latest release for new projects? We would like to use persistent connection between client and server (Jetty Continuation) and sent updates from server to client rather than client asking by request all the time probably by using drw Ajax toolkit (Ajax continuations). Can you see any possible problems to use this technology together with JSF or shale? Thanks for any thoughts. Pavel www.intrade.com The Prediction Market ABOUT US: Intrade is The Prediction Market where members can buy and sell shares in financial, political, weather and other important subjects. You can trade using real US$ and you can learn to trade using virtual Intrade I$. Intrade and the predictive information generated by our members have been featured on CNBC, CNN, Bloomberg, Fox, Fortune others. Becoming a member of Intrade gives you profit opportunity and access to the wisdom of a crowd of many thousands of people from over 120 countries. Intrade News is available on RSS at http://www.intrade.com/news/newsRss.xml CONFIDENTIALITY DISCLAIMER: The information within this email is confidential and may be privileged. It is intended solely for party to which it is addressed. Please notify us immediately if you received this mail in error by returning it to the sender and delete this copy from your system. You should also notify us at +353-1-6200 300.
RE: shale 1.0.4 and tiles
Hi , I am trying to build it with newer tiles version but i am getting error. That class was moved to another package. Nightly shale is using same old tiles as release 1.0.4. Any advice what i can do with this? Is it possible to use shale with new tiles at all? SEVERE: Exception sending context initialized event to listener instance of class org.apache.myfaces.webapp.StartupServletContextListener java.lang.NoClassDefFoundError: org/apache/tiles/DefinitionsFactoryException at java.lang.Class.getDeclaredConstructors0(Native Method) at java.lang.Class.privateGetDeclaredConstructors(Class.java:2389) at java.lang.Class.getConstructor0(Class.java:2699) at java.lang.Class.getConstructor(Class.java:1657) at org.apache.myfaces.config.FacesConfigurator.getApplicationObject(FacesConfigurator.java:677) at org.apache.myfaces.config.FacesConfigurator.configureApplication(FacesConfigurator.java:602) at org.apache.myfaces.config.FacesConfigurator.configure(FacesConfigurator.java:148) at org.apache.myfaces.webapp.StartupServletContextListener.initFaces(StartupServletContextListener.java:68) at org.apache.myfaces.webapp.StartupServletContextListener.contextInitialized(StartupServletContextListener.java:51) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3827) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4334) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525) at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:626) at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:553) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:488) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053) at org.apache.catalina.core.StandardHost.start(StandardHost.java:719) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443) at org.apache.catalina.core.StandardService.start(StandardService.java:516) at org.apache.catalina.core.StandardServer.start(StandardServer.java:710) at org.apache.catalina.startup.Catalina.start(Catalina.java:566) 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:597) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Lionel Port Sent: Thursday, October 04, 2007 12:01 AM To: user@shale.apache.org Subject: Re: shale 1.0.4 and tiles You may have a problem because the 1.0.4 of shale was built against a snapshot of tiles 2 when dtd hadn't been quit finalised. Looking at the issue tracking looks like release r468346 if that helps. On 10/4/07, Pavel Savara [EMAIL PROTECTED] wrote: Hi, I have application with shale 1.0.4 and tiles build using maven and blank shale example and it seems to work fine. The problem is when I try to use template layout for pages and insert body and header by configuration in tiles.xml. Problem is with tiles:insertAttribute name=header / tag, it says this tag is not in tiles tld so it is not defined but in all examples I have found this tag must be used. Since I am new in tiles and shale it is very confusing for me and I don't know where to look for a mistake. Is the tiles version downloaded by maven wrong? Am I using wrong tag or tld? I have template layout like %@ taglib prefix=f uri=http://java.sun.com/jsf/core; % %@ taglib prefix=h uri=http://java.sun.com/jsf/html; % %@ taglib uri=http://struts.apache.org/tags-tiles; prefix=tiles % %@ taglib uri=http://shale.apache.org/core; prefix=s% f:view html head head body test tiles:insertAttribute name=header / /body /html /f:view tiles.xml: tiles-definitions definition name=test.definition template=/template/template.jsp put name=header value=/common/header.jsp/ /definition definition name=/firstTest extends=test.definition /definition /tiles
RE: shale 1.0.4 and tiles
Hi I made it working it took me long time mainly because of my stupidity and little confusing dependencies between shale and tiles versions ..:) thanks for help to everybody. Here are important parts of my sample application may be useful for somebody: Shale with tiles. You must use version of tiles which is bundled with shale other versions will not work. With default shale web.xml from blank shale application page firstTest will be visible at url /firstTest.faces web.xml (only part for tiles) !-- Tiles -- context-param param-namedefinitions-config/param-name param-value/WEB-INF/tiles.xml/param-value /context-param listener listener-class org.apache.tiles.listener.TilesListener /listener-class /listener tiles.xml tiles-definitions definition name=test.definition template=/template/template.jsp put name=header value=/common/header.jsp/ /definition definition name=/firstTest extends=test.definition /definition /tiles-definitions template.jsp %@ taglib prefix=f uri=http://java.sun.com/jsf/core; % %@ taglib prefix=h uri=http://java.sun.com/jsf/html; % %@ taglib uri=http://struts.apache.org/tags-tiles; prefix=tiles % %@ taglib uri=http://shale.apache.org/core; prefix=s% f:view html head head body test tiles:attribute name=header flush=false/ !-- tiles documentation talks about insertAtribute tag but that tag is not available with tiles bundeled to shale.-- /body /html /f:view header.jsp header -Original Message- From: Antonio Petrelli [mailto:[EMAIL PROTECTED] Sent: Thursday, October 04, 2007 11:09 AM To: user@shale.apache.org Subject: Re: shale 1.0.4 and tiles 2007/10/4, Pavel Savara [EMAIL PROTECTED]: Hi , I am trying to build it with newer tiles version but i am getting error. That class was moved to another package. Nightly shale is using same old tiles as release 1.0.4. Shale 1.0.4 does not support the latest version of Tiles, you HAVE to use the version bundled with Shale itself. Antonio
RE: Shale Tiles and JSF integration resulting with a blank page
Hi Lax, shale-tiles doesn't work with jsf 1.2 you have to use jsf 1.1 more information in https://issues.apache.org/struts/browse/SHALE-302 Pavel -Original Message- From: Lax [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 10, 2007 2:19 AM To: user@shale.apache.org Subject: Shale Tiles and JSF integration resulting with a blank page Hi, I had this weired issue, after integrating Shale Tiles with JSF and on navigating to the layout page system throws up a blank page. Versions I am using are JSF1.2 RI Shale Tiles 1.1.0. My integration settings shown as below. Can some one review my settings and let me know where I am going wrong. I did refer to some links over forums, for others these settings seems to be working. Am kind of lost why I keep seeing the blank output page. 1.web.xml ( Added the required tiles setttings to web.xml) - context-param param-namedefinitions-config/param-name param-value/WEB-INF/tiles-defs.xml/param-value /context-param listener listener-class org.apache.tiles.listener.TilesListener /listener-class /listener 2. tiles-defs.xml ( my tiles definition file content) !DOCTYPE tiles-definitions PUBLIC -//Apache Software Foundation//DTD Tiles Configuration 1.1//EN http://struts.apache.org/dtds/tiles-config_1_1.dtd; tiles-definitions definition name=/secondlayout template=/WEB-INF/tiles/layout.jsp put name=header value=/WEB-INF/tiles/header.jsp / /definition /tiles-definitions 3.layout.jsp ( Template content) [EMAIL PROTECTED] uri=http://struts.apache.org/tags-tiles; prefix=tiles% [EMAIL PROTECTED] uri=http://java.sun.com/jsf/core; prefix=f% f:view html head head body test tiles:attribute name=header flush=false/ !-- tiles documentation talks about insertAtribute tag but that tag is not available with tiles bundeled to shale.-- /body /html /f:view 4.header.jsp ( header content ) [EMAIL PROTECTED] uri=http://java.sun.com/jsf/core; prefix=f% [EMAIL PROTECTED] uri=http://java.sun.com/jsf/html; prefix=h% table width=100% trtd h:outputText value=Test Header / /td/tr /table 5.faces-config.xml ( JSF mapping file defintion) ?xml version=1.0 encoding=UTF-8? faces-config xmlns=http://java.sun.com/xml/ns/javaee; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_1_2.xsd; version=1.2 application view-handlerorg.apache.shale.tiles.TilesViewHandler/view-handler /application navigation-rule display-nametest/display-name from-view-id/test.jsp/from-view-id navigation-case from-outcomesuccess/from-outcome to-view-id/secondlayout.jsp/to-view-id /navigation-case /navigation-rule /faces-config With Thanks Lax -- View this message in context: http://www.nabble.com/Shale-Tiles-and-JSF-integration-resulting-with-a-blank-page-tf4598019.html#a13127797 Sent from the Shale - User mailing list archive at Nabble.com.