Hello Ed,

          Good Morning, i am Yagna, can you please help me with the code to
avoid changing the entire page styles, my jsp page i already sent to you, i
had applied the changes for the column's like you suggested but still i am
in confusion, how to apply styles to the table,

so that my table should not disturb styles of entire jsp page when i click
on 2,3 etc page links.
Previously you suggested dont pass style file name to the table tag insted
you asked me to pass the style name which i am using.

       Kindly help me with the code, i strucked up Ed, very badly, i need to
integrate this code with other functionality, i am in serious problem.

      i feel i am fortunate if you save me from this situation. Thanks is
very very small word for your help, because my situation is very bad, My PM
is very angry on me over this issue.

  Kindly treat my mail with priority, because this is lost hope that i have,
because i dont have any other option, suddenly overnight i cannot create
some other logic for pagination, because i already crossed the dead line
given to me.

    Many thanks for help.

Thanks & Regards
Yagna Prasad.P


On 1/22/08, yagna prasad <[EMAIL PROTECTED]> wrote:
>
> I am sorry Ed,
>
>              i am facing serious problem with this, here i am sending you
> my entire jsp page which i am using in the project. Please find the
> attachment. i am using display tag 1.1, beanutils1.7.jar etc,
>
>    I have been trying with forums etc but i am unable to solve my problem,
> kindly help me, it is great on your part, try to test with my jsp page,
> and help me immediately.
>
>        i have many other functionalities dependent on this table data,
> which i need to deliver to the customer but displaytag is giving the
> problem.
>
>
>
>
>
>
> On 1/22/08, Ed Webb <[EMAIL PROTECTED]> wrote:
> >
> > yagna prasad wrote:
> > >
> > >
> > > On 1/20/08, *yagna prasad* < [EMAIL PROTECTED]
> > > <mailto:[EMAIL PROTECTED]>> wrote:
> > >
> > >    hello folks,
> > >
> > >
> > >     I  am using the display tag in one of my jsp that jsp already
> > >     using some CSS Styles like Table,links,tr,td,p
> > >
> > >     after using the display tag the CSS for that Page is Totally
> > >     Changing and its appearing differntly. Please Help Me
> > >
> > >
> > >
> > >    There are lot other functionalities dependent on this task, i
> > > strucked up here since last 10 days any help will be greatly
> > appreciable,.
> >
> > Have you looked at the html source of your page? Is it loading the
> > correct css file? Does the displaytag's generated table have the correct
> > class and id attributes?
> >
> > You probably didn't get an answer because you haven't given enough
> > information for anyone to even begin to figure out what you've done
> > wrong. Have a read of this :
> > <http://www.catb.org/~esr/faqs/smart-questions.html#beprecise> and give
> > it another try.
> >
> > Ed!
> >
> >
> > -------------------------------------------------------------------------
> > This SF.net email is sponsored by: Microsoft
> > Defy all challenges. Microsoft(R) Visual Studio 2008.
> > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> > _______________________________________________
> > displaytag-user mailing list
> > displaytag-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/displaytag-user
> >
>
>
>
<%@ include file="../FilePath.jsp" %>
<%@ page import="java.util.*,com.tycoelectronics.rohsc.dto.SearchDTO" %>
<%@ taglib uri="http://displaytag.sf.net"; prefix="display" %>

<HTML>
 <HEAD>
  <TITLE>Add RoHS Data</TITLE>
  
<LINK REL="StyleSheet" HREF="./theme/CLstyle.css" type="text/css">
 
<SCRIPT> 

//Funtction to clear form
function clearForm(){
        obj = document.getElementById('ena');
        obj1 = document.getElementById('dis');                  
        obj.style.display = "block";     
        obj1.style.display = "none";
        
        searchForm.criteria.value="part";
        searchForm.type.value="matches";
        searchForm.type1.value="matches";
        searchForm.value.value="";
        searchForm.value.focus();                
} 

//Function to validate form
function validate(){
        if(searchForm.value.value == ""){ 
        alert('Please Enter Search Value');      
        searchForm.value.focus(); 
        return false;
         } else
         return true;
}

//function to hide type1 div on page load
function hide(item){
        obj = document.getElementById(item);    
        obj.style.display = "none";             
} 

