I create custom id atritbutes using OGNL all the time, but I use double quotes around the attribute. I think ognl supports using a single quote around literal strings, but I've not had to test this. My tag would look like this:
<div jwcid="@Any" id="ognl:someMethod()"> --sam On 4/7/06, PSW <[EMAIL PROTECTED]> wrote: > Hi there, > > I'm using Tapestry 3.0 > > I'm trying to have the id attribute in my div tag be dynamic, but it's > not rendering. > > I have the following line in my html: > <div jwcid="@Any" class="day-row" > id='ognl:(studyDay.pkScheduled)?"active-pk":"inactive"'> > > But it renders like this: > <div class="day-data" id='ognl:(studyDay.censusScreen != > 0)?"active-sc":"inactive"'> > > Rather than what I'm trying to get, which is this: > <div class="day-data" id='inactive'>15</div> > or > <div class="day-data" id='active-pk'>15</div> > > > I'm thinking that it's some conflict with the way Tapestry uses the id > tag, but I'm not sure how to work around it. Any help would be much > appreciated. > > Thanks, > Philip > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]