You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by lang <de...@telfort.nl> on 2012/06/27 14:42:28 UTC
Ajax does not update my webcontainer
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
========================
<tr><td colspan="2"><div> # <wicket:message key="nieuweGebruiker" />
</div></td></tr>
<tr><td colspan="2"><wicket:message
key="wachtwoordVergeten"/></td></tr>
<tr><td colspan="2"><div> # <wicket:message key="bestaandeGebruiker" />
</div></td></tr>
<tr class="inputLine">
<td><label for="wachtwoord"><wicket:message key="wachtwoord2"
/></label></td>
<td class="verplicht">*</td>
<td><input 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 AjaxLink<Void> bestaandeGebruiker() {
@SuppressWarnings("unchecked")
AjaxLink<Void> 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-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Ajax does not update my webcontainer
Posted by Andrea Del Bene <ad...@ciseonweb.it>.
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
> ========================
>
> <tr><td colspan="2"><div> # <wicket:message key="nieuweGebruiker" />
> </div></td></tr>
> <tr><td colspan="2"><wicket:message
> key="wachtwoordVergeten"/></td></tr>
>
>
>
> <tr><td colspan="2"><div> # <wicket:message key="bestaandeGebruiker" />
> </div></td></tr>
> <tr class="inputLine">
> <td><label for="wachtwoord"><wicket:message key="wachtwoord2"
> /></label></td>
> <td class="verplicht">*</td>
> <td><input 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 AjaxLink<Void> bestaandeGebruiker() {
> @SuppressWarnings("unchecked")
> AjaxLink<Void> 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-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org