Specifying an id="" worked...
 
I was able to call my java method to get a custom id.
 
<span jwcid="[EMAIL PROTECTED]" id="ognl:imageComponentId">
 
public String getImageComponentId () {
 
return "Image_" + new Integer (getIndex()).toString();
 
}
Best regards 
Ken in nashua



From: [EMAIL PROTECTED]: [EMAIL PROTECTED]: RE: dynamic jwcidDate: Thu, 25 Sep 
2008 15:26:54 -0400


This is for t-4.1.6 I do not want tapestry choosing my ID's. I want to assign 
my own within a for collection loop.Best regardsKen in nashua



From: [EMAIL PROTECTED]: [EMAIL PROTECTED]: dynamic jwcidDate: Thu, 25 Sep 2008 
15:06:31 -0400

Folks, I just noticed my gallery widget is failing... WHY? Because the jwcid 
gets reset on every render I am rendering a collection of 80,000 objects But I 
only display 4 per page When I page to offset 10, the jwcid for my image'S 
start from 1 instead of 10. My getElementByID calls are bnow bogus. Why isn't 
there a solution to dynamic jwcid's? Can anyone elaborate? I tried this... 
<span jwcid="ognl:componentId" /> But that doesn't work. Delegator doesn't 
work. I don't need to complicate things with renderblock.Ideas are appreciATED. 
Best regards Ken in nashua



See how Windows connects the people, information, and fun that are part of your 
life. See Now 



Want to do more with Windows Live? Learn “10 hidden secrets” from Jamie. Learn 
Now 
_________________________________________________________________
Stay up to date on your PC, the Web, and your mobile phone with Windows Live.
http://clk.atdmt.com/MRT/go/msnnkwxp1020093185mrt/direct/01/

Reply via email to