MenuBar component JSC
[Logo]
ICEsoft.org Forums: ICEfaces, ICEmobile, ICEpdf
[Search] Search   [Recent Topics] Recent Topics   [Groups] Home Page | www.icefaces.org  [Register] Register  [Login] Login 
MenuBar component JSC  XML
Forum Index -> Tools
Author Message
thomsog

Joined: 15/08/2006 00:00:00
Messages: 4
Offline


Hello Forum,
Could someone help me locate some documentation on how
to configure the menubar component at design time in JSC,
I can drop the menubar onto the designer then I add a menuitems component but how do I change the values of the components and add submenu's

Thanks ver much

Gaz
[Email]
philip.breau


Joined: 08/05/2006 00:00:00
Messages: 2675
Offline


Hi Gaz,

In Creator, to create new submenus, just highlight a menuitem in the outline view, copy the node, highlight the menuitem you want to add a submenu to, and paste the copied node. You can change the values of any of the menuitems in the Properties window after highlighting the menuitem node in the outline view. Note, adding submenus does not show up in the Design-time view.

Thanks,
Philip

.
thomsog

Joined: 15/08/2006 00:00:00
Messages: 4
Offline


Hello Philip,

Thanks very much for your help, seem to be getting the hang of it now. I was also trying to place the components without a panelgroup ( which didn't help ).

The components don't look very nice in design view ( thats not unusual though on JSC ) but look ace when running.

Thanks again for you help

Gaz
[Email]
thomsog

Joined: 15/08/2006 00:00:00
Messages: 4
Offline


Hello Philip,

Just bumped into this little problem, at runtime while using JSC my submenu component doesn't display the icon, I listed my jsp below, I've copied the open.gif from your demo, thanks

Gaz

<?xml version="1.0" encoding="UTF-8"?>
<jsp:root version="1.2" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:ice="http://www.icesoft.com/icefaces/component"
xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:ui="http://www.sun.com/web/ui">
<jsp:directive.page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"/>
<f:view>
<ui:page binding="#{Page1.page1}" id="page1">
<ui:html binding="#{Page1.html1}" id="html1">
<ui:head binding="#{Page1.head1}" id="head1">
<ice:outputStyle binding="#{Page1.iceStyle1}" href="./xmlhttp/css/xp/xp.css"/>
</ui:head>
<ui:body binding="#{Page1.body1}" id="body1" style="-rave-layout: grid">
<ui:form binding="#{Page1.form1}" id="form1">
<ice:panelGroup binding="#{Page1.panelGroup1}" id="panelGroup1" style="height: 144px; width: 672px" styleClass="formBorderHighlight">
<ice:menuBar binding="#{Page1.menuBar1}" id="menuBar1" style="height 30px">
<ice:menuItem binding="#{Page1.menuItem1}" id="menuItem1" value="File">
<ice:menuItem binding="#{Page1.menuItem5}" icon="./images/open.gif" id="menuItem5" value="item1"/>
</ice:menuItem>
<ice:menuItem binding="#{Page1.menuItem2}" id="menuItem2" value="Open">
<ice:menuItem binding="#{Page1.menuItem6}" id="menuItem6" value="item2"/>
</ice:menuItem>
<ice:menuItem binding="#{Page1.menuItem3}" id="menuItem3" value="Close"/>
<ice:menuItem binding="#{Page1.menuItem4}" id="menuItem4" value="Recent"/>
</ice:menuBar>
</ice:panelGroup>
</ui:form>
</ui:body>
</ui:html>
</ui:page>
</f:view>
</jsp:root>
[Email]
philip.breau


Joined: 08/05/2006 00:00:00
Messages: 2675
Offline


Hi Gaz,

Yes, it appears to be a bug. Thanks for noting this. I've forwarded the issue to our plugin developers. If we find a workaround I'll let you know.

Thanks,
Philip

.
thomsog

Joined: 15/08/2006 00:00:00
Messages: 4
Offline


Thanks very much for your help Philip
Cheers

Gaz
[Email]
 
Forum Index -> Tools
Go to:   
Powered by JForum 2.1.7ice © JForum Team