troubleshooting Question

How to override style sheet

Avatar of dimple
dimple asked on
Web Applications
2 Comments1 Solution707 ViewsLast Modified:
I have style for table display which is having td.a with let say x image. I am using that style to render my table. Now i need to put collapsible panel in one of the column as data. I have my own tag for collapsible panel as under :

<%@ tag display-name="Page layout tag"%>

<%@ attribute name="divId" required="true" rtexprvalue="true" %>
<%@ attribute name="openText" required="true"%>
<%@ attribute name="closeText" required="true"%>
<%@ attribute name="currentState" required="true"%>

<%@ taglib prefix="s" uri="/struts-tags"%>

<s:if test="${currentState == 'open'}">
      <s:set name="displayStyle" value="%{'display: block'}"/>
      <s:set name="displayText"  value="%{'${closeText}'}"/>
      <s:set name="displayClass" value="%{'collapse'}"/>
      <s:set name="displayStyle" value="%{'display: none'}"/>
      <s:set name="displayText"  value="%{'${openText}'}"/>
      <s:set name="displayClass" value="%{'expand'}"/>

<a href="javascript:;" onmousedown="showHideDiv('${divId}', '${openText}', '${closeText}')"
      id="anchor_${divId}" class="${displayClass}">${displayText}</a>
<div><div class="blockIndent" id="${divId}" style="${displayStyle}">
<!-- Start collapsible content (id:${divId}) -->
<!-- End collapsible content (id:${divId}) -->
</div></div><%@ tag display-name="Page layout tag"%>

I am using that collapsible panel in the table as under :

<ui:collapsiblePanel divId="Requestidcontainer" openText="Show Request IDs" closeText="Hide Request IDs" currentState="close">

It is taking  anchor image of table class instead of style defined in collapsible panel.

Can, anybody know how i override the table anchor style ?

Thanks in advance.

Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 2 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 2 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros