On 1/6/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Hi all: > > I am back working with Shale after setting it down for a while. So anyway, > I am trying to get my first dialog to work by making a trivial Search and > Cancel button. Here's what i have in dialog-config.xml: > > <dialog name="Search Contacts" > start="SearchHome"> > > <view name="SearchHome" > viewId="/search.jsp"> > > <transition outcome="search.find" > target="SearchHome"/> > <transition outcome="cancel" > target="Exit"/> > </view> > > <end name="Exit" > viewId="/worklist.jsp"> > </end> > </dialog> > > My /menu.jsp (via tiles mapping) has: > > <h:commandLink id="searchStartMenu" action="dialog:Search Contacts"> > <h:outputText value="Search" /> > </h:commandLink> > > However, clicking on Search gives me nasty errors: > [ERROR] [faces] - Servlet.service() for servlet faces threw exception > <java.lang.IllegalArgumentException: Search > Contacts>java.lang.IllegalArgumentException: Search Contacts > at > org.apache.shale.dialog.faces.DialogNavigationHandler.start( > DialogNavigationHandler.java:446)
This particular exception means that Shale could not find a dialog named "Search Contacts" in the set of configured dialogs. (Yes, the error message should actually *say* that ... it will tonight :-). In turn, that implies the dialog configuration file hasn't been loaded. Is this file named "/WEB-INF/dialog-config.xml"? Do you have the Shale filter defined in web.xml? The web site has a useful checklist of stuff to make sure you've set up to use Shale in a webapp: http://struts.apache.org/struts-shale/using.html Craig