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

  • SEARCH
  • Home
  • 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 6330643
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T17:54:26+00:00 2026-05-24T17:54:26+00:00

There exists a question at SO about how to add css to Vaadin project.

  • 0

There exists a question at SO about how to add css to Vaadin project. The tip there was to add css at /WEB-INF/VAADIN/themes/ location.

My problem is that Vaadin projects normally have WEB-INF folder under WebContent and now on Maven the similar folder is under webapp. This seems to be causing that my css changes do not take effect.

Also, is it necessary to have the custom css in same sub-structure as the original css? I want to modify table css and don’t know if the css needs to be in a specific path.

So how to add the css for table so that also the table is changed, not just that the code builds correctly? 🙂

Update 1: I could get the following tempalate out with Firebug, but this is closest thing what I get to browser.

< link rel=”stylesheet” type=”text/css” href=”/html/VAADIN/themes/mytheme/styles.css” >
< html >
< head >
< title > < /title >

< /head >

< body onload=”javascript:location.replace(‘/c’)” >
< !–The numbers below are used to fill up space so that this works properly in IE.
See http://support.microsoft.com/default.aspx?scid=kb;en-us;Q294807 for more
information on why this is necessary.
12345678901234567890123456789012345678901234567890123456789012345678901234567890
12345678901234567890123456789012345678901234567890123456789012345678901234567890
12345678901234567890123456789012345678901234567890123456789012345678901234567890
— >
< /body >
< /html >
< /link >

  • 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-05-24T17:54:28+00:00Added an answer on May 24, 2026 at 5:54 pm

    You will probably put your styles.css file in the src/main/webapp/VAADIN/themes/[yourtheme]/ folder and configure Maven to copy everything in src/main/webapp into your WEB-INF. This way your .css file will end up in WEB-INF/VAADIN/themes/[yourtheme]/.

    It is strongly recommended to inherit from a theme rather than trying to override the behavior of a default theme.

    Then you need to specify your theme name in the application

    public void init()
    {
        setTheme("simplegae");
        ...
    

    and make your .css file inherit from a theme’s css (runo, reindeer, …).

    @import "../reindeer/styles.css";
    

    I have recently put up a sample Vaadin application using Maven which is accessible at this address. It is aimed to work on GAE, but you can check it out from SVN and have a look at what I have done:

    svn co http://code.google.com/p/tinywebgears-samples/source/browse/trunk/simplegae/ simplegae
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

There exists a very good talk about C# vs. Java where H.Mössenböck compares the
There exists (for me) a problem with MessageBox show. My app is multilingual (English/German).
In the code there exists exactly one type that implements IResourceConverter. That's what the
I've seen this questions here . I'm wondering if there exists an official name
There is the same question listed under The key 'UserID' does not exist in
There exists an RSS feed with over 1000 items. I want to create a
I am wondering if there exists a built in class which provides a functionality
I wonder if there exists way to work with large files in Mathematica ?
I was wondering if there exists some kind of indexer (in python language for
Is anyone working on or know if there exists a SQL 2k8 Dialect for

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.