| Author |
Message |
|
|
Ok edykory, thanks for your reply. I don´t understant the javascript in this topic and i don´t know what my designer want... This script works fine without icefaces so i post this topic there because i think that the javascript is not loading.
Sorry man and thanks.
|
 |
|
|
Hi. I try to use a CSS menu in my app and the javaScript don´t load...
The same example with html only work perfect.
The soruce to my script is correct "../../scripts/divIE.js".
If i try to put the javascript direct on the jspx page i get some error in my script.
Anyonce can help?
Thanks.
Code:
<table width="800" border="0" cellpadding="0" cellspacing="0" >
<tr>
<td>
<div id="menu">
<script src="../../scripts/divIE.js" />
<ul id="nav">
<li><a href="#" class="class1">CADASTROS</a>
<ul class="ajust1">
<li><a href="#" id="arrow" class="class3">Cadastros Auxiliares</a>
<ul class="ajust2">
<li><a href="#" class="class3">Bancos</a></li>
<li><a href="#" class="class3">Cidades</a></li>
<li><a href="#" class="class3">Operadoras de Celular</a></li>
<li><a href="#" class="class3">Operadoras de Cartão</a></li>
<li><a href="#" class="class3">Tipos de Atividades</a></li>
<li><a href="#" class="class3">Situação do Imóvel</a></li>
<li><a href="#" class="class3">Profissões</a></li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
</td>
</tr>
</table>
divIe.js
Code:
<script type="text/javascript">
startList = function() {
if (document.all&document.getElementById) {
navRoot = document.getElementById(nav);
for (i=0; i<navRoot.childNodes.length; i++) {
node = navRoot.childNodes[i];
if (node.nodeName=="LI") {
node.onmouseover=function() {
this.className+=" over";
}
node.onmouseout=function() {
this.className=this.className.replace
(" over", "");
}
}
}
}
}
window.onload=startList;
</script>
|
 |
|
|
No Philip i just try using 1.5.3.
I have try 1.6DR2 but this version have some bug´s: "rowselector" and a problem with ice:message.
When 1.6 are stable i will try.
Thanks for all.
|
 |
|
|
Don´t have any ICEFACES jars in the war pack.
All jars are in the ear pack.
|
 |
|
|
Yes i try it. And i have the same stacktrace:
15:49:54,062 ERROR [[Blocking Servlet]] Servlet.service() for servlet Blocking Servlet threw exception
java.lang.NullPointerException: Missing Form - the UIComponent of type [class com.icesoft.faces.component.menubar.MenuIt
em] requires a containing form.
at com.icesoft.faces.renderkit.dom_html_basic.DomBasicRenderer.validateParameters(DomBasicRenderer.java:484)
at com.icesoft.faces.component.menubar.MenuItemRenderer.decode(MenuItemRenderer.java:77)
at javax.faces.component.UIComponentBase.decode(UIComponentBase.java:500)
at com.icesoft.faces.component.menubar.MenuItemBase.processDecodes(MenuItemBase.java:71)
at com.icesoft.faces.component.menubar.MenuItemBase.decodeRecursive(MenuItemBase.java:88)
at com.icesoft.faces.component.menubar.MenuItemBase.processDecodes(MenuItemBase.java:69)
at com.icesoft.faces.component.menubar.MenuBar.decodeRecursive(MenuBar.java:266)
at com.icesoft.faces.component.menubar.MenuBar.processDecodes(MenuBar.java:250)
|
 |
|
|
I'm packing like a normal project in Jboss Seam... (ear, and a war and jar files inside)
but I'm not using seam though...
any idea?
|
 |
|
|
|
Please... anyone can help? This have a solution or not?
|
 |
|
|
|
No solution? Don´t have a way to create a action to the menuitem? Anyone can confirm that?
|
 |
|
|
I try this too:
Code:
MenuItem mCadBancos = new MenuItem();
mCadBancos.setValue("Bancos");
mCadBancos.addActionListener( new ActionListener(){
public void processAction(ActionEvent e){
link = "./../adm/cadauxiliar/cadbancos.jspx";
}
} );
and.. and... i try...
Code:
<ice:form>
<ice:menuBar orientation="horizontal" actionListener="#{menuADM.teste}">
<ice:menuItems value="#{menuADM.menuModel}"
action="#{menuADM.menuAction}"/>
</ice:menuBar>
</ice:form>
---------------------------
public void menuAction(ActionEvent event){
link = patch;
}
And i have the same error....
|
 |
