Re: Page vs Content Actions & setting page title in actions
Anthony Eden <[email protected]> Thu, 27 Feb 2003 14:58:59 -0500
| Newsgroups | gmane.comp.java.jpublish.devel |
|---|---|
| Message-ID | <[email protected]> |
That seems strange. The FileSystemPageManager does cache page configurations to avoid the overhead of parsing the XML on every request, but it should be checking against the last modified time of the file and update the cache if necessary. I will run a few tests and verify that the cache is working properly. -Anthony Andy Zeneski wrote: > That's fine, I found that setTitle was actually working. I was using > content-actions rather then page actions. Also, it was odd, when I changed > from content to page, the action wasn't running at all until I restarted > Jetty. Is this normal? > > -Andy > > >>-----Original Message----- >>From: [email protected] >>[mailto:[email protected]]On Behalf Of >>Anthony Eden >>Sent: Thursday, February 27, 2003 2:38 PM >>Cc: [email protected] >>Subject: Re: [JPublish-developer] Page vs Content Actions & setting page >>title in actions >> >> >> >> >>Andy Zeneski wrote: >> >> >>>>>I am attempting to call Page.setTitle() from inside either a >>>> >>>>page or content >>>> >>>> >>>>>action, but nothing seems to happen, how can I set the page >> >>name from an >> >>>>>action? >>>> >>>>The get/set Title methods are old and are deprecated. I can >>>>remove them from JPublish 2.0 if no one objects. Instead you >>>>should set a named property. Keep in mind that case-sensitivity >>>>may matter, so a property "title" is different than "Title". >>> >>>Umm.. setProperty() is a private method and not accessible. >> >>setTitle() seems >> >>>to set the property named 'title', which is the one I would >> >>set. Since my >> >>>template says ${page.title} Which is returning the value <property >>>name="title">Category Page</property> >>> >>>What am I missing? >> >>Doh! Actually, you are missing nothing, that one is all me. I >>will make those methods public. Just so you know the change will >>only be for the current request, it will not be permanent. >> >>Sincerely, >>Anthony Eden >> >> >> >>------------------------------------------------------- >>This sf.net email is sponsored by:ThinkGeek >>Welcome to geek heaven. >>http://thinkgeek.com/sf >>_______________________________________________ >>Jpublish-developer mailing list >>[email protected] >>https://lists.sourceforge.net/lists/listinfo/jpublish-developer >> > > ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf