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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T20:28:42+00:00 2026-06-05T20:28:42+00:00

i had mapped an Integer to h:outputText (JSF 2.0) <h:outputText id=txt_pay_days value=#{articleBean.noOfDays}/> and changed

  • 0

i had mapped an Integer to h:outputText (JSF 2.0)

<h:outputText id="txt_pay_days" value="#{articleBean.noOfDays}"/>

and changed the value using jquery using

$("#txt_pay_days").text("123");

the value of integer is not changed to 123 in the bean (on the server side) .

What am i doing wrong. Or is this not the right way to do it.

Any suggestions ??

  • 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-05T20:28:43+00:00Added an answer on June 5, 2026 at 8:28 pm

    If you want to change on server side you need an ajax call.
    You can use f:ajax

    <h:commandButton value="My ajax button">
        <f:setPropertyActionListener target="#{articleBean.noOfDays}" value="123" />
        <f:ajax  execute="txt_pay_days" update="txt_pay_days" />
    </h:commandButton>
    

    Execute tell which component(s) you want to process in ajax call , and update tell wich component(s) you want to update in view.

    setPropertyActionListener will set the value of #{articleBean.noOfDays} .

    You can found more informantion here:

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

Sidebar

Related Questions

Had this working; at one stage. The problem is the following text is now
Earlier I had mapped my local folders to the TFS. I had to change
Not sure where to start, but I had gotten the most recent version of
I am using Entity Framework mapped to my database. I have a Basket model
Using the TFS tools in VS2010, I had added a CodePlex server. I had
I had branched out from our QA branch on TFS, mapped it locally and
I'm using a reflected sqlalchemy mapped class into a SQL Server table. I DBSession.add()
i have a Adapter that extends BaseAdapter, i had mapped Items sucessfully but i
Had to download Command Line Tools from Apple to get make to work, but
Had a good read through similar topics but I can't quite a) find one

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.