voyent
Messages posted by: maxi_ng  XML
Profile for maxi_ng -> Messages posted by maxi_ng [89] Go to Page: Previous  1, 2, 3, 4, 5, 6 Next 
Author Message
I am using icefaces 1.7 and developed a portlet run in liferay.
I have a datatable and each row have a checkbox.
I want only one checkbox can be checked.
so, I have a on value change action on each checkbox,
and it was really called when I check any checkbox.
I get those value from the log of my app server, they have been
set to false but the checkboxes on the webpage is still checked!!
the variables I set to false is the value of that checkbox.
Why is this happening?

I have tested this a little bit.
If I call the clear method from a ice:commandbutton, those checkboxes wil be cleared, but if I call the same method from a value change event, those checkboxes won't be cleared!
How to clear them with the value change event??

Code:
<ice:dataTable id="eventTable" value="#{verify.eventList}" var="event" border="1">
                 <ice:column>
                     <f:facet name="header">
                         <ice:outputText value=""/>
                     </f:facet>                    
                     <ice:selectBooleanCheckbox partialSubmit="true" valueChangeListener="#{verify.clickEventCb}" value="#{event.selected}"/>
                 </ice:column>
                 <ice:column>
If I set com.icesoft.faces.concurrentDOMViews to false,
you won't be able to get to Edit mode by click preferences icon in liferay.
This is what I figure out myself.

if I set com.icesoft.faces.concurrentDOMViews to true
and my dataTable have a HtmlDataTable binding in backingBean in order
to use getRow(), it will throw Duplicate component ID when you visit it
more then one time. ref. to this http://www.icefaces.org/JForum/posts/list/7384.page

But here is the problem, I need to have a binding to my dataTable and also
need to go to preferences page (edit mode).
What can I do??
problem solved by following this post
http://www.icefaces.org/JForum/posts/list/7384.page
thanks to this forum
I upgrade Icefaces from 1.7RC1 to 1.7stable today.
Then I deploy my portlets.
and go to the page with the portlet and it works just fine.
and then I go to another portlet page,
again go back again to the portlet page that I play with.
It throws this exception
Code:
 2008-04-18 04:43:40,262 ERROR [portal-web.docroot.html.portal.render_portlet.jsp] java.lang.IllegalStateException: Duplicate component ID : _ManageEvent_WAR_EMS42ManageEvent_INSTANCE_gxzm_:EventForm:EventTable:j_id17
 	at com.icesoft.faces.webapp.parser.Parser.executeJspLifecycle(Parser.java:212)
 	at com.icesoft.faces.webapp.parser.Parser.executeJspLifecycle(Parser.java:222)
 	at com.icesoft.faces.webapp.parser.Parser.executeJspLifecycle(Parser.java:222)
 	at com.icesoft.faces.webapp.parser.Parser.executeJspLifecycle(Parser.java:222)
 	at com.icesoft.faces.webapp.parser.Parser.executeJspLifecycle(Parser.java:222)
 	at com.icesoft.faces.webapp.parser.Parser.executeJspLifecycle(Parser.java:222)
 	at com.icesoft.faces.webapp.parser.Parser.executeJspLifecycle(Parser.java:222)
 	at com.icesoft.faces.webapp.parser.Parser.executeJspLifecycle(Parser.java:222)
 	at com.icesoft.faces.webapp.parser.Parser.parse(Parser.java:159)
 	at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:504)
 	at com.icesoft.faces.application.D2DViewHandler.renderView(D2DViewHandler.java:161)
 	at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:106)
 	at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
 	at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144)
 	at com.icesoft.faces.webapp.http.core.JsfLifecycleExecutor.apply(JsfLifecycleExecutor.java:18)
 	at com.icesoft.faces.webapp.http.core.PageServer$1.respond(PageServer.java:25)
 	at com.icesoft.faces.webapp.http.servlet.ServletRequestResponse.respondWith(ServletRequestResponse.java:161)
 	at com.icesoft.faces.webapp.http.servlet.ThreadBlockingAdaptingServlet$ThreadBlockingRequestResponse.respondWith(ThreadBlockingAdaptingServlet.java:36)
 	at com.icesoft.faces.webapp.http.core.PageServer.service(PageServer.java:30)
 	at com.icesoft.faces.webapp.http.core.MultiViewServer.service(MultiViewServer.java:56)
 
 


