Le 05-08-01 à 03:36, Curtney Jacobs a écrit :

Greetings David.

Ok, so would my conditional logic in my Tile controller be determined by
parameters? Meaning, display this content if parameter xxx occured. It
seems that this would be the only way my Tile controller would no what
to do.

For example,

<o:panelTabCommandLink id="my-wks-link" title="MyWorkspace"
value="MyWorkspace" target="_self">
<f:param name="myworkspace.desktop" value="xxxxxx"/>
</o:panelTabCommandLink>

I suppose that'd work, but you're going to have to dig that parameter
out of the JSF component hierarchy in your Tiles controller. I don't think I'd be comfortable with that coupling between the Tiles controller and the
JSF component.

It's hard to tell what you're up to from that puny example 8-), but I would probably be inclined to programatically set a variable, perhaps in request or session scope and let the controller base it's decision on that variable.
You could set the variable in a JSF action or action listener.

Anyway, regardless of how you do it, Tiles controllers exist mainly to
dynamically specify tile defintions, (although they can certainly do other
things) instead of statically in the Tiles config file.


david


Curtney

On Sun, 2005-07-31 at 14:39 -0700, David Geary wrote:

Try using a Tiles controller to dynamically specify the tile's
content, based on whatever it is your actions are doing.


david

Le 05-07-30 à 20:20, Curtney Jacobs a écrit :


Greetings!

This is my last attempt before giving up on Tiles for my current
project. Has anyone successfully used Tiles and MyFaces in a project
where action events triggers dynamic loading of tile definitions. For
example, command link "A" trigger loading of tile definition "A",
command link "B" trigger loading of tile definition "B", etc.

I am  aware that because my url address never changes I will
continue to
load the same tile definition. Is there anyway around that, using
Tiles
and MyFaces ofcourse. Not resorting to using <x:aliasBean>


I have tried redirecting, but my jsf view does not reflect the app
current state, however, I do load the correct tile definition.

I have tried dynamically setting a new view using code similar to the
following:

context.getApplication().getViewHandler().createView (context,
"/myview.jsfp");
context.setViewRoot (view);
context.renderResponse();


Perhaps, I should switch to SiteMesh? Has anyone encountered any
problems using SiteMesh and MyFaces?


Please, your feedback is greatly appreciated.

Thanks,

Curtney








Reply via email to