| Author |
Message |
|
|
|
Does anyone have a reply to this yet?
|
 |
|
|
I'm getting the exact same problem with a regular ice:panelPopup in 1.8.1 and still 1.8.2. It doesn't 'break' my app, but it still throws the error. Not sure why this is happening?
Here's my error:
Code:
15:12:25,545 ERROR D2DFaceletViewHandler:294 - Problem in renderResponse: null
java.lang.NullPointerException
at com.icesoft.faces.util.DOMUtils.domDiff(DOMUtils.java:256)
at com.icesoft.faces.context.PushModeSerializer.serialize(PushModeSerializer.java:34)
at com.icesoft.faces.context.BridgeFacesContext$SaveCurrentDocument.serialize(BridgeFacesContext.java:924)
at com.icesoft.faces.context.DOMResponseWriter.endDocument(DOMResponseWriter.java:191)
at com.icesoft.faces.facelets.D2DFaceletViewHandler.renderResponse(D2DFaceletViewHandler.java:285)
at com.icesoft.faces.application.D2DViewHandler.renderView(D2DViewHandler.java:159)
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.xmlhttp.PersistentFacesState.render(PersistentFacesState.java:176)
at com.icesoft.faces.webapp.xmlhttp.PersistentFacesState.executeAndRender(PersistentFacesState.java:312)
at com.icesoft.faces.async.render.RunnableRender.run(RunnableRender.java:143)
at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:665)
at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:690)
at java.lang.Thread.run(Thread.java:619)
Oct 26, 2009 3:12:25 PM com.sun.faces.lifecycle.LifecycleImpl phase
WARNING: executePhase(RENDER_RESPONSE 6,com.icesoft.faces.context.BridgeFacesContext@1325aef) threw exception
javax.faces.FacesException: Problem in renderResponse: null
at com.icesoft.faces.facelets.D2DFaceletViewHandler.renderResponse(D2DFaceletViewHandler.java:296)
at com.icesoft.faces.application.D2DViewHandler.renderView(D2DViewHandler.java:159)
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.xmlhttp.PersistentFacesState.render(PersistentFacesState.java:176)
at com.icesoft.faces.webapp.xmlhttp.PersistentFacesState.executeAndRender(PersistentFacesState.java:312)
at com.icesoft.faces.async.render.RunnableRender.run(RunnableRender.java:143)
at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:665)
at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:690)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.NullPointerException
at com.icesoft.faces.util.DOMUtils.domDiff(DOMUtils.java:256)
at com.icesoft.faces.context.PushModeSerializer.serialize(PushModeSerializer.java:34)
at com.icesoft.faces.context.BridgeFacesContext$SaveCurrentDocument.serialize(BridgeFacesContext.java:924)
at com.icesoft.faces.context.DOMResponseWriter.endDocument(DOMResponseWriter.java:191)
at com.icesoft.faces.facelets.D2DFaceletViewHandler.renderResponse(D2DFaceletViewHandler.java:285)
... 10 more
Oct 26, 2009 3:12:25 PM com.mcnairbd.das.jpa.EntityManagerHelper log
INFO: finding PysProduct instance with id: 1
15:12:25,545 ERROR PersistentFacesState:182 - Exception occured during execute push on /login.xhtml
javax.faces.FacesException: java.lang.NullPointerException
at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:310)
at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144)
at com.icesoft.faces.webapp.xmlhttp.PersistentFacesState.render(PersistentFacesState.java:176)
at com.icesoft.faces.webapp.xmlhttp.PersistentFacesState.executeAndRender(PersistentFacesState.java:312)
at com.icesoft.faces.async.render.RunnableRender.run(RunnableRender.java:143)
at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:665)
at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:690)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.NullPointerException
at com.icesoft.faces.util.DOMUtils.domDiff(DOMUtils.java:256)
at com.icesoft.faces.context.PushModeSerializer.serialize(PushModeSerializer.java:34)
at com.icesoft.faces.context.BridgeFacesContext$SaveCurrentDocument.serialize(BridgeFacesContext.java:924)
at com.icesoft.faces.context.DOMResponseWriter.endDocument(DOMResponseWriter.java:191)
at com.icesoft.faces.facelets.D2DFaceletViewHandler.renderResponse(D2DFaceletViewHandler.java:285)
at com.icesoft.faces.application.D2DViewHandler.renderView(D2DViewHandler.java:159)
at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:106)
at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
... 7 more
|
 |
|
|
Hi!
I'd like to pose a question to the ICEfaces experts out there regarding a new project I am architecting.
Specifically, I'm looking to create an HR app with org chart capabilities. I see tie in's with Drag and Drop components, charts, JAXB, spring security, JSF & Facelets and hibernate. Most of the app is pretty straightforward other that the actual UI of the org chart and administering it visually. I'm wondering if ICEfaces components would be the best solution for the entire app, or for everything up to the my UI piece?
Thoughts/Comments?
|
 |
