j'ai suivi un tuto pour faire une appli web CRUD http://netbeans.org/kb/docs/web/jsf20-crud.html
après avoir généré les entités et les pages xhtml pour chaque entité conformement au tuto, j'ai une erreur à l'éxecution:
Stack Trace
component tree
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42 java.lang.NullPointerException at javax.faces.component.UIComponentBase.getRenderer(UIComponentBase.java:1268) at javax.faces.component.UIComponentBase.decode(UIComponentBase.java:788) at org.ajax4jsf.component.AjaxViewRoot$1.invokeRoot(AjaxViewRoot.java:396) at org.ajax4jsf.component.AjaxViewRoot.processPhase(AjaxViewRoot.java:229) at org.ajax4jsf.component.AjaxViewRoot.processDecodes(AjaxViewRoot.java:409) at com.sun.faces.lifecycle.ApplyRequestValuesPhase.execute(ApplyRequestValuesPhase.java:78) at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101) at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:312) at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1523) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:343) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:215) at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:178) at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290) at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:390) at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:517) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:215) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:277) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:188) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:641) at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:97) at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:85) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:185) at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:325) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:226) at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:165) at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:791) at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:693) at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:954) at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:170) at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:135) at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:102) at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:88) at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76) at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:53) at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:57) at com.sun.grizzly.ContextTask.run(ContextTask.java:69) at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:330) at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:309) at java.lang.Thread.run(Thread.java:619)
Scopds variables
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70 <AjaxViewRoot id="_viewRoot" immediate="false" inView="true" locale="fr_FR" renderRegionOnly="false" rendered="true" selfRendered="false" submitted="false" transient="false"> javax_faces_location_HEAD <ComponentResourceContainer id="javax_faces_location_HEAD" inView="true" rendered="true" transient="false"> <UIOutput id="j_idt5" inView="true" rendered="true" transient="false"/> </ComponentResourceContainer> <UIOutput id="j_idt3" inView="true" rendered="true" transient="false"/> <UIOutput id="j_idt6" inView="true" rendered="true" transient="false"> <HtmlForm enctype="application/x-www-form-urlencoded" id="j_idt8" inView="true" prependId="true" rendered="true" submitted="false" transient="false"> <HtmlCommandLink disabled="false" id="j_idt9" immediate="false" inView="true" rendered="true" transient="false"/> </HtmlForm> <HtmlForm enctype="application/x-www-form-urlencoded" id="j_idt10" inView="true" prependId="true" rendered="true" submitted="false" transient="false"> <HtmlCommandLink disabled="false" id="j_idt11" immediate="false" inView="true" rendered="true" transient="false"/> </HtmlForm> <HtmlForm enctype="application/x-www-form-urlencoded" id="j_idt12" inView="true" prependId="true" rendered="true" submitted="false" transient="false"> <HtmlCommandLink disabled="false" id="j_idt13" immediate="false" inView="true" rendered="true" transient="false"/> </HtmlForm> <HtmlForm enctype="application/x-www-form-urlencoded" id="j_idt14" inView="true" prependId="true" rendered="true" submitted="false" transient="false"> <HtmlCommandLink disabled="false" id="j_idt15" immediate="false" inView="true" rendered="true" transient="false"/> </HtmlForm> <HtmlForm enctype="application/x-www-form-urlencoded" id="j_idt16" inView="true" prependId="true" rendered="true" submitted="false" transient="false"> <HtmlCommandLink disabled="false" id="j_idt17" immediate="false" inView="true" rendered="true" transient="false"/> </HtmlForm> <HtmlForm enctype="application/x-www-form-urlencoded" id="j_idt18" inView="true" prependId="true" rendered="true" submitted="false" transient="false"> <HtmlCommandLink disabled="false" id="j_idt19" immediate="false" inView="true" rendered="true" transient="false"/> </HtmlForm> <HtmlForm enctype="application/x-www-form-urlencoded" id="j_idt20" inView="true" prependId="true" rendered="true" submitted="false" transient="false"> <HtmlCommandLink disabled="false" id="j_idt21" immediate="false" inView="true" rendered="true" transient="false"/> </HtmlForm> <HtmlForm enctype="application/x-www-form-urlencoded" id="j_idt22" inView="true" prependId="true" rendered="true" submitted="false" transient="false"> <HtmlCommandLink disabled="false" id="j_idt23" immediate="false" inView="true" rendered="true" transient="false"/> </HtmlForm> <HtmlForm enctype="application/x-www-form-urlencoded" id="j_idt24" inView="true" prependId="true" rendered="true" submitted="false" transient="false"> <HtmlCommandLink disabled="false" id="j_idt25" immediate="false" inView="true" rendered="true" transient="false"/> </HtmlForm> </UIOutput> </AjaxViewRoot>
merci pour votre aide
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13 Name Value j_idt22 j_idt22 j_idt22:j_idt23 j_idt22:j_idt23 View AttributesName Value None Request AttributesName Value ajaxContext org.ajax4jsf.context.AjaxContextImpl@667469 Flash AttributesName Value None Session AttributesName Value None Application AttributesName Value csfcff com.sun.faces.context.flash.ELFlash@64d325
Partager