voyent
Messages posted by: Andreh  XML
Profile for Andreh -> Messages posted by Andreh [26] Go to Page: Previous  1, 2
Author Message
I'm having a behavior where the "state.render()" doesn't act as expected...

got this StackTrace below when calling state.render()
and I've read something about calling render directly is dangerous, and IceFaces has more secure methods to use like RenderManager(I tried RenderManger but I had no luck...)

I try to follow the TimeZone demo to make ajax push, but I couldn't...

So, Does someone have another solution for this DataTable bug?


Code:
05:49:49,479 ERROR [TxPolicy] IllegalStateException while setting transaction for rollback only
 java.lang.IllegalStateException: Transaction has terminated TransactionImpl:XidImpl[FormatId=257, GlobalId=exit/30, BranchQual=, localId=30]
 at org.jboss.tm.TransactionImpl.lock(TransactionImpl.java:834)
 at org.jboss.tm.TransactionImpl.setRollbackOnly(TransactionImpl.java:669)
 at org.jboss.aspects.tx.TxPolicy.setRollbackOnly(TxPolicy.java:212)
 at org.jboss.ejb3.tx.Ejb3TxPolicy.handleInCallerTx(Ejb3TxPolicy.java:87)
 at org.jboss.aspects.tx.TxPolicy.invokeInCallerTx(TxPolicy.java:130)
 at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:201)
 at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
 at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76)
 at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
 at org.jboss.ejb3.stateful.StatefulInstanceInterceptor.invoke(StatefulInstanceInterceptor.java:83)
 at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
 at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:77)
 at org.jboss.ejb3.security.Ejb3AuthenticationInterceptor.invoke(Ejb3AuthenticationInterceptor.java:131)
 at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
 at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:47)
 at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
 at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
 at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
 at org.jboss.ejb3.stateful.StatefulContainer.localInvoke(StatefulContainer.java:203)
 at org.jboss.ejb3.stateful.StatefulLocalProxy.invoke(StatefulLocalProxy.java:98) 


I've found a way =D and now It's fixed...
just had to refresh the FacesState!

this is my solution:

Code:
PersistentFacesState state = PersistentFacesState.getInstance();	
 		
 		try {
 			state.render();
 		} catch (RenderingException e) {
 			e.printStackTrace();
 		}
 


Thanks!
Sorry... I think I've sended the wrong SortDataTable.java, now I'm sending the right one... I tested now and It's working, but the bug in the dataTable continues...


Code:
<managed-bean>
 		<managed-bean-name>sortdb</managed-bean-name>
 		<managed-bean-class>
 			test.SortDataTable
 		</managed-bean-class>
 		<managed-bean-scope>session</managed-bean-scope>
 	</managed-bean>		

Did someone found any solution? or even got the same thing as me?


Thanks!
Hi,

I think I've found a bug using datatable and popup together...

look at this:

Code:
 	<ice:form>
 		<ice:dataTable id="pessoas" value="#{sortdb.list}" var="person"
 			columnClasses="tableCol">
 			<ice:column>
 				<ice:rowSelector value="#{person.select}" multiple="false"
 					selectionListener="#{sortdb.rowSelection}" />
 				<f:facet name="header">
 					<ice:outputText value="Nome" />
 				</f:facet>
 				<ice:outputText value="#{person.nome}" />
 			</ice:column>
 			<ice:column>
 				<f:facet name="header">
 					<ice:outputText value="Idade" />
 				</f:facet>
 				<ice:outputText value="#{person.idade}" />
 			</ice:column>
 			<ice:column>
 				<f:facet name="header">
 					<ice:outputText value="Email" />
 				</f:facet>
 				<ice:outputText value="#{person.email}" />
 			</ice:column>
 		</ice:dataTable>
 
 
 		<ice:dataTable id="selectList" value="#{sortdb.selectedl}"
 			var="select" columnClasses="tableCol">
 			<ice:column>
 				<f:facet name="header">
 					<ice:outputText value="Nome" />
 				</f:facet>
 				<ice:outputText value="#{select.nome}" />
 			</ice:column>
 			<ice:column>
 				<f:facet name="header">
 					<ice:outputText value="Idade" />
 				</f:facet>
 				<ice:outputText value="#{select.idade}" />
 			</ice:column>
 			<ice:column>
 				<f:facet name="header">
 					<ice:outputText value="Email" />
 				</f:facet>
 				<ice:outputText value="#{select.email}" />
 			</ice:column>
 		</ice:dataTable>
                 		<ice:panelPopup id="popup" visible="true" rendered="true"
 			style="z-index:1001; width: 300px;">
 			<f:facet name="header">
 				<ice:panelGrid width="100%" cellpadding="0" cellspacing="0"
 					columns="2" style="text-align: center;">
 					<ice:outputText style="color: #FFFFFF;" value="Entrada de dados" />
 				</ice:panelGrid>
 			</f:facet>
 
 			<f:facet name="body">
 				<ice:panelGrid width="100%" cellpadding="0" cellspacing="0"
 					columns="1">
 
 					<ice:dataTable id="edit" value="#{sortdb.selectedl}" var="items">
 						<ice:column>
 							<f:facet name="header">
 								<ice:outputText value="Name" />
 							</f:facet>
 							<ice:inputText value="#{items.nome }" />
 						</ice:column>
 						<ice:column>
 							<f:facet name="header">	
 								<ice:outputText value="idade" />
 							</f:facet>
 							<ice:inputText value="#{items.idade }"	/>
 						</ice:column>		
 					</ice:dataTable>
 				</ice:panelGrid>
 			</f:facet>
 
 		</ice:panelPopup>
 	</ice:form>
 
 
 


