Hi,
To anybody interested, I've found a workaround that worked.
I've added an invisible link into the dialog and simulated clicking on it:
HTML code for the link:
Java code for the link:
submitLink = new AjaxSubmitLink( "submitFormInvisibleButton", form ) {
private static final long seri
Hi Sebastien,
I've tried it - used getCallbackFunction() - but it generated a function
inside function, and broke JS syntax.
I've tried a couple of other ideas, but none worked.
Regards,
Andrew
--
Andrew Schetinin
On Wed, Jul 17, 2013 at 1:54 AM, Sebastien wrote:
> Hi,
>
> I think the idea
Hi,
Let me see If I get a chance to look at this today...
On Wed, Jul 17, 2013 at 2:54 AM, Sebastien wrote:
> Hi,
>
> I think the idea is more to replace
> wicketSubmitFormById('form','" +formAjaxBehavior.getCallbackUrl() +"',
> null, null, null, null,null);")));
> by
> formAjaxBehavior.getCal
Hi,
I think the idea is more to replace
wicketSubmitFormById('form','" +formAjaxBehavior.getCallbackUrl() +"',
null, null, null, null,null);")));
by
formAjaxBehavior.getCallbackFunction()
With the override mentioned bellow.
#getCallbackFunction() will get you the ready-to-use javascript function.
Hi Sebastien,
Thank you for the suggestion, but the trouble with the sample (and wiQuery)
is that DialogButton is not a wicket component - it is a very simple
object. There is no updateAjaxAttributes() to change.
As I explained, the form submit there works by a plain call from
JavaScript, and tha
Hi Andrew,
You have to override your ajaxbehavior#updateAjaxAttributes()
protected void updateAjaxAttributes(AjaxRequestAttributes attributes)
{
super.updateAjaxAttributes(attributes);
attributes.setMethod(Method.POST); //if you wish to post
attributes.setFormId("yourFormId");
}
Bes
Hi,
I've just upgraded from Wicket 1.4 to 6.9, and (among lots of other
problems) I have a trouble with porting the code that submitted a form from
within a wiQuery dialog.
My code is based on the sample that can be found here:
http://code.google.com/p/wiquery/source/browse/examples/wiquery-examp