Win a copy of Pro Spring MVC with WebFlux: Web Development in Spring Framework 5 and Spring Boot 2 this week in the Spring forum!

Sachin Satija

+ Follow
since Aug 24, 2005
Cows and Likes
Total received
In last 30 days
Total given
Total received
Received in last 30 days
Total given
Given in last 30 days
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Sachin Satija

This might help...

You can use getComponentById in the backing bean to get the component and dynamically remove/add components to it.
12 years ago
The code looks good.... I tried copying the code in a test project and it worked... On the click of a submit button the state is getting saved.... Here are a few things I would suggest(if you haven't already done that):
1.) Check if any other text box in the form which is binded to the same value(i.e selected state).

2.) Try Taking this code out in a test project and use a couple of jsps to achieve the results.

P.S: I used My Faces 1.1.4 and Java Compiler 1.4. So had to change List<T> to List but that should not effect.

What is the Myfaces version you are using and also can you paste the complete JSP page and the faces-config.xml.

12 years ago
- This is not the treatment he should recieve.
- If there was an issue behind the curtains he deserves a decent farewell.

Originally posted by Amrutha Chowdary:

If bengal is so much impressed by sourav.... better make him bengal team captain.

FYI SG was bengal's captain and he voluntarily stepped down last month.

Sourav Steps down as Bengal's captain

15 years ago
Nice Find

And this story is funny.
Why should you continue to date me

15 years ago
Hi Guys,
Has anybody played the "White Chamber"(Sequel of Crimson room,Blue Chamber and Vridian Room).

For those of you who dont know abt these games:
WARNING: This game is highly frustrating and time consuming as there is no clue on how to escape the room. You just have to keep on clicking the screen and get some weird things(called items) and use it somehow.

I am thinking of playing it tonight.

White Chamber

15 years ago

Originally posted by Rick Beaver:
I think that was it Fred - thanks.
Follow on question - why does 30 sin on a calculator give me 0.5 (correct) but Math.sin(30) gives me -0.9880316240928618 (wrong)

I appreciate all the help Thanks again

Beacuse the sine function in math class takes radians as parameters. But you can use Math.sin(Math.toRadians(30)) to achieve the same.

15 years ago

Did you guys just forget to mention
Shawshank Redemption &
Good Will Hunting

15 years ago
Hi Guys,

Here are two articles by our beloved pundit of the game Harsha Bhogle:
Dec 14th
Dec 16th

Its really sad that Ganguly is facing this situation. And IMHO he is the most unluckiest heroes of Indian Sports. But this is not the first time this is happening. It has happened before with Azhar, Jadeja etc. Chill out BCCI.... National Heroes are human beings too. Even SA has accepted Gibbs & company. Everybody deserves a second chance. Look into past and learn from other Cricket Boards. ACB gave ample opportunities to Mark Taylor when he was facing the same situation. Yeah its true that Ganguly didnt produce a ton but he produced two valiant knocks at crucial times.

"Whether Ganguly stays in the team or not". This episode is ephemeral too...and will just leave some bad memories for avid cricket fans. But the prodigious lot which holds the potential of reigning the world will not be numero uno until these things change:
1.) Unnecessary Media Hype and their Inconsistent Reviews
2.) Selection Panel("Or a bunch of jokers"---Mohinder Amarnath)
3.) Politics at BCCI's top level.

[ December 15, 2005: Message edited by: Sachin Satija ]
15 years ago

Originally posted by Sameer Jamal:

By answering all the above questions wrong I proved myself to be a normal human being.

Cool ....BTW how did u take the manliness test
15 years ago
A guy walks into a pub and sees a sign hanging over the bar which

Cheese Sandwich: $1.50
Hand Job: $10.00

He checks his wallet for the necessary payment, then he walks up to the
and beckons to one of the exceptionally attractive blondes serving
drinks to
an eager-looking group of men.
"Yes?" she inquires, with a knowing smile, "can I help you?"
"Yep, I was wondering," whispers the man, "are you the one who gives
"Yes," she purrs, "I am."
Replies the man, "Well, then, wash your hands because I want a cheese

Trade Name
In pharmacology, all drugs have two names - a trade name and a generic
For example, the trade name of Tylenol is acetaminophen.
Aleve is known anaproxen,
Amoxil is amoxicillin,
and Advil is ibuprofen.
The FDA has been looking for a generic name for Viagra. After
by a team of government experts, it recently announced it has settled
on the
generic name of "mycoxafloppin". Also considered were mycoxafailin,
mydixadrupin, mydixarizin, mydixadud, dixafix and, of course, ibepokin.

A wife arrived home from a shopping trip and was shocked
to find her husband in bed with a lovely young woman.

Just as she was about to storm out of the house, her husband
called out, Perhaps you should hear how all this came about...

I was driving home on the highway when I saw this young woman
looking tired and bedraggled. I brought her home and made her
a meal from the roast beef you had forgotten about in the fridge.

She was bare-footed so I gave her your good sandals which
you had discarded because they had gone out of style.

She was cold so I gave her the sweater which I bought you for
your birthday but you never wore because the color didnt suit you.

Her pants were torn, so I gave her a pair of your jeans,
which were perfectly good, but too small for you now.

Then, just as she was about to leave, she asked, Is
there anything else your wife doesnt use anymore?
15 years ago
Manliness Test
> 1. In the company of females, intercourse should be referred to as:
> A. Lovemaking
> B. Screwing
> C. Taking the pigskin bus to tuna town.
> 2. You should make love to a woman for the first time only after you've
> both shared:
> A. Your views about what you expect from a sexual relationship.
> B. Your blood-test results.
> C. Five tequila slammers.
> 3. You time your orgasm so that:
> A. Your partner climaxes first.
> B. You both climax simultaneously
> C. You don't miss ESPN Sportsdesk.
> 4. Making love on the kitchen floor is :
> A. Healthy, creative love-play.
> B. Not the sort of thing your wife/girlfriend would agree to.
> C. Not the sort of thing your wife/girlfriend ever needs to discover.
> 5. Spending the whole night cuddling a woman you just had sex with is:
> A. The best part of the experience.
> B. The second best part of the experience.
> C. $100 extra.
> 6. Your girlfriend says she's gained five pounds in the last month.
> You tell her that it is:
> A. No big concern of yours.
> B. Not a problem, she can join your gym.
> C. A conservative estimate.
> 7. You think today's sensitive, caring man is:
> A. A myth
> B. An oxymoron
> C. A moron
> 8. Foreplay is to sex as:
> A. Appetizer is to entree.
> B. Primer is to paint.
> C. A long line is to an amusement park ride.
> 9. Which of the following are you most likely to find yourself saying at
> the
> end of a relationship?
> A. "I hope we can still be friends."
> B. "I'm not in right now, please leave a message at the beep."
> C. "Welcome to Dumpsville, baby... population: YOU."
> 10. A woman who is uncomfortable watching you masturbate:
> A. Probably needs a little more time before she can cope with that sortof
> intimacy.
> B. Probably Is too uptight and a waste of your time.
> C. Probably shouldn't have sat next to you on the bus in the first place.
> Scoring Guide:
> If you answered "A" more than 7 times, check your pants to make sure you
> really are a man.
> If you answered "B" more than 7 times, check into therapy, you're alittle
> confused.
> If you answered "C" more than 7 times, "YOU DA MAN!!"
15 years ago
The Difference between Focusing on Problems and Focusing on Solutions

Case 1

When NASA began the launch of astronauts into space, they found out

That the pens wouldn't work at zero gravity (ink won't flow down to the writing surface). To solve this problem, it took them one decade and $12 million.

They developed a pen that worked at zero gravity, upside down, underwater, in practically any surface including crystal and in a temperature range from below freezing to over 300 degrees C.

And what did the Russians do...?? They used a pencil.

Case 2

One of the most memorable case studies on Japanese management was the case of the empty soap box, which happened in one of Japan's biggest cosmetics companies. The company received a complaint that a consumer had bought a soap box that was empty. Immediately the authorities isolated the problem to the assembly line, which transported all the packaged boxes of soap to the delivery department. For some reason, one soap box went through the assembly line empty. Management asked its engineers to solve the problem.

Post-haste, the engineers worked hard to devise an X-ray machine with high-resolution monitors manned by two people to watch all the soap boxes that passed through the line to make sure they were not empty. No doubt, they worked hard and they worked fast but they spent a whoopee amount to do so.

But when a rank-and-file employee in a small company was posed with the same problem, he did not get into complications of X-rays, etc., but instead came out with another solution. He bought a strong industrial electric fan and pointed it at the assembly line. He switched the fan on, and as each soap box passed the fan, it simply blew the empty boxes out of the line.


Always look for simple solutions. Devise the simplest possible solution that solves the problems.
15 years ago