Thanks a lot!

On Wed, Jul 12, 2017 at 3:10 PM, Sebastien <seb...@gmail.com> wrote:

> Hi Maxim,
>
> A simple solution would be to specify your own "select" callback but you
> can't do it right now because the API is not designed to let you do that! ;)
> I will change this asap...
>
> Thanks & best regards,
> Sebastien.
>
>
> On Wed, Jul 12, 2017 at 2:39 AM, Maxim Solodovnik <solomax...@gmail.com>
> wrote:
>
>> Thanks a lot for clarifications
>> Finally I was able to find onSelect method :)
>>
>> What I need is "client only" menu item (with no round trip to server)
>> Currently I'm achieving this as follows:
>> new MenuItem(....) {
>> @Override
>> public void onClick(AjaxRequestTarget target) {
>> target.appendJavaScript("alert('test');");
>> }
>> }
>>
>>
>>
>> On Wed, Jul 12, 2017 at 12:38 AM, Sebastien <seb...@gmail.com> wrote:
>>
>>> Hi Maxim,
>>>
>>> MenuItem is a pojo, not a component/widget. You can use the
>>> Menu#getItemList (jquery-ui) or Menu#getMenuItemsMap (kendo-ui) to add
>>> menu-items and then reload the widget with the ART.
>>> But I did not understood what you want/need to listen, there is no lazy
>>> load (in ajax) for instance. The only available ajax-behavior is "onselect"
>>> which triggers both menuItem#onClick(ART) and menu#onclick(ART, menuitem)
>>>
>>> I don't know if it helps, otherwise please give me more detail about
>>> your use-case...
>>>
>>> Thanks & best regards :)
>>> Sebastien
>>>
>>>
>>> On Tue, Jul 11, 2017 at 5:04 PM, Maxim Solodovnik <solomax...@gmail.com>
>>> wrote:
>>>
>>>> Hello Sebastien,
>>>>
>>>> I'm trying to add MenuItem to wicket-jquery-ui menu with client only JS
>>>> handler
>>>> As I understand I need to add AjaxCallListener to MenuItem but it
>>>> seems I'm unable to find the correct place for it :(
>>>> Maybe you can help?
>>>>
>>>> --
>>>> WBR
>>>> Maxim aka solomax
>>>>
>>>
>>>
>>
>>
>> --
>> WBR
>> Maxim aka solomax
>>
>
>


-- 
WBR
Maxim aka solomax

Reply via email to