I am trying to get an Action class to switch to a different template
depending on the selection  in a list box.

At the moment I am trying the simple case of trying to redirect all
selections to the same template with the following line in the doPerform
method:

        setTemplate( data, "ProjWeb.vm");

The action is being called from my DefaultTop.vm template 

        action="$link.setPage("Index.vm").setAction("LaunchApp")"
NAME="appchoice">

The doPerform method is getting called because a System.out.println debug
statement is appearing on the TDK console.

Unfortunately, all I seem to get is the Index.vm screen and not ProjWeb.vm
as expected.

Hardcoding a link in my template instead of using the action above eg:

        <a href="$link.setPage("ProjWeb.vm")">[ Project Web ]</a>

does pull up the right screen, so I know there is nothing wrong with the
template.

Can anyone suggest what I am doing wrong?  btw I am using tdk1.1a10.

Thanks

Shaun Campbell 


------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?:           [EMAIL PROTECTED]

Reply via email to