I have a question. Suppose, i have a menubar the same below:
I can use ajax or something else with purpose as : when i click menuitem or submenu on menubar, then name menuitem or menubar will display in p:inputText?
Thank advance.
I have a question. Suppose, i have a menubar the same below:
I can use ajax or something else with purpose as : when i click menuitem or submenu on menubar, then name menuitem or menubar will display in p:inputText?
Thank advance.
This answer overlooked a basic requirement of the asker, he himself did not realize as well. As this answer is marked accepted, it cannot be removed, but its content serves no solution for jsf
This is certainly possible. You can achieve it with jQuery and something like the following example code:
$(document).ready(function() {
$("menuItem").click(function(event) {
$("p").text(event.target.text());
});
});
This is only intendet as pointer to the right direction. Have a look here and here.
`. And there is no `
– Kukeltje Oct 16 '15 at 08:04