Messages posted by gbuffolino
[Logo]
ICEsoft.org Forums: ICEfaces, ICEmobile, ICEpdf
[Search] Search   [Recent Topics] Recent Topics   [Groups] Home Page | www.icesoft.org  [Login] Login 
Messages posted by: gbuffolino  XML
Profile for gbuffolino -> Messages posted by gbuffolino [18] Go to Page: 1, 2 Next 
Author Message
Hi all,
can I have a value binding in SelectInputText component on the options attribute? I tried

options="#{applicationBean.autocompleteOptions}"

where applicationBean.autocompleteOptions point to a properties file where there is the string {frequency: 2.0}, but i cannot make it work.
Instead it works if i set directly

options="{frequency: 2.0}"

Can anyone explain this behaviour?
Maybe I have to escape the brackets?

Thanks!
Thank for your response.
I will try soon what you suggest and will post the result

Thanks again

Gabriele
Hi all,
what I'm trying to develop is an auto refresh of a panelSerie after a file upload via an inputFile component.
Basically, when users upload a file, the panelSerie shows the new element with the others.
Like the component showcase, I set the value of the PanelSerie to a synchronized list in session scope. An actionListener on the inputFile component will add the new uploaded element to the list, but the panel serie doesn't refresh.
I need to add a refresh button which is what I want to avoid.

Here is my xhtml for inputFile component:

Code:
 <ice:inputFile id="ifImages" disabled="#{!itemIndex.editMode}"
 								progressListener="#{itemImageUploadController.fileUploadProgressListener}"
 								label="#{msgs.uploadImage}"
 								actionListener="#{itemImageUploadController.fileUploadActionListener}"
 								uniqueFolder="false"
 								uploadDirectory="#{itemImageUploadController.uploadDirectory}" />
 


Here is the xhtml code of the panelserie

Code:
 <ice:selectOneRadio id="sorImagesSession" layout="spread"
 									value="#{itemIndex.selectedSessionImageId}"
 									partialSubmit="true">
 									<f:selectItems value="#{itemIndex.sessionImagesSelectItems}" />
 								</ice:selectOneRadio>
 								<ice:panelSeries value="#{itemIndex.sessionImageSerieList}"
 									var="imageSerieSession">
 									<div
 										style="float: left; margin: 2px; padding: 5px; margin-right: 20px; border: 1px solid #999999;">
 									<ice:panelGroup>
 										<ice:panelBorder>
 											<f:facet name="center">
 												<ice:outputLink target="_new"
 													value="#{applicationBean.imagesUrl}#{imageSerieSession.entityId}">
 													<ice:graphicImage id="giImageSession" width="200"
 														height="200"
 														alt="#{msgs.download} #{imageSerie.description}"
 														url="#{applicationBean.imagesUrl}#{imageSerieSession.entityId}" />
 												</ice:outputLink>
 											</f:facet>
 											<f:facet name="south">
 												<ice:panelBorder>
 													<f:facet name="center">
 														<ice:outputLabel for="giImageSession"
 															value="#{imageSerieSession.description}" />
 													</f:facet>
 													<f:facet name="west">
 														<ice:radio id="laMiaRadioSession" for="sorImagesSession"
 															index="#{imageSerieSession.index}" />
 													</f:facet>
 												</ice:panelBorder>
 											</f:facet>
 										</ice:panelBorder>
 									</ice:panelGroup></div>
 								</ice:panelSeries>
 


Here is the actionListener code

Code:
 ImageFile imgFile = new ImageFile();
 		String fileName = fileInfo.getFile().getName();
 		imgFile.setName(fileName);
 		imgFile.setFileExtension(fileName.substring(fileName.lastIndexOf('.')));
 		imgFile.setDescription(imageDescription);
 		Thumbnail thumbnail = new Thumbnail();
 		byte[] thumbnailBytes = thumbnail.scaleImage(fileInfo.getFile(), this.applicationBean.getThumbnailMaxSize(), this.applicationBean.getThumbnailMaxSize());
 		imgFile.setThumbnail(thumbnailBytes);
 		synchronized (this.imageFileContainer.getImageFileList()) {
 			this.imageFileContainer.getImageFileList().add(imgFile);
 		}
 		this.imageDescription = null;
 


and finally my session-scope list

Code:
 private final List<ImageFile> imageFileList = Collections.synchronizedList(new ArrayList<ImageFile>());
 ...
 public List<ImageFile> getImageFileList() {
 		return imageFileList;
 	}
 


Any help will be really appreciated

