Hi Ken
I think you are missing the listener, try this:
public void Login(IRequestCycle cycle) {
Dialog dialog = (Dialog) getComponent("loginDialogContent");
dialog.show();
}
But, you are also mixing things. @AjaxDirectLink does not work like a
@PageLink it works like a @DirectLink :) So, if you want to go to
another page you should implement it your self inside your listener
method.
I would do it like the DialogExample
http://opencomponentry.com:8080/tacos/core/DialogExample.html
Put your login form inside your Home.html and use a property to make
the Dialog hidden by default.
<property name="hidden" persist="session" initial-value="true"/>
<div jwcid="[EMAIL PROTECTED]:Dialog" bgColor="white"
hidden="ognl:hidden" bgOpacity="0.5">
Saludos.
Alejandro.
On 10/30/06, Ken nashua <[EMAIL PROTECTED]> wrote:
> Hi Folks,
>
> I implemented a working Login.html, Login.page and Login.java that operates
> encrypted login credentials.
>
> Currently this is invoked off of a Home.html page with
> <span jwcid="@PageLink" page="Login">Login</span>
>
> I would like to make this a fadable popup so I did the followiing:
>
> 1. I used AjaxDirectLink inside Home.html
>
> <a href="#" jwcid="[EMAIL PROTECTED]:AjaxDirectLink"
> updateComponents="ognl:{'loginDialogContent'}"
> listener="listener:Login"
> popup="literal:{title:'Login Dialog?',
> widgetId:'loginDialogContent',
> constrainToContainer:'1',
> excludeToolbar:'true',
> toggle:'fade',
> contentNodeId:'recPane'}">
> Popup Login</a>
>
> 2. Then I wrapped my original Login.html with the following:
>
> <div jwcid="[EMAIL PROTECTED]:Dialog" bgColor="white"
> bgOpacity="0.5">
> ...original stuff...
> </div>
>
> The docs are not elaborate on popups...
>
> Can anyone pick out whats wrong. it fails to render due to bogus listener. I
> am not sure how to tell this thing to take my original Login.html stuff and
> present it in a popup.
>
> I am not even sure this is the proper e-frastructure to use to present a
> working page within the context of a popup.
>
> Thanks for any assistance
>
> You may continue by restarting the session.
>
> org.apache.tapestry.BindingException
> Exception invoking listener method Login of component Home: Object
> [EMAIL PROTECTED] does not implement a listener method named 'Login'.
> binding: [EMAIL PROTECTED]
> parameter listener, component=Home, methodName=Login,
> location=context:/Home.html, line 22]
> component: [EMAIL PROTECTED]
> location: context:/Home.html, line 22
> 17 </p>
> 18
> 19 <span jwcid="@PageLink" page="Login">Login</span>
> 20 <br> <br>
> 21
> 22 <a href="#" jwcid="[EMAIL PROTECTED]:AjaxDirectLink"
> 23 updateComponents="ognl:{'loginDialogContent'}"
>
> _________________________________________________________________
> Stay in touch with old friends and meet new ones with Windows Live Spaces
> http://clk.atdmt.com/MSN/go/msnnkwsp0070000001msn/direct/01/?href=http://spaces.live.com/spacesapi.aspx?wx_action=create&wx_url=/friends.aspx&mkt=en-us
>
>
> -------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> Tacos-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/tacos-devel
>
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Tacos-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tacos-devel