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

 
  trtd colspan=2div # wicket:message key=nieuweGebruiker /
/div/td/tr
  trtd colspan=2wicket:message
key=wachtwoordVergeten//td/tr
  
  
 
  trtd colspan=2div # wicket:message key=bestaandeGebruiker /
/div/td/tr
  tr class=inputLine 
  tdlabel for=wachtwoordwicket:message key=wachtwoord2
//label/td
  td class=verplicht*/td
  tdinput wicket:id=wachtwoord2 class=inputLine type=password
size=15//td 
  /tr  
==
 
@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 AjaxLinkVoid bestaandeGebruiker() {
@SuppressWarnings(unchecked)
AjaxLinkVoid 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



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

  
   trtd colspan=2div # wicket:message key=nieuweGebruiker /

/div/td/tr
   trtd colspan=2wicket:message
key=wachtwoordVergeten//td/tr
   
   
  
   trtd colspan=2div # wicket:message key=bestaandeGebruiker /

/div/td/tr
   tr class=inputLine
   tdlabel for=wachtwoordwicket:message key=wachtwoord2
//label/td
   td class=verplicht*/td
   tdinput wicket:id=wachtwoord2 class=inputLine type=password
size=15//td
   /tr
==
  
	@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 AjaxLinkVoid bestaandeGebruiker() {
@SuppressWarnings(unchecked)
AjaxLinkVoid 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