Issue with AjaxLinks in ListView

2009-07-31 Thread Kugaprakash Visagamani
Hi,

I have a page that has a panel with ListViewAjaxLink (Listview
contains AjaxLink's).

 

I go to that page, click on a links - does an ajax update of one section
in a page, and then I do a target.addComponent(listViewPanel) to update
the link selection background. This works fine so far. 

 

Now I click on the second link in that listview, I am getting the below
exception:

 

org.apache.wicket.WicketRuntimeException: component
heading:menu:subMenuBar:topmenuitems:2:menuitemfragment:linkfragment:lin
kid not found on page
com.infoblox.nios.ui.page.datamgt.DataManagePage[id = 3], listener
interface = [RequestListenerInterface name=IBehaviorListener,
method=public abstract void
org.apache.wicket.behavior.IBehaviorListener.onRequest()]

  at
org.apache.wicket.request.AbstractRequestCycleProcessor.resolveListenerI
nterfaceTarget(AbstractRequestCycleProcessor.java:416)

  at
org.apache.wicket.request.AbstractRequestCycleProcessor.resolveRenderedP
age(AbstractRequestCycleProcessor.java:461)

  at
org.apache.wicket.protocol.http.WebRequestCycleProcessor.resolve(WebRequ
estCycleProcessor.java:139)

  at
com.infoblox.nios.app.NiosApplication$RedirectRequestCycleProcess.resolv
e(MYApplication.java:232)

  at org.apache.wicket.RequestCycle.step(RequestCycle.java:1233)

  at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1353)

  at org.apache.wicket.RequestCycle.request(RequestCycle.java:493)

  at
org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:355
)

 

NOTE: THIS PROBLEM IS VERY INTERMITTENT, I am unable to determine the
main cause for this. However, if I re-login, everything is fine (atleast
was able to click on the links multiple times, and did not see any
issues).

 

I am using Wicket 1.3.5

 

Please let me know if you have any ideas, any pointers would be highly
appreciated.

 

Best Regards  Thanks in Advance,

Kuga



Wicket Wizard window question!

2008-09-23 Thread Kugaprakash Visagamani
Hi,

I was browsing through the wicket forums, for one of the problems I am
having using Wicket wizard in ModalWindow.

 

Wondering if anyone could help me with any possible solutions. Greatly
appreciate you time and response.

 

I have changed the WizardButtons to use Ajax buttons. The following is
the behavior:

In the wizard Ajax button I added the following:

 

protected void onSubmit(AjaxRequestTarget target, Form form) {

onClick(target);

target.addComponent((Wizard)wizard);

  }

 

1. I have added 3 IWizardStep to the model 

2. Added the wizard to a panel, and then added this panel to the
ModalWindow.

3. Lauched the modalwindow, 

a. Observed the right behavior (button enabled state) of the
buttons at launch

b. Now Clicked on Next button - traverses to the next
step.

c. Now clicked on the Previous button - instead of going
to Previous - I got the annoying alert message. 

d. added the javascript (Wicket.windo.unloadConfirmatoin =
false;

e. Adding the above scrip was just suppressing the alert
message, and just closes the wizard window without going to the previous
screen.

 

Not really sure where I am going wrong. Have been trying to Debug, but
since the previous button doesn't get the onClick() due to closing,
could not even debug this issue.

 

Can you please let me know about your experience in solving this issue,
and also if you feel that I am doing any mistake, please let me know.

Thanks  Best Regards

Kuga