Kelly Moffat

Greenhorn
+ Follow
since Oct 22, 2012
Kelly likes ...
Mac OS X Eclipse IDE Java
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 Kelly Moffat

The solution to this was to move the tab creation event to a different place in the code. If anyone needs help with this, please let me know and I'll get the details. It was months ago that I figured this out, so I can't recall the exact fix at the moment.
Hello!

I'm not sure if this is best for Beginning Java or the next level, but I'm afraid that the issue is something simple I'm missing because I'm so new so I am starting here.

I have an application that I am developing using the Vaadin framework. I have a stack of tabs that is added to each time you click a button representing different entities. The default close handler for a tab in Vaadin if you are closing the same tab that is currently selected is to make the first/bottom tab in the list the active tab. What I want to do is make the tab that was most recently selected, before the closed tab was selected, the active tab. I believe I can do this if I can capture the originating tab before a tab change event. Unfortunately, I can only find a way to capture the newly selected tab, not the one that was selected initially. I found a couple of code examples out there that have me do something similar to this:



stack is my TabSheet that I am working with. In debug, I see that the "selected" variable that I have before the event is processed is always null. It doesn't seem to get assigned the value as it apparently does in the examples I've found online.

Any ideas on how I can get this selected? I've been stuck on this for two days and I'm just sure it's something simple that I'm missing because I'm new and not thinking about things correctly.

Thank you!
I am trying to create an embedded TabSheet using the Vaadin framework and I can't seem to get it to work the way that I would like it to. Essentially, I have two loops... one creating a list of environments and the other creating a list of nodes. I want to have the nodes tabs under the environment tabs that they belong to. Currently, if a client has more than one environment, the first environments have no nodes listed under them (although they do have nodes associated) and the last environment listed has all nodes from all environments. I am sure it's something simple, but I am new to Java and Vaadin, so I am struggling. Any help is greatly appreciated!

Here is my method:


Thank you,
Kelly