Problem passing strings to my wrapper component
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