Thanks in advance guys
Hi all, I've got the same problem. I tried as suggested to use TextChangeListener instead of ValueChangeEvent but nothing happens. Still the cursor is put at the very beginning of the input field. Here is my xhtml

Code:
 <ice:selectInputText id="sitSubMerchGroup" width="400" textChangeListener="#{articleIndex.subMerchGroupTextChanged}" rows="#{articleIndex.subMerchandisingGroupListSize}" value="#{articleIndex.current.subMerchandisingGroup.description}">
 									<f:selectItems id="siSubMerchGroup" value="#{articleIndex.subMerchandisingGroupList}" />
 								</ice:selectInputText>
 


And here is my TextChangeListener method:

Code:
 public void subMerchGroupTextChanged(TextChangeEvent event) {
 		SelectInputText sit = (SelectInputText) event.getComponent();
 		String seed = (String) event.getNewValue();
 		if (sit.getSelectedItem() != null) {
 			Long smgId = (Long) sit.getSelectedItem().getValue();
 			setSelectedSubMerchandisingGroupId(smgId);
 		} else {
 			this.subMerchandisingGroupList = performSubMerchGroupSearch(seed);
 		}
 	}
 


I do not know what's wrong in this code, even comparing my code with the tutorial code.

Do you have any hint, guys?

Thanks a lot.
Hi guys,
it seems to be a stupid problem, but I have a doubt on how SelectInputText component works.

Does it show a list of preloaded SelectItem, for example, and allow us to filter this list in our backingbean, or we can provide a new list every user digit?

Thanks, I know it may looks like a newbie question but it really makes me stuck!

Thanks again guys
Hi all, that's really a very good solution. Thanks.
Just a question.
If i remember right, there is a JBoss EL implementation, jboss-el.jar, which solves the problem.
Please, guys, can you confirm this?
Thanks for you responses guys.

Unfortunately I do not use the Seam Framework, but I decided to use JasperServer. In this way in may backing bean I have to manage only the URL to the report, and no JasperReport code is needed inside my application.
Just manage a string, the URL, and let JasperServer do the work, not only in "create report logic", but even in the "rendering logic".

I hope this solution will be helpful for someone.

Thank you guys!

Gabriel
Hi guys,
i got the same needs, generate a pdf /xls report via ICEFaces 1.8.0 and I am wondering what is the best way to integrate those tecnologies.

Is the servlet solution the best way to do this or maybe JasperServer could be a better way?

Thanks in advance
Another strange thing I notice is that the UI get cleared when i change tab, press Clear and return to the previous tab.

Hope this hint will be usefull
Hi all,

I have a set of fields in my UI and I wanna clear all user insertions by pressing a Clear button. I'm not able to do this and I do not know why.

Code:
 <ice:form>
                     ...
                                     <ice:commandLink action="#{anagrafiche$worker$index.btnClear_action}" id="btnClear" immediate="true" styleClass="btnClear" value="Pulisci"/>
                                 ...
                                 <ice:panelTabSet id="panelTabSet1" selectedIndex="0" tabPlacement="Top" style="width:98%;">
                                     <ice:panelTab id="panelTab1" label="Principale">
                                             <fieldset>
                                                 <legend>
                                                     Dati di accesso
                                                 </legend>
                                                 <table border="0" cellpadding="0" cellspacing="5">
                                                     <tr>
                                                         <td valign="top">
                                                             <ice:outputLabel id="olCode" for="tfCode" value="Login"/>
                                                             <br/>
                                                             <ice:inputText id="tfCode" value="#{RequestBean1.currentWorker.code}" partialSubmit="true"/>
                                                         </td>
                                                         <td valign="top">
                                                             <ice:outputLabel id="olPsw1" for="isPsw1" value="Password"/>
                                                             <br/>
                                                             <ice:inputSecret redisplay="true" id="isPsw1" value="#{anagrafiche$worker$index.password1}" partialSubmit="true"/>
                                                         </td>
                                                         <td valign="top">
                                                             <ice:outputLabel id="olPsw2" for="isPsw2" value="Conferma password"/>
                                                             <br/>
                                                             <ice:inputSecret redisplay="true" id="isPsw2" value="#{anagrafiche$worker$index.password2}" partialSubmit="true"/>
                                                         </td>
                                                     </tr>
                                                 </table>
                                             </fieldset>
                                             <fieldset>
                                                 <legend>
                                                     Dettagli
                                                 </legend>
                                                 <table border="0" cellpadding="0" cellspacing="5">
                                                     <tr>
                                                         <td valign="top">
                                                             <ice:outputLabel id="otDisplayName" for="tfDisplayName" value="Nome visualizzato"/>
                                                             <br/>
                                                             <ice:inputText partialSubmit="true" id="tfDisplayName" value="#{RequestBean1.currentWorker.displayName}"/>
                                                         </td>
                                                         <td>
                                                             <ice:selectBooleanCheckbox partialSubmit="true" id="cbDisabled" value="#{RequestBean1.currentWorker.disabled}"/>
                                                             <span class="grigio">
                                                                 <ice:outputText id="outputText1" value="Disabilitato"/>
                                                             </span>
                                                         </td>
                                                     </tr>
                                                     <tr>
                                                         <td valign="top">
                                                             <ice:outputLabel id="otName" for="tfName" value="Nome"/>
                                                             <br/>
                                                             <ice:inputText partialSubmit="true" id="tfName" value="#{RequestBean1.currentWorker.firstName}"/>
                                                         </td>
                                                         <td valign="top">
                                                             <ice:outputLabel id="otLastName" for="tfLastName" value="Cognome"/>
                                                             <br/>
                                                             <ice:inputText partialSubmit="true" id="tfLastName" value="#{RequestBean1.currentWorker.lastName}"/>
                                                         </td>
                                                     </tr>
                                                 </table>
                                             </fieldset>
                                     </ice:panelTab>
                                     <ice:panelTab id="panelTab2" label="Associazione Gruppi">
                                     </ice:panelTab>
                                     <ice:panelTab id="panelTab3" label="Associazione Aziende">
                                     </ice:panelTab>
                                 </ice:panelTabSet>
                 </ice:form>
 


