Re: Sample pages, Eclipse and XMLCEclipse...
"Diez B. Roggisch" <[email protected]>
| Newsgroups | gmane.comp.java.enhydra.barracuda.general |
|---|---|
| Message-ID | <[email protected]> |
Garth Dahlstrom wrote: > Hi folks, > > I've been messing around with trying to get Jake's reorganised version of > Diez's sample pages compiled and built in Eclipse... > > So far I have things building using XMLCEclipse Plugin and a chopped > down build.xml file (for the event class generation). > > I'm struggling with a crash out to do with an error ( > java.lang.ClassCastException ... render(ExampleBasePage.java:78) ) > and I thought I might post the stuff I've done so someone with a > better sense of Java and Barracuda then me can have a peak... > if anyone is interested in this sort of thing that is. It looks to me that you don't let your xmlc-classes implement the NavigationHTML interface. Thus the exception. Using the "normal" xmlc-task, this is controlled by the *.xmlc files for all the templates: -implements org.enhydra.barracuda.contrib.dbroggisch.examples.view.xmlc.NavigationHTML And obviously, this is not happening when you use your XMLC-Plugin. I have no idea how that works, so you've got to figure that our for yourself. Diez