|
|
Hi,
Does anyone know if it is possible to span columns of the Parent row using the expandable table?
In my case, I want to use the Parent row as a "title" (or category) for underlying children. The end goal is to span the columns of this row so I can put an image in the parent row.
If this is possible, i'd be very interested in seeing an example or be pointed in the right direction!
Thanks!
Tyler
|
 |
|
|
|
This is happening to me now using v1.7.2 and I am at my wits end. Has there been any thing new since this issue was last addressed? If anyone can provide me something specific that would be great. I can't have my panelSeries displaying things randomly out of order! Myfaces might be the way to go for this particular piece :^6
|
 |
|
|
This is a case I am working on right now with some minor success. I'm still having some issues updating inputText components with using valueChangeListeners. It seems like no matter what I do, it's either hit and miss on whether the update happens, or I have to update a field twice for it to 'take' - this is on my inner indexes.
So.. access is good.. updating the model not.
|
 |
|
|
Ok... I felt I needed to post a solution that worked for me in my challenge to refresh fields in nested panelSeries components. Spoiler: it's all about the bindings!
The problem was displaying a catalogue with a
1-many-many model.
Here's the xhtml to start:
Code:
<ice:form id="myId">
<ui:repeat var="parentCat" value="#{pc_View.catalogue.pysParentCat}">
<center>
<ice:panelGroup style="width: 730px;float:left">
<ice:outputText value="#{parentCat.parentName}" styleClass="catalogue"/>
</ice:panelGroup>
<ice:panelSeries var="category" value="#{parentCat.pysCategories}" id="catId" style="float:left" binding="#{pc_View.categoryPanel}">
<ice:panelGroup style="width: 325px;float:left">
<ice:panelGrid style="width: 425px">
<ice:outputText value="#{category.catName}" style="float:left" styleClass="catalogue"/>
<ice:panelGroup style="width: 425px;float:left" styleClass="catalogue">
<ice:outputText value="Item" style="float:left; margin: 0px 10px 0px 0px; width: 140px;" styleClass="catalogue"/>
<ice:outputText value="Value" style="float:left; margin: 0px 15px 0px 0px" styleClass="catalogue"/>
<ice:outputText value="Quantity" style="float:left; margin: 0px 10px 0px 5px" styleClass="catalogue"/>
<ice:outputText value="Total" style="float:left; margin: 0px 0px 10px 0px" styleClass="catalogue"/>
</ice:panelGroup>
<ice:panelSeries var="product" value="#{category.pysProducts}" id="catId" style="float:left" binding="#{pc_View.productPanel}">
<ice:panelGroup>
<ice:panelGroup style="width: 325px;float:left">
<ice:panelGrid columns="4" columnClasses="" border="0">
<ice:outputText value="#{product.prdName}" style="float:left; margin: 0px 0px 0px 0px; width: 140px;" styleClass="catalogue"/>
<ice:outputText value="#{product.prdPrice}" style="width: 50px; text-align: left; float:left; margin: 0px 0px 0px 0px" styleClass="catalogue" >
<f:convertNumber minFractionDigits="2" maxFractionDigits="2"/>
</ice:outputText>
<ice:inputText id="quantityId" immediate="true" partialSubmit="true" valueChangeListener="#{pc_View.handleProductQuantityValueChangeEvent}"
binding="#{pc_View.quantityInputText}" onchange="this.form.submit(this);" value="#{product.quantity}" size="3" style="float:left; margin: 0px 10px 0px 5px">
<f:attribute name="changeField" value="#{product.quantity}"/>
</ice:inputText>
<ice:inputText id="totalId" value="#{product.total}" size="3"
binding="#{pc_View.totalInputText}"
style="float:left; margin: 0px 10px 0px 0px">
</ice:inputText>
</ice:panelGrid>
</ice:panelGroup>
</ice:panelGroup>
</ice:panelSeries>
</ice:panelGrid>
</ice:panelGroup>
</ice:panelSeries>
</center>
</ui:repeat>
</ice:form>
and the Bean:
Code:
public void handleProductQuantityValueChangeEvent(ValueChangeEvent vce)
{
//do calculations/update stuff...
.
.
//update the bindings!!
quantityInputText.updateModel(getFacesContext());
totalInputText.updateModel(getFacesContext());
}
private PanelSeries productPanel;
private PanelSeries categoryPanel;
public PanelSeries getProductPanel() {
return productPanel;
}
public void setProductPanel(PanelSeries productPanel) {
this.productPanel = productPanel;
}
public PanelSeries getCategoryPanel() {
return categoryPanel;
}
public void setCategoryPanel(PanelSeries categoryPanel) {
this.categoryPanel = categoryPanel;
}
private HtmlInputText quantityInputText;
private HtmlInputText totalInputText;
public HtmlInputText getQuantityInputText() {
return quantityInputText;
}
public void setQuantityInputText(HtmlInputText quantityInputText) {
this.quantityInputText = quantityInputText;
}
public HtmlInputText getTotalInputText() {
return totalInputText;
}
public void setTotalInputText(HtmlInputText totalInputText) {
this.totalInputText = totalInputText;
}
Note:
the forceRefresh on the panelSeries does not work because with the lists in my setup, clearing them can alter the order (I assume.. it produces odd behavior). I imagine there are cases for it.
I also found that putting Code:
immediate="true" partialSubmit="true"
on my input component was necessary.
Anyways,
Hope that helps!!
|
 |
