Re: How do I embed/load already existing components into other components
Chuck Hill <[email protected]>
| Newsgroups | gmane.comp.web.webobjects.wonder-disc |
|---|---|
| Message-ID | <[email protected]> |
Hi Carlo, It does not work like that, you can't use it like that. You need to follow the pattern in AjaxExamples. Chuck On 2013-02-01, at 9:14 AM, Giancarlo Dessena wrote: > Hi everybody, > > I'm trying to fill the tabs of an AjaxTabbedPanel with components that i have already created and stored in a list. > I have been working with the switchComponent to load new components by name, but I don't know which component i can use to embed/load an existing Component. > > <wo:AjaxTabbedPanel id="tabbedPanel"> > <wo:loop list="$tabs" item = "$tab"> > <wo:AjaxTabbedPanelTab name="~tab.title + ' [x]'" > > <wo:??? component = "$tab" /> > </wo:AjaxTabbedPanelTab> > </wo:loop> > </wo:AjaxTabbedPanel> > > ... > tabs = new NSMutableArray<WOComponent>(); > tabs.add(new SearchUser(this.context())); > tabs.add(new User(this.context())); > > Any suggestions? > > Carlo > ------------------------------------------------------------------------------ > Everyone hates slow websites. So do we. > Make your web apps faster with AppDynamics > Download AppDynamics Lite for free today: > http://p.sf.net/sfu/appdyn_d2d_jan_______________________________________________ > Wonder-disc mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/wonder-disc -- 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/gvc/practical_webobjects Global Village Consulting ranks 13th in 2012 in BIV's Top 100 Fastest Growing Companies in B.C! Global Village Consulting ranks 76th in 24th annual PROFIT 200 ranking of Canada’s Fastest-Growing Companies by PROFIT Magazine! ------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_jan