Here is my code listening to the Clear button

Code:
 public String btnClear_action() {
         getRequestBean1().setCurrentWorker(new Worker());
         btnSave.setDisabled(disableSave);
         return null;
     }
 


Here is the faces-config.xml for the request bean

Code:
 <managed-bean>
         <managed-bean-name>RequestBean1</managed-bean-name>
         <managed-bean-class>backoffice.RequestBean1</managed-bean-class>
         <managed-bean-scope>request</managed-bean-scope>
     </managed-bean>
 


Setting the new worker bean into the request-scope bean should clear all fields defined before, but it does not work.

I use ICEFaces 1.8.0 and Netbeans 6.5 (that's the reason of RequestBean1)

Anyone have any ideas?
Guys I finally get it!

My faces-config.xml file was missing the following line:

Code:
<view-handler>com.icesoft.faces.facelets.D2DFaceletViewHandler</view-handler>


Thanks anyways.
Here they are

Notice that I am using Netbeans 6.5.1

Hi all,
when i try to use a template using the ui:composition and the ui:define i get the following error:

Code:
 javax.servlet.ServletException: java.lang.Exception: javax.faces.FacesException: java.lang.UnsupportedOperationException
  com.icesoft.faces.webapp.http.servlet.MainServlet.service(MainServlet.java:175)
  javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
 
 root cause
 
 java.lang.Exception: javax.faces.FacesException: java.lang.UnsupportedOperationException
  com.icesoft.faces.context.View.servePage(View.java:136)
  com.icesoft.faces.webapp.http.core.MultiViewServer.service(MultiViewServer.java:55)
  com.icesoft.faces.webapp.http.common.ServerProxy.service(ServerProxy.java:11)
  com.icesoft.faces.webapp.http.servlet.MainSessionBoundServlet$4.service(MainSessionBoundServlet.java:114)
  com.icesoft.faces.webapp.http.common.standard.PathDispatcherServer.service(PathDispatcherServer.java:24)
  com.icesoft.faces.webapp.http.servlet.MainSessionBoundServlet.service(MainSessionBoundServlet.java:160)
  com.icesoft.faces.webapp.http.servlet.SessionDispatcher$1.service(SessionDispatcher.java:42)
  com.icesoft.faces.webapp.http.servlet.ThreadBlockingAdaptingServlet.service(ThreadBlockingAdaptingServlet.java:19)
  com.icesoft.faces.webapp.http.servlet.EnvironmentAdaptingServlet.service(EnvironmentAdaptingServlet.java:63)
  com.icesoft.faces.webapp.http.servlet.SessionDispatcher.service(SessionDispatcher.java:62)
  com.icesoft.faces.webapp.http.servlet.PathDispatcher.service(PathDispatcher.java:23)
  com.icesoft.faces.webapp.http.servlet.MainServlet.service(MainServlet.java:153)
  javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
 
 root cause
 
 javax.faces.FacesException: java.lang.UnsupportedOperationException
  com.sun.faces.lifecycle.Phase.doPhase(Phase.java:128)
  com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
  com.icesoft.faces.webapp.http.core.JsfLifecycleExecutor.apply(JsfLifecycleExecutor.java:17)
  com.icesoft.faces.context.View$2$1.respond(View.java:47)
  com.icesoft.faces.webapp.http.servlet.ServletRequestResponse.respondWith(ServletRequestResponse.java:197)
  com.icesoft.faces.webapp.http.servlet.ThreadBlockingAdaptingServlet$ThreadBlockingRequestResponse.respondWith(ThreadBlockingAdaptingServlet.java:36)
  com.icesoft.faces.context.View$2.serve(View.java:72)
  com.icesoft.faces.context.View.servePage(View.java:133)
  com.icesoft.faces.webapp.http.core.MultiViewServer.service(MultiViewServer.java:55)
  com.icesoft.faces.webapp.http.common.ServerProxy.service(ServerProxy.java:11)
  com.icesoft.faces.webapp.http.servlet.MainSessionBoundServlet$4.service(MainSessionBoundServlet.java:114)
  com.icesoft.faces.webapp.http.common.standard.PathDispatcherServer.service(PathDispatcherServer.java:24)
  com.icesoft.faces.webapp.http.servlet.MainSessionBoundServlet.service(MainSessionBoundServlet.java:160)
  com.icesoft.faces.webapp.http.servlet.SessionDispatcher$1.service(SessionDispatcher.java:42)
  com.icesoft.faces.webapp.http.servlet.ThreadBlockingAdaptingServlet.service(ThreadBlockingAdaptingServlet.java:19)
  com.icesoft.faces.webapp.http.servlet.EnvironmentAdaptingServlet.service(EnvironmentAdaptingServlet.java:63)
  com.icesoft.faces.webapp.http.servlet.SessionDispatcher.service(SessionDispatcher.java:62)
  com.icesoft.faces.webapp.http.servlet.PathDispatcher.service(PathDispatcher.java:23)
  com.icesoft.faces.webapp.http.servlet.MainServlet.service(MainServlet.java:153)
  javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
 
 root cause
 
 java.lang.UnsupportedOperationException
  javax.faces.context.ExternalContext.getResponseContentType(ExternalContext.java:760)
  com.sun.faces.renderkit.RenderKitImpl.createResponseWriter(RenderKitImpl.java:188)
  com.icesoft.faces.renderkit.D2DRenderKit.createResponseWriter(D2DRenderKit.java:82)
  com.sun.facelets.FaceletViewHandler.createResponseWriter(FaceletViewHandler.java:393)
  com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:571)
  com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:110)
  com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
  com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
  com.icesoft.faces.webapp.http.core.JsfLifecycleExecutor.apply(JsfLifecycleExecutor.java:17)
  com.icesoft.faces.context.View$2$1.respond(View.java:47)
  com.icesoft.faces.webapp.http.servlet.ServletRequestResponse.respondWith(ServletRequestResponse.java:197)
  com.icesoft.faces.webapp.http.servlet.ThreadBlockingAdaptingServlet$ThreadBlockingRequestResponse.respondWith(ThreadBlockingAdaptingServlet.java:36)
  com.icesoft.faces.context.View$2.serve(View.java:72)
  com.icesoft.faces.context.View.servePage(View.java:133)
  com.icesoft.faces.webapp.http.core.MultiViewServer.service(MultiViewServer.java:55)
  com.icesoft.faces.webapp.http.common.ServerProxy.service(ServerProxy.java:11)
  com.icesoft.faces.webapp.http.servlet.MainSessionBoundServlet$4.service(MainSessionBoundServlet.java:114)
  com.icesoft.faces.webapp.http.common.standard.PathDispatcherServer.service(PathDispatcherServer.java:24)
  com.icesoft.faces.webapp.http.servlet.MainSessionBoundServlet.service(MainSessionBoundServlet.java:160)
  com.icesoft.faces.webapp.http.servlet.SessionDispatcher$1.service(SessionDispatcher.java:42)
  com.icesoft.faces.webapp.http.servlet.ThreadBlockingAdaptingServlet.service(ThreadBlockingAdaptingServlet.java:19)
  com.icesoft.faces.webapp.http.servlet.EnvironmentAdaptingServlet.service(EnvironmentAdaptingServlet.java:63)
  com.icesoft.faces.webapp.http.servlet.SessionDispatcher.service(SessionDispatcher.java:62)
  com.icesoft.faces.webapp.http.servlet.PathDispatcher.service(PathDispatcher.java:23)
  com.icesoft.faces.webapp.http.servlet.MainServlet.service(MainServlet.java:153)
  javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
 


Here is my pages:

login.xhtml
Code:
 <?xml version='1.0' encoding='UTF-8' ?>
 <!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 <ui:composition xmlns="http://www.w3.org/1999/xhtml"
                 xmlns:ui="http://java.sun.com/jsf/facelets"
                 xmlns:ice="http://www.icesoft.com/icefaces/component"
                 xmlns:f="http://java.sun.com/jsf/core"
                 xmlns:h="http://java.sun.com/jsf/html"
                 xmlns:jsp="http://java.sun.com/JSP/Page"
                 template="./common/template.xhtml">
 
     <ui:define name="headerDxMenu"></ui:define>
     <ui:define name="headerDxToolbar"></ui:define>
 
     <ui:define name="colonna_dx">
       <ice:commandButton action="#{login.btnLogin_action}" id="btnLogin" value="login"/>
     </ui:define>
     
 </ui:composition>
 


template.xhtml
Code:
 <?xml version='1.0' encoding='UTF-8' ?> 
 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 <html xmlns="http://www.w3.org/1999/xhtml"
       xmlns:ice="http://www.icesoft.com/icefaces/component"
       xmlns:ui="http://java.sun.com/jsf/facelets"
       xmlns:h="http://java.sun.com/jsf/html"
       xmlns:f="http://java.sun.com/jsf/core">
     <head>
         <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
         <ice:outputStyle href="/resources/daxo_skin.css" id="outputStyle1"/>
         <ice:outputStyle href="/xmlhttp/css/xp/xp.css" id="outputStyle2"/>
         <ice:outputStyle href="/resources/daxo_skin.css" id="outputStyle3"/>
         <ice:outputStyle href="/resources/ex_h.css" id="outputStyle4"/>
         <title>Facelets Template</title>
     </head>
     <body>
         <ice:form>
             <div id="contenitore" class="contenitore">
                 <div id="header" class="header">
                     <div id="h_dx" class="h_dx">
                         <div id="headerDxMenu" class="daxoHeaderDxMenu">
                             <ui:insert name="headerDxMenu"></ui:insert>
                         </div>
                         <div id="headerDxToolbar" class="daxoHeaderDxToolbar">
                             <ui:insert name="headerDxToolbar"></ui:insert>
                         </div>
                     </div>
                     <div id="h_sx" class="h_sx">
                     </div>
                     <hr class="off" />
                     <div id="headerClear" class="clear">
                         <h:outputText escape="false" value="&nbsp;"/>
                     </div>
                 </div>
                 <div id="centrale" class="centrale">
                     <div id="colonna_dx" class="colonna_dx">
                         <ui:insert name="colonna_dx"></ui:insert>
                     </div>
                     <div id="colonnaDxClear" class="clear">
                         <h:outputText escape="false" value="&nbsp;"/>
                     </div>
                 </div>
                 <div id="centraleClear" class="clear">
                     <h:outputText escape="false" value="&nbsp;"/>
                 </div>
             </div>
             <hr class="off" />
             <div id="footer" class="footer">
                 <div id="f_dx" class="f_dx">
                     <h:outputText escape="false" value="&nbsp;"/>
                 </div>
                 <div id="f_sx" class="f_sx">
                     <h:outputText escape="false" value="&nbsp;"/>
                 </div>
                 <div id="footerClear" class="clear">
                     <h:outputText escape="false" value="&nbsp;"/>
                 </div>
             </div>
         </ice:form>
     </body>
 </html>
 


