You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by david joffrin <da...@hotmail.com> on 2005/02/24 14:42:11 UTC
Encountering a very simple problem...
Hi everybody,
I am pasting you the following code:
1 -- The Border
<html jwcid="shell">
<body jwcid="@Body">
<table>
<tr valign="top">
<td>
<table border="0" cellpadding="0" cellspacing="0" width="178">
<tr>
<td rowspan="1" colspan="1"><span jwcid="@ActionLink"
listener="ognl:listeners.logout">Logout</span></td>
</tr>
</table>
</td>
<td>
<span jwcid="@RenderBody">Page content goes here.</span>
</td>
</tr>
</table>
</body>
</html>
2 -- The home:
<span jwcid="@Border" title="My title">
Please select a menu item on the Left side!
</span>
3 -- Java classes:
1/ base class that implements the logout
public void logout(IRequestCycle cycle) {
....
}
2/ and my home.java that does nothing.
When I am lauching everything I have the folllowing:
Unable to resolve expression 'listeners.logout' for
org.apache.tapestry.BaseComponent$Enhance_0@c94114[Home/$Frame].
Any ideas?
Thanks.
DvJ
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
Re: Encountering a very simple problem...
Posted by david joffrin <da...@hotmail.com>.
Yes, I do, but this is in my base class:
class Secured extend BasePage {
public void logout(...) {
...}
}
but the page that uses the Border component is Home...
class Home extends Secured {
...
}
Could it be the issue?
Thanks.
DvJ
David Joffrin
MSN: david_joffrin@hotmail.com
>From: Jamie Orchard-Hays <ja...@dang.com>
>Reply-To: "Tapestry users" <ta...@jakarta.apache.org>
>To: "Tapestry users" <ta...@jakarta.apache.org>
>Subject: Re: Encountering a very simple problem...
>Date: Thu, 24 Feb 2005 09:32:00 -0500
>
>No, links don't need to go inside a form.
>
>Also, you shouldn't use ActionLink, it's deprecated. Use DirectLink.
>
>Do you have logout(IRequestCycle cycle) defined in your java file?
>
>Jamie
>
>
>On Feb 24, 2005, at 8:54 AM, Shing Hing Man wrote:
>
>>I could be wrong - but I think you need to put
>>ActionLink component inside a Form component.
>>
>>Shing
>>
>> --- david joffrin <da...@hotmail.com> wrote:
>>>Hi everybody,
>>>
>>>I am pasting you the following code:
>>>1 -- The Border
>>><html jwcid="shell">
>>> <body jwcid="@Body">
>>> <table>
>>> <tr valign="top">
>>> <td>
>>> <table border="0" cellpadding="0"
>>>cellspacing="0" width="178">
>>> <tr>
>>> <td rowspan="1" colspan="1"><span
>>>jwcid="@ActionLink"
>>>listener="ognl:listeners.logout">Logout</span></td>
>>> </tr>
>>> </table>
>>> </td>
>>> <td>
>>> <span jwcid="@RenderBody">Page
>>>content goes here.</span>
>>> </td>
>>> </tr>
>>> </table>
>>> </body>
>>></html>
>>>
>>>2 -- The home:
>>><span jwcid="@Border" title="My title">
>>>Please select a menu item on the Left side!
>>></span>
>>>
>>>3 -- Java classes:
>>>1/ base class that implements the logout
>>> public void logout(IRequestCycle cycle) {
>>>....
>>>}
>>>2/ and my home.java that does nothing.
>>>
>>>When I am lauching everything I have the folllowing:
>>>Unable to resolve expression 'listeners.logout' for
>>>
>>org.apache.tapestry.BaseComponent$Enhance_0@c94114[Home/$Frame].
>>>
>>>Any ideas?
>>>
>>>Thanks.
>>>DvJ
>>>
>>>
>>>
>>>
>>---------------------------------------------------------------------
>>>To unsubscribe, e-mail:
>>>tapestry-user-unsubscribe@jakarta.apache.org
>>>For additional commands, e-mail:
>>>tapestry-user-help@jakarta.apache.org
>>>
>>>
>>
>>=====
>>Home page :
>> http://uk.geocities.com/matmsh/index.html
>>
>>
>>
>>
>>
>>___________________________________________________________
>>ALL-NEW Yahoo! Messenger - all new features - even more fun!
>>http://uk.messenger.yahoo.com
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
>>For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
Re: Encountering a very simple problem...
Posted by Jamie Orchard-Hays <ja...@dang.com>.
No, links don't need to go inside a form.
Also, you shouldn't use ActionLink, it's deprecated. Use DirectLink.
Do you have logout(IRequestCycle cycle) defined in your java file?
Jamie
On Feb 24, 2005, at 8:54 AM, Shing Hing Man wrote:
> I could be wrong - but I think you need to put
> ActionLink component inside a Form component.
>
> Shing
>
> --- david joffrin <da...@hotmail.com> wrote:
>> Hi everybody,
>>
>> I am pasting you the following code:
>> 1 -- The Border
>> <html jwcid="shell">
>> <body jwcid="@Body">
>> <table>
>> <tr valign="top">
>> <td>
>> <table border="0" cellpadding="0"
>> cellspacing="0" width="178">
>> <tr>
>> <td rowspan="1" colspan="1"><span
>> jwcid="@ActionLink"
>> listener="ognl:listeners.logout">Logout</span></td>
>> </tr>
>> </table>
>> </td>
>> <td>
>> <span jwcid="@RenderBody">Page
>> content goes here.</span>
>> </td>
>> </tr>
>> </table>
>> </body>
>> </html>
>>
>> 2 -- The home:
>> <span jwcid="@Border" title="My title">
>> Please select a menu item on the Left side!
>> </span>
>>
>> 3 -- Java classes:
>> 1/ base class that implements the logout
>> public void logout(IRequestCycle cycle) {
>> ....
>> }
>> 2/ and my home.java that does nothing.
>>
>> When I am lauching everything I have the folllowing:
>> Unable to resolve expression 'listeners.logout' for
>>
> org.apache.tapestry.BaseComponent$Enhance_0@c94114[Home/$Frame].
>>
>> Any ideas?
>>
>> Thanks.
>> DvJ
>>
>>
>>
>>
> ---------------------------------------------------------------------
>> To unsubscribe, e-mail:
>> tapestry-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail:
>> tapestry-user-help@jakarta.apache.org
>>
>>
>
> =====
> Home page :
> http://uk.geocities.com/matmsh/index.html
>
>
>
>
>
> ___________________________________________________________
> ALL-NEW Yahoo! Messenger - all new features - even more fun!
> http://uk.messenger.yahoo.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
Re: Encountering a very simple problem...
Posted by Shing Hing Man <ma...@yahoo.com>.
I could be wrong - but I think you need to put
ActionLink component inside a Form component.
Shing
--- david joffrin <da...@hotmail.com> wrote:
> Hi everybody,
>
> I am pasting you the following code:
> 1 -- The Border
> <html jwcid="shell">
> <body jwcid="@Body">
> <table>
> <tr valign="top">
> <td>
> <table border="0" cellpadding="0"
> cellspacing="0" width="178">
> <tr>
> <td rowspan="1" colspan="1"><span
> jwcid="@ActionLink"
> listener="ognl:listeners.logout">Logout</span></td>
> </tr>
> </table>
> </td>
> <td>
> <span jwcid="@RenderBody">Page
> content goes here.</span>
> </td>
> </tr>
> </table>
> </body>
> </html>
>
> 2 -- The home:
> <span jwcid="@Border" title="My title">
> Please select a menu item on the Left side!
> </span>
>
> 3 -- Java classes:
> 1/ base class that implements the logout
> public void logout(IRequestCycle cycle) {
> ....
> }
> 2/ and my home.java that does nothing.
>
> When I am lauching everything I have the folllowing:
> Unable to resolve expression 'listeners.logout' for
>
org.apache.tapestry.BaseComponent$Enhance_0@c94114[Home/$Frame].
>
> Any ideas?
>
> Thanks.
> DvJ
>
>
>
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
> tapestry-user-help@jakarta.apache.org
>
>
=====
Home page :
http://uk.geocities.com/matmsh/index.html
___________________________________________________________
ALL-NEW Yahoo! Messenger - all new features - even more fun! http://uk.messenger.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org