Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Open Source Projects
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
Other Open Source Projects
DisplayTag works but without colors!?
Peter Primrose
Ranch Hand
Posts: 755
posted 17 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
hi guys,
I'm using the displayTag library from:
http://displaytag.sourceforge.net/11/install.html
I'm able to see the table on the
jsp
page (code below) but for some reason, there're no graphics (colors and borders in the table) and it looks empty!
I tried to set it to the look and feel of ITS:
http://displaytag.homeip.net/displaytag-examples-1.1/example-styles.jsp?class=its
but...nothing :-(
any idea?
Thanks
<%@ taglib uri="http://displaytag.sf.net" prefix="display" %> <%@ include file="/taglibs.jsp" %> <fmt:setBundle basename="ApplicationResources" /> <table align="center" width = "80%"> <tr><td> <html:errors property="join"/> <h1>hello jsp worold </h1> <fmt:message key="loggedin.msg"> <fmt :-P aram value='${requestScope.userName}' /> </fmt:message> </td></tr> </table> <display:table name="sessionScope.all_users" class="its" sort="external" defaultsort="1"> <display:column property="userID" title="ID" paramId="userID" /> <display:column property="email" paramId="action" paramName="testparam" paramScope="request" /> <display:column property="password" paramId="id" paramProperty="userID" /> <display:column property="activation" format="{0,date,dd MMM yy}" sortName="datePosted" sortable="true" title="Date" /> </display:table>
Sivaraman Lakshmanan
Ranch Hand
Posts: 231
posted 17 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hi,
I am also having the same problem. Please help
Regards,
Sivaraman.L
Sivaraman Lakshmanan
Ranch Hand
Posts: 231
posted 17 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hi,
I got it. I just linked the screen.css file to my JSP and it showed the graphics.
Regards,
Sivaraman.L
Peter Primrose
Ranch Hand
Posts: 755
posted 17 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
mmm...
I'm still working on it :-(
could you tell me:
1. Where exactly did you put screen.css file - is it the same below?
2. could you kindly send the jsp code that worked for you?
THANKS!
SCREEN.CSS
@import url("displaytag.css"); @import url("alternative.css"); @import url("teststyles.css"); body,input,select,td,textarea { font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 11px; } h4,h5,h6,p,strong,div,form,acronym,label,table,td,th,span,a,hr,code,pre,hr { margin: 0; padding: 0; font-size: 1em; background-repeat: no-repeat; list-style-type: none; } a,a:visited,a:hover { color: #666; text-decoration: none; } a:hover { text-decoration: underline; } img { border: none; } table hr { height: 1px; clear: both; margin: none; width: 100%; } textarea { width: 80%; height: 200px; } dt { font-weight: bold; } acronym { border-bottom: 1px dashed #000; cursor: help; } ul#stylelist { margin: 0 0 20px 0; height: 20px; padding: 0; } ul#stylelist li { list-style-type: none; float: left; width: 100px; border: 1px solid #ccc; background-color: #eee; padding: 2px;; float: left; width: 100px; border: 1px solid #ccc; background-color: #eee; padding: 2px; margin: 0 2px 0 0; } ul#showsource { float: right; padding: 0; margin: 15px 20px 0 0; width: 100px; height: 33px; list-style-type: none; background-image: url("../img/viewsource.png"); background-repeat: no-repeat; margin-bottom: -30px; text-align: center; line-height: 30px; font-weight: bold; } ul#showsource a,ul#showsource a:visited { font-size: 11px; font-family: verdana; color: #fff; } table.sublist { margin: 0 0 0 0; width: 100%; } table.sublist td,table.sublist th { width: 50%; } code { background-color: #eee; padding: 0 2px 0 2px; } hr { height: 1px; color: #fff; border: none; border-top: 1px dotted #ccc; margin: 20px 0 20px 0; width: 50%; }
Sivaraman Lakshmanan
Ranch Hand
Posts: 231
posted 17 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hi,
Add the below line to your JSP page and put the screen.css file inside the css folder. This should work.
<link rel="stylesheet" href="./css/screen.css" type="text/css"/>
Regards,
Sivaraman.L
Peter Primrose
Ranch Hand
Posts: 755
posted 17 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
FINALLY!!!
ok, I was missing some css files :-(
* in particular the displayTag.css HA!
anyway, it's working...thanks
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Displaytag question
pagination problem
How to pass multiple parameters. Displaytag row value not changing on dynamic link
displaying tag in jsp
display tag export problem
More...