I'm using ICEFaces 1.8.0 and JSF 1.2.

I do not know what I'm doing wrong.

Plz, hepl!
Hi all,

I got the following error:

Code:
 java.lang.RuntimeException: no message available
         at com.icesoft.faces.webapp.http.servlet.MainServlet.service(MainServlet.java:173)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
         at com.icesoft.faces.webapp.xmlhttp.BlockingServlet.service(BlockingServlet.java:56)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
         at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454)
         at java.lang.Thread.run(Thread.java:619)
 Caused by: java.lang.NullPointerException
         at javax.faces.webapp.UIComponentClassicTagBase.doStartTag(UIComponentClassicTagBase.java:1169)
         at com.icesoft.faces.component.CommandButtonTag.doStartTag(CommandButtonTag.java:741)
         at com.icesoft.faces.webapp.parser.Parser.executeJspLifecycle(Parser.java:204)
         at com.icesoft.faces.webapp.parser.Parser.executeJspLifecycle(Parser.java:229)
         at com.icesoft.faces.webapp.parser.Parser.executeJspLifecycle(Parser.java:229)
         at com.icesoft.faces.webapp.parser.Parser.executeJspLifecycle(Parser.java:229)
         at com.icesoft.faces.webapp.parser.Parser.executeJspLifecycle(Parser.java:229)
         at com.icesoft.faces.webapp.parser.Parser.executeJspLifecycle(Parser.java:229)
         at com.icesoft.faces.webapp.parser.Parser.executeJspLifecycle(Parser.java:229)
         at com.icesoft.faces.webapp.parser.Parser.parse(Parser.java:162)
         at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:464)
         at com.icesoft.faces.application.D2DViewHandler.renderView(D2DViewHandler.java:153)
         at org.icefaces.netbeans.rave.web.ui.appbase.faces.ViewHandlerImpl.renderView(ViewHandlerImpl.java:296)
         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)
         at com.icesoft.faces.webapp.http.core.JsfLifecycleExecutor.apply(JsfLifecycleExecutor.java:17)
         at com.icesoft.faces.webapp.http.core.ReceiveSendUpdates.renderCycle(ReceiveSendUpdates.java:114)
         at com.icesoft.faces.webapp.http.core.ReceiveSendUpdates.service(ReceiveSendUpdates.java:66)
         at com.icesoft.faces.webapp.http.core.RequestVerifier.service(RequestVerifier.java:28)
         at com.icesoft.faces.webapp.http.common.standard.PathDispatcherServer.service(PathDispatcherServer.java:24)
         at com.icesoft.faces.webapp.http.servlet.MainSessionBoundServlet.service(MainSessionBoundServlet.java:160)
         at com.icesoft.faces.webapp.http.servlet.SessionDispatcher$1.service(SessionDispatcher.java:42)
         at com.icesoft.faces.webapp.http.servlet.ThreadBlockingAdaptingServlet.service(ThreadBlockingAdaptingServlet.java:19)
         at com.icesoft.faces.webapp.http.servlet.EnvironmentAdaptingServlet.service(EnvironmentAdaptingServlet.java:63)
         at com.icesoft.faces.webapp.http.servlet.SessionDispatcher.service(SessionDispatcher.java:62)
         at com.icesoft.faces.webapp.http.servlet.SessionVerifier.service(SessionVerifier.java:22)
         at com.icesoft.faces.webapp.http.servlet.PathDispatcher.service(PathDispatcher.java:23)
         at com.icesoft.faces.webapp.http.servlet.MainServlet.service(MainServlet.java:153)
         ... 14 more
 


