voyent
Messages posted by: hurzeler  XML
Profile for hurzeler -> Messages posted by hurzeler [33] Go to Page: 1, 2, 3 Next 
Author Message
Hi there,
I just tried to migrate from seam-1.2.0GA to seam-2.0.0_BETA1 with not much success. I just wondered if someone else tried. It seems at that the com.sun.faces.lifecycle.RestoreViewPhase complains.

The same example worked under seam-1.2.0GA. I followed the migration guide with the exception that I left :
[code]
<view-handler>
com.icesoft.faces.facelets.D2DSeamFaceletViewHandler
</view-handler>
[/code]
in faces-config.xml

Should this work?

JBoss 4.2.1GA jdk1.6_02

Error message:

[code]
14:07:28,640 WARN [lifecycle] executePhase(RESTORE_VIEW 1,com.icesoft.faces.context.BridgeFacesContext@13db2fd) threw exception
javax.faces.application.ViewExpiredException: viewId:/pages/home.seam - View /pages/home.seam could not be restored.
at com.sun.faces.lifecycle.RestoreViewPhase.execute(RestoreViewPhase.java:187)
at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
at com.icesoft.faces.webapp.http.core.PageServer$1.respond(PageServer.java:25)
at com.icesoft.faces.webapp.http.servlet.ServletRequestResponse.respondWith(ServletRequestResponse.java:125)
at com.icesoft.faces.webapp.http.core.PageServer.service(PageServer.java:31)
at com.icesoft.faces.webapp.http.servlet.BasicAdaptingServlet.service(BasicAdaptingServlet.java:16)
at com.icesoft.faces.webapp.http.servlet.SingleViewServlet.service(SingleViewServlet.java:45)
at com.icesoft.faces.webapp.http.servlet.PathDispatcher$Matcher.serviceOnMatch(PathDispatcher.java:52)
at com.icesoft.faces.webapp.http.servlet.PathDispatcher.service(PathDispatcher.java:29)
at com.icesoft.faces.webapp.http.servlet.MainSessionBoundServlet.service(MainSessionBoundServlet.java:97)
at com.icesoft.faces.webapp.http.servlet.SessionDispatcher.service(SessionDispatcher.java:35)
at com.icesoft.faces.webapp.http.servlet.PathDispatcher$Matcher.serviceOnMatch(PathDispatcher.java:52)
at com.icesoft.faces.webapp.http.servlet.PathDispatcher.service(PathDispatcher.java:29)
at com.icesoft.faces.webapp.http.servlet.MainServlet.service(MainServlet.java:85)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:580)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:619)
14:07:28,687 ERROR [[Persistent Faces Servlet]] Servlet.service() for servlet Persistent Faces Servlet threw exception
javax.faces.application.ViewExpiredException: viewId:/pages/home.seam - View /pages/home.seam could not be restored.
at com.sun.faces.lifecycle.RestoreViewPhase.execute(RestoreViewPhase.java:187)
at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
at com.icesoft.faces.webapp.http.core.PageServer$1.respond(PageServer.java:25)
at com.icesoft.faces.webapp.http.servlet.ServletRequestResponse.respondWith(ServletRequestResponse.java:125)
at com.icesoft.faces.webapp.http.core.PageServer.service(PageServer.java:31)
at com.icesoft.faces.webapp.http.servlet.BasicAdaptingServlet.service(BasicAdaptingServlet.java:16)
at com.icesoft.faces.webapp.http.servlet.SingleViewServlet.service(SingleViewServlet.java:45)
at com.icesoft.faces.webapp.http.servlet.PathDispatcher$Matcher.serviceOnMatch(PathDispatcher.java:52)
at com.icesoft.faces.webapp.http.servlet.PathDispatcher.service(PathDispatcher.java:29)
at com.icesoft.faces.webapp.http.servlet.MainSessionBoundServlet.service(MainSessionBoundServlet.java:97)
at com.icesoft.faces.webapp.http.servlet.SessionDispatcher.service(SessionDispatcher.java:35)
at com.icesoft.faces.webapp.http.servlet.PathDispatcher$Matcher.serviceOnMatch(PathDispatcher.java:52)
at com.icesoft.faces.webapp.http.servlet.PathDispatcher.service(PathDispatcher.java:29)
at com.icesoft.faces.webapp.http.servlet.MainServlet.service(MainServlet.java:85)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:580)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:619)
14:07:28,687 ERROR [CachedConnectionValve] Application error: Persistent Faces Servlet did not complete its transaction
[/code]


