Is there a problem with the mailing list ?  I just received the last message which has been sent 4 days ago.  It's a chance I checked the bug report before.

I tried to modify AjaxLinkSubmit to support external forms, like proposed in the bug 117 comments, but I don't think it will be easy.  It's a formComponent, so it needs a form to render.  I tried to "plug" the external form and continue with normal rendering, but if the form is not rendering too (before or after render), members like formSupport are not initialized, so I get NullPointerExceptions.  It will need more work.  Il will check that later, when I have time.

Maybe a workaround would be to have an AjaxEventSubmit in the form, and a link triggering it on the onclick, but I will have to figure how to "inject" the event submits in the form...

Frederic

On 5/12/06, Andreas Andreou <[EMAIL PROTECTED]> wrote:
Frederic, just tried to test your first issue.
See
http://tacoscomponents.jot.com/BugReporter/Bug117
for details

Frederic Barnabe wrote:
> Hi everybody,
>
> I'm playing with dialogs for my project and ran across 2 problems.
>
> The first is when I have an AjaxLinkSubmit inside a dialog.  When I
> click on it to send the data to the server and close the dialog, the
> response tries to connect the link again with dojo, but fails with a
> bad srcObj error.  I filed a bug on this and attached a possible
> solution.  My code in the bug description doesn't display nice, sorry.
> ( http://tacoscomponents.jot.com/BugReporter/Bug117)
>
> The second one is really special.  I have a tab like component that
> displays other components. The components are defined in other pages,
> so that any external module can dynamically had a panel to the main
> component.  In one of the component, I have a dialog, but when I
> switch to that component, the _javascript_ that initializes the dialog
> is never generated.  I have the fields of the dialog at the bottom of
> the screen without any style.  If I hit F5 to refresh the page, the
> the _javascript_ is generated and it works great. I searched a little
> bit in the dialog.java code and spotted these lines that seems to
> cause the problem :
>
>         if ((ajaxRequest && !ajaxr.containsComponentId(getId()))
>                 || (writer instanceof NullWriter))
>             return;
>
>         PageRenderSupport pageRenderSupport =
> TapestryUtils.getPageRenderSupport(cycle, this);
>         getScript().execute(cycle, pageRenderSupport, scriptParms);
>
> In my case, I have an ajax request, but the dialog is not in the
> updateComponents list, since the page calling the update has absolutly
> no idea that a dialog is contained in the component it is showing.
> The condition resolves to true, so the script is never executed.
> Sure, a quick fix would be to remove the containsComponentId in the if
> clause, but I'm afraid there would be major side effects.  Anyone has
> an idea ?  I will file a bug report on this too, but tomorrow. I'm
> going to sleep for now...
>
> Frederic
>
>


-------------------------------------------------------
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

Reply via email to