I checkd the http requests and it seems that there are 2 coming from the
browser to Wicket for the iframe. This results in the iframe's
oncomponenttagbody() being called twice.
Any idea why there are 2 requests being generated??
Many thanks
J
Jeremy2009 wrote:
>
> Thanks for letting me know
oncomponenttagbody is called for every render, just like
oncomponenttag and onbeforerender.
-igor
On Sat, Jun 6, 2009 at 10:58 PM, Jeremy2009 wrote:
>
> Thanks for letting me know about this class - never came across it before.
>
> But, I realised I can just call SetResponsePage() at the end of
Thanks for letting me know about this class - never came across it before.
But, I realised I can just call SetResponsePage() at the end of my
onSubmit() to load the IFrame again. This then calls a javascript method in
the parent panel to cause an Ajax request so I can update various UI
component
form onsubmit() { setrequesttarget(new emptyrequesttarget()); }
-igor
On Sat, Jun 6, 2009 at 4:13 PM, Jeremy2009 wrote:
>
> thanks...
>
>
> But I have realised that this approach is flawed since Wicket is attemtping
> to render the parent panel's page in the Iframe which is not my intention.
>
>
thanks...
But I have realised that this approach is flawed since Wicket is attemtping
to render the parent panel's page in the Iframe which is not my intention.
I just wanted the empty iframe to be re-rendered on its own. Any idea how i
can do this?
Thanks
Jeremy
igor.vaynberg wrote:
>
> at
at the same place where you are instntiating the form...
-igor
On Sat, Jun 6, 2009 at 3:20 PM, Jeremy2009 wrote:
>
> I instantiate my Iframe in the panel's onBeforeRender() to ensure there's a
> page to attach the iFrame to.
>
> I think the oncomponenttag() happens before the onBeforeRender() whi
I instantiate my Iframe in the panel's onBeforeRender() to ensure there's a
page to attach the iFrame to.
I think the oncomponenttag() happens before the onBeforeRender() which means
that if i do:
tag.put("target", myIFrame.getMarkupId());
myIFrame is null.
So, where can I instantiate my Ifram
add(new form(..) { oncomponenttag(tag) { tag.put("target","whatever"); }});
-igor
On Sat, Jun 6, 2009 at 1:26 PM, Jeremy2009 wrote:
>
> I am trying to simulate an ajax file upload by having my form's target
> specify an iframe. So that once the form's onsubmit() ends, the iframe will
> re-render
I am trying to simulate an ajax file upload by having my form's target
specify an iframe. So that once the form's onsubmit() ends, the iframe will
re-render instead of the panel that contains the upload form. On being
re-rendered it will contain some javascript that will call another piece of
ja
what exactly do you want to know? how to add a target tag to the form?
-igor
On Sat, Jun 6, 2009 at 1:07 PM, Jeremy Colton wrote:
> Hi,
>
> I am creating a form that performs a file upload. Rather than have the
> form's page update once the onSubmit() ends, I want the form's target
> attribute
Hi,
I am creating a form that performs a file upload. Rather than have the
form's page update once the onSubmit() ends, I want the form's target
attribute to specify an iframe and have the iframe update instead.
How do i do this?
Many thanks
Jeremy C.
11 matches
Mail list logo