Hie,
Apart from this suggested workaround - moving the API version to 1.3, is
there any other temporary way to give a component focus in the
AjaxRequestTarget. I realise if I replace the 1.2.6 version with 1.3.0
API, there is alot of changes I need to make in the code and I prefer not to
trouble myself for now. Any other workaround to this?
Johan Compagner wrote:
>
> AjaxRequestTarget has an own method now for giving a component focus:
> http://wicketstuff.org/wicket13doc/org/apache/wicket/ajax/AjaxRequestTarget.html
>
>
> On 5/21/07, Lec <[EMAIL PROTECTED]> wrote:
>>
>>
>> That's what I did, but after clicking, I can't seems to link it to the
>> component i want to
>>
>> add( new AjaxSubmitButton("sendemail", this)
>> {
>> protected void onSubmit(AjaxRequestTarget
>> target, Form form)
>> {
>>
>>
>>
>> target.appendJavascript("document.getElementById('" +
>> topCompoent.getMarkupId() + "').focus();");
>>
>>
>> }
>> });
>>
>> Tracing back the error, it said "has no properties". what does that mean?
>>
>>
>> Timo Rantalaiho wrote:
>> >
>> > On Mon, 21 May 2007, Lec wrote:
>> >> component. But the thing now is that, button doesn't provide any
>> method
>> >> to
>> >> set an anchor. How do we do that?
>> >
>> > Override Button.onSubmit()
>> >
>> > - Timo
>> >
>> > --
>> > Timo Rantalaiho +358-45-6709709
>> > Reaktor Innovations Oy <URL: http://www.ri.fi/ >
>> >
>> >
>> -------------------------------------------------------------------------
>> > This SF.net email is sponsored by DB2 Express
>> > Download DB2 Express C - the FREE version of DB2 express and take
>> > control of your XML. No limits. Just data. Click to get it now.
>> > http://sourceforge.net/powerbar/db2/
>> > _______________________________________________
>> > Wicket-user mailing list
>> > [email protected]
>> > https://lists.sourceforge.net/lists/listinfo/wicket-user
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/how-to-use-a-button-to-display-to-another-region-of-a-html-page-upon-clicked--tf3788901.html#a10715599
>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>
>>
>> -------------------------------------------------------------------------
>> This SF.net email is sponsored by DB2 Express
>> Download DB2 Express C - the FREE version of DB2 express and take
>> control of your XML. No limits. Just data. Click to get it now.
>> http://sourceforge.net/powerbar/db2/
>> _______________________________________________
>> Wicket-user mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/wicket-user
>>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> Wicket-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>
--
View this message in context:
http://www.nabble.com/how-to-use-a-button-to-display-to-another-region-of-a-html-page-upon-clicked--tf3788901.html#a10732457
Sent from the Wicket - User mailing list archive at Nabble.com.
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user