//function to show type selectbox depending upon criteria selected
function selectBox(item,item1){
        obj = document.getElementById(item);
        obj1 = document.getElementById(item1);

        var val = document.getElementById("criteria").value;
        if(val=='desc'){
                obj.style.display = "none";      
                obj1.style.display = "block";   
        }else{
                obj.style.display = "block";     
                obj1.style.display = "none";    
        }
}

//fuction to submit form
function submitForm(){
        if(validate()){
         document.searchForm.submit();
        }
}

//fuction to save the selected record
function saveForm(){


alert('in save');

var part_key_id_val = null;

alert(document.forms[0].rad.length);

for(var i=0;i<document.forms[0].rad.length;i++)
{
if(document.forms[0].rad.checked)
{
part_key_id_val = document.forms[0].rad.value;
}
}

alert(part_key_id_val);



//alert(document.searchForm.rad.value);

//      document.searchForm.action = 'saveAction.do';   
//       document.searchForm.submit();
}

// function to be called on click of radio button

function callURL(parKeyId)
{

alert("I am in radio button click function");
alert('  -----  '+parKeyId);

}

//function to check radiobutton and submit
function addData(){
        chosen="";
        len=document.searchForm.partKeyId.length;       
        for(i = 0; i <len; i++){
                if(document.searchForm.partKeyId[i].checked){
                        chosen = document.searchForm.partKeyId[i].value;
                        alert("******chosen value*******"+chosen);
                }
        }
        if(chosen == ""){
                alert("Please Select a Part Number to view");
        }else{
                alert("part key id-->"+chosen);                 
                document.forms.searchForm.action = 
"<%=request.getContextPath()%>"+"/addUpdateDetails.do";
                document.forms.searchForm.submit();
    }
}

</SCRIPT> 

</HEAD>
 
<body bgcolor="White" onload="javascript:hide('dis');">
<html:form action="addSearchAction.do" name="searchForm" 
type="com.tycoelectronics.rohsc.actionform.SearchForm">
<table width="100%" align='center' >
        <tr class='ez4'>
        <td colspan=2 align=left valign ='bottom' 
class="label"><b><bean:message key = "rohs.add.search"/></b></td>
        </tr>
</table>
<table width="50%" align="center">
     <tr class="ez1">
                <td valign="top"  align="center" class="label" nowrap 
width="50%">
                <bean:message key = "rohs.search.criteria"/></td>
                <td class="mdata" valign="top" width="50%" align="left">
                <select size="1" name="criteria" 
onchange="javascript:selectBox('ena','dis');">
                         <option value="part_no" selected>TE Corporate 
Part</option>
             <option value="ecoc_gpl">ECOC\GPL</option>
             <option value="desc">Description</option>            
        </select></td>
    </tr>
</table>  
  <%
System.out.println("in AddRoHSCSearch.jsp---->");
%>
<div id="ena">  
  <table width="50%" align="center">
     <tr class="ez1">
                <td valign="top"  align="center" class="label" nowrap 
width="50%" >
                <bean:message key = "rohs.search.type"/></td>
                <td class="mdata" valign="top" width="50%" align="left">
                <select size="1" name="type">
                        <option value="startsWith">Starts With</option>
            <option value="matches" selected>Matches</option>
            <option value="contains">Contains</option>  
            <option value="endsWith">Ends With</option>          
         </select></td>
    </tr>
   </table>  
</div>   

<div id="dis">
   <table width="50%" align="center">
     <tr class="ez1">
                <td valign="top"  align="center" class="label" nowrap 
width="50%" >
                <bean:message key = "rohs.search.type"/></td>
                <td class="mdata" valign="top" width="50%" align='left'>
                <select size="1" name="type1">
                        <option value="startsWith">Starts With</option>
            <option value="matches" selected>Matches</option>                   
  
        </select></td>
    </tr>
   </table>  
</div>

<table width="50%" align="center"> 
     <tr class="ez1">
                <td valign="top"  align="center" class="label" nowrap 
width="50%">
                <bean:message key = "rohs.search.value"/><font 
color="#FF0000">*</font></td>
                <td class="mdata" valign="top" width="50%" align="left">
                <input  maxlength=20 type="text" name="value" size="24"></td>
    </tr>
</table>

<table width="50%" align="center">
        <tr class="ez1">
                 <td colspan="0" class="stext" align="right" width="50%">
                 <a href="javascript:submitForm();" class="linkblue">
         <IMG  src="images/arr_bullet.gif"  border="0"  
