[Seaside] anchorWithAction vs submitButtonWithAction

David Shaffer cdshaffer at acm.org
Tue Jun 21 20:00:26 CEST 2005


Fernando wrote:

>Hi,
>
>I'm currently learning seaside and created a component with the following methods:
>
>renderContentOn: html
>
>	html anchorWithAction: [self sayHello] text: 'Say hello'.
>
>sayHello
>
>	self inform: 'Hello!'.
>			
>
>This works as expected: when I click on the link I get a 'modal form' with an Ok button. 
>However, If I change the renderContentOn: code to:
>
>html submitButtonWithAction: [self sayHello] text: 'Say hello'.	
>
>nothing happens when I click on the button. What am I doing wrong?
>
>Thanks!
>_______________________________________________
>Seaside mailing list
>Seaside at lists.squeakfoundation.org
>http://lists.squeakfoundation.org/listinfo/seaside
>  
>
It needs to be inside a form:

html form: [html submitButtonWithAction.......]

David



More information about the Seaside mailing list