|
|
|
Anyone can help? Or can explain other way to do that?
|
 |
|
|
I´m not using seam.
I read the topic about this problem and seam.
Using icefaces 1.5.3...
|
 |
|
|
How do i put a action on my menuItem (this action will start only when i click in the menuItem)?
I try this:
Code:
MenuItem mCadBancos = new MenuItem();
mCadBancos.setValue("Bancos");
mCadBancos.setAction(new ActionMethodBinding(link));
mCadastrosAuxiliares.getChildren().add(mCadBancos);
....
....
private class ActionMethodBinding extends MethodBinding implements Serializable {
private String outcome;
public ActionMethodBinding(String outcome) {
link = "./../adm/cadauxiliar/cadcidades.jspx";
this.outcome = outcome;
}
public Object invoke(FacesContext context, Object params[]) {
return outcome;
}
public String getExpressionString() {
return outcome;
}
public Class getType(FacesContext context) {
return String.class;
}
}
jspx file
Code:
.....
.....
<ice:form>
<ice:menuBar orientation="horizontal" actionListener="#{menuADM.teste}">
<ice:menuItems value="#{menuADM.menuModel}"/>
</ice:menuBar>
</ice:form>
....
....
When i try the code above i cath this exception:
17:50:03,093 ERROR [[Blocking Servlet]] Servlet.service() for servlet Blocking Servlet threw exception
java.lang.NullPointerException: Missing Form - the UIComponent of type [class com.icesoft.faces.component.menubar.MenuI
em] requires a containing form.
at com.icesoft.faces.renderkit.dom_html_basic.DomBasicRenderer.validateParameters(DomBasicRenderer.java:484)
at com.icesoft.faces.component.menubar.MenuItemRenderer.decode(MenuItemRenderer.java:77)
at javax.faces.component.UIComponentBase.decode(UIComponentBase.java:500)
at com.icesoft.faces.component.menubar.MenuItemBase.processDecodes(MenuItemBase.java:71)
at com.icesoft.faces.component.menubar.MenuItemBase.decodeRecursive(MenuItemBase.java:88)
at com.icesoft.faces.component.menubar.MenuItemBase.processDecodes(MenuItemBase.java:69)
at com.icesoft.faces.component.menubar.MenuBar.decodeRecursive(MenuBar.java:266)
at com.icesoft.faces.component.menubar.MenuBar.processDecodes(MenuBar.java:250)
at javax.faces.component.UIForm.processDecodes(UIForm.java:53)
at javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:602)
at javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:602)
at javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:602)
at javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:602)
at javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:602)
at javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:602)
at javax.faces.component.UIViewRoot.processDecodes(UIViewRoot.java:135)
at org.apache.myfaces.lifecycle.LifecycleImpl.applyRequestValues(LifecycleImpl.java:219)
at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:71)
at com.icesoft.faces.webapp.xmlhttp.BlockingServlet.renderCycle(BlockingServlet.java:456)
at com.icesoft.faces.webapp.xmlhttp.BlockingServlet.receiveUpdates(BlockingServlet.java:444)
at com.icesoft.faces.webapp.xmlhttp.BlockingServlet.executeRequest(BlockingServlet.java:324)
at com.icesoft.faces.webapp.xmlhttp.BlockingServlet.service(BlockingServlet.java:186)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
Anyone can help-me?
|
 |
|
|
|
Thankz man i will try...
|
 |
|
|
Mark, with icefaces 1.5.3 the only way is use static include? don´t have other option?
Tahnks.
|
 |
|
|
I have the following menuBar, and trying to include another page, when click in a menuItem.
But, now I'm facing the following, I'm using Icefaces 1.5.3, and the include doesn't work... not even the directive include...
and I need a Dynamic include not a static one....
Does someone have an idea to solve this?
|
 |
|
|