[prev in list] [next in list] [prev in thread] [next in thread] 

List:       wsf-c-dev
Subject:    Re: [Dev] [Carbon] Behavior of menu tabs
From:       Thusitha Thilina Dayaratne <thusithad () wso2 ! com>
Date:       2015-05-29 13:42:40
Message-ID: CA+6Sqp53CV+jqDun-cUQuGFPDwrg5VKWJ4unvG7vioZ8JQFs+A () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


IFAIU carbon.ui feature only packs the general menu. If you want use other
parent menu items such as Tools, Registry, Governance you have to put the
relevant menu in the feature.
e.g.
In tryit feature which is available under tools has dependency to
org.wso2.carbon.ui.menu.tools
https://github.com/wso2/carbon-commons/blob/c1d5846d5fb0e16a787aa3fad11532968264fbd1/features/tryit/org.wso2.carbon.tryit.ui.feature/pom.xml


Thanks
/Thusitha

On Fri, May 29, 2015 at 6:36 PM, Gihan Anuruddha <gihan@wso2.com> wrote:

> Where can we define parent menus? Is it not coming from the
> carbon framework?
> 
> On Fri, May 29, 2015 at 6:21 PM, Thusitha Thilina Dayaratne <
> thusithad@wso2.com> wrote:
> 
> > Hi GIhan,
> > 
> > I think if DAS doesn't have a root level Tools menu. since your <
> > parent-menu>tools_menu</parent-menu> it can't find the parent menu and
> > so your sub menu is not appearing.
> > 
> > Thanks
> > /Thusitha
> > 
> > On Fri, May 29, 2015 at 6:05 PM, Gihan Anuruddha <gihan@wso2.com> wrote:
> > 
> > > 
> > > ​Hi Carbon team,
> > > 
> > > I have a UI component that adds a UI sub menu under the 'Tools' ​menu as
> > > below.
> > > 
> > > <menu> <id>event_simulator_menu</id> <i18n-key>event.simulator</i18n-key
> > > > <i18n-bundle>org.wso2.carbon.event.simulator.ui.i18n.Resources</
> > > i18n-bundle> <parent-menu>tools_menu</parent-menu> <link
> > > > ../eventsimulator/index.jsp</link> <region>region5</region> <order>40</
> > > order> <style-class>home</style-class> <icon
> > > > ../eventsimulator/images/event-simulator.png</icon> <require-permission
> > > > /permission/admin/login</require-permission> </menu>
> > > ​But in DAS it does not display. Basically, it doesn't have ​root level
> > > 'Tools' tab or this sub menu. This same UI component works with CEP without
> > > any issue. Do I need to do any special thing in DAS, in order appear this
> > > tools tab and its sub menus?
> > > 
> > > Regards,
> > > Gihan
> > > 
> > > 
> > > --
> > > W.G. Gihan Anuruddha
> > > Senior Software Engineer | WSO2, Inc.
> > > M: +94772272595
> > > 
> > > _______________________________________________
> > > Dev mailing list
> > > Dev@wso2.org
> > > http://wso2.org/cgi-bin/mailman/listinfo/dev
> > > 
> > > 
> > 
> > 
> > --
> > Thusitha Dayaratne
> > Software Engineer
> > WSO2 Inc. - lean . enterprise . middleware |  wso2.com
> > 
> > Mobile  +94712756809
> > Blog      alokayasoya.blogspot.com
> > About    http://about.me/thusithathilina
> > 
> > 
> 
> 
> --
> W.G. Gihan Anuruddha
> Senior Software Engineer | WSO2, Inc.
> M: +94772272595
> 



-- 
Thusitha Dayaratne
Software Engineer
WSO2 Inc. - lean . enterprise . middleware |  wso2.com

Mobile  +94712756809
Blog      alokayasoya.blogspot.com
About    http://about.me/thusithathilina


