You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by mkamneng <mk...@hatsize.com> on 2008/10/07 21:21:32 UTC

Re: right click popup context menu

Hello Doug,

I'm have some difficulties getting the contextMenu running. I checkout today
the wicket-contrib-yui project from the svn and install it using maven.

Trying after that using the  wicket-contrib-yui.jar and all dependencies to
create my context menu in the 
same way as in the ContextMenu2Page example page, I get some compilation
errors that I cannot explain:

It's not possible to add a yui component to a wicket component: 
eg

public class TestPage extends WebPage {
   ...
   public TestPage (final PageParameters parameters) {
       ...
       WebMarkupContainer treeContainer = new WebMarkupContainer(
"treeContextMenu");
       ...
       cmBehavior = new YuiContextMenuBehavior(nodeMenu );
       treeContainer.add(cmBehavior);
   }
}

Error by "treeContainer.add(cmBehavior)":
The method add(Component...) in the type MarkupContainer is not applicable
for the arguments (YuiContextMenuBehavior)


Please, I will appreciate any help! 
Thanks,
mkamneng.



Doug Leeper wrote:
> 
> Take a look at wicket-contrib-yui.  There is a context menu (built on top
> of YUI) contained in org.wicketstuff.yui.markup.html.menu2.contextMenu
> 
> There are some examples in wicketstuff-yui-examples for the Context Menu
> (tree and list/data view)
> 
> Note: these are SVN projects located at
> http://wicket-stuff.svn.sourceforge.net/viewvc/wicket-stuff/trunk/
> 
> Let me know if you have any questions as I am the author of this
> contribution.
> 
> - Doug
> 

-- 
View this message in context: http://www.nabble.com/right-click-popup-context-menu-tp15876468p19865344.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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


Re: right click popup context menu

Posted by mkamneng <mk...@hatsize.com>.
Hi Doug,

thank you very much for your time and patience. I try it again using only
the dependencies from the contrib-yui-examples AND IT'S WORKING.

Unfortunately we strongly use the generic concept from java and the current
context2menu is at the moment only supported by wicket1.3, which is not
jdk1.5 compatible (at least concerning the generics concept).

Any idea about the scheduling planing of context2menu in wicket 1.4?

Thanks,

mkamneng.




Doug Leeper wrote:
> 
> I just updated from SVN for projects wicketstuff-yui-examples and
> wicket-contrib-yui.
> 
> Did a mvn eclipse:eclipse on both.
> 
> in the wicketstuff-yui-examples, i did a mvn jetty:run
> 
> There were no errors and I was able to access the web app and subsequently
> the menu2 examples.
> 
> As far as your error...not sure.  There has to be some other error that
> you are not mentioning.
> 
> What other errors are you seeing in eclipse?
> 

-- 
View this message in context: http://www.nabble.com/right-click-popup-context-menu-tp15876468p20000233.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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


Re: right click popup context menu

Posted by Doug Leeper <do...@yahoo.com>.
I just updated from SVN for projects wicketstuff-yui-examples and
wicket-contrib-yui.

Did a mvn eclipse:eclipse on both.

in the wicketstuff-yui-examples, i did a mvn jetty:run

There were no errors and I was able to access the web app and subsequently
the menu2 examples.

As far as your error...not sure.  There has to be some other error that you
are not mentioning.

What other errors are you seeing in eclipse?
-- 
View this message in context: http://www.nabble.com/right-click-popup-context-menu-tp15876468p19986080.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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


Re: right click popup context menu

Posted by mkamneng <mk...@hatsize.com>.
Hello Doug,

I'm still looking forward to hear from you. I'm new in wicket and I have at
the moment time to investigate why a lot of wicket-contrib-yui components
can't be added in wicket components (wicket version 13 and 1.4). 
I will be very happy if you can give me some advise where to start to find
the reason of those compilation errors.

Thanks,
mkamneng

 

mkamneng wrote:
> 
> I try it with apache-wicket-1.3.4 and apache-wicket-1.4-m3 and I'm getting
> the same compilation errors!
> 
> 
> 
> Doug Leeper wrote:
>> 
>> what version of wicket are you using?
>> 
>> I have not tested/ported any of the menu2 with wicket 1.4.
>> 
> 
> 

-- 
View this message in context: http://www.nabble.com/right-click-popup-context-menu-tp15876468p19884337.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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


Re: right click popup context menu

Posted by mkamneng <mk...@hatsize.com>.
I try it with apache-wicket-1.3.4 and apache-wicket-1.4-m3 and I'm getting
the same compilation errors!



Doug Leeper wrote:
> 
> what version of wicket are you using?
> 
> I have not tested/ported any of the menu2 with wicket 1.4.
> 

-- 
View this message in context: http://www.nabble.com/right-click-popup-context-menu-tp15876468p19865616.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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


Re: right click popup context menu

Posted by Doug Leeper <do...@yahoo.com>.
what version of wicket are you using?

I have not tested/ported any of the menu2 with wicket 1.4.
-- 
View this message in context: http://www.nabble.com/right-click-popup-context-menu-tp15876468p19865384.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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