If there is really a duplicate component ID, it won't work the first time I think.
And j_id17 I think is just random generated id so I am not able to find where the problem is.
And this doesn't occur with RC1.
I have read this post http://www.icefaces.org/JForum/posts/list/6190.page
and I don't have loose components in a facet.
Please anyone have any idea about this?
is this problem solved in icefaces 1.7 stable?
Mario,
It throws this exception to my.
javax.faces.FacesException: Problem in renderResponse: /content-facelet.jspx @55,55 src="#{navigationBean.link}" Could not Resolve Variable [Overflow]: navigationBean

please read my another post, need help!
http://www.icefaces.org/JForum/posts/list/7850.page
Code:
 javax.faces.FacesException: Problem in renderResponse: /content-facelet.jspx @55,55 src="#{navigationBean.link}" Could not Resolve Variable [Overflow]: navigationBean
 	com.icesoft.faces.facelets.D2DFaceletViewHandler.renderResponse(D2DFaceletViewHandler.java:294)
 	com.icesoft.faces.application.D2DViewHandler.renderView(D2DViewHandler.java:161)
 	com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87)
 	com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
 	com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
 	com.icesoft.faces.webapp.http.core.JsfLifecycleExecutor.apply(JsfLifecycleExecutor.java:18)
 	com.icesoft.faces.webapp.http.core.PageServer$1.respond(PageServer.java:25)
 	com.icesoft.faces.webapp.http.servlet.ServletRequestResponse.respondWith(ServletRequestResponse.java:161)
 	com.icesoft.faces.webapp.http.servlet.ThreadBlockingAdaptingServlet$ThreadBlockingRequestResponse.respondWith(ThreadBlockingAdaptingServlet.java:36)
 	com.icesoft.faces.webapp.http.core.PageServer.service(PageServer.java:30)
 	com.icesoft.faces.webapp.http.core.MultiViewServer.service(MultiViewServer.java:56)
 	com.icesoft.faces.webapp.http.common.standard.PathDispatcherServer$Matcher.serviceOnMatch(PathDispatcherServer.java:50)
 	com.icesoft.faces.webapp.http.common.standard.PathDispatcherServer.service(PathDispatcherServer.java:19)
 	com.icesoft.faces.webapp.http.servlet.ThreadBlockingAdaptingServlet.service(ThreadBlockingAdaptingServlet.java:19)
 	com.icesoft.faces.webapp.http.servlet.EnvironmentAdaptingServlet.service(EnvironmentAdaptingServlet.java:29)
 	com.icesoft.faces.webapp.http.servlet.MainSessionBoundServlet.service(MainSessionBoundServlet.java:106)
 	com.icesoft.faces.webapp.http.servlet.SessionDispatcher.service(SessionDispatcher.java:35)
 	com.icesoft.faces.webapp.http.servlet.PathDispatcher$Matcher.serviceOnMatch(PathDispatcher.java:52)
 	com.icesoft.faces.webapp.http.servlet.PathDispatcher.service(PathDispatcher.java:29)
 	com.icesoft.faces.webapp.http.servlet.MainServlet.service(MainServlet.java:79)
 	javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
 


and netbeans showing
Code:
 The attributes for a standard action cannot be deferred expressions
 

on this line
<ui:include src="#{navigationBean.selectedPanel.link}"/>
The page I use is copy of content-facelet.jspx from dynamic-includes-tutorial
But I don't see this warning in the sample that icefaces provide.
I don't understand what I am missing.

I try to follow everything from that sample to create my own.
I attach my source, please help me, I have been stuck in this for a week.
I am planning to do something link this
Layout
Code:
 -----------------------------
 |         header             |
 |----------------------------
 |s  |                   | r  |
 |i  |                   | i  |
 |d  |                   | g  |
 |e  |    content        |  h |
 |   |                   |  t |
 |m  |                   |    |
 |e  |                   |    |
 |n  |                   |    |
 |u  |                   |    |
 -----------------------------
 |           footer           |
 -----------------------------
 


all content in each area is an icefaces jspx.
by clicking different button on side menu, different jspx with icefaces component inside is being shown in content area.

The sample provided by icefaces contain only xhtml .