Hello there,
What is the easiest way to overwrite the upload method of the inputFile component so that the file is written to a DB. In actual fact I would like to get a new tag inputFileDB. Is there any documentation how to do this?
Your help is appreciated thanks.
Thanks now that you are mentioning it, it seems so obvious. Sorry to have bothered you with this.
BTW

@In(create=true)
private FacesMessages fm;

does not help.
Hi,

I have written an application where I would like to inject FacesMessages such as


@In
private FacesMessages fm;


Like it is described in http://docs.jboss.com/seam/1.2.1.GA/reference/en/html/conversations.html#d0e4679

I then thought to myself that I must have the configuration wrong some how. The I did the same with the seam-comp-showcase example which runs perfectly under icefaces 1.6.0 and JBoss 4.2.1 JDK 1.6. I added the above lines to the TextFieldsBean class and also get the same error. If you know what is wrong here please let me know. Thanks for your help.

The error is:
[code]Caused by: org.jboss.seam.RequiredException: In attribute requires non-null value: textFields.fm
at org.jboss.seam.Component.getValueToInject(Component.java:1919)
at org.jboss.seam.Component.injectAttributes(Component.java:1368)
at org.jboss.seam.Component.inject(Component.java:1195)
at org.jboss.seam.interceptors.BijectionInterceptor.aroundInvoke(BijectionInterceptor.java:46)
at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:69)
at org.jboss.seam.interceptors.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:27)
at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:69)
at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:103)
at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:151)
at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:87)
at com.icesoft.icefaces.samples.showcase.components.textEntry.TextFieldsBean_$$_javassist_127.getName(TextFieldsBean_$$_javassist_127.java)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at javax.el.BeanELResolver.getValue(BeanELResolver.java:62)
at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:53)
at com.sun.faces.el.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:64)
at org.apache.el.parser.AstValue.getValue(AstValue.java:97)
at org.apache.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:186)
at com.sun.facelets.el.TagValueExpression.getValue(TagValueExpression.java:71)
... 88 more
Thanks Jack,

Would it help if I'd send you a portlet that ran under 1.5.4? You then only need to look at Icefaces and see what has changed there in order to figure out the configuration. That might make your job a little easier.
Do you have perhaps a working example so that we can try as well with our old 1.5 icefaces portlets. You obviously made some significant changes which need some insight to get them working with 1.6. But there is obviously no documentation just jet.

Thanks for your help.
I meant JBoss Portal 2.6 of course
Well has anyone tried IceFaces 1.6 with JBoss portal 1.6?
Hello,

I know JBoss is not fully supported yet under 1.6 but I had my portals kind of running under 1.5. Now I wanted to check the bug fixes on 1.6 and noticed that com.icesoft.faces.webapp.xmlhttp.PersistentFacesPortlet does not exist any more.

Hence my question is how to configure my portlets under this environment. I am interested in sample web.xml, portlet.xml and faces-config.xml.

Where is the documentation on how to configure icefaces 1.6.0 portlets?

Is there perhaps an example of a working icefaces 1.6.0 portlet for a JBoss Portal 2.6 environment?

Your help is appreciated.

BTW we had our hopes set on icefaces a while back but portlets weren't fully and still aren't fully supported but we would like to give it another go and perhapse contibute to achieve full JBoss Portal integration.
Two things:

When I change the color to "white" ie color: white; the color of the header does not change. Can you confirm that it stays black?

Secondly what does the apendix _dis refer to?
Do you perhaps have a css example (royale.css)?
Can you point me in the direction for the panelAccordion docs. I am interested in the css options.
What you can do is to put the parameter in the Seam Conversation context of course.


@Out
private int selectedId = 0;

public void rowSelection(RowSelectorEvent e)
{
log.info("rowSelection");
selectedId = resultList.get(e.getRow()).getId();

FacesContext.getCurrentInstance().getApplication()
.getNavigationHandler().handleNavigation(
FacesContext.getCurrentInstance(), null, "edit");

}
Hello there,

I would like to know how I can pass a parameter in

Code:
public void rowSelection(RowSelectorEvent e) {
  FacesContext.getCurrentInstance().getApplication().getNavigationHandler().handleNavigation(FacesContext.getCurrentInstance(), null, "details");
  }


I am using a seam Home Object that must taken id input parameter. I have a list of items in a table and when the user clicks on a row it should navigate to the edit page with an id request parameter. BTW i am using jbdl for the pageflow.

I hope you can help! Thanks
 
Profile for hurzeler -> Messages posted by hurzeler [33] Go to Page: 1, 2, 3 Next 
Go to:   
Powered by JForum 2.1.7ice © JForum Team