Excellent! That did the trick (I was actually wondering about that
code, but I swore I saw that example somewhere, probably bad
copy/paste error).
-warner
On 11/6/06, andyhot <[EMAIL PROTECTED]> wrote:
> There's a small issue you've uncovered...
>
> The @Dialog component writes out an id and style attribute
> but doesn't declare those neither as parameters nor as reserved
> parameters...
>
> So in the example you give, the rendered html is
> <div id="loginDisplay" style="display:none" id="loginDisplay"> ...
>
> which is invalid xml and so the ajax response isn't processed correctly
>
> Just remove for now the extra id parameter...
>
>
>
> Warner Onstine wrote:
> > Ok, so I've managed to create a login component that resides inside of
> > a Dialog component but am having some issues with the submission.
> >
> > First, some info about the Login component. Originally this was a page
> > that the user was redirected to if they weren't logged in and then it
> > would direct them back to the page with a visit object created and
> > populated.
> >
> > I went ahead and just took everything as it was (with the redirect
> > removed) and made it extend BaseComponent. I also changed it from a
> > Form to an AjaxForm. When I first try and submit with correct info
> > nothing happens. When I did it a second time it would recycle the page
> > underneath it to display properly.
> >
> > In trying to track it down I decided to try to do the updateComponents
> > for the form, so I created a parameter to pass this information in and
> > now when I submit I get this error:
> > bad srcObj for srcFunc: onsubmit
> >
> > I turned on debug, but it's alot of info (I can send it on if it's needed).
> >
> > Here are the particulars:
> > NewEvent.html
> > ------------------
> > <div jwcid="[EMAIL PROTECTED]:Dialog" id="loginDisplay"
> > hidden="ognl:userLoggedIn"
> > bgColor="white" bgOpacity="0.4">
> > <span jwcid="@Login" componentsToUpdate="ognl:{'loginDisplay','newEvent'}"/>
> > </div>
> > <div jwcid="@tap101:ShowErrors"
> > validationDelegate="ognl:validationDelegate"/>
> > <form jwcid="[EMAIL PROTECTED]:AjaxForm" success="listener:addEvent"
> > delegate="ognl:validationDelegate">
> > ....
> > -------------------
> > Login.jwc
> > -------------------
> > <component-specification class="com.sourcebeat.tap101.components.Login">
> > <parameter name="componentsToUpdate" required="yes"/>
> > <component id="login" type="tacos:AjaxForm" >
> > <binding name="listener" value="listener:attemptLogin" />
> > <binding name="delegate" value="ognl:validationDelegate"/>
> > <binding name="updateComponents" value="componentsToUpdate" />
> > </component>
> > </component-specification>
> > --------------------
> > Login.html
> > --------------------
> > <div jwcid="@tap101:ShowErrors"
> > validationDelegate="ognl:validationDelegate"/>
> > <form jwcid="login" class="dialog">
> > <fieldset>
> > <legend>Login</legend>
> > <label jwcid="@FieldLabel" field="component:email" for="email"
> > accesskey="e">Your Email</label>
> >
> > <input jwcid="[EMAIL PROTECTED]" type="text" size="30" name="email"
> > value="ognl:email" displayName="message:email"/><br/>
> > <label jwcid="@FieldLabel" field="component:password"
> > for="password" accesskey="e">Your Password</label>
> >
> > <input jwcid="[EMAIL PROTECTED]" hidden="true" type="text"
> > size="30" name="password" value="ognl:password"
> > displayName="message:password"/>
> > <input jwcid="@Submit" name="login" value="Login"/>
> > </fieldset>
> >
> > </form>
> > -----------------
> > the login form listeners are defined in the Login.java file
> >
> > Any ideas what the issue is here?
> >
> > -warner
> >
> > -------------------------------------------------------------------------
> > 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
> >
> >
>
>
> --
> Andreas Andreou - [EMAIL PROTECTED] - http://andyhot.di.uoa.gr
> Tapestry / Tacos developer
> Open Source / J2EE Consulting
>
>
> -------------------------------------------------------------------------
> 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