AttributeModifier in AjaxLink's onClick. Possible?

2009-03-25 Thread CrocodileShoes
Can I do this? MarkupContainer facetNameLink = new AjaxLink(facetNameLink) { @Override public void onClick(AjaxRequestTarget target) { // Get the dataprovider's query response SolrQuery query = responseModel.getQuery(); // Set the query back to the beginning.

Re: AttributeModifier in AjaxLink's onClick. Possible?

2009-03-25 Thread nino martinez wael
No theres a ajax decorator you can override instead, or something like it... 2009/3/25 CrocodileShoes markjohndo...@googlemail.com Can I do this? MarkupContainer facetNameLink = new AjaxLink(facetNameLink) { @Override public void onClick(AjaxRequestTarget target) { // Get the

Re: AttributeModifier in AjaxLink's onClick. Possible?

2009-03-25 Thread CrocodileShoes
Ah Ok. After a quick search through the wiki I came up with this: @Override protected IAjaxCallDecorator getAjaxCallDecorator() { return new AjaxCallDecorator() { public CharSequence decorateScript(CharSequence script) { // add Javascript to change id here return + script;

Re: AttributeModifier in AjaxLink's onClick. Possible?

2009-03-25 Thread nino martinez wael
No problem :) 2009/3/25 CrocodileShoes markjohndo...@googlemail.com Ah Ok. After a quick search through the wiki I came up with this: @Override protected IAjaxCallDecorator getAjaxCallDecorator() { return new AjaxCallDecorator() { public CharSequence decorateScript(CharSequence