Re: passing data to wrapper component
Re: passing data to wrapper component
- Subject: Re: passing data to wrapper component
- From: William Norris <email@hidden>
- Date: Sun, 19 Sep 2004 18:49:35 -0500
On Tue, 17 Aug 2004 19:49:17 -0700, Sam Barnum
<email@hidden> wrote:
> Good advice, Dirk. Just to flush in the 'read the apple docs' part:
>
> A handy shortcut to use the value of a binding directly in a component
> is to use a special syntax to refer to the value of a binding. THis is
> the carat symbol, followed by the binding name.
> So for the title of the page, add this:
> <html>
> <head>
> <title><WEBOBJECT NAME=titleString></WEBOBJECT></title>
> </head>
>
> and define the value of the string as ^title
>
> alternately, you could set the value of the string to title (without
> the carat) and provide the following accessor in your pagewrapper:
>
> public String getTitle() {
> return (String)valueForBinding("title");
> }
>
> Once you get bindings figured out you can do some really nifty reusable
> components.
i've been doing this for a little while now and it is sorta doing what
I want. However, how would i go about setting bind values for the
pageWrapper programmatically? presently, I'm just setting them in
WOBuilder, but I'd like to set them from the .java file of the
contained component. the problem is that their is no instance of the
pageWrapper class within the contained component... how do i go about
referencing it?
thanks,
will
_______________________________________________
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