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 6383967
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T02:42:58+00:00 2026-05-25T02:42:58+00:00

I am using vaadin in a portlet environment where we have specific validation look

  • 0

I am using vaadin in a portlet environment where we have specific validation look & feel and behavior.

When input fields have invalid values,

  1. their borders color becomes red.
  2. All the error messages (as link) are shown above or below at common location.
  3. Clicking on specific error results into cursor focus going to related field.

So how can i achieve this functionality and what i need to change & modify.

  • 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-25T02:42:59+00:00Added an answer on May 25, 2026 at 2:42 am

    For your point #1, You need to create a theme. To do that, I suggest you to read the Book of Vaadin chapter 5 and 8.

    Chapter 5 explain the ui component and css style associated with them.
    Chapter 8 explain how to inherits a css theme.

    For point #2, You have to add a layout to your page, and for each message youy will create a button and style it like a web link.

    Button button = new Button("Your error message");
    button.setStyle(BaseTheme.BUTTON_LINK);
    errorLayout.addComponent(button);
    

    For point #3, add listener to your button link, and when clicked, focus the component in error. So the previous code will now look like this

    Button button = new Button("Your error message");
    button.setStyle(BaseTheme.BUTTON_LINK);
    button.addListener(new Button.ClickListener(){
       public void buttonClick(ClickEvent event){
       // Replace componentInError by the associated component of the link.
       componentInError.focus();
       }
    }
    errorLayout.addComponent(button);
    

    Regards.
    Éric

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using Vaadin and have a set of textfields in a form. The textfields
I have a problem with compiling custom widgetsets for my vaadin application using Maven.
I'm working in Java using the Vaadin framework. I have a table with 14
I have created a simple java web (Vaadin) application project using JPA and it
I am using Spring 3.0.5, Hibernate 3.6.7 and Vaadin. I have a simple entity
Using online interfaces to a version control system is a nice way to have
Using TortoiseSVN against VisualSVN I delete a source file that I should not have
Does anyone have a link to a concise summary of what makes a portlet
I am trying to create a UI for a java web app using Vaadin.
I am having trouble compiling my widgetset using maven and vaadin. when i run

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.