This content has been marked as final.
Show 23 replies
-
15. Re: Page action not called
sammy8306 Jul 30, 2007 9:27 AM (in response to sammy8306)"wise_guybg" wrote:
Apart making modifications to the Pages class, have you tried putting a .xhtml and a .page.xml in a folder inside the root. Like my "noauth". Just to be sure that you have exactly localized the problem. If this works and putting them in root doesn't then I consider this a bug.
Tried it, but it doesn't work, file is not processed.
What version of Seam are you actually using? Mine is 2.0.0.BETA1.
I'm using 1.2.1GA, may be I'll give the beta a try as well... -
16. Re: Page action not called
pmuir Jul 31, 2007 11:11 AM (in response to sammy8306)1) You are using Seam 1.2(.1) but your dtd is for Seam 1.1
2) Post the structure of your build project (e.g. run ls -R on an exploded ear/war). -
17. Re: Page action not called
sammy8306 Jul 31, 2007 2:02 PM (in response to sammy8306)"pete.muir@jboss.org" wrote:
1) You are using Seam 1.2(.1) but your dtd is for Seam 1.1
Yeah, I caught that and that's already fixed.
2) Post the structure of your build project (e.g. run ls -R on an exploded ear/war).
Ok, here goes:$ ls -1R . Blog.page.xml Blog.xhtml EditEntry.page.xml EditEntry.xhtml META-INF NewBlogEntry.page.xml NewBlogEntry.xhtml UserList.page.xml UserList.xhtml ViewBlog.page.xml ViewBlog.xhtml WEB-INF css img index.html template.xhtml timeOut.xhtml ./META-INF: MANIFEST.MF ./WEB-INF: classes components.xml faces-config.xml lib pages.xml web.xml ./WEB-INF/classes: jboss-beans.xml jndi.properties log4j.xml ./WEB-INF/lib: ajax4jsf-1.1.1-SNAPSHOT.jar antlr-2.7.5H3.jar blog-jpa-seam.jar commons-beanutils-1.7.0.jar commons-codec-1.3.jar commons-collections-3.1.jar commons-collections.jar commons-digester-1.6.jar commons-el-1.0.jar commons-lang-2.1.jar commons-logging.jar concurrent.jar dom4j.jar ejb3-persistence.jar el-api.jar el-ri.jar hibernate-annotations.jar hibernate-entitymanager.jar hibernate3.jar hsqldb.jar jboss-archive-browsing.jar jboss-common-jdbc-wrapper.jar jboss-common.jar jboss-container.jar jboss-dependency.jar jboss-j2ee.jar jboss-j2se.jar jboss-jca.jar jboss-local-jdbc.jar jboss-microcontainer.jar jboss-seam-debug.jar jboss-seam-ui.jar jboss-seam.jar jboss-security.jar jboss-system.jar jboss-transaction.jar jnpserver.jar jsf-facelets.jar log4j.jar myfaces-api-1.1.4.jar myfaces-impl-1.1.4.jar namespace.jar oscache-2.3.2.jar thirdparty-all.jar xercesImpl.jar xml-apis.jar ./css: date.css screen.css trailblazer_main.css ./img: <snip>
So this is the layout that doesn't work. However, if I move *.page.xhtml into ./WEB-INF/, and add the the following line to Pages.java in createPage(String viewId):stream = Resources.getResourceAsStream( "/WEB-INF" + resourceName);
then they are loaded and handled correctly... -
18. Re: Page action not called
pmuir Jul 31, 2007 2:18 PM (in response to sammy8306)Are you just deploying a war? To tomcat?
-
19. Re: Page action not called
sammy8306 Jul 31, 2007 3:19 PM (in response to sammy8306)War: yes, Tomcat: no, Jetty
-
20. Re: Page action not called
sammy8306 Aug 2, 2007 2:28 AM (in response to sammy8306)Any ideas based on this information, Pete?
-
21. Re: Page action not called
pmuir Aug 3, 2007 6:20 AM (in response to sammy8306)I need to try to replicate locally. It's on my todo :)
-
22. Re: Page action not called
sammy8306 Aug 3, 2007 7:07 AM (in response to sammy8306)Cool, thanks :) I'll get by with my hack for now.
-
23. Re: Page action not called
pmuir Aug 7, 2007 6:45 AM (in response to sammy8306)Sammy, sorry for the late reply on this. Any chance you can provide an ear which shows this problem. It would be ideal if this was an example converted to run on jetty. Thanks!