[Logo] Enterprise Client Community
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Changing style at runtime  XML
Forum Index -> Development
Author Message
CaptainCasa

Power User
[Avatar]

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

(...question received by mail - and answered through forum...)

In the future we want to select the style sheet based on the license, i.e. the user no longer specifies the style in the URL, but the application selects the style.

Is there a way to programmatically set the stylesheet after a user starts the application?

Björn Müller, CaptainCasa GmbH
CaptainCasa

Power User
[Avatar]

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

Please check demo:

General => General Issues => Style and Language Management => Session style & language

The API is:

Code:
     public void onStyleAction(ActionEvent ae)
     {
         String styleName = ((BaseActionEvent)ae).getSourceReference();
         if (styleName == null) styleName = SessionInfo.getSessionDefaultStyleForRISCClient();
         HttpSessionAccess.setCurrentStyle(styleName);
     }
 


Kind regards! Björn

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