[Logo] OLD FORUM - Use new one: https://www.CaptainCasa.online/forum
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Feature Request: JSF Expression for Pop Up Title  XML
Forum Index -> Development
Author Message
mreich

Power User
[Avatar]

Joined: 30/01/2009 08:34:23
Messages: 750
Offline

Hi,

would it be possible to use JSF Expressions for the pop up title property?
Code:
 m_popup = getWorkpage().createModalPopupInWorkpageContext();    
 m_popup.setTop(BasePopup.POS_CENTER);
 m_popup.setLeft(BasePopup.POS_CENTER);
 m_popup.open(page.jsp, "#{rr.literals.title}", 800, 600, this);


Markus
[WWW]
CaptainCasa

Power User
[Avatar]

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

Hi,

we only want to use JSF-expressions where JSF play a role: in layout definitions - and not in general replace normal Java APIs (even if it looks "smart" ;-)...).

So, please fill the title with:
Code:
 String title = ResourceManager.getRuntimeInstance().readProperty("literal","title");
 m_popup.open("/page.jsp",title,...);
 


Björn

Björn Müller, CaptainCasa GmbH
CaptainCasa

Power User
[Avatar]

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

...oh, and by the way:

instead of these special "POS_CENTER" positions there are now smarter ways to center a popup:

Code:
 popup.setLeftTopReferenceCenter();
 


The "special" way, still is valid, of course - this is just a remark...


Björn

Björn Müller, CaptainCasa GmbH
mreich

Power User
[Avatar]

Joined: 30/01/2009 08:34:23
Messages: 750
Offline

ok, thanx for your hints!

regards
Markus
[WWW]
 
Forum Index -> Development
Go to:   
Powered by JForum 2.1.6 © JForum Team