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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T15:14:21+00:00 2026-05-27T15:14:21+00:00

I have an entity User that has username , name , etc … User

  • 0

I have an entity User that has username, name, etc …

User also has a password property. And I disabled rendering of it in list/show forms, but in the update form, field is set to type="password".

What bugs me is that you can’t update user without re-entering password as no stars are there, and if you don’t enter the password, password is set to null or "".

How can I bypass that?

There is also another issue. If I remove some fields from update form, all other fields are set to null.
What I want is to enable user to update some, but not all fields of some entitiy.

  • 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-27T15:14:22+00:00Added an answer on May 27, 2026 at 3:14 pm

    I created an entity Foo with four fields f1,f2, f3 and f4.

    In update.jspx for this entity, I set the attribute render=”false” for field f1.

    In the FooController update method, before the foo parameter object was updated, I fetched the old value from the db and stick it in the parameter foo, as shown below, because we do not want the end user to update this field.

        Foo fromDB=Foo.findFoo(foo.getId());
        foo.setF1(fromDB.getF1());
        foo.merge();
    

    I am able to verify that old value for f1 in Foo entity is not getting changed after the update operation was completed.

    This could be one way to prevent users from updating some fields in an entity object and hope this approach works for you.

    Cheers,

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

Sidebar

Related Questions

I have an entity class User that contains information such as username, first name,
I have the two entity classes, User and MyCharacter. User has a list of
I have a User entity that has a Current Location field (city and country).
I have an EntityFramework model that has User entity that has an EntityCollection of
In my business model I have Entity class (IPoint interface ) that has a
I have an entity model that has audit information on every table (50+ tables)
Is their a way using Entity Framework Code-Only to have an entity that has
I have an entity called User which can have a list of other Users
I have an entity that has a ManyToMany relationship with itself: @Entity public class
I have a User class that has @Embedded a class Profile. How can I

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.