align="absmiddle">Search</a></td> 
                 <td width="50%" align="left"><a href="javascript:clearForm();" 
class="linkblue">
                 <IMG  src="images/arr_bullet.gif"  border="0" 
align="absmiddle" >Clear</a></td>
   </tr> 
</table>

<br>
<logic:present name="SearchResult" scope="session">

<%!
ArrayList partDetails = null;

%>

<%
partDetails= (ArrayList)session.getAttribute("SearchResult");
         
      Iterator itr= partDetails.iterator();
       while (itr.hasNext()) {
            System.out.println("results found***********"+itr.next());
        }


System.out.println("partDetails "+partDetails);
// out.println("hello inside the arrayList object");
pageContext.setAttribute("partList",partDetails,PageContext.PAGE_SCOPE);

%>

<display:table name="pageScope.partList" pagesize="6" uid="partlistdata" 
style="css/displaytagex.css"> 
<td align="right" class="label" nowrap width="10%">
<display:column class='ez1'>

<% String strPartKeyId = 
(String)((((SearchDTO)pageContext.getAttribute("partlistdata"))).getPartKeyId());
 
System.out.println("------ value of partkey id----"+strPartKeyId);
%>
<input type="radio" name="statusID" value='<%= strPartKeyId %>' 
onclick="javascript:callURL('<%= strPartKeyId %>')"/>
</display:column>
</td>
  <td align="right" class="label" nowrap width="10%" >
 <display:column property="partNum" title="PartNum" url="/addUpdateDetails.do" 
paramId="partKeyId"
     paramProperty="partKeyId" autolink="true" class='ez1'>
  </display:column></td>
  <td align="right" class="label" nowrap width="10%" >
  <display:column property="partRev" title="PartRev" class='ez1'/> 
  </td>
  <td align="right" class="label" nowrap width="20%" >
  <display:column property="partDesc" title="PartDesc"  class='ez1'/> 
  </td>
  <td align="right" class="label" nowrap width="20%" >
  <display:column property="prodCode" title="ProdCode" class='ez1' /> 
  </td>
<td align="right" class="label" nowrap width="10%" >
  <display:column property="gpl" title="Gpl"  class='ez1'/> 
  </td>
   <td align="right" class="label" nowrap width="20%" >
  <display:column property="epup" title="Epup" class='ez1' /> 
  </td>
  <td align="right" class="label" nowrap width="20%" >
  <display:column property="ecoc" title="Ecoc" class='ez1'/> 
  </td>
   <td align="right" class="label" nowrap width="20%" >
  <display:column property="processCode" title="ProcessCode" class='ez1' /> 
  </td>
    <td align="right" class="label" nowrap width="20%" >
  <display:column property="elvCode" title="ElvCode" class='ez1' /> 
  </td>
  <td align="right" class="label" nowrap width="20%" >
  <display:column property="status" title="Status" class='ez1'  /> 
  </td>
   </display:table>
   
  <table width="50%" align="center">
        <tr class="ez1">
                 <td colspan="0" class="stext" align="right" width="50%">
                 <a href="javascript:saveForm();" class="linkblue">
         <IMG  src="images/arr_bullet.gif"  border="0"  
align="absmiddle">Save</a></td> 
                 <td width="50%" align="left"><a href="javascript:clearForm();" 
class="linkblue">
                 <IMG  src="images/arr_bullet.gif"  border="0" 
align="absmiddle" >Cancel</a></td>
   </tr> 
</table>
 
  
</logic:present>

<logic:notPresent name="SearchResult" scope="session">
        <table width="90%" align='center' cellspacing="0" cellpadding="0" >   
                <tr class='ez4'>
                        <td colspan=2 align="CENTER" valign ='bottom' 
class="label" width="100%"><b><bean:message key = 
"rohs.search.results"/></b></td>
                </tr>
        </table>
  <br>
  <table width="90%" align='center' cellspacing="0" cellpadding="0" >   
                <tr class='ez4'>
                        <td colspan=2 align="CENTER" valign ='bottom' 
class="label" width="100%">
                        <b><bean:message key = "rohs.search.noData"/></b></td>
                </tr>
        </table>
</logic:notPresent>

</html:form>
</BODY>
</html:html>
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
displaytag-user mailing list
displaytag-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/displaytag-user

Reply via email to