Thank you.
I have deploy the same portlet to two liferay
liferay 4.4.2 Jboss bundle.
liferay 4.4.2 tomcat bundle.

The one running on jboss bundle is fine.
The one running on tomcat, when doing some ajax action like
change the panelStack, pop up calendar will have some problem.
telling me duplicate element id or D2D handler error.

Is anyone having the same trouble?
I am using Icefaces 1.7 RC1 + Liferay 4.4.2(tomcat 6)
the portlet connect to database through JNDI.
I use session bean as managed bean for the portlet.
when I click on the icon of selectInputDate.
This error shows on Firebug
Code:
 <html><head><title>Apache Tomcat/6.0.16 - Error report</title><style><!--H1 {font-family:Tahoma,Arial
 
 ,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif
 
 ;color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color
 
 :white;background-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:black
 
 ;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76
 
 ;} P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color : black
 
 ;}A.name {color : black;}HR {color : #525D76;}--></style> </head><body><h1>HTTP Status 500 - </h1><HR
 
  size="1" noshade="noshade"><p><b>type</b> Exception report</p><p><b>message</b> <u></u></p><p><b>description
 
 </b> <u>The server encountered an internal error () that prevented it from fulfilling this request.<
 
 /u></p><p><b>exception</b> <pre>java.lang.NullPointerException
 
 	com.icesoft.faces.component.selectinputdate.SelectInputDateRenderer.encodeEnd(SelectInputDateRenderer
 
 .java:457)
 
 	javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:720)
 
 	com.icesoft.faces.renderkit.dom_html_basic.DomBasicRenderer.encodeParentAndChildren(DomBasicRenderer
 
 .java:362)
 
 	com.icesoft.faces.renderkit.dom_html_basic.GridRenderer.encodeChildren(GridRenderer.java:203)
 
 	javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:701)
 
 	com.icesoft.faces.renderkit.dom_html_basic.DomBasicRenderer.encodeParentAndChildren(DomBasicRenderer
 
 .java:352)
 
 	com.icesoft.faces.renderkit.dom_html_basic.GroupRenderer.encodeChildren(GroupRenderer.java:92)
 
 	javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:701)
 
 	com.icesoft.faces.component.util.CustomComponentUtils.renderChild(CustomComponentUtils.java:339)
 
 	com.icesoft.faces.component.panelstack.PanelStackRenderer.encodeChildren(PanelStackRenderer.java:112
 
 )
 
 	javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:701)
 
 	com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:542)
 
 	com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:546)
 
 	com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:546)
 
 	com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:546)
 
 	com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:522)
 
 	com.icesoft.faces.application.D2DViewHandler.renderView(D2DViewHandler.java:161)
 
 	com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87)
 
 	com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
 
 	com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
 
 	com.icesoft.faces.webapp.http.core.JsfLifecycleExecutor.apply(JsfLifecycleExecutor.java:18)
 
 	com.icesoft.faces.webapp.http.core.ReceiveSendUpdates.renderCyclePartial(ReceiveSendUpdates.java:64
 
 )
 
 	com.icesoft.faces.webapp.http.core.ReceiveSendUpdates.service(ReceiveSendUpdates.java:40)
 
 	com.icesoft.faces.webapp.http.core.ViewBoundServer.service(ViewBoundServer.java:65)
 
 	com.icesoft.faces.webapp.http.core.RequestVerifier.service(RequestVerifier.java:44)
 
 	com.icesoft.faces.webapp.http.common.standard.PathDispatcherServer$Matcher.serviceOnMatch(PathDispatcherServer
 
 .java:50)
 
 	com.icesoft.faces.webapp.http.common.standard.PathDispatcherServer.service(PathDispatcherServer.java
 
 :19)
 
 	com.icesoft.faces.webapp.http.servlet.ThreadBlockingAdaptingServlet.service(ThreadBlockingAdaptingServlet
 
 .java:19)
 
 	com.icesoft.faces.webapp.http.servlet.EnvironmentAdaptingServlet.service(EnvironmentAdaptingServlet
 
 .java:29)
 
 	com.icesoft.faces.webapp.http.servlet.MainSessionBoundServlet.service(MainSessionBoundServlet.java:106
 
 )
 
 	com.icesoft.faces.webapp.http.servlet.SessionDispatcher.service(SessionDispatcher.java:35)
 
 	com.icesoft.faces.webapp.http.servlet.PathDispatcher$Matcher.serviceOnMatch(PathDispatcher.java:52)
 
 	com.icesoft.faces.webapp.http.servlet.PathDispatcher.service(PathDispatcher.java:29)
 
 	com.icesoft.faces.webapp.http.servlet.MainServlet.service(MainServlet.java:79)
 
 	javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
 
 	com.icesoft.faces.webapp.xmlhttp.BlockingServlet.service(BlockingServlet.java:54)
 
 </pre></p><p><b>note</b> <u>The full stack trace of the root cause is available in the Apache Tomcat
 
 /6.0.16 logs.</u></p><HR size="1" noshade="noshade"><h3>Apache Tomcat/6.0.16</h3></body></html>
 

