• 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
Page Communication?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Page Communication?


  • Subject: Page Communication?
  • From: Scott Winn <email@hidden>
  • Date: Thu, 14 Sep 2006 11:02:03 -0700

Hello all, 

I'm trying to share data between two kinds of WOComponents.  They are separate pages for all practical intents.  The first kind is a page that needs a date range set, the second is a calendar that sets the dates one at a time.  Click the Start Date link tells the Calendar Component that I'm going to be picking a start date and sends a DateRange object to be set.  

public CSSCalendar getCalendar() {
CSSCalendar nextPage = (CSSCalendar)pageWithName("CSSCalendar");


nextPage.setDateRange(dateRange);

nextPage.setDateType("Start");

nextPage.setParentPage(this);


   return nextPage;
}

So far so good.  The problem is since the Calendar is going to be called by lots of different Components I don't know how to send the DateRange back to the calling Component.  

public WOComponent returnToParentPage() {

parent.setDateRange(dateRange); // <--- problem

return parent;
}

The compiler doesn't like the setDateRange call and I don't blame it, but I don't know the right way to do it.  Obviously, I could put the DateRange in the session, but I'm trying to avoid that.  Do I need to make everything that wants to get a value back from the Calendar a subclass of Calendar?  

Obviously I'm new to Java and WebObjects.  Thanks for the help.

Scott
 _______________________________________________
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: Page Communication?
      • From: Randy Wigginton <email@hidden>
  • Prev by Date: Re: Ajax drag and drop not working in deployment
  • Next by Date: Re: Page Communication?
  • Previous by thread: Re: Ajax drag and drop not working in deployment
  • Next by thread: Re: Page Communication?
  • Index(es):
    • Date
    • Thread