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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T05:39:38+00:00 2026-06-15T05:39:38+00:00

I have a simple application with one class and one xPage with one computedField,

  • 0

I have a simple application with one class and one xPage with one computedField, bound to that class. I want to show result from class getter as a bean. Doesn’t work.
My class looks like this:

package test.test;

public class Test {
    public Test() {
    }

    public String getTest() {
        return "Test";
    }
}

SSJS in the computedField:

var test = new test.test.Test();
return test.getTest();

an error is like this:

Error while executing JavaScript computed expression
Script interpreter error, line=1, col=17: 'test' is undefined

1: var test = new test.test.Test();

Am I missing any settings or what?
Thanks in advance, JiKra

EDIT: If I use a managed bean, the issue is absolutely identical. There must be problem with my Designer/Eclipse IDE. I’ll try to reinstall it tomorow.

EDIT2: Today, I tried to do the same thing in my colleges’s computer and it’s the same error. So, the problem is not with my IDE. I must be missing something. Do I need any external libraries to be installed on the server or in the IDE?

  • 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-15T05:39:40+00:00Added an answer on June 15, 2026 at 5:39 am

    Ok I did the following.

    1) Created a new Java Class.

    enter image description here

    2) Put in the following code into the class.

    package test.test;
    
    public class Test implements java.io.Serializable {
    
        public Test() {
            super();
        }
    
        public String getTest() {
            return "Test";
        }
    
    }
    

    3) Created an XPage with the following source:

    <?xml version="1.0" encoding="UTF-8"?>
    <xp:view xmlns:xp="http://www.ibm.com/xsp/core" xmlns:xe="http://www.ibm.com/xsp/coreex">
        <xp:text escape="true" id="computedField1">
            <xp:this.value><![CDATA[#{javascript:var t:test.test.Test = new     test.test.Test();
    
    return t.getTest();
    }]]></xp:this.value>
        </xp:text>
    </xp:view>
    

    Opened it in a browser and got the word “Test” appearing.

    Changed variable “t” to “test” and then it failed. So it appears the variable name is the issue.

    [EDIT]

    Based on your comment of using 8.5.2, the code/Java functionality didn’t arrive until Notes/Domino 8.5.3. Which is why it is not working for you.

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

Sidebar

Related Questions

I have a Rails 3 simple scaffolded application having one model like that: class
I have a simple Dojo application, that does only one require call, loading all
I have a simple application that has one edittext field, and one button. The
I have a simple Android application that uses an instance of a class, let's
I have written a trivial Entities code-first WinForms application with one simple class and
I have a simple Crud application where there is one filed called Category. During
I have prepared one sample application.When application install in devices download the file from
I have simple WinForms application where modifying Windows Registry. The problem is that in
I have a simple application that loads an unmanaged dll and passes a few
I have a simple application written in C# and .Net 2.0 that displays several

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.