Re: [Wicket-user] how to use a button to display to another region of a html page upon clicked?

2007-05-23 Thread Lec

Gerolf,

I don't think you can do that with onClick(). i verified it by
writing that in wicket code. It hit error

-/form]]/componentevaluate![CDATA[document.getElementById('paragraph').onClick();]]/evaluate/ajax-response

Can anybody give me an input as to how can I make this code

   
target.appendJavascript(document.getElementById('paragraph').click();); 

run in IE and mozilla. Currently this code only run in IE but not in
Firefox. Is this a bug?


Gerolf Seitz wrote:
 
 i meant you should rather call
 document.getElementById('paragraph').onclick()
 than
 document.getElementById('paragraph').click()
 
 
 On 5/22/07, Lec [EMAIL PROTECTED] wrote:


 How do you invoke the eventhandler onclick() within  public void onClick(
 AjaxRequestTarget target ) and why would you want to do that for?


 Gerolf Seitz wrote:
 
  you could try to invoke the click eventhandler, that is onclick(). i
 tried
  it on a simple example and got the same error with click() in firefox.
  onclick() worked like a charm.
 
  hth,
gerolf
 
  On 5/22/07, Lec [EMAIL PROTECTED] wrote:
 
 
  This portion of code works in IE
 
  public void onClick( AjaxRequestTarget target )
  {
  target.appendJavascript(document.getElementById
  ('paragraph').click();)
  }
 
  but it DOESN't WORK in FireFox.  Using the Wicket Debug console, it
 said
  ERROR: Exception evaluating javascript: TypeError:
  document.getElementById(paragraph).click is not a function
 
  Is this a bug?
 
 
  igor.vaynberg wrote:
  
   you do this using javascript, no roundtrip to the server is
 required.
  see
   some smooth scroll javascripts on the net.
  
   -igor
  
  
   On 5/21/07, Lec [EMAIL PROTECTED] wrote:
  
  
   Im trying to figure out a way to make button behave as if it's like
 a
   link
   component upon clicked. I want a button to archieve the same
 behaviour
  as
   link, and upon clicked, a particular html region will be focused or
   displayed, just like the same behaviour when you setAnchor in link
   component. But the thing now is that, button doesn't provide any
  method
   to
   set an anchor. How do we do that?
  
   --
   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#a10714844
   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
   Wicket-user@lists.sourceforge.net
   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
   Wicket-user@lists.sourceforge.net
   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#a10733403
  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
  Wicket-user@lists.sourceforge.net
  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
  Wicket-user@lists.sourceforge.net
  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#a10737393
 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 

Re: [Wicket-user] how to use a button to display to another region of a html page upon clicked?

2007-05-23 Thread Timo Rantalaiho
On Wed, 23 May 2007, Lec wrote:
 I don't think you can do that with onClick(). i verified it by
 writing that in wicket code. It hit error
 
 -/form]]/componentevaluate![CDATA[document.getElementById('paragraph').onClick();]]/evaluate/ajax-response

We're using onclick() like that without problems. Could it
be that the capital C is a problem?

Otherwise I suggest that you ensure that that your
getElementById returns something clickable also in Firefox.

- Timo


-
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
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] how to use a button to display to another region of a html page upon clicked?

2007-05-22 Thread Lec

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 OyURL: 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
  Wicket-user@lists.sourceforge.net
  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
 Wicket-user@lists.sourceforge.net
 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
 Wicket-user@lists.sourceforge.net
 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
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] how to use a button to display to another region of a html page upon clicked?

2007-05-22 Thread Gerolf Seitz

you could try to invoke the click eventhandler, that is onclick(). i tried
it on a simple example and got the same error with click() in firefox.
onclick() worked like a charm.

hth,
 gerolf

On 5/22/07, Lec [EMAIL PROTECTED] wrote:



This portion of code works in IE

public void onClick( AjaxRequestTarget target )
{
target.appendJavascript(document.getElementById
('paragraph').click();)
}

but it DOESN't WORK in FireFox.  Using the Wicket Debug console, it said
ERROR: Exception evaluating javascript: TypeError:
document.getElementById(paragraph).click is not a function

Is this a bug?


igor.vaynberg wrote:

 you do this using javascript, no roundtrip to the server is required.
see
 some smooth scroll javascripts on the net.

 -igor


 On 5/21/07, Lec [EMAIL PROTECTED] wrote:


 Im trying to figure out a way to make button behave as if it's like a
 link
 component upon clicked. I want a button to archieve the same behaviour
as
 link, and upon clicked, a particular html region will be focused or
 displayed, just like the same behaviour when you setAnchor in link
 component. But the thing now is that, button doesn't provide any method
 to
 set an anchor. How do we do that?

 --
 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#a10714844
 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
 Wicket-user@lists.sourceforge.net
 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
 Wicket-user@lists.sourceforge.net
 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#a10733403
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
Wicket-user@lists.sourceforge.net
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
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] how to use a button to display to another region of a html page upon clicked?

2007-05-22 Thread Lec

How do you invoke the eventhandler onclick() within  public void onClick(
AjaxRequestTarget target ) and why would you want to do that for? 


