Hernan Tavella

Ranch Hand
+ Follow
since Apr 28, 2012
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
2
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 Hernan Tavella

Hi everyone!

I am preparing to take the test, and I would like to share my progress with you guys to make it more bearable. I started studying a couple of weeks ago and I can say that it is not easy, but I will try to make my best effort to perform well.
I am using to practice Enthuware and Whizlabs, I also bought the book OCA Study Guide by Jeanne and Scott that I used to learn the exam topics.
I hope this thread help other that also are studying to shared and support.

I leave snapshot of today score.

Hello, i have been trying different way to add a listener so when the user change the dropmenu it fire an action on server side, but i couldn't
This is the code.



Any suggestion?
Thank you.
10 years ago
JSF
When i use this pattern (NumberFormat formatter = new DecimalFormat("###,###,###.00");) to format the number that i input, the result is not what i expect when the value is for example 0,5 the result that it print it is ,5 and the zero disappear, whitn other value work find but when it is when a zero at the left y dont work well. Thank you
10 years ago
I tryed looking in that page but i didn't found the answer, any other suggestion? Thank you.
10 years ago
Hello, i have this problem, when i input a value like 0,5 and get formated by a pattern, it prints ,5 without the zero any idea how can fix it, this pattern that i use:



Thank you.

10 years ago
I dont understand you, if a print this number it prints ok 1.518.435,00 but when the value is under 0,4 for example it don't print correctly it print ,4 and the leading zero don't. Thank you
10 years ago
Yes ,40 prints but i should be 0,40
10 years ago
Hello, i have this issue with the leading zero, i tryed several ways with the same wrong result, what i am trying to do is to keep a leading zero when the amount is for example 0,4 because when i run the program it prints me ,4 can you help me please.
This is the code that i have:

[code=
public Object getAsObject(FacesContext arg0, UIComponent arg1, String arg2) {
// TODO Auto-generated method stub
arg2=arg2.replace(',', '.');

return new java.lang.Double(arg2);
}

java]public String getAsString(FacesContext arg0, UIComponent arg1, Object arg2) {
double monto = (Double)arg2;

NumberFormat formatter = new DecimalFormat("###,###,###.00");

return nf.format(monto);
}[/code]

But when the amont is for example 0,4 it prints ,4 is there any way to print the result with the leading zero?
10 years ago
this is code, and finally make it work! i just coded a boolean



11 years ago
Doesn't work, i thing i like you said there's something wrong with the way that equals() or hashCode() is working. So i have to write the old fashion way with For, compare the elements values. but i cant get it yet.
11 years ago
This the code that i use for Set,









11 years ago
the Array is a List of Objects, i try the Set<IData> set = new HashSet<IData>(), and didnt work, i think is because i cant overwrite the method compareTo, i have to figure out to solve this problem without using that.
11 years ago