what does this mean?
Thx brad, I will try that.
running in Tomcat base can get around this problem which I have tried.
But I am not using tomcat base.
and also after reading what you have posted.
What if I don't use hot deploy?
will this get around the problem?
I noticed that the example that works, the content inside is only xhtml.
is it possible that the content contain icefaces components?

I will attach my project and see if anyone find out what's wrong.

It works for IE but not firefox.
Here is the Firebug errors

uncaught exception: couldn't find container for property: bridge
iceSubmit(undefined, null, submit )icefaces-d2d.js (line 25)
TemporaryContainer(submit )icefaces-d2d.js (line 22)
[Break on this error] undefined
D has no properties
[Break on this error] function currentConnection(){var A=$enumerate(arguments).detect(function(B){retu...
 


Thank you! this is a great forum.
Hi mario,
I have read that tutorial and what you said is exactly how I am doing this.
But when I click the button, the content change for IE, FF won't work.
And also after IE change the content, my mouse icon becomes a hourglass.

Anyway, I just want to confirm am I using the right way to do things.
You show me that this is it. I will continue to investigate.

The tutorial source works fine for both browser.
I must done something wrong.

Thank you.
I am planning to do something link this
Layout
Code:
 -----------------------------
 |         header             |
 |----------------------------
 |s  |                   | r  |
 |i  |                   | i  |
 |d  |                   | g  |
 |e  |    content        |  h |
 |   |                   |  t |
 |m  |                   |    |
 |e  |                   |    |
 |n  |                   |    |
 |u  |                   |    |
 -----------------------------
 |           footer           |
 -----------------------------
 


all content in each area is an icefaces jspx.
by clicking different button on side menu, different jspx is being
shown in content area.
I am able to load content by this template
Code:
 <?xml version="1.0" encoding="ISO-8859-1" ?>
 <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0"
           xmlns:ui="http://java.sun.com/jsf/facelets"
           xmlns:h="http://java.sun.com/jsf/html"
           xmlns:f="http://java.sun.com/jsf/core"
           xmlns:ice="http://www.icesoft.com/icefaces/component" 
 >
     <jsp:directive.page language="java"
                         contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1" />
     <f:view>
         <html xmlns="http://www.w3.org/1999/xhtml">
             
             <!-- 
     <f:loadBundle
         basename="com.maguri.kufra.properties.messages"
         var="msgs" />
  -->        
             <head>
                 
                 <ui:insert name="faceletHeader">Headers to init stuff</ui:insert>
                 
             </head>
             <body>
                 <ui:include src="header.jspx"/>
                 <ui:insert name="sideMenu">
                     <ui:include src="sideMenu.jspx" />
                 </ui:insert>
                 <ui:insert name="content">
                     <ui:include src="#{XAXABean.contentDir}" />
                 </ui:insert>  
                 <ui:include src="adContent.jspx" />
                 <ui:include src="footer.jspx" />
                 
             </body>
         </html>
     </f:view>
 </jsp:root>
 


It works for IE but didn't work for FF.
although IE also act a little bit wired.
I know I can use ice:panelBorder instead which I have tried.
But I don't want that jspx grows incredibly large when my content grows.

am I doing something wrong?
Is there a better way for me to implement this?

Thank you.
 
Profile for maxi_ng -> Messages posted by maxi_ng [89] Go to Page: Previous  1, 2, 3, 4, 5, 6 Next 
Go to:   
Powered by JForum 2.1.7ice © JForum Team