voyent
Messages posted by: maxi_ng  XML
Profile for maxi_ng -> Messages posted by maxi_ng [89] Go to Page: 1, 2, 3, 4, 5, 6 Next 
Author Message
according to this post: http://www.icefaces.org/JForum/posts/list/8143.page
it provides a work around.
but under portlet, binding will cause exception as I experienced that before when binding my table to the backing bean.
so, is there a solution without hand made javascript and binding?
This is what actually happen after a little test.
when I click that button which will change the panel id,
the page backing login is actually changed.
But the appearance remains unchanged.
So if I click any component, it will gives me a facesMessage, I guess it is saying method or component not found, something like that.

This is happening because of the panelStack mechanism?
as title.
is there anyway that I can accomplish this?
I am using icefaces 1.7+ liferay-jboss 4.4.2
I use panelStack as a replacement of page navigation rule, i.e. use as a page control.
and if I add inputRichText to one of those panelStack, and then I click on a button that make the panelStack id chage to the panelStack which contains the inputRichText. it gives me this :

2008-06-19 02:36:56,609 INFO [javax.enterprise.resource.webcontainer.jsf.lifecycle] WARNING: FacesMessage(s) have been enqueued, but may not have been displayed.
sourceId=_ManageEvent_WAR_EMS42ManageEvent_INSTANCE_GOKg_:EventForm:eventTypeDdl[severity=(ERROR 2), summary=(javax.faces.el.EvaluationException: javax.el.ELException: java.lang.IllegalArgumentException), detail=(javax.faces.el.EvaluationException: javax.el.ELException: java.lang.IllegalArgumentException)]
2008-06-19 02:37:03,999 DEBUG [com.arjuna.ats.arjuna.logging.arjLogger] Periodic recovery - first pass <Thu, 19 Jun 2008 02:37:03>
2008-06-19 02:37:03,999 DEBUG [com.arjuna.ats.arjuna.logging.arjLogger] StatusModule: first pass  


If I click browser refresh, the panelStack will then shows up correctly.
What is going on here?
How can I work around this?
could I do a page refresh in my backing-bean?
Here is my project file structure (only .jspx)

Project
---webpages
------WEB-INF
---------client
------------header.jspx
------------content.jspx
------------footer.jspx
------template.jspx
 


template.jspx
Code:
 <html xmlns="http://www.w3.org/1999/xhtml"
       xmlns:ui="http://java.sun.com/jsf/facelets"
       xmlns:f="http://java.sun.com/jsf/core"
       xmlns:ice="http://www.icesoft.com/icefaces/component">
 
 <ice:outputDeclaration doctypeRoot="HTML"
                        doctypePublic="-//W3C//DTD XHTML 1.0 Strict//EN"
                        doctypeSystem="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd" />
 <head>
     <!-- page title param passed in by param -->
     <title>ICEfaces Facelets Tutorial </title>
 </head>
 <body>
 <div class="page">
     <div class="header">
         <ui:include src="/WEB-INF/client/header.jspx"/>
     </div>
     <div class="content">
         <ui:insert name="content">
             Default Content
         </ui:insert>
     </div>
     <div class="footer">
         <ui:include src="/WEB-INF/client/footer.jspx"/>
     </div>   
 </div>
 </body>
 </html>
 


header and footer is working just fine by direct include.
the content with indirect include is not working.

content.jspx
Code:
 <ui:composition template="templateParent.jspx"
                 xmlns="http://www.w3.org/1999/xhtml"
                 xmlns:ui="http://java.sun.com/jsf/facelets"
                 xmlns:f="http://java.sun.com/jsf/core"
                 xmlns:ice="http://www.icesoft.com/icefaces/component">
     
     <ui:define name="content">
         
         <ice:commandButton value="Content"/>
         
     </ui:define>
     
 </ui:composition>
 


The page is showing "Default Content" instead of a commandButton that I am expecting.

Is it because my template attribute is not correct?
I resolved it by including JSF library into /lib
I get this exception while I am trying facelet with icefaces 1.7+tomcat 6.
Any idea?
if any, please tell me how to do it or maybe give me some sample.
JSR168 portlet is good, but if JSR286 then it is perfect!

I tried using Netbeans 6.1 to develop JSR168 icefaces portlet but fail.
I am currently developing JSR168 icefaces portlet running on liferay 4.4.x

I need to move to JSR286 because it has binary resources support which
JSR168 don't have.

use the document which comes with icefaces download.
There is a section named something like portlet development.
I learn everything from that chapter. XD
I need components to have 'id' for functional testing using Selenium.
I have tried DOM expression approach, it works, but it depends on the DOM structure.
If I am about to use 'id', at least for the root element for a portlet, then it is good enough.
When I define ''id' for a <ice:commandButton/>
for example id="createBtnTop"
the result id of the <input> is id="_projectName_WAR_projectName_INSTANCE_3ZMI_:FormName:createBtnTop"
is there anyway to have a fix id everytime i use this portlet?

I am trying to make a workaround though.
But it would be great to have some way to use id and locate a component.

I have re-test this issue again without any workaround.

Windows server 2003 R2
liferay-portal-jboss-tomcat-4.2-4.4.1
I have done some performance tune following this page
http://wiki.liferay.com/index.php/Performance
Icefaces standard 1.7
Netbeans without Plugin-SDK

I deploy three different icefaces portlet on the same page.
Browsers : Firefox 2.0.0.14, IE 6.0.2900.2180

IE : after hot deploy, this issue occur, then I close my IE, open again, login ,visit the page, then it seems to work just fine.
FX : after hot deploy, issue occur, close FX, open, login, start working.
BUT, if I navigate to another page, go back to the portlet page, it starts to session expired again.

Any update on this issue from icefaces official?
I follow the developer guide.
Change web.xml doctype to this.
Code:
 
     <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web
     Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
       
 


and then when I add elements like <context-param> to the .xml.
netbeans tells me that the element type is not valid and also when I deploy it to my liferay 4.4.2, it will through xml parse exception.

How to develop portlet of icefaces using JSF 1.2 in netbeans?
isn't what written in the developer guide correct?

org.xml.sax.SAXParseException: cvc-complex-type.2.4.a: Invalid content was found starting with element 'init-param'. One of '{"http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd":supports}' is expected.
 


Using the same steps from Developer guide with Netbeans 5.5.1 won't have this problem.
I am trying to shift to Netbeans 6/6.1
I am trying to shift from netbeans 5.5.1 to netbeans 6.1.
I follow the developer guide.
Change web.xml doctype to this.

<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web
Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
 

and then when I add elements like <context-param> to the .xml.
netbeans tells me that the element type is not valid and also when I deploy it to my liferay 4.4.2, it will through xml parse exception.

How to develop portlet of icefaces using JSF 1.2 in netbeans?
isn't what written in the developer guide correct?
I can call a servlet through a ice:commandLink.
But this freeze icefaces component and also I think a download button sometimes is needed.

I need to implement a portlet that let the user to define some criteria and then click a [download] button to get the result.

Is there any other way to do this? a button maybe?
 
Profile for maxi_ng -> Messages posted by maxi_ng [89] Go to Page: 1, 2, 3, 4, 5, 6 Next 
Go to:   
Powered by JForum 2.1.7ice © JForum Team