HTML and WOD won't load for a component
HTML and WOD won't load for a component
- Subject: HTML and WOD won't load for a component
- From: "Jim Roepcke" <email@hidden>
- Date: Fri, 4 Jan 2008 14:06:59 -0800
Hello all,
I'm using WO 5.4 on Leopard, WOLips 3.3.4747, Wonder 4.x...
I've been doing a lot of refactoring. I've moved a bunch of components
into a new FVComponents framework so that two apps can share them.
I have a page called WelcomePage that includes a component called
FVSidebar. These components existed in the application before the
refactoring, now they're in the framework.
None of the content for FVSidebar.wo/FVSidebar.html is appearing in
the WelcomePage. Even if I replace FVSidebar's HTML with a simple
string, nothing appears. I've run the debugger and found that the
_htmlPath and _wodPath for the WOComponentDefinition for the FVSidebar
instance (found through the subcomponents of WelcomePage) are *null*.
I've looked in the build directory,
~/Projects/FPCF/workspace/FVComponents/build/FVComponents.framework/Resources/FVSidebar.wo/FVSidebar.html
exists and has the expected content, ditto for the wod, woo and api
files... everything is where it should be in the .framework. File
permissions are the same as for the other components.
I've removed all of the custom code from the FVSidebar.java class
except for the constructor and the accessor methods for the bindings
to see if one of my method names was conflicting with something
internal to WOComponent, but there was no improvement in the
behaviour... here's now the FVSidebar would be declared in
WelcomePage.wod:
Sidebar: FVSidebar {
isProvidingCustomContent = false;
showPhraseList = false;
showWordList = false;
showWordSearchHelp = false;
showStoryList = false;
showSongList = false;
}
The java file was left with just the fields/accessors/mutators for
those 6 bindings (I'm pretty sure those binding names shouldn't
conflict with WOComponent internals...), but it made no difference,
the content of the component won't display no matter what I do. FWIW,
FVSidebar extends FVPage extends WOComponent, and FVPage is very
basic...
public abstract class FVPage extends WOComponent {
public FVPage(WOContext aContext) {
super(aContext);
}
public String loc(String key) {
return ERXLocalizer.currentLocalizer().localizedStringForKey(key);
}
public String locBR(String key) {
return ERXLocalizer.currentLocalizer().localizedStringForKey(key)
+ "<br />";
}
public String _loc(String key) {
return " " + ERXLocalizer.currentLocalizer().localizedStringForKey(key);
}
public String loc_(String key) {
return ERXLocalizer.currentLocalizer().localizedStringForKey(key) + " ";
}
public FVSession fvSession() { return (FVSession)this.session(); }
}
I'm at my wit's end here, I've never experienced this problem, with or
without WOLips, WO 5.4 or before. I've looked back at an earlier
branch of my code before I did the refactoring into FVComponents, and
the FVSidebar was working there. However, seeing as I've completely
stripped the current FVSidebar of all of its HTML content and Java
content (I've even tried making it extend WOComponent instead of
FVPage just in case) and left it as a completely plain component and I
still see this problem, I'm not sure what to do now.
Note that the rest of WelcomePage (which is also in the FVComponents
framework) is displaying fine, as is its page wrapper component
(FVPageWrapper) which is also in the FVComponents framework. All the
components I've tried so far are loading their HTML/WOD content,
except FVSidebar.
Has anyone ever experienced this before? Any ideas?
Thanks,
Jim
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden