Re: Page vs Content Actions & setting page title in actions

Anthony Eden <[email protected]> Thu, 27 Feb 2003 15:01:02 -0500
Newsgroups gmane.comp.java.jpublish.devel
Message-ID <[email protected]>
I just tested it locally here and it seems to work fine.  Perhaps you can turn on logging for the FileSystemPageManager class and see if the page configuration is reloaded if you modify it.

-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