Olli <[EMAIL PROTECTED]> writes:
>What do you want to say to me?
The question was: Are you sure that your action event is actually called?
You can't do
$link.setActionEvent("MyAction", "ChangeLayout")
it must be
$link.setActionEvent("MyAction", "Changelayout")
Notice the lower case "l". This is one of the restrictions that
Turbine places on the event names. You must not user a camel-case word
here. Your action event name can have only one capital letter.
And your method must be called doChangelayout
Regards
Henning
>Henning P. Schmiedehausen writes:
>> [EMAIL PROTECTED] writes:
>>
>>
>>>Hi!
>>
>>
>>>I'm quite a newbie to turbine and im trying to chage the layout template in an
>>>action.
>>>My approach doesn't work:
>>>...
>>>public void doChangeLayout(RunData data, Context context) {
>>> data.setLayoutTemplate("NewLayout.vm");
>>> }
>>
>>
>> Trivial? doChangelayout ?
>>
>> The Action must have exactly one capital letter.
>>
>> Regards
>> Henning
>>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
--
Dipl.-Inf. (Univ.) Henning P. Schmiedehausen INTERMETA GmbH
[EMAIL PROTECTED] +49 9131 50 654 0 http://www.intermeta.de/
RedHat Certified Engineer -- Jakarta Turbine Development -- hero for hire
Linux, Java, perl, Solaris -- Consulting, Training, Development
"Fighting for one's political stand is an honorable action, but re-
fusing to acknowledge that there might be weaknesses in one's
position - in order to identify them so that they can be remedied -
is a large enough problem with the Open Source movement that it
deserves to be on this list of the top five problems."
-- Michelle Levesque, "Fundamental Issues with
Open Source Software Development"
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]