Sorry,
I'm embarrassed. As it turns out, I had been working too long and I put jwcid="@Any" on the line above it, so, in fact, the div was just <div class="day-row" id='ognl:(studyDay.pkScheduled)?"active-pk":"inactive"'> to begin with, so of course it didn't do anything. When I added it to the right line, everything worked.

I'll take a break next time and then come back to it before I post.

Thanks,
Philip

PSW 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]

Reply via email to