It worked quite easy, thanks a lot! --- "Schneider, Eric" <[EMAIL PROTECTED]> wrote: > Marc, > > You can replace the opening <td> with the 'Any' > component. That would work. > > .html: > <span jwcid="it"> > <td jwcid="openTdTag" element="td"> > <a jwcid="linkfoto"></a> > </td> > </span> > > .page/.jwc > <component id="openTdTag" type="Any"> > <binding name="class" > expression="someMethodThatReturnsTheRightFoto"/> > </component> > > Hope that helps, > Eric > > > -----Original Message----- > > From: marc harster [mailto:[EMAIL PROTECTED]] > > Sent: Tuesday, January 28, 2003 4:37 PM > > To: [EMAIL PROTECTED] > > Subject: [Tapestry-developer] Embeding css class > selectors to tags > > > > > > I've got the tipical square grid used to display > > object content , I began by customizing a forEach > > iterator that accepts number of columns as a > parameter > > and simply inserts <tr></tr> pairs whenever is due > > afterwards I inserted a pair of <td> </td> , and > > finally i've developed the component that renders > the > > object itself,(actually just a link image). > > Everything amounts to this: > > > > <span jwcid="it"> > > <td> > > <a jwcid="linkfoto"></a> > > > > </td> > > </span> > > > > Time to time ,I've decided to change the apparence > of > > the cells containing the objects depending on a > > certain state of the object (the quality of the > > picture), as a straightforward option I've > intended to > > use simply css selector elements one for each > > state,and the goal is to introduce them in the > <td> > > elements :<td class="Foto1"> > > > > That is Picture with quality==1 gets <td > > class="Foto1"> > > with quality==2 gets <td class="Foto2"> > > > > ,to choose among the different values i use the > > conditional component > > <span jwcid="ifQualitat0"> <td class="Foto0"> Q0 > > the which tanks to OGNL gets cuality property from > the > > object and compares to 0 if so it writes the tag. > > > > All This amounts to this: > > > > > > <span jwcid="it"> > > > > <td> //BIG PROBLEM THERE > > <span jwcid="ifQualitat0"> <td > class="Foto0"> > > Q0 </span> > > <span jwcid="ifQualitat1"> <td > class="Foto1"> > > Q1 </span> > > <a jwci d="linkfoto"></a> > > > > </td> > > </span> > > > > As stated by the label if I dont place an extra TD > in > > the template I will get a Template Parse > > Exception,because of the HTML being not well > > constructed, strangely enough, if I add the <TD> I > get > > a magically produced </td>, and a full bloated > > unexpected unwanted cell. > > > > So the question is how to deal with the need of > > embeding class selector in tags ? > > > > It seems me that <td <span id > > conditional>class="myClass" </span> > > > would also not work... > > > > Thanks in advance. > > > > __________________________________________________ > > Do you Yahoo!? > > Yahoo! Mail Plus - Powerful. Affordable. Sign up > now. > > http://mailplus.yahoo.com > > > > > > > ------------------------------------------------------- > > This SF.NET email is sponsored by: > > SourceForge Enterprise Edition + IBM + LinuxWorld > = Something 2 See! > > http://www.vasoftware.com > > _______________________________________________ > > Tapestry-developer mailing list > > [EMAIL PROTECTED] > > > https://lists.sourceforge.net/lists/listinfo/tapestry-developer > > > > > ********************************************************************** > This message, including any attachments, contains > confidential information intended for a specific > individual and purpose, and is protected by law. If > you are not the intended recipient, please contact > sender immediately by reply e-mail and destroy all > copies. You are hereby notified that any > disclosure, copying, or distribution of this > message, or the taking of any action based on it, is > strictly prohibited. > TIAA-CREF > **********************************************************************
__________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com _______________________________________________ Tapestry-developer mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/tapestry-developer
