Howto use the UIService

View: New views
4 Messages — Rating Filter:   Alert me  

Howto use the UIService

by Thomas Vandahl-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi folks,

I was introducing Turbine to a friend of mine and we went through all
the services and features. This showed to be a good test for the
existing documentation and the structure of the web site. (so far, so
good! He even got Intake to work without further assistance :-))

Then we tried to use the all-new UIService including the on-the-fly
change of skins. This somehow didn't work as expected. We could set the
skin in the users session settings but when using the UITool as a
session-scoped tool, the change will not be picked up. The two
setSkin()-methods that would help are protected for some reason. init()
is only called during session initialization, at this time the
temp-hashmap is empty.

So my question is, how is this supposed to work?

Bye, Thomas.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@...
For additional commands, e-mail: user-help@...


Re: Howto use the UIService

by Scott Eade :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

UITool.setSkin(user, skin);

Scott

Thomas Vandahl wrote:

> Hi folks,
>
> I was introducing Turbine to a friend of mine and we went through all
> the services and features. This showed to be a good test for the
> existing documentation and the structure of the web site. (so far, so
> good! He even got Intake to work without further assistance :-))
>
> Then we tried to use the all-new UIService including the on-the-fly
> change of skins. This somehow didn't work as expected. We could set the
> skin in the users session settings but when using the UITool as a
> session-scoped tool, the change will not be picked up. The two
> setSkin()-methods that would help are protected for some reason. init()
> is only called during session initialization, at this time the
> temp-hashmap is empty.
>
> So my question is, how is this supposed to work?
>
> Bye, Thomas.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@...
> For additional commands, e-mail: user-help@...
>
>  

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@...
For additional commands, e-mail: user-help@...


Re: Howto use the UIService

by Thomas Vandahl-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Scott Eade wrote:
> UITool.setSkin(user, skin);

Right. Tried that. But my observation was, that this does not take
effect until the tool is initialized again (which does not happen during
the normal session life cycle). What helps is to reload the application
which serializes and de-serializes the session...

Bye, Thomas


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@...
For additional commands, e-mail: user-help@...


Re: Howto use the UIService

by Scott Eade :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thomas Vandahl wrote:
> Scott Eade wrote:
>> UITool.setSkin(user, skin);
>
> Right. Tried that. But my observation was, that this does not take
> effect until the tool is initialized again (which does not happen during
> the normal session life cycle). What helps is to reload the application
> which serializes and de-serializes the session...

Looks like I am breaking the rules then:

     UITool.setSkin(user, skin);
     ((UITool) context.get("ui")).init(user);

Scott

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@...
For additional commands, e-mail: user-help@...