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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T00:18:37+00:00 2026-05-31T00:18:37+00:00

I am working on a application where I don’t want the default class applied

  • 0

I am working on a application where I don’t want the default class applied to a xp:text control and possibly other controls. At the moment, I am doing this in my code:

<xp:text escape="false" id="computedField12" styleClass="noClass">

Notice styleClass=”noClass” above where noClass doesn’t exist. Is there a better way to achieve this selectively for a particular XPage or as an application property and is it possible to turn this on/off for other controls?

I found this: http://xpageswiki.com/web/youatnotes/wiki-xpages.nsf/dx/Work_with_themes

But what I am trying to achieve is setting no class at all by default for a particular control.

Many thanks for your help.

  • 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-31T00:18:38+00:00Added an answer on May 31, 2026 at 12:18 am

    the disableTheme option is 100% valid but you need to remember to apply it to every element of that type to disable the automatic classes for those elements.

    Another option is with themes and you are very close to a solution with the link that you supplied. You will need to add a control section to your applications theme to override the theme that you are extending ( webstandard or oneui etc ).

    For the xp:text control you need something like the following in your theme document

        <control override="true">
          <name>Text.ComputedField</name>
          <property mode="override">
            <name>styleClass</name>
            <value />
          </property>   
         </control>
    

    the override=”true” will allow this control to override the theme your inheriting from. Set to false it will combine with the theme your merging from.

    The mode=”override” will specify that if you add a sytleClass to the xp:element then that styleClass will be the only on applied to the element when rendered. If mode=”concat” then the styleClass added to the element will be rendered along with the one specified i the theme control.

    if you want to get a list of all the control Theme ID names then Tim Tripcony has a database on his server that lists all the elements with the IDs right here.

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

Sidebar

Related Questions

I am working on application which stores event using EKEvent class and I want
My application was working fine but I don't know how suddenly allow_url_fopen set OFF
I have a working web application that uses username/password SpringSecurity configuration. Now I want
I have a network application working on Linux. What I want to do is
I am working with WPF application and I want to assign a value of
I'm working on windows application using C#. I generated the Report using IE control.
I installed the active_admin gem in a working rails application. After doing this, the
I am working on splitting out an existing, working application that I currently have
I've try to implement integration tests for a working application (spring, hibernate, soap, cxf).
i am working in application of twitter in flex 3 and action script 3

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.