• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Component Question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Component Question


  • Subject: Re: Component Question
  • From: Chuck Hill <email@hidden>
  • Date: Fri, 14 Aug 2009 09:55:17 -0700


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@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: Component Question
      • From: Johnny Miller <email@hidden>
References: 
 >Component Question (From: Johnny Miller <email@hidden>)

  • Prev by Date: Re: WebObjects 4.5
  • Next by Date: Re: Component Question
  • Previous by thread: Re: Component Question
  • Next by thread: Re: Component Question
  • Index(es):
    • Date
    • Thread