|
|
|
was there a resolution on this issue?
|
 |
|
|
|
I'm having a similar problem... any solution out there yet?
|
 |
|
|
How does that work with inner collections?
e.g.
List <ParentObj> parent
contains
List <ChildObj> child
contains
List <Child2Obj> child2
where we want to get the index of child or child2?
|
 |
|
|
panelSeries does not have some of the features that dataTable has when doing things like valueChangeEvents in nested tables....
Something like Tomahawks "newspaperOrientation" would be ideal!
newspaperOrientation The orientation of the newspaper columns in the newspaper table - "horizontal" or "vertical". Default: vertical
Perhaps 1.8.x will improve upon panelSeries?
|
 |
|
|
|
Was there a solution to this? If so, can someone please post?
|
 |
|
|
Well... I have solved my own problem! Yeah!
To begin, I have a List of ParentCategory objects, and one of the properties of that object is a Set of Categories.
Code:
<div id="content-intro" style="float: left; width: 730px; height: 400px; margin: 10px 0px 0px 0px">
<ice:form id="myId">
<ui:repeat var="parentCat" value="#{catalogue.ParentCat}">
<center>
<ice:outputText value="#{parentCat.parentName}"/>
<ice:panelSeries var="category" value="#{parentCat.Categories}" id="catId" style="float:left">
<ice:panelGroup style="width: 325px;float:left">
<ice:panelGrid>
<ice:outputText value="#{category.catName}" style="float:left"/>
<ice:outputText value="#{category.catStartDate}" />
</ice:panelGrid>
</ice:panelGroup>
</ice:panelSeries>
</center>
</ui:repeat>
</ice:form>
</div>
The trick here is basically to use the property in we expose in the ui:repeat for the Set of Categories and use it as the value in the panelSeries. This way, I can correctly display the relationships to their collections. BTW, the panelSeries displays horizontally as well.
Good times :)
|
 |
|
|
Hi,
I have a requirement to build a catalog, and I think the panelSeries component will do the trick... however I can't seem to wrap my head around one requirement. I'll try and describe the problem:
In our DB design, we have a Category -> Product relationship. We also have a special type of Category which we logically use to describe the set of categories.
e.g.
Cat ID=1, ParentID=0 Description="Category X"
(this would be the special Category case)
Products belonging to this category parent:
Cat ID 2, ParentID 1 Description="Products A under X"
Cat ID 3, ParentID 1 Description="Products B under X"
So... the Way this should work is 'regular' categories and their product relationships would be my panelSeries, and their Descriptions (e.g. Description="Products A under X") would be the Header in my design.
What I am wanting to do is have my grouping of panelSeries belonging to ParentID 1 grouped together while also displaying their Parent's Description as a header (Cat ID=1, ParentID=0 Description="Products X")
So... the display would look like:
Category X
<panelSeries>Products A under X</panelSeries> <|> <panelSeries>Products B under X</panelSeries>
Given that this is a catalog, the categories and products are not static, so I figure I need to embed the panelSeries in either another panelSeries or a dataTable... or somehow use a ui:repeat (this is a 1.7.2 project using icefacelets).
If anyone has ever came across this problem/has any suggestions I would greatly appreciate it! I don't think it's that uncommon of a design.
Thanks!!
Tyler
|
 |
|
|
Hi,
Just to follow up on this issue as I was having the same problem. I'm using MyEclipse 6.6.0, and my app is JSF/facelets. I was using icefaces 1.7.1 because that is what is currently supported with MyEclipse. Anyways, I was getting the flashing background with my menu. After stripping the app apart it was still happening... and happening with the showcase component.
I downloaded the newest icefaces version and the flashing no longer occured with the showcase or my app. Not sure if that helps anyone, but it was a relatively quick fix for me.
Tyler
|
 |
|
|