-
1. Re: JSF2 + JBOSS AS 5.0.0.GA + JSFunit micro deployer
dgouyette Mar 5, 2009 6:05 AM (in response to dgouyette)I add more information about it.
When i said my webapp doesn't work :
my server start well but when i try to see a page, the server send me my xhtml, not really pretty -
2. Re: JSF2 + JBOSS AS 5.0.0.GA + JSFunit micro deployer
ssilvert Mar 5, 2009 9:27 AM (in response to dgouyette)I just verified that my unit test with micro deployer and JSF 2.0 does work.
Are you sure that your application is working correctly if you remove the micro deployer and run it manually?
You say that the problem is that "my xhtml, not really pretty". Can you give more detail?
Perhaps this has something to do with the new Facelets support in JSF2. If you are using the old Facelets impl and the Facelets jar is in your WAR then you need to set<context-param> <param-name>javax.faces.DISABLE_FACELET_JSF_VIEWHANDLER</param-name> <param-value>true</param-value> </context-param>
Stan -
3. Re: JSF2 + JBOSS AS 5.0.0.GA + JSFunit micro deployer
dgouyette Mar 5, 2009 11:06 AM (in response to dgouyette)I didn't use old facelets, because i just declare 2 jar jsf-ri in my pom
My webapp actually work with glassfish v3 prelude and with jboss AS 5.0.0.GA when microdeployer isn't in server/default/deployer folder.
Sorry for my english, when i said, my xhtml is not pretty thats mean that server sent me directly my xhtml and didn't interpreted it.
I can give you a link to my svn if you want to try my source code (easy build with maven) -
4. Re: JSF2 + JBOSS AS 5.0.0.GA + JSFunit micro deployer
ssilvert Mar 5, 2009 11:33 AM (in response to dgouyette)Please post your test code.
Stan -
5. Re: JSF2 + JBOSS AS 5.0.0.GA + JSFunit micro deployer
dgouyette Mar 5, 2009 11:40 AM (in response to dgouyette)Source code is here :
http://www.cestpasdur.com/svn/webapp-maven-jsf2/ -
6. Re: JSF2 + JBOSS AS 5.0.0.GA + JSFunit micro deployer
dgouyette Mar 5, 2009 11:41 AM (in response to dgouyette)My problem is present with webapp-maven-jsf2-war/ artifact and i will make my test in webapp-maven-jsf2-jsfunit/ artifact
-
7. Re: JSF2 + JBOSS AS 5.0.0.GA + JSFunit micro deployer
ssilvert Mar 5, 2009 12:11 PM (in response to dgouyette)I ran your WAR. The home page seems to render without a problem.
When I try to submit something I getUnable to find matching navigation case from view ID '/index.xhtml' for action '#{contactBean.doAdd}' with outcome 'success.xhtml'
Looks like you might need to include a faces-config.xml file with some navigation cases.
The JSFUnit microdeployer looks like it is working properly. When I ran your test I got'nom' matches more than one JSF component ID. Use a more specific ID suffix. Suffix matches: j_id6:nom, j_id6:prenom
You can fix this if you change your test code to add a leading colonclient.setValue(":nom", "Gouyette");
But it would be a little more clear if you give your form an id so you could say something likeclient.setValue("myform:nom", "Gouyette");
Stan -
8. Re: JSF2 + JBOSS AS 5.0.0.GA + JSFunit micro deployer
dgouyette Mar 5, 2009 3:00 PM (in response to dgouyette)Sorry, it doesn't work
Just for info
faces-config is optionnal with jsf2 you can just return view name and it's work.
Just for remember :
- JSF2-PR + my webapp + JBOSS AS 5 = Ok
- JSF2-PR + same webapp + JBOSS AS 5 + micro container = KO
I can give you my complete jboss + my webapp inside.
You can take it here => JSF2 + same webapp + JBOSS AS 5 + micro container
http://www.cestpasdur.com/jboss-5.0.0.GA-JSF2.zip -
9. Re: JSF2 + JBOSS AS 5.0.0.GA + JSFunit micro deployer
ssilvert Mar 5, 2009 3:28 PM (in response to dgouyette)Are you running this on a Mac?
I unzipped the file to Windows and every file starts with "._"
Stan -
10. Re: JSF2 + JBOSS AS 5.0.0.GA + JSFunit micro deployer
dgouyette Mar 5, 2009 3:38 PM (in response to dgouyette)Yes.
More information about my platform :
java version "1.5.0_16"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_16-b06-284)
Java HotSpot(TM) Client VM (build 1.5.0_16-133, mixed mode, sharing) -
11. Re: JSF2 + JBOSS AS 5.0.0.GA + JSFunit micro deployer
dgouyette Mar 5, 2009 3:42 PM (in response to dgouyette)I will try on a vm windows to see if it's my jdk
-
12. Re: JSF2 + JBOSS AS 5.0.0.GA + JSFunit micro deployer
dgouyette Mar 6, 2009 1:45 AM (in response to dgouyette)It the same thing on windows xp with jdk 1.6
-
13. Re: JSF2 + JBOSS AS 5.0.0.GA + JSFunit micro deployer
ssilvert Mar 6, 2009 7:40 AM (in response to dgouyette)Just so you'll know, after today, I'll be out of my office for the next week. I don't know how much I'll be on line.
Stan -
14. Re: JSF2 + JBOSS AS 5.0.0.GA + JSFunit micro deployer
dgouyette Mar 6, 2009 8:13 AM (in response to dgouyette)Ok, thanks for the info, did you test my jboss ?
I going to test jsfunit with jsf 1.2 without microcontainer next week. So i can wait a week without any problem.