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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T14:52:31+00:00 2026-06-17T14:52:31+00:00

We are having troubles including a login form in our project. We follow the

  • 0

We are having troubles including a login form in our project.
We follow the steps in http://cppcms.com/wikipp/en/page/cppcms_1x_forms

This is the definition of the form:

struct SignInFormInfo : public cppcms::form {
/* Error 1 */ cppcms::widgets::text user_name;
/* Error 2 */ cppcms::widgets::password password;
cppcms::widgets::submit submit;

SignInFormInfo() {
user_name.message("User name");
password.message("Password");
submit.value("Sign in");

add(user_name);
add(password);
add(submit);

// Restrictions
user_name.limits(1, 31);
password.non_empty();
}
};

and we get these build errors:

Error 1: The type ‘cppcms::widgets::text’ must implement the inherited
pure virtual method ‘cppcms::base_form::load’

Error 2: The type ‘cppcms::widgets::password’ must implement the
inherited pure virtual method
‘cppcms::widgets::base_widget::render_input’

We also get errors in the cppcms libraries “cppcms/form.h” and
“booster/hold_ptr.h” about the variable “_data” being private.

We are using 1.0.3 version of CppCMS.

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-06-17T14:52:32+00:00Added an answer on June 17, 2026 at 2:52 pm

    Wich “load” method should be used?

    the one from “base_html_input” class or the one from “base_text”. There are 2 methods named “load” that comes from different classes (and both derived from same class!), both are base classes of the same class. The compiler simply don’t know wich one to use. The best thing is to implement your self the “load”.

    widgets::text::load(param) //actually missing in CPPCMS
    {
         //wich one of the 2 methods has to be called.. or both have to be called?
         base_html_input.load(param)
         base_text input.load(param);
    }
    

    That’s probably a design flaw of the library you are using (unless there’s somewhere a factory of “widgets::text” objects, that is returning objects with correct implementation, anyway the article with the tutorial is wrong.)

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

Sidebar

Related Questions

Having trouble linking the Stomp.framework into an iPhone SDK application. http://code.google.com/p/stompframework/ I follow the
I am having trouble including a test under a cmake project. My project is
Im having troubles in the domain.com url format related to my API calls. Mostly,
I'm having troubles getting this right... I have a Core project with a common
I'm having trouble including a .mm file in my cocoa project. The .mm file
I have multiple XML descriptor files in my actual project and I'm having troubles
I'm having trouble getting client validation to work on a web form. I'm including
I am having trouble including a module in a namespaced class. The example below
Having no end of trouble including a large landscape pdf in a portrait .tex
Having troubles here finding the right containers to represent a list of tasks on

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.