Re: Dynamic assigning component id

2006-05-30 Thread Pratibha Gopalam
Great! Thanks a lot! Mike Snare wrote: thanks! -Mike On 5/30/06, Nick Westgate <[EMAIL PROTECTED]> wrote: A tip: note that you don't need the element attribute for components that default it to templateTag (check the .jwc file). DRY ;-) So just is fine. Cheers, Nick. Mike Snare wrote:

Re: Dynamic assigning component id

2006-05-30 Thread Mike Snare
thanks! -Mike On 5/30/06, Nick Westgate <[EMAIL PROTECTED]> wrote: A tip: note that you don't need the element attribute for components that default it to templateTag (check the .jwc file). DRY ;-) So just is fine. Cheers, Nick. Mike Snare wrote: > Right. You have to use jwcid otherwise i

Re: Dynamic assigning component id

2006-05-30 Thread Nick Westgate
A tip: note that you don't need the element attribute for components that default it to templateTag (check the .jwc file). DRY ;-) So just is fine. Cheers, Nick. Mike Snare wrote: Right. You have to use jwcid otherwise it's not a tapestry component. Keep using jwcid, but also use plain old

Re: Dynamic assigning component id

2006-05-30 Thread Mike Snare
Right. You have to use jwcid otherwise it's not a tapestry component. Keep using jwcid, but also use plain old id. For an implicit component, it would look something like this: -Mike On 5/30/06, Andreas Bulling <[EMAIL PROTECTED]> wrote: On 30. Mai 2006 - 16:19:37, Pratibha Gopalam wrote: |

Re: Dynamic assigning component id

2006-05-30 Thread Andreas Bulling
On 30. Mai 2006 - 16:19:37, Pratibha Gopalam wrote: | 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? | | -- -- this works, but the id | 'someid' is stat

Re: Dynamic assigning component id

2006-05-30 Thread Pratibha Gopalam
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? -- -- this works, but the id 'someid' is static. Now I want to make that dynamic. -- : This doesn't work b

Re: Dynamic assigning component id

2006-05-30 Thread Mike Snare
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

Dynamic assigning component id

2006-05-29 Thread Pratibha Gopalam
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