Passing objects betweem components in the same page
Passing objects betweem components in the same page
- Subject: Passing objects betweem components in the same page
- From: Gustavo Adolfo Pizano <email@hidden>
- Date: Tue, 26 May 2009 14:58:35 +0200
Hello.
I have a WOComponent, which has a <div> with all the info its fetching
form the EO, now that div is growing too much, (as I see), so I was
thinking in putting that div into another component, and then I can
have than info separate it form the whole main page.
something like
....
.....
<div>
<wo:XWSInformation/>
</div>
...
...
the problem is that the info that is inside that <div> is binded to
what the user selected in another <div> in the same mainPage.html, so
I dunno how to pass to the new WOComponent (lets call it
XWSInformation.wo), the information the user selected in mainPage, so
in XWSinformation.wo (.java) I can do what Im doing right now in
mainPage.java.
is it possible? or should I keep doing it in the mainPage.java.
I was thinking in the pageWithName("XWSInformation") and then have
accesors to set the information I need to use in order to generate
what should be inside, but that will return me a new instance of that
component to be shown in another page, not inside the same
mainPage.html... i dunno correct me if Im wrong.
Thanks
Gustavo
_______________________________________________
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