If the parameter is an IN type anyway, won't the default always be
overridden as soon as the component is used?
Anyway, I looked at the javadocs for finishLoad a while back and don't
understand it...lots of talk of calling via a convenience, but not sure
what it does in the first place (includes a render!?)...maybe I am
interpreting the method name differently than it was intended.
One last question...if using a CUSTOM or OUT direction parameter, do I
still have to create the binding accessors/mutators, etc. or just manually
extract the value from a framework-created binding?
Thanks for all the great help. There is a lot of technology here...I hope
to be able to continue participating.
-C
----- Forwarded by Christian Hall/Technology/Equifax on 09/10/2002 11:23 AM
-----
hlship@attbi.
com To: [EMAIL PROTECTED]
cc:
[EMAIL PROTECTED] (Tapestry Developer)
09/10/2002 Subject: Re: [Tapestry-developer]
connected parameters question
11:02 AM
ParameterManager is the class.
What you are seeing is that the ParameterManager gets
the value of the property (once), so that it can reset
the property back to initial default value after
rendering the component.
Creating a persistent property during the render is a no-
go as well; you'll get an exception that the page
recorder is locked.
You may not be able to use a connected parameter since
you need the value of the binding at other times that
during renderComponnt().
You probably should implement finishLoad() and register
your component as a PageRenderListener and obtain the
parameter value (or null) from pageBeginRender().
--
[EMAIL PROTECTED]
http://tapestry.sf.net
> Where is the code that sets up the connected parameters?
>
> I have a component that has a persistent property for its data. The
> behavior I want is to have an optional parameter for an initial model of
> that data (List). If the parameter is not used, the component creates its
> own List, otherwise, it uses the one bound to it.
>
> The problem is that I do a null check in the property accessor and create
> the list (in the component) only if the property is null. For some
reason,
> getMyProperty in the component is being called before the expression
> (getMyProperty in the wrapping component) is called, so I am never using
> the bound list. I thought looking at the code would shed some light...I
was
> with the understanding that the very first thing that would happen before
> this component rendered was it getting its parameter value from the
> binding.
>
> -C
>
> Protect yourself against identity theft with Equifax Credit Watch. Visit
> http://www.creditalert.equifax.com.
>
> This message contains information from Equifax Inc. which may be
> confidential and privileged. If you are not an intended recipient,
please
> refrain from any disclosure, copying, distribution or use of this
> information and note that such actions are prohibited. If you have
> received this transmission in error, please notify by e-mail
> [EMAIL PROTECTED]
>
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by: OSDN - Tired of that same old
> cell phone? Get a new here for FREE!
> https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
> _______________________________________________
> Tapestry-developer mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/tapestry-developer
FREE 30-DAY TRIAL! Sign up for Equifax Credit Watch(TM) today and receive
unlimited credit reports and scores, as well as protection against identity
theft with daily credit monitoring -- FREE for 30 days -- all from Equifax
-- your market leader in information management. Visit
http://www.creditalert.equifax.com today!
This message contains information from Equifax Inc. which may be
confidential and privileged. If you are not an intended recipient, please
refrain from any disclosure, copying, distribution or use of this
information and note that such actions are prohibited. If you have
received this transmission in error, please notify by e-mail
[EMAIL PROTECTED]
-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone? Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
_______________________________________________
Tapestry-developer mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/tapestry-developer