Siew Ling

Greenhorn
+ Follow
since Jan 08, 2013
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Siew Ling

Thanks very much, I have change the type to Integer and it works as what I want
11 years ago
JSF
You will need to add 2 managed bean class for your following codes, which is App class and CustomerBean class.



For example:



The above is just an example, you will need to complete the others.

Then add these 2 managed bean in your faces-config.xml
11 years ago
JSF
Thanks for the reply.
But how can I make the initial value as null?
11 years ago
JSF
You copy the codes from the primefaces showcase and added your codes in.
What I see from here is you have added codes in your jsf page which it needs to have app managed bean and customerBean managed bean.

Besides that your PPRBean does not have the annotation for
@ManagedBean (name="listBean")
or have you define your managed bean in the faces-config.xml?

You can have a look in this tutorial for configuring managed bean
http://www.mkyong.com/jsf2/configure-managed-beans-in-jsf-2-0/

and look at this example for using managed bean in jsf
http://www.mkyong.com/jsf2/jsf-2-textbox-example/

Hope this help.
11 years ago
JSF
Can you post your codes here, so that we can find out what is the problem?
11 years ago
JSF
May I know is it able to set the input text to empty when my managed bean for the variable is in integer type?

I have a managed bean as the following:


My inputtext in the jsf page as the following:



And when i run my page, the text box shows 0.
I would like it to just show empty.





11 years ago
JSF