Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 8 of 8

Thread: How to add a new Check box "Activate Selected items" on the page ?

  1. #1
    Junior Member
    Join Date
    Jul 2014
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default How to add a new Check box "Activate Selected items" on the page ?

    Hi Friends

    I am working on a web application for store file maintenance. Description of change in SetDetailPage.jsp - Need to add a new Check Box "Activate Selected Menu items" on the page.
    Can you please help what code i should in .jsp file to write to add a Check Box.

    Thanks


  2. #2
    Crazy Cat Lady KevinWorkman's Avatar
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    5,607
    My Mood
    Hungover
    Thanks
    145
    Thanked 658 Times in 563 Posts

    Default Re: How to add a new Check box "Activate Selected items" on the page ?

    How would you add a text box if you were writing html? All jsp does is output html.
    Useful links: How to Ask Questions the Smart Way | Use Code Tags | Java Tutorials
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

  3. #3
    Junior Member
    Join Date
    Jul 2014
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: How to add a new Check box "Activate Selected items" on the page ?

    I am working on Java Project with jsp.
    Can you please help what code i should in .jsp file to write to add a Check Box. Details are :-

    In “Manage Price: <price info name>” screen i.e. price info details page, new checkbox "Activate Selected Menu Items" will be added. Positioning of this new field would be on the right of “Activate Menu Items” checkbox at the bottom of the page.

    This new field “Activate Selected Menu Items" would be a checkbox and is grayed out on the initial page on-load.

    The "Activate Selected Menu Items" checkbox is only enabled after the user performs the "Search" operation or "Add New Menu Item" operation in the price set.
    Last edited by jatin7; July 16th, 2014 at 02:15 PM.

  4. #4
    Crazy Cat Lady KevinWorkman's Avatar
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    5,607
    My Mood
    Hungover
    Thanks
    145
    Thanked 658 Times in 563 Posts

    Default Re: How to add a new Check box "Activate Selected items" on the page ?

    What have you tried? What do you have so far?

    Can you write other html? What's stopping you from writing a checkbox?
    Useful links: How to Ask Questions the Smart Way | Use Code Tags | Java Tutorials
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

  5. #5
    Junior Member
    Join Date
    Jul 2014
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: How to add a new Check box "Activate Selected items" on the page ?

    As i am new to this technology. I haven't gone through now.
    Just posted required details.

  6. #6
    Crazy Cat Lady KevinWorkman's Avatar
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    5,607
    My Mood
    Hungover
    Thanks
    145
    Thanked 658 Times in 563 Posts

    Default Re: How to add a new Check box "Activate Selected items" on the page ?

    Quote Originally Posted by jatin7 View Post
    As i am new to this technology. I haven't gone through now.
    Just posted required details.
    We aren't going to do your homework for you. You need to try something and ask a more specific question.

    Can you create an html page that shows a single checkbox? Can you write jsp that outputs html?
    Useful links: How to Ask Questions the Smart Way | Use Code Tags | Java Tutorials
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

  7. #7
    Junior Member
    Join Date
    Jul 2014
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: How to add a new Check box "Activate Selected items" on the page ?

    Hi
    Need to add a new Check Box at bottom of page.
    User selects above listed items and select checkbox value = true to activate all selected items.
    One checkbox is already added (Activate All Items) . need to add another as Activate Selected Items.
    Can you please help how to add another CheckBox.

    <%@ taglib prefix="s" uri="/struts-tags" %>   
    <%@ taglib prefix="rfm2" uri="/struts-rfm2-tags" %>   
     
    <s:set var="actionContext" value="%{#session['actionPath']}"/>    
    <html>   
    <head>   
    <title><s:text name="pricing.priceset.title"/></title>   
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">   
    <meta http-equiv="Content-Type" content="text/html">   
    <link href="<%=request.getContextPath()%>/styles/Styles.css" rel="stylesheet" type="text/css">   
    <link rel="stylesheet" href="<%=request.getContextPath()%>/styles/datepicker.css" type="text/css" />   
    <link rel="stylesheet" href="<%=request.getContextPath()%>/styles/post.css" type="text/css" />   
    <body onload="onLoadCallBack();">   
    ............................................      
    ............................................      
    ............................................      
    ............................................   
    <s:form>   
    ............................................      
    ............................................      
    ............................................      
    ............................................   
    </s:form>   
    </body>   
    </html>   
     
    <script language="JavaScript" type="text/JavaScript">   
    function onLoadCallBack(){   
    ............................................      
    ............................................      
    ............................................      
    ............................................   
     
        onLoadCallBackDetail();   
    ............................................   
    ............................................   
    ............................................   
    ............................................       
     
    document.getElementById('searchText').focus();   
     
        if('<s:property value="%{#request['activateItems']}"/>' == 'true'){   
            var width = 700;   
            var height = 300;   
            var left = (screen.width/2)-(width/2);   
            var top = (screen.height/2)-(height/2);   
            var key=document.getElementById('activateKeyId').value;   
            initiateActivateItems(key);   
            window.open('ItemPriceUpdate_openActivateItemsProgressWindow.action?ItemPriceSetDTO.actionType=3&randomNumber='+generteUniqueNumber()+'&activateKey='+key+'&'+tokenVar,"_blank","menubar=0,resizable=0,width="+width+",height="+height+",top="+top+",left="+left);     
        }   
    }

  8. #8
    Crazy Cat Lady KevinWorkman's Avatar
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    5,607
    My Mood
    Hungover
    Thanks
    145
    Thanked 658 Times in 563 Posts

    Default Re: How to add a new Check box "Activate Selected items" on the page ?

    Can you create an html page that shows a single checkbox? Can you write jsp that outputs html?
    Useful links: How to Ask Questions the Smart Way | Use Code Tags | Java Tutorials
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

Similar Threads

  1. Replies: 2
    Last Post: May 22nd, 2014, 02:17 PM
  2. Replies: 2
    Last Post: June 22nd, 2013, 11:30 AM
  3. How would you add a list of "events" and "tasks" to their respective arrays?
    By LIboy1027 in forum What's Wrong With My Code?
    Replies: 1
    Last Post: June 19th, 2013, 07:32 AM
  4. JFileChooser save dialog box "access is denied" error
    By byrdman in forum What's Wrong With My Code?
    Replies: 7
    Last Post: August 2nd, 2011, 02:45 PM
  5. Arrays: question about "removing" items.
    By sanfor in forum Collections and Generics
    Replies: 2
    Last Post: November 30th, 2009, 04:09 AM