Hi Hermod,
Thx for the reply.
The "Register" target is a copyPaste error, but even ommitting that
transition doesn't affect the stack-trace.
I haven't defined the context-param you mention and was unaware that it
was required, I thought the default setting was dialog?
Can you point me to info concerning this?
/Colin
Hermod Opstvedt wrote:
Hi
Just quickly looking at your dialog file, I notice that you have a target
"Register" that is not defined.
Looking at the code, the problem is that the web.xml context-param
Constants.DIALOG_PREFIX_PARAM is missing or ill defined. Have you defined
it?
Hermod
-----Opprinnelig melding-----
Fra: Colin Chalmers [mailto:[EMAIL PROTECTED]
Sendt: 28. februar 2007 19:22
Til: [email protected]
Emne: Trouble with simple dialog
Hi,
I'm experimenting with the dialog manager and seem to have ommitted a
setting somewhere which is throwing an exception.
Basically I'm just hitting one page and after clicking a button I should
be brought to the next page, however this is not happening.
In the logs I see the following exception:
<exception>
2007-02-28 15:53:54 StandardContext[/shale]null
java.lang.NullPointerException
at
org.apache.shale.dialog.faces.DialogNavigationHandler.handleNavigation(Dialo
gNavigationHandler.java:121)
at
org.apache.myfaces.application.ActionListenerImpl.processAction(ActionListen
erImpl.java:84)
at
org.apache.shale.view.faces.ViewActionListener.processAction(ViewActionListe
ner.java:74)
at javax.faces.component.UICommand.broadcast(UICommand.java:106)
at
javax.faces.component.UIViewRoot._broadcastForPhase(UIViewRoot.java:94)
at
javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:168)
at
org.apache.shale.view.faces.ShaleViewRoot.processApplication(ShaleViewRoot.j
ava:40)
at
org.apache.myfaces.lifecycle.LifecycleImpl.invokeApplication(LifecycleImpl.j
ava:316)
at
org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:86)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:137)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:237)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:157)
at
org.apache.shale.application.faces.ShaleApplicationFilter.doFilter(ShaleAppl
icationFilter.java:267)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:186)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:157)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:214)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex
t.java:104)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContext
Valve.java:198)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:152)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex
t.java:104)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137
)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex
t.java:104)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118
)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex
t.java:102)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:109)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex
t.java:104)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
at
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne
ction(Http11Protocol.java:705)
at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:683)
at java.lang.Thread.run(Thread.java:534)
</exception>
My dialog-config files looks like the following
<dialogs>
<dialog name="Create New Dialog" start="Input">
<transition outcome="start" target="Input"/>
<transition outcome="exit" target="Exit"/>
<view name="Input" viewId="/input.jsf" >
<transition outcome="next" target="Register"/>
</view>
<end name="Exit" viewId="/goodBye.jsf"/>
</dialog>
</dialogs>
& th epage itself contains
<h:form id="start">
<h:commandButton id="startDialog" action="dialog:Create New
Dialog" value="Create New Dialog >>" />
</h:form>
Currently I've no idea why it's not working :-((
Any help or links to examples would be much appreciated!!
Thx
/Colin