How can i make a css tab highligted incicating that i am in current jsf pag

Hi
i am creating jsf pages nad linking the pages thru css tabs. i am able to creat and link the tab.
i want to higlight the tab of the current page in which i am.
below is my code
css code
.navigation a
color: #000;
background: #fb0 url("../images/left-tab.gif") left top no-repeat;
text-decoration: none;
padding-left: 10px ;
font-weight:bold;
.navigation a span
background: url("../images/right-tab.gif") right top no-repeat;
padding-right: 10px
.navigation a:link, .navigation a:visited, .navigation a:active
{color: #fff; background: #bbb uurl("../images/left-tab.gif") left top no-repeat; font-weight:bold; padding-left: 10px}
.navigation a:link span, .navigation a:visited span, .navigation a:active span
{background: #bbb ("../images/right-tab.gif") right top no-repeat; padding-right: 10px}
.navigation a, .navigation a span
display: block;
float: left
.navigation a, .navigation a span
float: none
.navigation a:hover
color:#F5FFFA;
background: #26a url("../images/left-tab-hover.gif") left top no-repeat;
text-decoration: none;
padding-left: 10px
.navigation a:hover span
background: url("../images/right-tab-hover.gif") right top no-repeat;
padding-right: 10px
.navigation, .navigation ul
list-style: none;
padding: 0;
margin: 0
.navigation li
float: left;
display: block;
margin: 0;
padding: 0
and in jsp file i am using as
<h:panelGrid columns="2" styleClass="navigation">
<ul>
<h:column>
<li><h:commandLink action="edit1003">
<span><h:outputText value="#{msgs.edit1003}" styleClass="maintabtext"/></span>
</h:commandLink>
</li>
</h:column>
<h:column>
<li> <h:commandLink action="aboutus">
<span> <h:outputText value="#{msgs.aboutus}" styleClass="maintabtext"/></span>
</h:commandLink>
</li>
</h:column>
</ul>
</h:panelGrid>
some one please let me know how to highlight the current page do i need to use any javascript if so can some send me code snippet it would be greatful
thansk in advance.
sreedevi

Did you get the solution for this. I seem to have the same problem.

Similar Messages

  • How can i make my scrollpane in a way that at the opening of a frame it doe

    How can i make my scrollpane in a way that at the opening of a frame it does not scroll down automatically?
    code is below
    import java.awt.*;
    import javax.swing.*;
    import javax.swing.*;
    import java.awt.event.*;
    import java.net.*;
    import javax.swing.JOptionPane.*;
    import java.io.*;
    import javax.swing.colorchooser.*;
    import javax.swing.filechooser.*;
    import javax.accessibility.*;
    import javax.swing.border.*;
    import java.sql.*;
    public class Signup extends JFrame
         JLabel p1,p2,p3,p4,p5,p6,uid,upass,cpass,fname,sname,hint,sl,ed,age,adr,cit,zip;
         JTextField uname,fnamet,snamet,hintt,adrt,adrt1,city,zipcode;
         JPasswordField upassw,cpassw;     
         JComboBox sex,education,agegr;
         Signup()
         Container c=getContentPane();
         c.setLayout(null);
         c.setBackground(Color.white);
         /** JPanel c = new JPanel();
         c.setBackground(Color.white);
         int v = ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS;
         int h = ScrollPaneConstants.HORIZONTAL_SCROLLBAR_AS_NEEDED;
         JScrollPane jsp = new JScrollPane(c, v, h); ***/
    p1=new JLabel("Create Your Icafe!ID",10);
         p2=new JLabel("Personal Information");
         p3=new JLabel("User Address");
         p4=new JLabel("Tell Us About Your Hobbiess (Optional) ");
         p5=new JLabel("Tell us something about what you like. This will help us choose the kind of content to display on           your pages.");
         p6=new JLabel("--------------------------------------------------------------------------------");
    uid=new JLabel("User Id");
         upass=new JLabel("Password");
         cpass=new JLabel("Confirmation Password");
         fname=new JLabel("UserName");
         sname=new JLabel("SurName");
         hint=new JLabel("Hint Question");
    sl=new JLabel("Sex");
         ed=new JLabel("Education");     
         age=new JLabel("Age Group");     
         adr=new JLabel("Address");
    cit=new JLabel("City");
    zip=new JLabel("ZipCode");
         uname=new JTextField(10);
         uname.requestFocus();     
         uname.setToolTipText("UserName");
    upassw=new JPasswordField(10);
         upassw.setToolTipText("Password");
         upassw.setEchoChar('*');
         cpassw=new JPasswordField(10);
         cpassw.setToolTipText("Confirmation Password");
         cpassw.setEchoChar('*');
         fnamet=new JTextField(10);
         fnamet.setToolTipText("FullName");
         snamet=new JTextField(10);
         snamet.setToolTipText("SurName");
         hintt=new JTextField(10);
         hintt.setToolTipText("Hint Question");     
    String[] gender={"[Select one]","Male","Female"};
         sex = new JComboBox(gender);          
    String[] edu={"[Select one]","S.S.C","Inter","Graduate","Post Graduate"};
         education= new JComboBox(edu);     
    String[] ageg={"[Select one]","0 - 15","16 - 35","36 - 70","70 - 100"};
         agegr= new JComboBox(ageg);     
    adrt=new JTextField(15);
         adrt.setToolTipText("Address");
         adrt1=new JTextField(15);
         adrt1.setToolTipText("Address");
         city=new JTextField(15);
         city.setToolTipText("City");
    zipcode=new JTextField(15);
         zipcode.setToolTipText("ZipCode");
         p1.setBounds(200,70,160,30);
         uid.setBounds(350,100,160,30);
         uname.setBounds(400,100,160,30);
         upass.setBounds(335,140,160,30);
         upassw.setBounds(400,140,160,30);
         cpass.setBounds(260,180,160,30);
         cpassw.setBounds(400,180,160,30);
         p2.setBounds(200,220,160,30);
         fname.setBounds(330,260,160,30);
         fnamet.setBounds(400,260,160,30);
         sname.setBounds(335,300,160,30);
         snamet.setBounds(400,300,160,30);
    hint.setBounds(315,340,160,30);     
    hintt.setBounds(400,340,160,30);
         sl.setBounds(370,380,160,30);     
         sex.setBounds(400,380,160,30);
         ed.setBounds(335,420,160,30);     
         education.setBounds(400,420,160,30);
    age.setBounds(330,460,160,30);
    agegr.setBounds(400,460,160,30);
    p3.setBounds(200,500,160,30);
         adr.setBounds(340,540,160,30);
         adrt.setBounds(400,540,160,30);
         adrt1.setBounds(400,580,160,30);
         cit.setBounds(370,620,160,30);
         city.setBounds(400,620,160,30);
    zip.setBounds(590,620,160,30);
    zipcode.setBounds(640,620,160,30);
         Font font = new Font("SansSerif",Font.BOLD, 12);
         setFont(font);
         c.add(p1);
    c.add(uid);
         c.add(uname);     
         c.add(upass);
         c.add(upassw);
    c.add(cpass);
         c.add(cpassw);
    c.add(p2);
    c.add(fname);     
         c.add(fnamet);
    c.add(sname);
    c.add(snamet);
         c.add(hint);
    c.add(hintt);     
    c.add(sl);
    c.add(sex);
    c.add(ed);
         c.add(education);
    c.add(age);
         c.add(agegr);
    c.add(p3);
    c.add(adr);
         c.add(adrt);
         c.add(adrt1);
    c.add(cit);
    c.add(city);
    c.add(zip);
    c.add(zipcode);
         setResizable(false);
         //int a=DO_NOTHING_ON_CLOSE;
         //setDefaultCloseOperation(a);
         show();
         setSize(800,500);
    // Border raisedBorder = new BevelBorder(BevelBorder.RAISED);     
         setContentPane(c);     
    public static void main (String arg[])
         try{
         UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel");
         }catch(Exception s)
         Signup swu=new Signup();

    just try the following:
    jsp.getVerticalScrollbar().setValue(0);after inserting and adding all your components. this will set the vertical scrollbar up to the very first line.
    regards

  • How can I make the spry accordion remember the panel open when I refresh the page or jump to a new page?

    How can I make the spry accordion remember the panel open
    when I refresh the page or jump to a new page?
    I am using the accordion feature on all my pages as a
    navigation aid. It has three panels. When you refresh the page the
    panel goes back to the default pane... Is there a way of
    controlling this so that the browser can remember the pane that is
    open (say set a variable, cookie, other?)

    Look for "Set the default open panel" on the following page:
    http://labs.adobe.com/technologies/spry/articles/accordion_overview/index.html
    Keep in mind you would need to change that bit of code on
    every page. The only way to do it more dynamically would be to
    include a custom javascript or PHP/ASP style script in order to
    change the value.

  • On my Mac desktop I must have changed a setting so that now when I move the mouse the open windows fly off to the sides and I can't see them. They come back when I move the mouse, but it is so annoying. How can I make the windows not disappear like that?

    On my Mac desktop I must have changed a setting so that now when I move the mouse the open windows fly off to the sides and I can't see them. They come back when I move the mouse, but it is so annoying. How can I make the windows not disappear like that?

    Click on the Hot Corners..  button and look at the four definitions.  In the picture below, if you moved the cursor to the right top of the screen, it would slide all the applications off the screen as you describe and show the desktop.  Set it to "-" to deactivate.

  • How can I know the name of the file that the user has currently open ?

    Hello
    I'm developing a module for x3dv.
    http://hiperia3d.blogspot.com/search/label/X3DV%20Module%20For%20Netbeans
    I am going to add a button to open the files when I click it.
    I just need to know how can I know the name of the file that the user has currently open in the editor. What variable holds it in Netbeans?
    Thank you
    Jordi

    If you are using the JFileChooser to open the document, I would create another class with this included:
    //initiate class variables
    private File f;
    //create JFileChooser
    JFileChooser fc = new JFileChooser();
    fc.setMultiSelectionEnabled(false);
    fc.setFileSelectionMode(JFileChooser.FILES_ONLY)
    //set the chooser to initialise File f with the file selected
    int status = fc.showOpenDialog(null);
    if (status == JFileChooser.APPROVE_OPTION)
         f = fc.getSelectedFile();
    public File getFile()
         return f;
    }

  • How can I make my hotmail account delete emails that I delete on my phone?

    How can I make my hotmail account delete the messages that I delete on my Droid 3? I selected the "obey the other program" in my hotmail account, but nothing's being deleted.
    Thanks,
    Cesslie

    You're welcome.     Lots of good info. can be found in this forum; if you can't find what you're looking for in a search, just post another question.  Have fun with your Droid!

  • How can I make my email boxes smaller, so that all the stuff does not show after I have opemed it?

    The email that I am reading is very large with a lot of stuff that I do not need to see. How can I make my box smaller?

    ''hhennes [[#question-1047185|said]]''
    <blockquote>
    The email that I am reading is very large with a lot of stuff that I do not need to see. How can I make my box smaller?
    </blockquote>

  • How can I make the annotation box show in the printed word version on the pages app?

    I want to insert annotation box on the side of the text. But I found that i cannot do that, and the annotation box disappear on the printed version of my document. How can I make that appear on my printed verison? Thank you!

    You are referring to Comments and Apple has removed the old method from Pages 5.
    If it is important to you go back to using Pages '09 which should still be in your Applications/iWork folder.
    Peter

  • How can I make the GRID lines more bold within a table in the new Pages?  (Not the outline of a table)

    I can't find where to darken GRID lines on a table in the new Pages.  I can make the outline more bold, but not the grid lines within the table.  Is there a way to do this?  The default grid lines are far too faint.

    Yeah, the Help is missing a little.
    If you select the block of cells that you want to change, then in the Format inspector:
    Select the Cell tab
    Expand the Border section
    Set a line type
    Set a line width
    Choose a line color
    Choose one of the nine options for which borders get the new settings

  • How can i make to not be saved everything that i spell?

    How can i remove some spelling on websites and make it to not be saved anymore?
    I hope the question was understand.

    If I understand your problem, do you want to remove some words that you added to your personal dictionary of the spell checker? If that is the problem, see [[using the spell checker]], the "Removing a word you have accidentally added" section gives details of a file that you need to edit to remove the words.

  • How can I make a complaint for an App that I bought thru the Mac App Store?

    Hello everybody, I just bought an app few minutes ago and I'm not satisfied with it.  How can I claim to receive my money back? Regards.

    Apple's policy is that all sales are final.
    Mac App Store Support -
    http://www.apple.com/support/mac/app-store/

  • How can i make the size of my document that i created smaller so that i can email it easier

    The 5 page document I created and need to send is 1.7MB.  I need it to be 250KB to send using the format requested.  All the info needs to be sent.  How can i shrink the data by such a large amount to enable the document to send?  I am on Windows 7 and using AcrobatXI

    Depending on the content you may be asking for a lot. From within Acrobat the two options to do this are PDF Optimize or Reduce File Size. The location of these options vary among menus based on version. In some versions they are under the File>Save As options (AA XI). The PDF Optimize also has an audit that helps you determine the source of the bloat. If you used WORD to create the PDF, a first step in a smaller file size is to print to the Adobe PDF printer to avoid all the tagging and other markup. Of course, that is a compromise if you had wanted the bookmarks and all.

  • How can I put an output stream (HTML) from a remote process on my JSF page

    Hello,
    I've a question if someone could help.
    I have a jsf application that need to execute some remote stuff on a different process (it is a SAS application). This remote process produces in output an html table that I want to display in my jsf page.
    So I use a socket SAS class for setting up a server socket in a separate thread. The primary use of this class is to setup a socket listener, submit a command to a remote process (such as SAS) to generate a data stream (such as HTML or graphics) back to the listening socket, and then write the contents of the stream back to the servlet stream.
    Now the problem is that I loose my jsf page at all. I need a suggestion if some one would help, to understand how can I use this html datastream without writing on my Servlet output stream.
    Thank you in advance
    A.
    Just if you want to look at the details .....
    // Create the remote model
    com.sas.sasserver.submit.SubmitInterface si =
    (com.sas.sasserver.submit.SubmitInterface)
    rocf.newInstance(com.sas.sasserver.submit.SubmitInterface.class, connection);
    // Create a work dataset
    String stmt = "data work.foo;input field1 $ field2 $;cards;\na b\nc d\n;run;";
    si.setProgramText(stmt);
    // Setup our socket listener and get the port that it is bound to
    com.sas.servlet.util.SocketListener socket =
    new com.sas.servlet.util.SocketListener();
    int port = socket.setup();
    socket.start();
    // Get the localhost name
    String localhost = (java.net.InetAddress.getLocalHost()).getHostAddress();
    stmt = "filename sock SOCKET '" + localhost + ":" + port + "';";
    si.setProgramText(stmt);
    // Setup the ods options
    stmt = "ods html body=sock style=brick;";
    si.setProgramText(stmt);
    // Print the dataset
    stmt = "proc print data=work.foo;run;";
    si.setProgramText(stmt);
    // Close
    stmt = "ods html close;run;";
    si.setProgramText(stmt);
    // get my output stream
    context = FacesContext.getCurrentInstance();
    HttpServletResponse response = (HttpServletResponse) context.getExternalContext().getResponse();
    ServletOutputStream out = response.getOutputStream();
    // Write the data from the socket to the response
    socket.write(out);
    // Close the socket listener
    socket.close();

    The system exec function is on the Communication palette. Its for executing system commands. On my Win2K system, the help for FTP is:
    "Ftp
    Transfers files to and from a computer running an FTP server service (sometimes called a daemon). Ftp can be used interactively. Click ftp commands in the Related Topics list for a description of available ftp subcommands. This command is available only if the TCP/IP protocol has been installed. Ftp is a service, that, once started, creates a sub-environment in which you can use ftp commands, and from which you can return to the Windows 2000 command prompt by typing the quit subcommand. When the ftp sub-environment is running, it is indicated by the ftp command prompt.
    ftp [-v] [-n] [-i] [-d] [-g]
    [-s:filename] [-a] [-w:windowsize] [computer]
    Parameters
    -v
    Suppresses display of remote server responses.
    -n
    Suppresses autologin upon initial connection.
    -i
    Turns off interactive prompting during multiple file transfers.
    -d
    Enables debugging, displaying all ftp commands passed between the client and server.
    -g
    Disables file name globbing, which permits the use of wildcard characters (* and ?) in local file and path names. (See the glob command in the online Command Reference.)
    -s:filename
    Specifies a text file containing ftp commands; the commands automatically run after ftp starts. No spaces are allowed in this parameter. Use this switch instead of redirection (>).
    -a
    Use any local interface when binding data connection.
    -w:windowsize
    Overrides the default transfer buffer size of 4096.
    computer
    Specifies the computer name or IP address of the remote computer to connect to. The computer, if specified, must be the last paramete
    r on the line."
    I use tftp all of the time to transfer files in a similar manner. Test the transfer from the Windows command line and copy it into a VI. Pass the command line to system exec and wait until it's done.

  • How can I make a new tab for FF 5.0 show my most visited sites like my prior version did?

    Since I installed FireFox 5.0 recently, when I open a new tab, it is just blank. My prior version of FireFox showed about 9 or so of the sites I visited most often. I never set this in the old version. It just worked that way. I loved it. I have no idea how to make it happen in FireFox 5.0. I am even considering re-installing the old version because of this. I hope you cn tell m how to make this work.

    There are a number of different "speed dial" or "fast dial" add-ons to do this. To see which one you had before, check your disabled add-ons. There could be an updated version.
    orange Firefox button ''or'' Tools menu > Add-ons
    On the left side, click Extensions, then scroll down to the grayed out ones. Can you spot it?

  • How can I eliminate the "new tab" when I open Firefox to my preset Home Page?

    I have Firefox installed on a desktop and a netbook. On the desktop, when I launch Firefox it takes me to my homepage, and that is the only tab open. On the netbook, it opens to the homepage correctly, but there is also a second, blank tab, carrying the header "New Tab", just as though I had clicked on the "New Tab" icon in the toolbar. Since my homepage is a specialized search engine which opens each result in a new tab of its own, having the blank one already in place is annoying. How do I stop it from opening on launch?

    Make sure that there isn't a pipe symbol appended to the home page setting.
    See these articles for some suggestions:
    * https://support.mozilla.com/kb/Firefox+has+just+updated+tab+shows+each+time+you+start+Firefox
    * https://support.mozilla.com/kb/How+to+set+the+home+page - Firefox supports multiple home pages separated by '|' symbols
    * http://kb.mozillazine.org/Preferences_not_saved

Maybe you are looking for

  • Problem with EventHandler in OIM 11g

    Hi All, I followed the Part I(Chapters 6,7 & 30) in pdf file shown below http://download.oracle.com/docs/cd/E14571_01/doc.1111/e14309.pdf I developed the plugin and registered the plugin for custom eventhandler. Iam not able to see the defined eventh

  • This operation could not be completed as there is no video

    I get this response from final cut when I try to capture footage. I have a Sony TRV950 which works fine using my windows PC capturing with Sony Vegas

  • Excise Sales Gate Pass with Purchase Invoice details.

    Hi All,                While making a Excise Sales Invoice,we need to link it with the corresponding items Purchase Invoice details for Generate Excise Sales Gate Pass. How can it be done in SAP B1. Please guide me. Thanks in advance Rajesh

  • InfoSet with more than one cube

    Has anyone created an infoset with more than one cube? Are there any hints for to pay attention? Regards Chäsitzer

  • PO change output not triggered after deletion of line item

    Hello SAP experts, I have one issue with PO output I have created PO with output type & we are outputing through ME9F( 3- Send with application own transaction) Below is the sequence, 1.PO created & outputed thru ME9F 2.Now ,i added the line item in