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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T13:34:45+00:00 2026-06-06T13:34:45+00:00

I am basically a .net developer and very new to jsf, so it may

  • 0

I am basically a .net developer and very new to jsf, so it may be a very basic question and its answer may be very obvious, sorry for that.

I have developed a jsf application. where I have a form with personal data and a link button for some other functionality. When personal data is filled and displayed on jsf, I click on that link button, which calls some bean functionality. but my previous data of ‘personal data’ is loss. OR I can say that on postback data of my jsf page losts/resets.

Edit: Here goes my jsf and bean

<f:view> 
<h:form> 
<h:inputText value="#{myBean.name}"/>
<h:commandButton action="#{myBean.getInfo}/>
<h:outputText value="#{myBean.fullName}"/> 
<h:outputText value="#{myBean.contactNo}"/> 
<h:commandLink action="#{myBean.changeContactNo"}/> 
</h:form> 
</f:view> 

and myBean:

 public class myBean
    {
        private String name;
        private String fullName;
        private String contactNo;

        public myBean()
        {
        }

        public String getInfo()
        {
            String endName = getname();
            fullName = "Prof"+ endName;
            contactNo = "12345";
        }

        public String changeContactNo()
        {
            contactNo = "999999";
        }
    }

Now when I click on command button it sets the full name and contact no.
But when I click on Link button it should only change the contact no. but “fullName” value
of outputText is lost.

  • 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-06T13:34:46+00:00Added an answer on June 6, 2026 at 1:34 pm

    You probably need to look for Bean Scopes currently you are probably using request scoped beans try switching to view scoped or session scoped

    Edit: And you should have corresponding data fields related with html form elements in your backing bean with getters and setters.

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

Sidebar

Related Questions

I have a Javascript object that basically represents a Row in an .NET GridView.
Background: I have written a generic logging library in .NET 3.5. Basically the developer
Basically i want to do the below in .NET but i have no idea
I have a .NET assembly(3.5 framework) and it basically has a set of custom
i'm new to asp.net mvc.. so basically i just build up a two page
I have a .NET application available in several different language. i basically load and
I am a .NET Developer, but the question I am having is not related
I'm a fairly experienced .NET desktop developer, but I'm new to Silverlight. I'm trying
I have a WCF service in an ASP.NET AJAX app that is returning json.
We currently have multiple .NET projects that we have developed using Visual Studio. Each

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.