Thanks for the reply.
In the template (.html) we normally use the jwcid to give a id and tell
tapestry what type of component to instantiate. How do I do the same
thing with id?
<span [EMAIL PROTECTED] > -- </span> -- this works, but the id
'someid' is static. Now I want to make that dynamic.
<span id ="ognl:myId" type="Block" > -- <span> : This doesn't work
because tapestry looks for jwcid to create the components. If I move the
component declaration to the page file, the id is again static there.
If possible can you please send me the code snippet as to how you could
do that?
thanks,
Pratibha
Mike Snare wrote:
Just use id, not jwcid. The jwcid tells it which component in the
.jwc/page file to use, but the id can be set however you wish. I just
did that on a few custom components I've written so I know it works.
I imagine there may be some components for which it doesn't if ID is
reserved, but I don't know.
Give it a shot.
On 5/30/06, Pratibha Gopalam <[EMAIL PROTECTED]> wrote:
Hello,
Is there a way of dynamically assigning a component id at runtime? For
example if I creating components in a for loop and I want to assign the
component ids at runtime, is that possible?
Tapestery doesn't allow me to use a ognl expression for jwcid like
jwcid="ognl:categoryName". Is there any other way?
Thanks,
Pratibha
------------------------------DISCLAIMER------------------------------
This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any mistransmission.
If you receive this message in error, please immediately delete it and
all copies of it from your system, destroy any hard copies of it and
notify the sender. You must not, directly or indirectly, use, disclose,
distribute, print, or copy any part of this message if you are not the
intended recipient.
Lisle Technology Partners Pvt. Ltd. and any of its subsidiaries each
reserve the right to monitor all e-mail communications through its
networks.
Any views expressed in this message are those of the
individual sender, except where the message states otherwise and the
sender is authorized to state them to be the views of any such entity.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]