No no you misunderstood I am not talking about page.getMessage("key");


The one I am talking about is  
org.apache.tapestry.Tapestry.getMessage("key");




Muralidhar Y
Software Engineer,
Adastrum technologies-Nikai groups,
EmiratesGroup-I.T Division,
Dubai, UAE.
Mobile : 00971-50-2256149.
http://www.adastrumtech.com
http://www.mercator.aero  
(Keep Smiling. Be happy All The Time.)

-----Original Message-----
From: Tomáš Drencák [mailto:[EMAIL PROTECTED] 
Sent: 02 October 2005 09:25
To: Tapestry users
Subject: Re: Accessing page property from component (Tapestry 4)

page.getMessage(String) is deprecated in T4

2005/10/2, Muralidhar Y. <[EMAIL PROTECTED]>:
>  hi I see many people using 
> page.getMessages().getMessage("pageTitle");
>
> But why are they not using getMessage("key"); from 
> org.apache.tapestry.Tapestry class.
>
>
>
>
> Muralidhar Y
> Software Engineer,
> Adastrum technologies-Nikai groups,
> EmiratesGroup-I.T Division,
> Dubai, UAE.
> Mobile : 00971-50-2256149.
> http://www.adastrumtech.com
> http://www.mercator.aero
> (Keep Smiling. Be happy All The Time.)
>
> -----Original Message-----
> From: Shing Hing Man [mailto:[EMAIL PROTECTED]
> Sent: 01 October 2005 09:33
> To: Tapestry users
> Subject: RE: Accessing page property from component (Tapestry 4)
>
> I have the following.
> Home.properties :
> pageTitle=Welcome
>
> -------------
> In  java class of my border component :
>  public void finishLoad(){
>
>         BasePage page = (BasePage) getPage();
>
>         // get pageTitle from Home.properties
>         String title =
> page.getMessages().getMessage("pageTitle");
>      // do something with title
> }
>
>
> Shing
>
> --- "Muralidhar Y." <[EMAIL PROTECTED]> wrote:
>
> > If you don't mind could you tell me little bit more about this. In 
> > your previous mail already it is a page property. The following is 
> > your code.
> > <property name="pageTitle"
> > > initial-value="literal:Welcome" />
> >
> > But you said you declared now as property. What exactly have you 
> > done to achieve it. I also had same problem.
> >
> >
> >
> >
> > Muralidhar Y
> > Software Engineer,
> > Adastrum technologies-Nikai groups,
> > EmiratesGroup-I.T Division,
> > Dubai, UAE.
> > Mobile : 00971-50-2256149.
> > http://www.adastrumtech.com
> > http://www.mercator.aero
> > (Keep Smiling. Be happy All The Time.)
> >
> > -----Original Message-----
> > From: Shing Hing Man [mailto:[EMAIL PROTECTED]
> > Sent: 01 October 2005 07:52
> > To: Tapestry users
> > Subject: RE: Accessing page property from component (Tapestry 4)
> >
> > Thank you for the suggestion !
> > What I described in my last post works in version 3.0.1.
> >
> > Instead of specifying the page title in the page specification, I 
> > have moved it to the page properties.
> > And now I can retrieve the page title from the page properties in my 
> > border's finishLoad method.
> >
> >
> > Shing
> >
> > --- "Muralidhar Y." <[EMAIL PROTECTED]> wrote:
> >
> > > Hi actually in loading phase only page loading is
> > done. At component
> > > level too only loading is done. Their bindings are
> > not set. Try to
> > > move that from
> > > finshLoad() to prepareForRender() and see.And also
> > you said it is
> > > working in tapestry 3 do you mean that version is
> > 3.0.3 or prior
> > > version.
> > >
> > >
> > >
> > >
> > > Muralidhar Y
> > > Software Engineer,
> > > Adastrum technologies-Nikai groups, EmiratesGroup-I.T Division, 
> > > Dubai, UAE.
> > > Mobile : 00971-50-2256149.
> > > http://www.adastrumtech.com
> > > http://www.mercator.aero
> > > (Keep Smiling. Be happy All The Time.)
> > >
> > > -----Original Message-----
> > > From: Shing Hing Man [mailto:[EMAIL PROTECTED]
> > > Sent: 01 October 2005 06:38
> > > To: tapestry Tapestry
> > > Subject: Accessing page property from component
> > (Tapestry 4)
> > >
> > > I am converting one of my Tapestry 3 application
> > to Tapestry 4 and run
> > > into following problem.
> > >
> > > In all my  page specification, I have a property
> > for the page title :
> > >
> > > <property name="pageTitle"
> > > initial-value="literal:Welcome" />
> > >
> > >
> > > In the Java class of my border component, I try to
> > retrieve the
> > > pageTitle property in finishLoad method :
> > >
> > >      public void finishLoad(){
> > >
> > >         BasePage page = (BasePage) getPage();
> > >
> > >         String title =
> > > page.getSpecification().getProperty("pageTitle");
> > >         // do something with title
> > >     }
> > >
> > > But
> > page.getSpecification().getProperty("pageTitle")
> > > always return null.
> > > This works in Tapestry 3.
> > >
> > > It would be appreciated if someone could point out
> > my mistake.
> > >
> > > Thanks !
> > >
> > > Shing
> > >
> > >
> > >
> > >
> > > Home page :
> > >   http://uk.geocities.com/matmsh/index.html
> > >
> > >
> > >
> > >
> > >
> > >
> >
> ___________________________________________________________
> > > Yahoo! Messenger - NEW crystal clear PC to PC
> > calling worldwide with
> > > voicemail http://uk.messenger.yahoo.com
> > >
> > >
> >
> ---------------------------------------------------------------------
> > > To unsubscribe, e-mail:
> > > [EMAIL PROTECTED]
> > > For additional commands, e-mail:
> > > [EMAIL PROTECTED]
> > >
> >
> >
> > Home page :
> >   http://uk.geocities.com/matmsh/index.html
> >
> >
> >
> >
> ___________________________________________________________
> > To help you stay safe and secure online, we've developed the all new 
> > Yahoo!
> > Security Centre. http://uk.security.yahoo.com
> >
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> > [EMAIL PROTECTED]
> > For additional commands, e-mail:
> > [EMAIL PROTECTED]
> >
>
>
> Home page :
>   http://uk.geocities.com/matmsh/index.html
>
>
>
> ___________________________________________________________
> To help you stay safe and secure online, we've developed the all new
Yahoo!
> Security Centre. http://uk.security.yahoo.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to