To enable functional key feature without pressing Fn on lenovo G50-70

The hotkeys from F1 to F12, are designed to achieve a variety of features.

To press any of the hotkeys, you enable corresponding feature in a faster way.

Examples are quick volume up or down, shutdown, increase or decrease brightness, e.t.c..,

But, when you want to enable any one of the above functions, you need to press the combination of “Fn” together with specific hotkey.

Is there a way to activate the feature by only pressing certain hotkey? And how to make it?

Solution ( I am working on lenovo G50-70 model lap I think it may differ to other models)

1. Enter BIOS to disable “Hotkey Mode” .

For entering into the Bois mode directly press the novo button on left side placed immediately below the power port.

2. After enter BIOS, Select “Configuration” menu.

For lenovo G50-70 series  , set “HotKey Mode” as “Disabled” and press F10 to save and exit. See the image

Restart your lapatop...

That's it's floks.

To enable functional key feature without pressing Fn on lenovo G50-70

The hotkeys from F1 to F12, are designed to achieve a variety of features.

To press any of the hotkeys, you enable corresponding feature in a faster way.

Examples are quick volume up or down, shutdown, increase or decrease brightness, e.t.c..,

But, when you want to enable any one of the above functions, you need to press the combination of “Fn” together with specific hotkey.

Is there a way to activate the feature by only pressing certain hotkey? And how to make it?

Solution ( I am working on lenovo G50-70 model lap I think it may differ to other models)

1. Enter BIOS to disable “Hotkey Mode” .

For entering into the Bois mode directly press the novo button on left side placed immediately below the power port.

2. After enter BIOS, Select “Configuration” menu.

For lenovo G50-70 series  , set “HotKey Mode” as “Disabled” and press F10 to save and exit. See the image

Restart your lapatop...

That's it's floks.

Hide the components in Visual JSF 1.x (woodstock) Using JavaScript

Hide the components in Visual JSF 1.x (Woodstock) Using JavaScript

Hi friends, today my friend had a small problem i.e., based on the check-box selected value it shows the text fields (in html  <input type="text">),

finally i got the solution for it using the javascript

Here is my solution for the problem.

design the form

1. checkbox group (id = checkboxGroup1 in jsf, id =form1:checkboxGroup1 in html)
2. textfield (id = order in jsf, id = form1:order_field in html)
3. another textfield (id = order2 in jsf, id = form1:order2_field in html)

open the jsp page and add the below script between the head tag( <webuijsf:head"> </webuijsf:head>)

<script>
     //<![CDATA[
      function ahk(){
     var group =            document.getElementById("form1:checkboxGroup1").getElementsByTagName('input');
        document.getElementById("form1:order_field").style.visibility = "hidden";
           document.getElementById("form1:order2_field").style.visibility = "hidden";
                   var len = group.length;
                            for(var i =0;i<len;i++){
                                if("item1" == group[i].value){
                                    if(group[i].checked){
                                        document.getElementById("form1:order_field").style.visibility = "visible";
                                    }
                                }
                                if("value" == group[i].value){
                                    if(group[i].checked){
                                        document.getElementById("form1:order2_field").style.visibility = "visible";
                                    }
                                }
                            }

                        }
        //]]></script>

initially generated code...

Remove the Styles to the textfield component



Before doing this you have to bind the componets, otherwise it won't work.

open the java page and add the below code in _int(), prerender(), methods respectively

_init and prerender methods are pre defined methods you just implement those methods

//in  _init method

 order.setStyle("position: absolute; left: 336px; top: 96px;visibility:hidden");
 order2.setStyle("position: absolute; left: 336px; top: 168px;visibility:hidden");

//in prerender Method


        if (checkboxGroup1.getSelected() == null) {
            order.setStyle("position: absolute; left: 336px; top: 96px;visibility:hidden");
            order2.setStyle("position: absolute; left: 336px; top: 168px;visibility:hidden");
        } else {
            System.out.println("Entered");
            order.setStyle("position: absolute; left: 336px; top: 96px;visibility:hidden");
            order2.setStyle("position: absolute; left: 336px; top: 168px;visibility:hidden");
            String[] group = (String[]) checkboxGroup1.getSelected();
            for (String a : group) {
                System.out.println("aa : " + a);
                if ("item1".equalsIgnoreCase(a)) {
                    order.setStyle("position: absolute; left: 336px; top: 96px;visibility:visible");

                }
                if ("value".equalsIgnoreCase(a)) {
                    order2.setStyle("position: absolute; left: 336px; top: 168px;visibility:visible");
                }
            }
        }

Screen shots

1. init

2. prerender



Save files, Start the Sever and run the file.

All the Best.... 








Hide the components in Visual JSF 1.x (woodstock) Using JavaScript

Hide the components in Visual JSF 1.x (Woodstock) Using JavaScript

Hi friends, today my friend had a small problem i.e., based on the check-box selected value it shows the text fields (in html  <input type="text">),

finally i got the solution for it using the javascript

Here is my solution for the problem.

design the form

1. checkbox group (id = checkboxGroup1 in jsf, id =form1:checkboxGroup1 in html)
2. textfield (id = order in jsf, id = form1:order_field in html)
3. another textfield (id = order2 in jsf, id = form1:order2_field in html)

open the jsp page and add the below script between the head tag( <webuijsf:head"> </webuijsf:head>)

<script>
     //<![CDATA[
      function ahk(){
     var group =            document.getElementById("form1:checkboxGroup1").getElementsByTagName('input');
        document.getElementById("form1:order_field").style.visibility = "hidden";
           document.getElementById("form1:order2_field").style.visibility = "hidden";
                   var len = group.length;
                            for(var i =0;i<len;i++){
                                if("item1" == group[i].value){
                                    if(group[i].checked){
                                        document.getElementById("form1:order_field").style.visibility = "visible";
                                    }
                                }
                                if("value" == group[i].value){
                                    if(group[i].checked){
                                        document.getElementById("form1:order2_field").style.visibility = "visible";
                                    }
                                }
                            }

                        }
        //]]></script>

initially generated code...

Remove the Styles to the textfield component



Before doing this you have to bind the componets, otherwise it won't work.

open the java page and add the below code in _int(), prerender(), methods respectively

_init and prerender methods are pre defined methods you just implement those methods

//in  _init method

 order.setStyle("position: absolute; left: 336px; top: 96px;visibility:hidden");
 order2.setStyle("position: absolute; left: 336px; top: 168px;visibility:hidden");

//in prerender Method


        if (checkboxGroup1.getSelected() == null) {
            order.setStyle("position: absolute; left: 336px; top: 96px;visibility:hidden");
            order2.setStyle("position: absolute; left: 336px; top: 168px;visibility:hidden");
        } else {
            System.out.println("Entered");
            order.setStyle("position: absolute; left: 336px; top: 96px;visibility:hidden");
            order2.setStyle("position: absolute; left: 336px; top: 168px;visibility:hidden");
            String[] group = (String[]) checkboxGroup1.getSelected();
            for (String a : group) {
                System.out.println("aa : " + a);
                if ("item1".equalsIgnoreCase(a)) {
                    order.setStyle("position: absolute; left: 336px; top: 96px;visibility:visible");

                }
                if ("value".equalsIgnoreCase(a)) {
                    order2.setStyle("position: absolute; left: 336px; top: 168px;visibility:visible");
                }
            }
        }

Screen shots

1. init

2. prerender



Save files, Start the Sever and run the file.

All the Best....