voyent
Messages posted by: jameskhoo  XML
Profile for jameskhoo -> Messages posted by jameskhoo [39] Go to Page: 1, 2, 3 Next 
Author Message
When deploying component-showcase.war to Tomcat 5.5.26, the following exception is thrown..

-------------------------------------------

Feb 12, 2008 10:11:07 AM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive component-showcase.war
Feb 12, 2008 10:11:07 AM org.apache.catalina.core.StandardContext start
SEVERE: Error listenerStart
Feb 12, 2008 10:11:07 AM org.apache.catalina.core.StandardContext start
SEVERE: Context [/component-showcase] startup failed due to previous errors

--------------------------------------------

The demo works fine with Tomcat 6.0.14..

So, is this a bug, or ICEfaces version 1.7 beta 1 require Servlet 2.5 and JSP 2.1 container (i.e Tomcat 6.0.x) to run?

Cheers
Hi Deryk

May I know the status of this bug, if this is fixed in version 1.6.2, I will persuade my manager to purchase a support package from ur guys to access the 1.6.2 version

Cheers
James Khoo
Hi Deryk

May we knows that if this problem still exists in ICEFaces version 1.6.2, or upcoming version 1.7? This has become a very critical bug for us, and we prefer it get resolve before we decide to buy support from Icefaces
Hi
The bean scope is set to request, should I chagne it to session scope?

Cheers
Hi all

I have a simple web application that perform the following:
a) Upon startup, user is directed to a login page, once user's credential is authenticated, userVO is store into HttpSession. i.e

FacesContext ctx = FacesContext.getCurrentInstance();
HttpSession session = (HttpSession) ctx.getExternalContext().getSession(true);
session.setAttribute(userKey, userVO);

b) Once login, user is directed to a page with OnDemandRenderer, which constantly display new data upon receiving new messages from message queue.

c) When logout, user is directed to index.jsp to invalidate the session. ie.

<%
session.invalidate();
response.sendRedirect("./login.iface");
%>


The above application work fine when the application is restart (i.e Tomcat is restart), and upon first login, when the user perform second login again, the application throws the following errors:
---------------------------------------------
com.icesoft.faces.webapp.xmlhttp.TransientRenderingException: transient render failure for viewNumber 1
at com.icesoft.faces.webapp.xmlhttp.PersistentFacesState.render(PersistentFacesState.java:161)
at com.icesoft.faces.async.render.RunnableRender.run(RunnableRender.java:142)
at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:643)
at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:668)
at java.lang.Thread.run(Thread.java:595)
Caused by: javax.faces.FacesException: Problem in renderResponse: getAttribute: Session already invalidated
at com.icesoft.faces.facelets.D2DFaceletViewHandler.renderResponse(D2DFaceletViewHandler.java:324)
at com.icesoft.faces.application.D2DViewHandler.renderView(D2DViewHandler.java:153)
at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:107)
at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:245)
at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:137)
at com.icesoft.faces.webapp.xmlhttp.PersistentFacesState.render(PersistentFacesState.java:146)


Please help.
I am using IceFaces 1.6.1, tomcat 5.5.23.

Thanks
James Khoo




Hi all

This is not related to ICEFaces specific, but I am seeking advise how to perform unit or automated integration testing of any Ajax application, especially application developed using ICEFaces, where DOM are updated dynamically?

For example, how do you test:
1. When user select a state from a pulldown list, ensure the list at City pulldown is populated with all Cities within selected State.

2. Component is display or hide base on values entered by user

3. AutocompleteTextField, and

4. ServerPush

Is there any Junit similar testing framework for Ajax? How does ICESoft people unit test their component?


Cheers
JamesKhoo
Hi Shishir

If I understand your problem correctly, you wants to use dataTable to display a list of non-related data?
U could use HaspMap to hold non-related data as a table row, i.e use HashMap to construct your row, poplute the HashMap with data, and use ArrayList to hold those HashMaps..and past it to ice:dataTable for rendering.


HashMap row1 = new HashMap();
row1.put("name", customer.getName());
row1.put("previousBalance", invoice.getBalance());
row1.put("payment",payment.getAmount());

row1.put("currentBalance", invoice.getBalance()-payment.getAmount());

HasppMap row2 = new HaspMap()
|
|
ArrayList dataList = new ArrayList();
dataList.add(row1);

In your jspx

<ice:dataTable var="data" value="#{myBean.dataList}>
<ice:column>
<ice:outputText value="#{data.name}">
|
</ice:dataTable>


Message was edited by: Jameskhoo
Hi all

While browsing through ICEfaces Address demo source code, I come discover the following:

<ice:inputText...converter="fixCaps"../>

Code above will automatically convert first input character to Cap , which is nice! The problem that I have is, I have no idea how many other text format converters are supported, and it's not documented at any distributed docs..thus, I presume this is a hidden easter eggs?

Could someone tell me what other converters are supported?

Cheers
James Khoo
Hi Julio

The other way to build a "non-related" value object in a dataTable, or rearranging row data, is use HashMap to construct your row, poplute the HashMap with data, and use ArrayList to hold those HashMaps..and past it to ice:dataTable for rendering.


HashMap row1 = new HashMap();
row1.put("name", customer.getName());
row1.put("previousBalance", invoice.getBalance());
row1.put("payment",payment.getAmount());

row1.put("currentBalance", invoice.getBalance()-payment.getAmount());

HasppMap row2 = new HaspMap()
|
|
ArrayList dataList = new ArrayList();
dataList.add(row1);


Cheers
James Khoo
Hi Sree

Just set your managebean scope as "request" in your faces-config.xml.

Cheers
James
Hi Adnan

Thanks, it works!

Cheers
James Khoo
Roy, Philip, and Adnan

Just like to say thanks! If I am over US, will buy you guys a round or Beer!

Cheers
James Khoo
Hi Deryk

Thanks for quick response, and we will take ur suggestions into considertation.

And to answer your question, we did a quick test, and found out that only visiable bean accessors are called..the reason why we have impressions of all beans accessors are called is we only have couples of beans right now, and each bean is share across multiple panelGroups in one giant panelStack, thus the server log file "give" us the impression that *all* bean accessors methods are called, which is not.

sorry of providing wrong information.


Cheers
James Khoo
Hi Adnan
Hi Adnan

Thanks for ur answer..while your propose solution solve the flash object problem, it's still not solve the JavaScript unload problem. I have modified the original attached file for u to reproduce the error.

Please copy all C.E 1.0.1 lib into lib directory, build and deploy the war file. Here are the steps to reproduce the error:

1. Go to Team&User, new User Screen

2. Move your mouse to user Name inputText field. You should see a default browser tooltips asking user to enter their user name (Which is ugly)

3. do a page refresh, and move the mouse back to inputText field, you sould see a nicer tooltip will color and tranperant effet.

FYI, we are using SweetTitles.js, and the js already perloaded at welcome.jspx..


Do share me your findings, cheers
James Khoo
Hi all

Same behaviour as above, when user attempt to expand or collapse a treeNode, all JavaScripts will be unloaded..the only way to reactivate the script is to do a screen refresh!

Any suggestions?

Cheers
James Khoo
 
Profile for jameskhoo -> Messages posted by jameskhoo [39] Go to Page: 1, 2, 3 Next 
Go to:   
Powered by JForum 2.1.7ice © JForum Team