Gerolf Seitz wrote:
 
 you could try to invoke the click eventhandler, that is onclick(). i tried
 it on a simple example and got the same error with click() in firefox.
 onclick() worked like a charm.
 
 hth,
   gerolf
 
 On 5/22/07, Lec [EMAIL PROTECTED] wrote:


 This portion of code works in IE

 public void onClick( AjaxRequestTarget target )
 {
 target.appendJavascript(document.getElementById
 ('paragraph').click();)
 }

 but it DOESN't WORK in FireFox.  Using the Wicket Debug console, it said
 ERROR: Exception evaluating javascript: TypeError:
 document.getElementById(paragraph).click is not a function

 Is this a bug?


 igor.vaynberg wrote:
 
  you do this using javascript, no roundtrip to the server is required.
 see
  some smooth scroll javascripts on the net.
 
  -igor
 
 
  On 5/21/07, Lec [EMAIL PROTECTED] wrote:
 
 
  Im trying to figure out a way to make button behave as if it's like a
  link
  component upon clicked. I want a button to archieve the same behaviour
 as
  link, and upon clicked, a particular html region will be focused or
  displayed, just like the same behaviour when you setAnchor in link
  component. But the thing now is that, button doesn't provide any
 method
  to
  set an anchor. How do we do that?
 
  --
  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#a10714844
  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
  Wicket-user@lists.sourceforge.net
  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
  Wicket-user@lists.sourceforge.net
  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#a10733403
 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
 Wicket-user@lists.sourceforge.net
 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
 Wicket-user@lists.sourceforge.net
 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#a10737393
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
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] how to use a button to display to another region of a html page upon clicked?

2007-05-22 Thread Gerolf Seitz

i meant you should rather call
document.getElementById('paragraph').onclick()
than
document.getElementById('paragraph').click()


On 5/22/07, Lec [EMAIL PROTECTED] wrote:



How do you invoke the eventhandler onclick() within  public void onClick(
AjaxRequestTarget target ) and why would you want to do that for?


Gerolf Seitz wrote:

 you could try to invoke the click eventhandler, that is onclick(). i
tried
 it on a simple example and got the same error with click() in firefox.
 onclick() worked like a charm.

 hth,
   gerolf

 On 5/22/07, Lec [EMAIL PROTECTED] wrote:


 This portion of code works in IE

 public void onClick( AjaxRequestTarget target )
 {
 target.appendJavascript(document.getElementById
 ('paragraph').click();)
 }

 but it DOESN't WORK in FireFox.  Using the Wicket Debug console, it
said
 ERROR: Exception evaluating javascript: TypeError:
 document.getElementById(paragraph).click is not a function

 Is this a bug?


 igor.vaynberg wrote:
 
  you do this using javascript, no roundtrip to the server is required.
 see
  some smooth scroll javascripts on the net.
 
  -igor
 
 
  On 5/21/07, Lec [EMAIL PROTECTED] wrote:
 
 
  Im trying to figure out a way to make button behave as if it's like
a
  link
  component upon clicked. I want a button to archieve the same
behaviour
 as
  link, and upon clicked, a particular html region will be focused or
  displayed, just like the same behaviour when you setAnchor in link
  component. But the thing now is that, button doesn't provide any
 method
  to
  set an anchor. How do we do that?
 
  --
  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#a10714844
  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
  Wicket-user@lists.sourceforge.net
  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
  Wicket-user@lists.sourceforge.net
  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#a10733403
 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
 Wicket-user@lists.sourceforge.net
 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
 Wicket-user@lists.sourceforge.net
 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#a10737393
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
Wicket-user@lists.sourceforge.net
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
Wicket-user@lists.sourceforge.net

[Wicket-user] how to use a button to display to another region of a html page upon clicked?

2007-05-21 Thread Lec

Im trying to figure out a way to make button behave as if it's like a link
component upon clicked. I want a button to archieve the same behaviour as
link, and upon clicked, a particular html region will be focused or
displayed, just like the same behaviour when you setAnchor in link
component. But the thing now is that, button doesn't provide any method to
set an anchor. How do we do that? 

-- 
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#a10714844
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
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] how to use a button to display to another region of a html page upon clicked?

2007-05-21 Thread Timo Rantalaiho
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 OyURL: 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
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] how to use a button to display to another region of a html page upon clicked?

2007-05-21 Thread Lec

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 OyURL: 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
 Wicket-user@lists.sourceforge.net
 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
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] how to use a button to display to another region of a html page upon clicked?

2007-05-21 Thread Johan Compagner

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 OyURL: 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
 Wicket-user@lists.sourceforge.net
 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
Wicket-user@lists.sourceforge.net
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
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] how to use a button to display to another region of a html page upon clicked?

2007-05-21 Thread Igor Vaynberg

you do this using javascript, no roundtrip to the server is required. see
some smooth scroll javascripts on the net.

-igor


On 5/21/07, Lec [EMAIL PROTECTED] wrote:



Im trying to figure out a way to make button behave as if it's like a link
component upon clicked. I want a button to archieve the same behaviour as
link, and upon clicked, a particular html region will be focused or
displayed, just like the same behaviour when you setAnchor in link
component. But the thing now is that, button doesn't provide any method to
set an anchor. How do we do that?

--
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#a10714844
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
Wicket-user@lists.sourceforge.net
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
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user