scroyston
Nov 29th, 2004, 09:24 PM
After working with rcp for awhile I'd like to ask a couple questions, to make sure I'm doing things right. Overall the experience has been great. Some observations:
1) My UI is fairly 'custom', in that it's not a typical Eclipse/Docking/petstore looking app. I wanted to get rid of the title bar from the SimpleInternalFrame in PageComponentPane. It doesn't look like I can do it in the xml beans setup - I had to extend DefaultApplicationPage.createPageComponent so it would create my non-SimpleInternalFrame page. I also had to modify the DefaultApplicationPage source to add a getPageComponents() so that I could override the DefaultApplicationPage.createPageComponent function (pageComponents is private). Is there not an easy way to do it?
2) The overlay validation interceptor has a bug in a scrollview with the layout. I found a JIRA bug and added a patch.
3) How do I run validation when I initialize and load up a form? I found this commented out:
protected void postProcessNewFormValueModel(String domainObjectProperty, ValueModel valueModel) {
// trigger validation to catch initial form errors
if (valueModel instanceof ValidatingFormValueModel && isEnabled()) {
//((ValidatingFormValueModel)valueModel).validate();
}
}
4) I can't seem to get rid of the status bar, I haven't looked at it much, but
configurer.setShowStatusBar(false);
didn't work. Any ideas?
5) What's the preferred way of getting specific domain objects to page/view forms for binding? Launching a page doesn't really have a way of 'passing' domain object parameters, just Application.instance().openWIndow(...)
Thanks, the framework's been great!
Scott
1) My UI is fairly 'custom', in that it's not a typical Eclipse/Docking/petstore looking app. I wanted to get rid of the title bar from the SimpleInternalFrame in PageComponentPane. It doesn't look like I can do it in the xml beans setup - I had to extend DefaultApplicationPage.createPageComponent so it would create my non-SimpleInternalFrame page. I also had to modify the DefaultApplicationPage source to add a getPageComponents() so that I could override the DefaultApplicationPage.createPageComponent function (pageComponents is private). Is there not an easy way to do it?
2) The overlay validation interceptor has a bug in a scrollview with the layout. I found a JIRA bug and added a patch.
3) How do I run validation when I initialize and load up a form? I found this commented out:
protected void postProcessNewFormValueModel(String domainObjectProperty, ValueModel valueModel) {
// trigger validation to catch initial form errors
if (valueModel instanceof ValidatingFormValueModel && isEnabled()) {
//((ValidatingFormValueModel)valueModel).validate();
}
}
4) I can't seem to get rid of the status bar, I haven't looked at it much, but
configurer.setShowStatusBar(false);
didn't work. Any ideas?
5) What's the preferred way of getting specific domain objects to page/view forms for binding? Launching a page doesn't really have a way of 'passing' domain object parameters, just Application.instance().openWIndow(...)
Thanks, the framework's been great!
Scott