Everyone, Help! I still haven't figured this one out yet! If there is any info or code snippets that I can provide to help, please let me know.
Thanks, Philip A. Chapman wrote: > Everyone, > > This email will probably be a little difficult to read because I have > tried to put sample code in here, but please hang in there and see if > you can help me. > > I am linking in a CSS page using a relative path. On most pages it's > not working because of how paths are being created. In a > Form.onSubmit(), the following code: > > > setResponsePage(getApplicationSettings().getDefaultPageFactory() > .newPage(getApplicationPages().getHomePage(), > (PageParameters) null)); > > > produces a url like : > > > http://server/app/?bookmarkablePage=package.web.Home > > > This is correct. Everywhere else, I use static inner class > implementations of PageLink and BookmarkablePageLink: > > > public static PageLink link(final String name, final Integer id) > { > return new PageLink(name, new IPageLink() > { > public Page getPage() > { > if (id == null) { > return new EditReport(new Report()); > } else { > return new EditReport(Report.lookup(id)); > } > } > > public Class getPageIdentity() > { > return EditReport.class; > } > }); > } > > > produces a URL like > > > http://server/app?bookmarkablePage=package.web.ReportsListing > > > The lack of a slash after the servlet application name "app" makes it so > that the browser cannot find the css style page. > > Thanks, -- Philip A. Chapman Application Development: Java, Visual Basic (MCP), PostgreSQL, MySQL, MSSQL Linux, Windows 9x, Windows NT, Windows 2000, Windows XP
signature.asc
Description: OpenPGP digital signature