| Author |
Message |
|
|
Hi all,
[icefaces 1.8.2]
I'm using java.util.Calendar in the application, I would like to use the Calendar object in the selectInputDate component, unfortunately it seems that only Date type is allowed.
Is there a simple solution for using Calendar in this component?
thanks,
Dima
|
 |
|
|
Hi
I have a modal panelPopup component, I have atached to a comandButton a panelConfirmation window, but the positioning of panel confirmation is wrong,
same problem with menuPopup.
Any idea?
with best regards,
Dima
|
 |
|
|
Solved
I think is too late so I have done some mistakes :)
First of all I had IceUserObject cannot be cast to com.icesoft.faces.component.tree.IceUserObject exception, I fixed it by moving all dependences from war project under ear/lib but in the meantime by mistake MyEclipse editor replaced my tree with default one, so obviously my tree model was blank.
The problem is closed, thanks to all
with best regards,
Dima
|
 |
|
|
applefan wrote:
judy.guglielmin wrote:
Is your ice:tree within a form?
Hi Judy,
I've placed ice:Tree inside an ice:Form and now it works! Thank you!
(i keep forgetting ice:form)
Unfortunately this solution does not solve my problem, so I moving my question to another topic : http://www.icefaces.org/JForum/posts/list/0/15011.page
|
 |
|
|
Debugging com.icesoft.faces.component.tree.TreeRenderer class, I see strange behavior.
uiComponent is instantiated(com.icesoft.faces.component.tree.Tree@19d8b11) but
the uiComponent.getValueBinding("value") is NULL
so the next line( TreeModel treeModel = (TreeModel) uiComponent
.getValueBinding("value").getValue(facesContext);)
throws the NullPointerException
P.S: my tree component is within <ice:form>
|
 |
|
|
judy.guglielmin wrote:
Is your ice:tree within a form?
yes within <h:form> but same problem with <ice:form>
|
 |
|
|
applefan wrote:
Hello, I'm trying (unsuccesfully) to display a Tree component (ice:Tree) to show a list of entities (Sperimentazione). A Sperimentazione can have child nodes (relationship one to many with the entity Fase).
I tried to follow the example given in the ICEFaces' SEAM Component Showcase, but I got an error.
I've reported all the details in a post in the SEAM forum:
http://seamframework.org/Community/ProblemWithIceTree
Thank you.
have you found the solution for your problem, it seems that I have similar problem. I have the tree component without special business, only simple tree and it throws NullPointerException at line 144 in TreeRenderer.encodeBegin?
with best regards
Dima
|
 |
|
|
I'm using :
Icefaces 1.8.2(but same problem was with at least 1.8.1)
Seam 2.2.0.GA
JBoss 5.1.0.GA
I'm trying to display tree component, but when I'm adding tree component :
Code:
<ice:tree style="font-size: 9;padding:0px; border: 0px;width:99px; height: 80px;display: block;">
<ice:treeNode>
<f:facet name="icon">
<ice:panelGroup style="display: inline;">
<ice:graphicImage></ice:graphicImage>
</ice:panelGroup>
</f:facet>
<f:facet name="content">
<ice:panelGroup style="display: inline;">
<ice:commandLink>
<ice:outputText></ice:outputText>
</ice:commandLink>
</ice:panelGroup>
</f:facet>
</ice:treeNode>
</ice:tree>
It throws me some strange exception:
Code:
16:04:29,775 ERROR [D2DFaceletViewHandler] Problem in renderResponse: null
java.lang.NullPointerException
at com.icesoft.faces.component.tree.TreeRenderer.encodeBegin(TreeRenderer.java:145)
at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:813)
at com.icesoft.faces.component.tree.Tree.encodeBegin(Tree.java:228)
at com.icesoft.faces.renderkit.dom_html_basic.DomBasicRenderer.encodeParentAndChildren(DomBasicRenderer.java:356)
at com.icesoft.faces.renderkit.dom_html_basic.GroupRenderer.encodeChildren(GroupRenderer.java:96)
at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:837)
at com.icesoft.faces.renderkit.dom_html_basic.DomBasicRenderer.encodeParentAndChildren(DomBasicRenderer.java:358)
at com.icesoft.faces.renderkit.dom_html_basic.GridRenderer.encodeChildren(GridRenderer.java:208)
at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:837)
....
16:04:30,353 SEVERE [lifecycle] JSF1054: (Phase ID: RENDER_RESPONSE 6, View ID: /home.xhtml) Exception thrown during phase execution: javax.faces.event.PhaseEvent[sou
16:04:45,400 ERROR [View] Problem encountered during View.servePage
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:153)
at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:110)
at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
...
Caused by: java.lang.NullPointerException
at com.icesoft.faces.component.tree.TreeRenderer.encodeBegin(TreeRenderer.java:145)
at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:813)
at com.icesoft.faces.component.tree.Tree.encodeBegin(Tree.java:228)
at com.icesoft.faces.renderkit.dom_html_basic.DomBasicRenderer.encodeParentAndChildren(DomBasicRenderer.java:356)
at com.icesoft.faces.renderkit.dom_html_basic.GroupRenderer.encodeChildren(GroupRenderer.java:96)
at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:837)
Any help will be appreciated
With best regards
Dima
|
 |
|
|
Any update on this?
I have similar problem, I would like to create an layout similar to
http://www.smartclient.com/smartgwt/showcase/
I have to create a dynamic Tabset, but I don't want to create my tab content in the bean ,I want only to manage my List with tabs, where I can set the Label and the URL of the content(Eg.: view.xhtml).
Thanks,
Dima
|
 |
|
|
|
I found the problem, it is a hibernate bug, not icefaces
|
 |
|
|
Code:
public void selectInputCnpChanged(final ValueChangeEvent event) {
PhaseId phaseId = event.getPhaseId();
if (phaseId.equals(PhaseId.ANY_PHASE)) {
event.setPhaseId(PhaseId.UPDATE_MODEL_VALUES);
event.queue();
return;
}
if (event.getComponent() instanceof SelectInputText) {
SelectInputText autoComplete = (SelectInputText) event.getComponent();
getRegPatient().setCnp((String) event.getNewValue());
foundPatients = patientManagerService.findPatientMatches(getRegPatient(), getPatientListLength());
....
}
This is main part of code which is used for search, the execution time of this method is about 141ms.
|
 |
|
|
Icefaces version : 1.8.1
Browser: FF 3.0.11 (same problem in IE 7.0.57x)
code:
Code:
<ice:selectInputText
rows="#{patientCtrl.patientListLength}"
value="#{patientCtrl.regPatient.secondName}"
valueChangeListener="#{patientCtrl.selectInputCnpChanged}"
listVar="patient"
listValue="#{patientCtrl.foundPatients}">
...
The problem is that when I typing first time string in inputbox, it takes aprox. 11s(POST http://localhost:8080/mxxx/block/send-receive-updates 11.64s) to show the list with results, the execution of selectInputCnpChanged method is about 141ms. so it seems that most of time are spend for something else. After first result-list is shown, the search is more faster(POST http://localhost:8080/mxxx/block/send-receive-updates 529ms).
Any idea?
Thanks, Dima
|
 |
|
|