Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9195189
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T21:34:31+00:00 2026-06-17T21:34:31+00:00

I added textfield and a button in velocity script that is used through a

  • 0

I added textfield and a button in velocity script that is used through a web app. When web app is launched start.properties file is read. There’s a property: debug_on that can take two values 0 or 1.

So I want to display textfield and the button according to debug_on value. It can be done in velocity script via javascript, if I’m not mistaken (I’m not a pro in JavaScript), but I need to get the property value in order to move further.

How can I achieve it?

UPDATED

Velocity script example where main GWT (Java) code is embedded at the end:

<!--doctype head declaration-->

   <head>
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <title>Web App</title>
      <style>
        <!-- styles -->
      </style>
      <link rel="stylesheet" href="/css/webapp.css" type="text/css"/>
      <meta name='gwt:module' content='$uri'>
    </head>
    <body>
        <script language="javascript" src="/$uri/com.myproject.gwt.main.nocache.js"></script>
        <!-- TextField and button are located here -->
        <table style="width: 300px; height: 100px;" class="gwt-DialogBox" cellpadding="0" cellspacing="5">
            <!-- some other part of a page tha will be persistent through all GWT pages -->
         </table>
    </body>
    </html>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T21:34:33+00:00Added an answer on June 17, 2026 at 9:34 pm

    Velocity runs on the server, JavaScript runs on the client and will not have access to any of the server’s files.

    You can use Velocity to set values within a JavaScript block and have a JS function use those values.

    <script type='text/javascript'>
    var startValue = '$debug.value';
    </script>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

When i press keyboard down button the textfield is added to sprite but not
I added to every textarea, every textfield and every button a special class. I
I have a cell editor that contains a little button and then a textfield
I have added a TextField to a UICell in order to allow a user
I added a hoverboard on my site that flips over to reveal more text.
In my VIew, i have added a button and when i click on it,
I have a textfield that i want to hide when the user presses the
I have an alertview that is being created with a textfield inside of it.
I have added a Button in the View { xtype:'button', id:'when_button_click', text:'Button Click', ui:'alert'
Added more details at the bottom of the question. We are testing deployment scenarios

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.