[Logo] Enterprise Client Community
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
How to change workpage title and id?  XML
Forum Index -> Development
Author Message
levy

Power User

Joined: 12/03/2008 16:38:22
Messages: 308
Location: XpertCenter
Offline

Hi,

When starting a function to enter a new business object ("Create Order" or the like), I don't know the definitive title and id yet. I would like to change them after having started, e.g. when saving the first time.
The first try was
Workpage wp = (Workpage) getWorkpage();
wp.setTitle("now I know");
This changes only the title bar but not the task bar.

Has somebody a hint?
[WWW]
CaptainCasa

Power User
[Avatar]

Joined: 21/11/2007 12:23:06
Messages: 5521
Offline

...we'll check...
Björn

Björn Müller, CaptainCasa GmbH
CaptainCasa

Power User
[Avatar]

Joined: 21/11/2007 12:23:06
Messages: 5521
Offline

...it is currently possible, but you need to a certain casting - which we do not want anyone to do... ;-)

We updated the IWorkplace interface, it now contains "setTitle()" as well. The code for updating the title within your managed bean then is:

Code:
     public void onUpdateTitle(ActionEvent event) 
     {
         if (getOwningDispatcher().getWorkpage() != null)
             getOwningDispatcher().getWorkpage().setTitle(m_title);
     }
 


The update is available on request and latest next Monday. It is easy for us to create an interim release, do not hesitate to ask us, please!

Björn

Björn Müller, CaptainCasa GmbH
 
Forum Index -> Development
Go to:   
Powered by JForum 2.1.6 © JForum Team