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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T09:28:14+00:00 2026-06-08T09:28:14+00:00

in my project i’ve faced a problem getting values of css attributes in wicket

  • 0

in my project i’ve faced a problem getting values of css attributes in wicket class, suppose we have some Panel

public final class ExamplePanel extends Panel {

  public ExamplePanel(String id) {
      super(id);
      add(new Label("someText", "hello"));
  }}

and html file for this file is

<html xmlns:wicket>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    <title>ExamplePanel</title>
    <wicket:head>
        <link href="panel.css" rel="stylesheet"/>
        <script src="jquery.min.js"></script>
        <script src="jquery-ui.min.js"></script>

    </wicket:head>
</head>
<body>
    <wicket:panel>
        <div id="container" wicket:id="hello">
        </div>
    </wicket:panel>
</body>

and the following css

#parentContainer{
 width:500px;
 height: 500px;
 background:RGB(57,51,51);
 position:relative;
}

i need to get values of css code, for example

public final class ExamplePanel extends Panel {

  public ExamplePanel(String id) {
      super(id);
      Label label = new Label("someText", "hello");
      add(label);
      // draft code
      //String height = label.getCssValue("height");
      // String position = label.getcssvalue("position");
  }}

Or any oher solution to get css values from this div?

  • 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-08T09:28:16+00:00Added an answer on June 8, 2026 at 9:28 am

    As CSS is applied on the client side, your only chance would be to get the values by JavaScript (with the JQuery methods mentioned by Torr3nt being the easiest way that I know of) and post these values back to your App using Ajax.

    There is a description on how to call wicket from JavaScript here.

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

Sidebar

Related Questions

Project Euler I have recently begun to solve some of the Project Euler riddles.
Project Structure I have a silverlight project SLProj, that references a silverlight class library
Project: Winforms, .NET framework: 3.5 (Visual Studio 2008) My problem is: I have a
Project type: Asp MVC 2/NHibernate/C# Problem If you have an edit page in an
My Project is Named A and my class is: @WebServlet(urlPatterns={/test/*}) public class RequestHandler extends
My project is ARC enabled (the build settings have Objective-C Reference Counting set to
My project have no visible error but when i try to run it gives
Project was running fine, i made a change some where and couldn't figure out
Project CompetitionServer.exe raised exception class ESQLiteException with message 'Error executing SQL. Error [1]: SQL
Project I'm working on uses jQuery. I have a series of Ajax calls being

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.