So, when I click in a row the popup updates, but when I click and another row, the value of the previous row, pass to this one... Confusing isn't it?
this only happen, using a DataTable with a Popup...

anyone have any idea of what could it be? In the beggining I thought that was a Seam issue, and try it with IceFaces alone... but the problem continues...

I will attach my backing beans... and the .jspx page...

Thanks!


Hi Philip,

I made a mistake when I said my app directiories...
is "component" not "components"

I couldn't include the page using IceFaces + seam, and using IceFaces alone
I had no problem... But still I couldn't make it work with seam...
is this a Seam issue?

Thanks
Hi,

When I include the page on another, the page doesn't appear, no warnings and no Exceptions... I've read some topics about this, but I had no luck with them... Alone my table.jspx works perfectly but not when I include it...
and I use JBoss Seam with IceFaces.

this is how my directories are organized:
Code:
 view
 -components
                  -tables
                           -table.jspx
 tableIndex.jspx
 


tableIndex.jspx
Code:
<f:view xmlns:h="http://java.sun.com/jsf/html"
 	xmlns:f="http://java.sun.com/jsf/core"
 	xmlns:jsp="http://java.sun.com/JSP/Page"
 	xmlns:ice="http://www.icesoft.com/icefaces/component">
 
 	<ice:outputDeclaration doctypeRoot="HTML"
 		doctypePublic="-//W3C//DTD HTML 4.01 Transitional//EN"
 		doctypeSystem="http://www.w3.org/TR/html4/loose.dtd" />
 
 	<html>
 	<head>
 	<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"></meta>
 	<title>Data Table</title>
 
 	</head>
 	<body>
 		<jsp:directive.include file="./component/tables/table.jspx" />
 	</body>
 	</html>
 </f:view>
 


table.jspx
Code:
 <ice:form
         xmlns:h="http://java.sun.com/jsf/html"
         xmlns:f="http://java.sun.com/jsf/core"
         xmlns:ice="http://www.icesoft.com/icefaces/component">
 
 	<ice:outputText value="Testing..." />
 
 
 </ice:form>
 


Any idea?
Thanks!

Thanks!!

Tutorial -> http://facestutorials.icefaces.org/tutorial/tree-tutorial.html

I'm following the tutorial, but in the images doesn't appear the "+" on the tree node... But seeing the demo, it appears...

Demo -> http://facestutorials.icefaces.org/tree-basic-tutorial/

How can I fix this? not to show the "+" on the nodes...

but, I've already tried to put this in the web.xml...

I noticed that when I comment this part, I don't get that Exception above...
any idea of what could it be?
Code:
 <application>
 <view-handler>
 com.icesoft.faces.facelets.D2DFaceletViewHandler
 </view-handler>
 </application>


and I use Eclipse WTP with the IceFaces plugin, so is there a bug on the plugin?

thanks!
I'm getting started with IceFaces, and I'm creating a little project here...

But I get this stacktrace, Does someone have an idea of what could It be?
=/

Thanks!

Code:
15:01:43,328 ERROR [D2DFaceletViewHandler] Problem in renderResponse: replacement
 java.lang.NullPointerException: replacement
 	at java.util.regex.Matcher.replaceFirst(Unknown Source)
 	at java.lang.String.replaceFirst(Unknown Source)
 	at com.icesoft.faces.facelets.D2DFaceletViewHandler.getRenderedViewId(D2DFaceletViewHandler.java:231)
 	at com.icesoft.faces.facelets.D2DFaceletViewHandler.renderResponse(D2DFaceletViewHandler.java:245)
 	at com.icesoft.faces.application.D2DViewHandler.renderView(D2DViewHandler.java:149)
 	at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:107)
 	at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:268)
 	at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:137)
 	at com.icesoft.faces.webapp.xmlhttp.PersistentFacesServlet.service(PersistentFacesServlet.java:390)
 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
 	at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
 	at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463)
 	at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398)
 	at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
 	at org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:688)
 	at org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:658)
 	at org.apache.jsp.index_jsp._jspService(index_jsp.java:49)
 	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
 	at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:334)
 	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
 	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
 	at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
 	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
 	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
 	at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
 	at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
 	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
 	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
 	at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
 	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
 	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
 	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
 	at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
 	at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
 	at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
 	at java.lang.Thread.run(Unknown Source)
 
Profile for Andreh -> Messages posted by Andreh [26] Go to Page: Previous  1, 2
Go to:   
Powered by JForum 2.1.7ice © JForum Team