[Attachment #5 (text/html)]

<div dir="ltr">IFAIU carbon.ui feature only packs the general menu. If you want use \
other parent menu items such as Tools, Registry, Governance you have to put the \
relevant menu in the feature.  <div>e.g.</div><div>In tryit feature which is \
available under tools has dependency to  <span \
style="color:rgb(51,51,51);font-family:Consolas,&#39;Liberation \
Mono&#39;,Menlo,Courier,monospace;font-size:12px;line-height:16.7999992370605px;white-space:pre">org.wso2.carbon.ui.menu.tools</span></div><div><span \
style="color:rgb(51,51,51);font-family:Consolas,&#39;Liberation \
Mono&#39;,Menlo,Courier,monospace;font-size:12px;line-height:16.7999992370605px;white-space:pre"><a \
href="https://github.com/wso2/carbon-commons/blob/c1d5846d5fb0e16a787aa3fad11532968264 \
fbd1/features/tryit/org.wso2.carbon.tryit.ui.feature/pom.xml">https://github.com/wso2/ \
carbon-commons/blob/c1d5846d5fb0e16a787aa3fad11532968264fbd1/features/tryit/org.wso2.c \
arbon.tryit.ui.feature/pom.xml</a><br></span></div><div><br></div><div>Thanks</div><div>/Thusitha</div></div><div \
class="gmail_extra"><br><div class="gmail_quote">On Fri, May 29, 2015 at 6:36 PM, \
Gihan Anuruddha <span dir="ltr">&lt;<a href="mailto:gihan@wso2.com" \
target="_blank">gihan@wso2.com</a>&gt;</span> wrote:<br><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><div dir="ltr"><div class="gmail_default" \
style="font-size:small">Where can we define parent menus? Is it not coming from the \
carbon  framework?</div></div><div class="HOEnZb"><div class="h5"><div \
class="gmail_extra"><br><div class="gmail_quote">On Fri, May 29, 2015 at 6:21 PM, \
Thusitha Thilina Dayaratne <span dir="ltr">&lt;<a href="mailto:thusithad@wso2.com" \
target="_blank">thusithad@wso2.com</a>&gt;</span> wrote:<br><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><div dir="ltr">Hi GIhan,<div><br></div><div><font \
face="arial, helvetica, sans-serif">I think if DAS doesn&#39;t have a root level \
Tools menu. since your  <span \
style="color:rgb(51,51,51);font-size:12px;line-height:18.2000007629395px;white-space:pre-wrap">&lt;</span><span \
style="font-size:12px;line-height:18.2000007629395px;white-space:pre-wrap;color:rgb(99,163,92)">parent-menu</span><span \
style="color:rgb(51,51,51);font-size:12px;line-height:18.2000007629395px;white-space:pre-wrap">&gt;tools_menu&lt;/</span><span \
style="font-size:12px;line-height:18.2000007629395px;white-space:pre-wrap;color:rgb(99,163,92)">parent-menu</span><span \
style="color:rgb(51,51,51);font-size:12px;line-height:18.2000007629395px;white-space:pre-wrap">&gt; \
it can&#39;t find the parent menu and so your sub menu is not \
appearing.</span></font></div><div><span \
style="color:rgb(51,51,51);font-size:12px;line-height:18.2000007629395px;white-space:pre-wrap"><font \
face="arial, helvetica, sans-serif"><br></font></span></div><div><span \
style="color:rgb(51,51,51);font-size:12px;line-height:18.2000007629395px;white-space:pre-wrap"><font \
face="arial, helvetica, sans-serif">Thanks</font></span></div><div><font \
color="#333333" face="arial, helvetica, sans-serif"><span \
style="font-size:12px;line-height:18.2000007629395px;white-space:pre-wrap">/Thusitha</span></font></div></div><div \
class="gmail_extra"><br><div class="gmail_quote"><div><div>On Fri, May 29, 2015 at \
6:05 PM, Gihan Anuruddha <span dir="ltr">&lt;<a href="mailto:gihan@wso2.com" \
target="_blank">gihan@wso2.com</a>&gt;</span> wrote:<br></div></div><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><div><div><div dir="ltr"><div class="gmail_default" \
style="font-size:small"><br clear="all"></div><div><div class="gmail_default" \
style="font-size:small">​Hi Carbon team,</div><div class="gmail_default" \
style="font-size:small"><br></div><div class="gmail_default" \
style="font-size:small">I have a UI component that adds a UI sub menu under the \
&#39;Tools&#39; ​menu as below.</div><div class="gmail_default" \
style="font-size:small"><br></div><div class="gmail_default" \
style="font-size:small"><table \
style="border-collapse:collapse;border-spacing:0px;color:rgb(51,51,51);font-family:Helvetica,arial,nimbussansl,liberationsans,freesans,clean,sans-serif,&#39;Segoe \
UI Emoji&#39;,&#39;Segoe UI \
Symbol&#39;;font-size:13px;line-height:18.2000007629395px"><tbody><tr><td \
style="padding:0px 10px;vertical-align:top;font-family:Consolas,&#39;Liberation \
Mono&#39;,Menlo,Courier,monospace;font-size:12px;white-space:pre-wrap;overflow:visible;word-wrap:normal"> \
&lt;<span style="color:rgb(99,163,92)">menu</span>&gt;</td></tr><tr><td \
style="padding:0px 10px;width:50px;min-width:50px;white-space:nowrap;font-family:Consolas,&#39;Liberation \
Mono&#39;,Menlo,Courier,monospace;font-size:12px;line-height:18px;color:rgba(0,0,0,0.2 \
98039);vertical-align:top;text-align:right;border-style:solid;border-color:rgb(238,238,238);border-width:0px \
1px 0px 0px"></td><td style="padding:0px \
10px;vertical-align:top;font-family:Consolas,&#39;Liberation \
Mono&#39;,Menlo,Courier,monospace;font-size:12px;white-space:pre-wrap;overflow:visible;word-wrap:normal"> \
&lt;<span style="color:rgb(99,163,92)">id</span>&gt;event_simulator_menu&lt;/<span \
style="color:rgb(99,163,92)">id</span>&gt;</td></tr><tr><td style="padding:0px \
10px;width:50px;min-width:50px;white-space:nowrap;font-family:Consolas,&#39;Liberation \
Mono&#39;,Menlo,Courier,monospace;font-size:12px;line-height:18px;color:rgba(0,0,0,0.2 \
98039);vertical-align:top;text-align:right;border-style:solid;border-color:rgb(238,238,238);border-width:0px \
1px 0px 0px"></td><td style="padding:0px \
10px;vertical-align:top;font-family:Consolas,&#39;Liberation \
Mono&#39;,Menlo,Courier,monospace;font-size:12px;white-space:pre-wrap;overflow:visible;word-wrap:normal"> \
&lt;<span style="color:rgb(99,163,92)">i18n-key</span>&gt;event.simulator&lt;/<span \
style="color:rgb(99,163,92)">i18n-key</span>&gt;</td></tr><tr><td style="padding:0px \
10px;width:50px;min-width:50px;white-space:nowrap;font-family:Consolas,&#39;Liberation \
Mono&#39;,Menlo,Courier,monospace;font-size:12px;line-height:18px;color:rgba(0,0,0,0.2 \
98039);vertical-align:top;text-align:right;border-style:solid;border-color:rgb(238,238,238);border-width:0px \
1px 0px 0px"></td><td style="padding:0px \
10px;vertical-align:top;font-family:Consolas,&#39;Liberation \
Mono&#39;,Menlo,Courier,monospace;font-size:12px;white-space:pre-wrap;overflow:visible;word-wrap:normal"> \
&lt;<span style="color:rgb(99,163,92)">i18n-bundle</span>&gt;org.wso2.carbon.event.simulator.ui.i18n.Resources&lt;/<span \
style="color:rgb(99,163,92)">i18n-bundle</span>&gt;</td></tr><tr><td \
style="padding:0px 10px;width:50px;min-width:50px;white-space:nowrap;font-family:Consolas,&#39;Liberation \
Mono&#39;,Menlo,Courier,monospace;font-size:12px;line-height:18px;color:rgba(0,0,0,0.2 \
98039);vertical-align:top;text-align:right;border-style:solid;border-color:rgb(238,238,238);border-width:0px \
1px 0px 0px"></td><td style="padding:0px \
10px;vertical-align:top;font-family:Consolas,&#39;Liberation \
Mono&#39;,Menlo,Courier,monospace;font-size:12px;white-space:pre-wrap;overflow:visible;word-wrap:normal"> \
&lt;<span style="color:rgb(99,163,92)">parent-menu</span>&gt;tools_menu&lt;/<span \
style="color:rgb(99,163,92)">parent-menu</span>&gt;</td></tr><tr><td \
style="padding:0px 10px;width:50px;min-width:50px;white-space:nowrap;font-family:Consolas,&#39;Liberation \
Mono&#39;,Menlo,Courier,monospace;font-size:12px;line-height:18px;color:rgba(0,0,0,0.2 \
98039);vertical-align:top;text-align:right;border-style:solid;border-color:rgb(238,238,238);border-width:0px \
1px 0px 0px"></td><td style="padding:0px \
10px;vertical-align:top;font-family:Consolas,&#39;Liberation \
Mono&#39;,Menlo,Courier,monospace;font-size:12px;white-space:pre-wrap;overflow:visible;word-wrap:normal"> \
&lt;<span style="color:rgb(99,163,92)">link</span>&gt;../eventsimulator/index.jsp&lt;/<span \
style="color:rgb(99,163,92)">link</span>&gt;</td></tr><tr><td style="padding:0px \
10px;width:50px;min-width:50px;white-space:nowrap;font-family:Consolas,&#39;Liberation \
Mono&#39;,Menlo,Courier,monospace;font-size:12px;line-height:18px;color:rgba(0,0,0,0.2 \
98039);vertical-align:top;text-align:right;border-style:solid;border-color:rgb(238,238,238);border-width:0px \
1px 0px 0px"></td><td style="padding:0px \
10px;vertical-align:top;font-family:Consolas,&#39;Liberation \
Mono&#39;,Menlo,Courier,monospace;font-size:12px;white-space:pre-wrap;overflow:visible;word-wrap:normal"> \
&lt;<span style="color:rgb(99,163,92)">region</span>&gt;region5&lt;/<span \
style="color:rgb(99,163,92)">region</span>&gt;</td></tr><tr><td style="padding:0px \
10px;width:50px;min-width:50px;white-space:nowrap;font-family:Consolas,&#39;Liberation \
Mono&#39;,Menlo,Courier,monospace;font-size:12px;line-height:18px;color:rgba(0,0,0,0.2 \
98039);vertical-align:top;text-align:right;border-style:solid;border-color:rgb(238,238,238);border-width:0px \
1px 0px 0px"></td><td style="padding:0px \
10px;vertical-align:top;font-family:Consolas,&#39;Liberation \
Mono&#39;,Menlo,Courier,monospace;font-size:12px;white-space:pre-wrap;overflow:visible;word-wrap:normal"> \
&lt;<span style="color:rgb(99,163,92)">order</span>&gt;40&lt;/<span \
style="color:rgb(99,163,92)">order</span>&gt;</td></tr><tr><td style="padding:0px \
10px;width:50px;min-width:50px;white-space:nowrap;font-family:Consolas,&#39;Liberation \
Mono&#39;,Menlo,Courier,monospace;font-size:12px;line-height:18px;color:rgba(0,0,0,0.2 \
98039);vertical-align:top;text-align:right;border-style:solid;border-color:rgb(238,238,238);border-width:0px \
1px 0px 0px"></td><td style="padding:0px \
10px;vertical-align:top;font-family:Consolas,&#39;Liberation \
Mono&#39;,Menlo,Courier,monospace;font-size:12px;white-space:pre-wrap;overflow:visible;word-wrap:normal"> \
&lt;<span style="color:rgb(99,163,92)">style-class</span>&gt;home&lt;/<span \
style="color:rgb(99,163,92)">style-class</span>&gt;</td></tr><tr><td \
style="padding:0px 10px;width:50px;min-width:50px;white-space:nowrap;font-family:Consolas,&#39;Liberation \
Mono&#39;,Menlo,Courier,monospace;font-size:12px;line-height:18px;color:rgba(0,0,0,0.2 \
98039);vertical-align:top;text-align:right;border-style:solid;border-color:rgb(238,238,238);border-width:0px \
1px 0px 0px"></td><td style="padding:0px \
10px;vertical-align:top;font-family:Consolas,&#39;Liberation \
Mono&#39;,Menlo,Courier,monospace;font-size:12px;white-space:pre-wrap;overflow:visible;word-wrap:normal"> \
&lt;<span style="color:rgb(99,163,92)">icon</span>&gt;../eventsimulator/images/event-simulator.png&lt;/<span \
style="color:rgb(99,163,92)">icon</span>&gt;</td></tr><tr><td style="padding:0px \
10px;width:50px;min-width:50px;white-space:nowrap;font-family:Consolas,&#39;Liberation \
Mono&#39;,Menlo,Courier,monospace;font-size:12px;line-height:18px;color:rgba(0,0,0,0.2 \
98039);vertical-align:top;text-align:right;border-style:solid;border-color:rgb(238,238,238);border-width:0px \
1px 0px 0px"></td><td style="padding:0px \
10px;vertical-align:top;font-family:Consolas,&#39;Liberation \
Mono&#39;,Menlo,Courier,monospace;font-size:12px;white-space:pre-wrap;overflow:visible;word-wrap:normal"> \
&lt;<span style="color:rgb(99,163,92)">require-permission</span>&gt;/permission/admin/login&lt;/<span \
style="color:rgb(99,163,92)">require-permission</span>&gt;</td></tr><tr><td \
style="padding:0px 10px;width:50px;min-width:50px;white-space:nowrap;font-family:Consolas,&#39;Liberation \
Mono&#39;,Menlo,Courier,monospace;font-size:12px;line-height:18px;color:rgba(0,0,0,0.2 \
98039);vertical-align:top;text-align:right;border-style:solid;border-color:rgb(238,238,238);border-width:0px \
1px 0px 0px"></td><td style="padding:0px \
10px;vertical-align:top;font-family:Consolas,&#39;Liberation \
Mono&#39;,Menlo,Courier,monospace;font-size:12px;white-space:pre-wrap;overflow:visible;word-wrap:normal"> \
&lt;/<span style="color:rgb(99,163,92)">menu&gt; </span>

</td></tr></tbody></table></div><div class="gmail_default" \
style="font-size:small">​But in DAS it does not display. Basically, it doesn&#39;t \
have ​root level &#39;Tools&#39; tab or this sub menu. This same UI component works \
with CEP without any issue. Do I need to do any special thing in DAS, in order appear \
this tools tab and its sub menus?</div><div class="gmail_default" \
style="font-size:small"><br></div><div class="gmail_default" \
style="font-size:small">Regards,</div><div class="gmail_default" \
style="font-size:small">Gihan</div><span><font \
color="#888888"><br></font></span></div><span><font color="#888888"><div><br></div>-- \
<br><div><div dir="ltr">W.G. Gihan Anuruddha<br><div>Senior Software Engineer | WSO2, \
Inc.</div><div>M:  <a>+94772272595</a></div><span></span></div></div> \
</font></span></div> \
<br></div></div>_______________________________________________<br> Dev mailing \
list<br> <a href="mailto:Dev@wso2.org" target="_blank">Dev@wso2.org</a><br>
<a href="http://wso2.org/cgi-bin/mailman/listinfo/dev" \
target="_blank">http://wso2.org/cgi-bin/mailman/listinfo/dev</a><br> \
<br></blockquote></div><span><font color="#888888"><br><br \
clear="all"><div><br></div>-- <br><div><div dir="ltr"><div><div dir="ltr"><div \
dir="ltr"><div dir="ltr"><div dir="ltr"><div \
style="font-size:12.8000001907349px"><div><font color="#444444">Thusitha \
Dayaratne</font></div><div><span \
style="color:rgb(153,153,153);font-size:12.8000001907349px">Software \
Engineer</span></div><div><span \
style="font-size:12.8000001907349px;color:rgb(136,136,136)">WSO2 Inc. - lean . \
enterprise . middleware |    </span><a href="http://wso2.com/" \
style="font-size:12.8000001907349px;color:rgb(17,85,204)" \
target="_blank">wso2.com</a><br></div><div><span \
style="color:rgb(153,153,153);font-size:12.8000001907349px"><br></span></div><div><span \
style="color:rgb(153,153,153);font-size:12.8000001907349px">Mobile   <a \
href="tel:%2B94712756809" value="+94712756809" \
target="_blank">+94712756809</a></span><br></div></div><div><font color="#999999" \
style="font-size:12.8000001907349px">Blog         </font><font color="#999999"><a \
href="http://alokayasoya.blogspot.com" \
target="_blank">alokayasoya.blogspot.com</a></font></div><div><font \
color="#999999">About </font>     <a href="http://about.me/thusithathilina" \
target="_blank">http://about.me/thusithathilina</a></div><div><br></div></div></div></div></div></div></div></div>
 </font></span></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div><div dir="ltr">W.G. \
Gihan Anuruddha<br><div>Senior Software Engineer | WSO2, Inc.</div><div>M:  \
<a>+94772272595</a></div><span></span></div></div> </div>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div \
class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div \
dir="ltr"><div dir="ltr"><div style="font-size:12.8000001907349px"><div><font \
color="#444444">Thusitha Dayaratne</font></div><div><span \
style="color:rgb(153,153,153);font-size:12.8000001907349px">Software \
Engineer</span></div><div><span \
style="font-size:12.8000001907349px;color:rgb(136,136,136)">WSO2 Inc. - lean . \
enterprise . middleware |    </span><a href="http://wso2.com/" \
style="font-size:12.8000001907349px;color:rgb(17,85,204)" \
target="_blank">wso2.com</a><br></div><div><span \
style="color:rgb(153,153,153);font-size:12.8000001907349px"><br></span></div><div><span \
style="color:rgb(153,153,153);font-size:12.8000001907349px">Mobile   \
+94712756809</span><br></div></div><div><font color="#999999" \
style="font-size:12.8000001907349px">Blog         </font><font color="#999999"><a \
href="http://alokayasoya.blogspot.com" \
target="_blank">alokayasoya.blogspot.com</a></font></div><div><font \
color="#999999">About </font>     <a href="http://about.me/thusithathilina" \
target="_blank">http://about.me/thusithathilina</a></div><div><br></div></div></div></div></div></div></div></div>
 </div>



_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic