This week's giveaway is in the Beginning Java forum.
We're giving away four copies of Bad Programming Practices 101 (e-book) and have Karl Beecher on-line!
See this thread for details.
Win a copy of Bad Programming Practices 101 (e-book) this week in the Beginning Java forum!

Al Hobbs

Ranch Hand
+ Follow
since Aug 30, 2017
Al likes ...
Netbeans IDE
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 Al Hobbs

Okay I think your problem lies with the @norepositorybean
That annotation makes it so spring doesn't create an instance. Maybe you need it to use the querydsl interface.  You might have to create the bean yourself if you are using that annotation.
6 days ago
Maybe because you are extending two interfaces, spring isn't able to make the instance.
6 days ago

Tim Moores wrote: rightfully worry that they are not as welcome at the company, or may no longer get promotions?

Yeah does seem probable.  The real reason could be that  it's an excuse to save money. I figure salads are probably cheaper than meat.
1 week ago
How did you extend two things? I thought you can only extend one class. 
1 week ago
Seems perfectly fine.  If they are feeding you then that's already pretty good.  Nothing wrong with vegetarian food.
1 week ago
How many hours are you working everyday?  You could walk to get coffee more often and chat with somebody else drinking coffee. Two birds with one stone.
1 week ago
If it says it can't find org.olap4j.driver.xmla.XmlaOlap4jDriver, and you don't know what it is, then you should probably add it to the classpath, or gradle build dependency list.
1 week ago
You need to have the javascript in both pages......
I checked your page, and it turns yellow.  What are you trying to do?

I had a problem today with giving a variable to a function inside a onclick function assignment. 

The solution I came up with is this:

At first I was putting:

But the function was getting a 5 regardless of which button was clicked.  I guess that's the last number of the for loop.  In the debugger it came out as a closure.

My question is if there's a better way to set this up?  It seems hacky to be using the innerHtml for a JS function.

Yea, so I was right.  I changed it to this and it works perfectly now

Actually, I think it might actually be because the innerhtml.  Apparently, jquery will call innerhtml if there's something in there, so that might be why the attributes aren't put in there.  I'll have to check that out tomorrow.
Do you think it might be because I am adding an inner html to the nested ones? 

I am creating some div elements and the ones that are nested are showing up in the page without the attributes.  The parent element that I am creating is getting all the attributes without any problem.  Is there something wrong with how I am doing it?  I tried rephrasing it a few different ways but the attributes aren't showing up.