This exception is thrown when i try to acces a page named "distributor".
Here is my faces-config.xml (please, don't mind my terrible CodeConventions)

Code:
 ...
 <navigation-case>
             <from-outcome>distributor</from-outcome>
             <to-view-id>/anagrafiche/distributor/index.jsp</to-view-id>
         </navigation-case>
 ...
 <managed-bean>
         <managed-bean-name>anagrafiche$distributor$index</managed-bean-name>
         <managed-bean-class>backoffice.anagrafiche.distributor.index</managed-bean-class>
         <managed-bean-scope>request</managed-bean-scope>
     </managed-bean>
     <managed-bean>
         <managed-bean-name>anagrafiche$distributor$list</managed-bean-name>
         <managed-bean-class>backoffice.anagrafiche.distributor.list</managed-bean-class>
         <managed-bean-scope>request</managed-bean-scope>
     </managed-bean>
     <managed-bean>
         <managed-bean-name>anagrafiche$distributor$AddressFragment</managed-bean-name>
         <managed-bean-class>backoffice.anagrafiche.distributor.AddressFragment</managed-bean-class>
         <managed-bean-scope>request</managed-bean-scope>
     </managed-bean>
 ...
 


I googled for a couple of hours and don't find anything usefull.

Do you have some idea of what happens here? I think it may be a configuration error on my faces-config but it seems to be ok.
Got it!

the message-bundle tag must be inside the application section of the faces-config.xml file

Thanks anyways guys
 
Profile for gbuffolino -> Messages posted by gbuffolino [18] Go to Page: 1, 2 Next 
Go to:   
Powered by JForum 2.1.7ice © JForum Team