Re: How do I embed/load already existing components into other components
Johnny Miller <[email protected]>
| Newsgroups | gmane.comp.web.webobjects.wonder-disc |
|---|---|
| Message-ID | <[email protected]> |
Hi Giancarlo, WOSwitchComponent is what I think you are looking for. Johnny On Feb 4, 2013, at 2:28 AM, Giancarlo Dessena <[email protected]> wrote: > Hi Chuck, > > you are right about the AjaxTabPanel :) Guess i have to build my own AjaxTabs to achieve my goal. > Anyway I'm still wondering if it is possible to load an existing component into another one. > > <wo:??? component = "$<componentReference>" /> > > Is that even Possible? > > Carlo > > Am 01.02.2013 um 18:38 schrieb Chuck Hill <[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 > _______________________________________________ > Wonder-disc mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/wonder-disc ------------------------------------------------------------------------------ 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