voyent
Messages posted by: Markus  XML
Profile for Markus -> Messages posted by Markus [7]
Author Message
hi,

i would appreciate it if you could give me a solution to following problem:
our developed icefaces project worked fine on release 1.0.0 on sap web application server 6.40.
after upgrading to iceface release 1.0.1 we get following error message:

19.09.2006 20:32:28 com.icesoft.faces.webapp.xmlhttp.PersistentFacesCommonlet init

SCHWERWIEGEND: ICEfaces could not initialize JavaServer Faces. Please check that the JSF .jar files are installed correctly.No Factories configured for this Application. This happens if the faces-initialization does not work at all - make sure that you properly include all configuration settings necessary for a basic faces application and that all the necessary libs are included. Also check the logging output of your web application and your container for any exceptions!
If you did that and find nothing, the mistake might be due to the fact that you use some special web-containers which do not support registering context-listeners via TLD files and a context listener is not setup in your web.xml.
A typical config looks like this;
<listener>
<listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>
</listener>


java.lang.IllegalStateException: No Factories configured for this Application. This happens if the faces-initialization does not work at all - make sure that you properly include all configuration settings necessary for a basic faces application and that all the necessary libs are included. Also check the logging output of your web application and your container for any exceptions!
If you did that and find nothing, the mistake might be due to the fact that you use some special web-containers which do not support registering context-listeners via TLD files and a context listener is not setup in your web.xml.
A typical config looks like this;
<listener>
<listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>
</listener>


at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:90)

at com.icesoft.faces.webapp.xmlhttp.PersistentFacesCommonlet.init(PersistentFacesCommonlet.java:60)

at com.icesoft.faces.webapp.xmlhttp.PersistentFacesServlet.init(PersistentFacesServlet.java:71)

at com.sap.engine.services.servlets_jsp.server.runtime.context.WebComponents.addServlet(WebComponents.java:139)

at com.sap.engine.services.servlets_jsp.server.container.ApplicationThreadInitializer.loadServlets(ApplicationThreadInitializer.java:386)

at com.sap.engine.services.servlets_jsp.server.container.ApplicationThreadInitializer.run(ApplicationThreadInitializer.java:110)

at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)

at java.security.AccessController.doPrivileged(Native Method)

at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)

at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)


we already added the listener-class statement in our web.xml, but this had no effect.
what went wrong?
thanks a lot in advance for your feedback.

markus
hi ted,

In my scenario I am accessing an EJB which returns a PDF. Then a ServletResponse is generated. To do that I am accessing the usersession via

FacesContext facesContext = FacesContext.getCurrentInstance();
//get the userSession from the InitBean
Object initObject = facesContext.getApplication().createValueBinding("#{guiInit}").getValue(facesContext);

That is why I need the userSession-object in my new window. as far as i know it is not possible to pass an object with the <ice:outputLink>.
Do you have an idea how to solve that problem?


markus
hi,

i have a question to the <ice:commandLink> component:
i use this component for displaying a link that opens - when clicked - a document (for example a pdf).

<ice:commandLink action="#{documents.download}" target="new" > <ice:outputText styleClass="detailText" value="#{documents.title}" />
</ice:commandLink>

(the method 'download' gets the document).
I configured my iceFaces project for concurrent views like explained in your timezone tutorial [http://www.icesoft.com/developer_guides/icefaces/htmlguide/gettingstarted/TimezoneTutorial15.html].

When I click on my generated link, the method 'download' is called and the default popup for opening or saving a document also appears. The problem is, that at the same time I get a 'Connection lost' (within my web.xml I already increased my session timeout to 100). I can open or save the document but i cannot return to my 'caller page'.

What is causing this problem and how can I solve it?

Thanks in advance for your feedback.

markus
hi philip,

thanks a lot for the detailed feedback.
i`ll try to implement your instructions.

markus
hi adnan,

thank you for your prompt answer. with using the ice: panelSeries component the elements of my array are now generated side by side. one more question : i tried to combine the ice : dataTable and the ice : panelSeries components but that doesn`t work. is that possible? i want to generate a table with following structure ( - always stands for a new cell) :
1) first row
header 1 (static) - header 2 (dynamic : one element of an array) - header 3 (dynamic : another element of an array) - .... [header 2 - x i can now handle with the ice : panelSeries component]

2) second row - x row
listobject 1 (title of an object) - listobject 1 attribute 1 (first dynamic attribute of the object 1 ) - listobject 1 attribute 2 (second dynamic attribute of the object)

wouldn`t it be possible to get all the elements of listobject 1 for example with another ice : panelSeries component?
my question : how can i get this all to a correct rendered table or does ice : panelSeries this job?

thanks a lot for your help!
markus
hello,

how is it possible to get the children nodes of an <ice : tree component into an alphabetical order?

please give me a short feedback.

thanks in advance.

markus
I am using the data table for raw data.

Is there a possibility to add each element of an array (in my case attributesHeader) dynamically into a <ice:dataTable> tag.(i thought about a "for" loop that is executed on <ice:column> tag)?
Now every element appears one below the other, but i want to have them side by side in the table.

here a cutout of my used coding (embedded into a .jsp page):
<ice:dataTable id="displayAttributeHeader"
value="#{navigation.attributesHeader}"
var="objects"
styleClass="listTableData"
>
<ice:column>
<ice:outputText styleClass="listText" value="#{objects.attrtitle}" />
</ice:column>
</ice:dataTable>

Thanks in advance for your feedback.

Markus


Message was edited by: Markus


Message was edited by: Markus
 
Profile for Markus -> Messages posted by Markus [7]
Go to:   
Powered by JForum 2.1.7ice © JForum Team