RE: [displaytag-user] How to add parameter to TableTag
Brought to you by:
fgiust
From: Mehta, J. <Jas...@ba...> - 2004-01-28 20:40:58
|
It can not be done with CSS and javascript. I want to add extra attribute in TableTag for .htc use. Pl help me to add the attribute in TableTag. thx -----Original Message----- From: Matt Raible [mailto:li...@ra...] Sent: Tuesday, January 27, 2004 5:55 PM To: dis...@li... Subject: RE: [displaytag-user] How to add parameter to TableTag Why do you want to add an invalid HTML attribute to your table? Is this something you can do with CSS and JavaScript? > -----Original Message----- > From: dis...@li... > [mailto:dis...@li...] On > Behalf Of Mehta, Jasmin > Sent: Tuesday, January 27, 2004 8:30 AM > To: dis...@li...; > dis...@li... > Subject: [displaytag-user] How to add parameter to TableTag > > > Hi, > > Right now the the display table tag is like <display:table > name="sessionScope.projectList" pagesize="10">. It has > 'pagesize' and 'name' parameters. Now I want to add my own > new parameter 'bodyHeight'. I have added one class variable > and method in TableTag.java file. > > /** > * TBODY height - reset in doEndTag() > * Added by Jasmin Mehta > */ > private int mBodyHeight = 0; > > /** > * Method setBodyHeight > * @param pStringValue String > * @throws InvalidTagAttributeValueException if value is > not a valid integer > */ > public void setBodyHeight(String pStringValue) throws > InvalidTagAttributeValueException > { > > try > { > mBodyHeight = Integer.parseInt(pStringValue); > } > catch (NumberFormatException e) > { > throw new > InvalidTagAttributeValueException(getClass(), "bodyHeight", > pStringValue); > } > > } > > > I was expecting that if I write below line in my JSP file than > > <display:table name="sessionScope.projectList" > bodyHeight="100" class="tblMain"> > > It should be converted in below line if I do view source on > generated HTML code > > <table bodyHeight="100" bodyHeight="100" class="tblMain">. > > But it is not adding the parameter 'bodyHeight' in <table> > tag, its just genereating > > <table bodyHeight="100" class="tblMain"> > > tag instead. > > After modifying TableTag.java file as above, I have updated > displaytag-1.0-b1.jar file. > > Where else, what other classes do I need to modify in order > to get my expected result. > > Thanks > Jasmin > > > > > ------------------------------------------------------- > The SF.Net email is sponsored by EclipseCon 2004 > Premiere Conference on Open Tools Development and Integration > See the breadth of Eclipse activity. February 3-5 in Anaheim, > CA. http://www.eclipsecon.org/osdn > _______________________________________________ > displaytag-user mailing list dis...@li... > https://lists.sourceforge.net/lists/listinfo/displaytag-user > ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ displaytag-user mailing list dis...@li... https://lists.sourceforge.net/lists/listinfo/displaytag-user |