On Aug 13, 2009, at 7:39 PM, Johnny Miller wrote:

I've created a component that is modeled after the components AjaxTabbedPanel and AjaxTabbedPanelTab found in Wonder's Ajax Framework.

How closely? That was rather tricky to write, much deviation won't work.


Unlike AjaxTabbedPanel - the different tabs are all loaded at the same time i.e. no ajax. Everything works fine except when I embed a Form inside one of the tabs.

Have you tried links and such? I will guess that they do not work either.


For some reason the bindings gets out of sync because when the form is submitted it doesn't call the function it is wired to?

You are manually calling tab.appendChildrenToResponse. Are you doing something similar during takeValues and invokeAction? If you don't also handle those specially, this is not going to work.


I think the problem is when I'm looping through the child tabs and appending their content i.e.

                for(MoAccordionTab tab : tabs) {
                        response.appendContentString("\n\t\t<div");
                        appendTagAttributeToResponse(response, "class", 
togglerClass);
                        response.appendContentString(">");
response .appendContentString((String)tab.title().valueInComponent(component));
                        response.appendContentString("</div>");
response.appendContentString("\n\t\t<div class=\"" + elementClass + "\">"); tab.appendChildrenToResponse(response, context); // NOT THE RIGHT WAY?
                        response.appendContentString("\n\t\t</div>");
                }

Any ideas?


I suspect it might be more complex than what your implementation handles.


Chuck


--
Chuck Hill             Senior Consultant / VP Development

Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems.
http://www.global-village.net/products/practical_webobjects






_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to