• 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
newbie: basic question on getting a value from an entity
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

newbie: basic question on getting a value from an entity


  • Subject: newbie: basic question on getting a value from an entity
  • From: Paul Marvine <email@hidden>
  • Date: Sat, 3 Mar 2007 14:36:14 -0600

Hello,

For test purposes on a page I have a hyperlink set with this binding..
pageName = pagesDisplayGroup.selectedObject.pageTemplate

This hyper link does as expected, when clicked it returns the component listed by "pagesDisplayGroup.selectedObject.pageTemplate". 
But when I try to set up a similar operation in an action I get stuck.

On the page this test action works...

public String desiredComponent;

public WOComponent doWebTemplate()
    {

      

String desiredComponent = "WebView01";
WOComponent nextPage = pageWithName( desiredComponent );


        return nextPage;
    }

But the trouble starts when I change the action to this...

public String desiredComponent;

public WOComponent doWebTemplate()
    {

      

String desiredComponent = pagesDisplayGroup.selectedObject().pageTemplate();
WOComponent nextPage = pageWithName( desiredComponent );

return nextPage;
    }

What is the correct way to write the line to get the value of "pageTemplate"?
I get a can't resolve symbol error, or with other variations on the line I'll get a Null pointer exception when it runs.


Thank you for any help.

Paul

 _______________________________________________
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: newbie: basic question on getting a value from an entity
      • From: Guido Neitzer <email@hidden>
  • Prev by Date: Re: Javamonitor help
  • Next by Date: Re: newbie: basic question on getting a value from an entity
  • Previous by thread: Re: Javamonitor help
  • Next by thread: Re: newbie: basic question on getting a value from an entity
  • Index(es):
    • Date
    • Thread