« first day (1251 days earlier)      last day (3704 days later) » 

6:21 AM
hay hi
any one know vaadin can help me?
0
Q: how to set value on click of link in vaadin

NishaI am new to vaadin. I have one Link like Link link = new Link("", new ExternalResource(redirectURL)); my requirement is, I have to set value when user clicks the link. Can I add listener when user click the link. Or is there alternate ways of setting value if link is clicked.

 
Prepare called on a local tx. Use of local transactions on a jta transaction with more than one branch may result in inconsistent data in some cases of failure.
any one can help me
 
 
8 hours later…
2:31 PM
@all cud i post a small part of my code?
my loop seems to be executing twice i cant get a hold of why this is happening
 
Yes, please
Next time, just post, don't ask if you can post
 
List<String> emailList=new ArrayList();


String mail1="xyz@xyx.com";
String mail2="zhy@xyx.com";

emailList.add(mail1);
emailList.add(mail2);
List<String> accessCodes=new ArrayList();


String access1="fdsafs1";
String access2="fdsafs2";

accessCodes.add(access1);
accessCodes.add(access2);
int size=emailList.size();
String email[]=new String[size];


for(int i=0;i<size;i++){
email[i]=emailList.toString();

System.out.println("email===>"+email[i]);
}

String acode[]=new String[size];

for(int j=0;j<size;j++){
@Karl all three loops of mine prints twice
 
It seems to me that it's called twice... Then again, my stills are kinda weak
 
is it because i assign the array index to the size of the generic list
i tried declaring array as String acode[]=null;
but it threw null pointer at me
any one?
 
You're doing toString() to full lists. That's likely not what you want. Something like: email[i]=emailList.get(i); , is probably what you intended
Anyway, why do you need arrays? Also, List has a toArray() method that you can use
 
2:49 PM
well the list is dynamically generated based on user input .... and am pretty new to this concept ... thanks for the help bro
 
Good morning, Java!
 
I mean, why don't you just use the lists since they need to be dynamic? Basically you need to create the arrays only if you're using another api that requires arrays (and then you can use List.toArray())
(I'd make a class Email or something, with the fields address and accessCode, and then use a List<Email>, since they seem to come in pairs anyway and the code relies on that)
 
well i am trying to map the email with the acode and mail it to the respective user
 
3:52 PM
hai guys
 
Why is there such general confusion about how NullPointerException's work in Java? Every time a question comes up, not only does the question itself show general confusion, but it is met with a barrage of answers and comments that are complete nonsense.
It's so strange to me; there's got to be some fundamental source for systemic confusion like that.
 
i had one query related to reverse engineering of server(tomcat) side java code to get design info
 
Is it the name, "NullPointerException" itself? The documentation of it? The documentation is clear. Is there a conspiracy in the education system to create confusion around this?
 
1
Q: Creating design document from existing java code

BigBossI have existing java code and need to create Design Document based on that. For starter even if I could get all functions with input / output parameters that will help in overall proces. Note: There is not commeted documentation on any procedures, function or classes. Last but not least. Let m...

but i did not get much info on this
 
@Sham The accepted answer there is correct. Actually, there is also a link in the question comments to another question that may have some useful tools, but, unfortunately, that question was deleted and you do not have enough reputation to see it. From that question (not reviewing, just blindly regurgitating answers), check out ....
ObjectAid UML Explorer, Papyrus, eUML2, PlantUML, EclipseUML from Omondo, and a list of tools at case-tools.org/tags/eclipse.html.
 
3:58 PM
ok
 
These are all Eclipse plugins, I believe.
 
ok
do u have any exp on this?
i have server side app code
 
 
8 hours later…
fge
11:53 PM
Wee
FileSystem over FTP, here we are!
 

« first day (1251 days earlier)      last day (3704 days later) »