• 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
Problem passing strings to my wrapper component
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Problem passing strings to my wrapper component


  • Subject: Problem passing strings to my wrapper component
  • From: Kevin Windham <email@hidden>
  • Date: Thu, 22 Feb 2007 22:51:18 -0600

I have a page wrapper and I've set up an API for it so I can pass some variables to it from the pages containing content. I have managed to pass Boolean values without any problem. In my .java file I put

public Boolean boolValue;

And in the API for the wrapper I have the name boolValue and value set is Boolean.

This works fine, I can inspect the wrapper in my content page and set the boolValue to true and my wrapper page responds appropriately.

However, if I do the same thing with a string, I get a null pointer exception. The only difference I can see is there is no option for String in the value set menu, so I just leave that unset. I imagine I am missing something, but I can't seem to find any leads on what it is.

Maybe the difference is that I am trying to access the string in my .java file. I simply put in some code in the constructor, but maybe the string hasn't been set yet by the content page. Is there any documentation on the chain of events for this scenario?

Thanks,
Kevin
_______________________________________________
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: Problem passing strings to my wrapper component
      • From: "Jerry W. Walker" <email@hidden>
    • Re: Problem passing strings to my wrapper component
      • From: "Daniele Corti" <email@hidden>
  • Prev by Date: Re: Is there an easy way
  • Next by Date: Refresh
  • Previous by thread: Re: Is there an easy way
  • Next by thread: Re: Problem passing strings to my wrapper component
  • Index(es):
    • Date
    • Thread