Re: [6.4.0] RadioColumn event in dataTable

2013-01-07 Thread dmalescot
thanks, it works perfectly :)



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/6-4-0-RadioColumn-event-in-dataTable-tp4655161p4655178.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: [6.4.0] RadioColumn event in dataTable

2013-01-05 Thread Martin Grigorov
Hi,

You have to override AjaxEventBehavior's #updateAjaxAttributes() method and
do attributes.setAllowDefault(true).


On Fri, Jan 4, 2013 at 5:17 PM, dmalescot  wrote:

> Hello,
>
> I am trying to migrate from 1.5 to 6.4 wicket, and i have a problem with
> dataTable and RadioColumn.
>
> I have a RadioGroup with a dataTable :
>
> RadioGroup radioGroup = new RadioGroup( "radioGroup", new
> PropertyModel( CustomTable.this, "selectionRadio" ) );
>  radioGroup.add( datatable );
>
> I have a RadioColum like this :
> public abstract class RadioColumn extends
> HeaderlessColumn
>
> And in my populateItem, i add a RadioPanel with AjaxEventBehavior :
>
> public RadioPanel( String id, IModel rowModel, final K token )
> {
> super( id, null );
> Radio radio = new Radio( "radio", new Model( token )
> );
> radio.add( new AjaxEventBehavior( "onclick" )
> {
> @Override
> protected void onEvent( AjaxRequestTarget target )
> {
> }
> } );
>
> radio.setEnabled( listener.isRadioEnabled( rowModel ) );
>
> add( radio );
> }
>
>
> its works perfectly in 1.5, but in 1.6 my radioButton isn't selected when I
> click on it.
> If i remove AjaxEventBehavior, it's OK. But i need to have a custom event.
>
> Coud you help me please ?
>
> Best regards.
>
>
>
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/6-4-0-RadioColumn-event-in-dataTable-tp4655161.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com 


[6.4.0] RadioColumn event in dataTable

2013-01-04 Thread dmalescot
Hello, 

I am trying to migrate from 1.5 to 6.4 wicket, and i have a problem with
dataTable and RadioColumn.

I have a RadioGroup with a dataTable :

RadioGroup radioGroup = new RadioGroup( "radioGroup", new
PropertyModel( CustomTable.this, "selectionRadio" ) );
 radioGroup.add( datatable );

I have a RadioColum like this :
public abstract class RadioColumn extends
HeaderlessColumn

And in my populateItem, i add a RadioPanel with AjaxEventBehavior :

public RadioPanel( String id, IModel rowModel, final K token )
{
super( id, null );
Radio radio = new Radio( "radio", new Model( token ) );
radio.add( new AjaxEventBehavior( "onclick" )
{
@Override
protected void onEvent( AjaxRequestTarget target )
{
}
} );

radio.setEnabled( listener.isRadioEnabled( rowModel ) );

add( radio );
}


its works perfectly in 1.5, but in 1.6 my radioButton isn't selected when I
click on it. 
If i remove AjaxEventBehavior, it's OK. But i need to have a custom event.

Coud you help me please ?

Best regards.




--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/6-4-0-RadioColumn-event-in-dataTable-tp4655161.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org