Re: Ajax does not update my webcontainer

2012-06-27 Thread Andrea Del Bene
Component corresponding to id=bestaandeGebruiker is not enabled or is 
invisible. That's why you get message "behavior not enabled"

I have a screen with a part for existings users and a part for new users. One
can switch by clicking a link 3
in the existingUserthere is a link for changing to newUser (and vv)
Initial i show both parts in orde to see any reaction but it does no react
at all
I my dos box i see:
  behavior not enabled; ignore call. Behavior
org.apache.wicket.ajax.markup.html.AjaxLink$1@10e5e03 at component [
[Component id = bestaandeGebruiker]]
I have no idea what to do

  
# 


   
   
   
  
# 


   
   
   *
   
   
==
  
	@SuppressWarnings("rawtypes")

private AjaxLink nieuweGebruikerLink() {
AjaxLink nieuweGebruiker = new AjaxLink("nieuweGebruiker"){
private static final long serialVersionUID = 1L;
public void onClick(AjaxRequestTarget target) {
System.out.println("nieuweGebruikerLink");
newUserSetVisible(true);
target.add(newUser);
target.add(existingUser);
}
};  
return nieuweGebruiker;
}
@SuppressWarnings("rawtypes")
private AjaxLink bestaandeGebruiker() {
@SuppressWarnings("unchecked")
AjaxLink bestaandeGebruiker = new 
AjaxLink("bestaandeGebruiker"){
private static final long serialVersionUID = 1L;
@Override
public void onClick(AjaxRequestTarget target) {
System.out.println("bestaandeGebruiker");
newUserSetVisible(false);   
target.add(newUser);
target.add(existingUser);   
}
};  
return bestaandeGebruiker;
}   
private void newUserSetVisible(boolean show){
newUser.setVisible(show);
existingUser.setVisible(!show); 
}


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Ajax-does-not-update-my-webcontainer-tp4650259.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org





-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Ajax does not update my webcontainer

2012-06-27 Thread lang
I have a screen with a part for existings users and a part for new users. One
can switch by clicking a link 3
in the existingUserthere is a link for changing to newUser (and vv)
Initial i show both parts in orde to see any reaction but it does no react
at all
I my dos box i see:
 behavior not enabled; ignore call. Behavior
org.apache.wicket.ajax.markup.html.AjaxLink$1@10e5e03 at component [
[Component id = bestaandeGebruiker]]
I have no idea what to do

 
   # 

  
  
  
 
   # 

   
  
  *
   

==
 
@SuppressWarnings("rawtypes")
private AjaxLink nieuweGebruikerLink() {
AjaxLink nieuweGebruiker = new AjaxLink("nieuweGebruiker"){
private static final long serialVersionUID = 1L;
public void onClick(AjaxRequestTarget target) {
System.out.println("nieuweGebruikerLink");
newUserSetVisible(true);
target.add(newUser);
target.add(existingUser);
}
};  
return nieuweGebruiker;
}
@SuppressWarnings("rawtypes")
private AjaxLink bestaandeGebruiker() {
@SuppressWarnings("unchecked")
AjaxLink bestaandeGebruiker = new 
AjaxLink("bestaandeGebruiker"){
private static final long serialVersionUID = 1L;
@Override
public void onClick(AjaxRequestTarget target) {
System.out.println("bestaandeGebruiker");
newUserSetVisible(false);   
target.add(newUser);
target.add(existingUser);   
}
};  
return bestaandeGebruiker;
}   
private void newUserSetVisible(boolean show){
newUser.setVisible(show);
existingUser.setVisible(!show); 
}


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Ajax-does-not-update-my-webcontainer-tp4650259.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org