voyent
Messages posted by: Andreh  XML
Profile for Andreh -> Messages posted by Andreh [33] Go to Page: Previous  1, 2, 3 Next 
Author Message
Hi,

Did you check if the images really exist in your app?
or if the imagesDir is correct...

I think you're missing then.

Hi,
I tried the accordion Demo, and I think It's pretty cool!
I like it a lot...

Thanks!
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!

Did someone make the autocomplete work using seam?


I'm tryin' to make the autocomplete from the component showcase work work with seam... but It doesn't...

I made it work alone using only IceFaces, but not with seam...


doesn't show any exceptions.. nothing.. just a blackline where the autocomplete popup should appear...

any idea?
I didn't understand what's the link of "autoCompleteBean.list"
with the matchesList on the Autocomplete Showcase example...

I noticed that I have this below. But still missing the link between the two lists(matchesList and autoCompleteBean.list)... How does It work?


Code:
    public List getList() {
         return matchesList;
     }


I'm having some trouble trying to make it work on Seam... I didn't get any Exceptions but doesn't appear nothing(just appear a blackline, when the autocomplete should appear) on the selectInputText...

Code:
<ice:selectInputText rows="6" width="300" listVar="city"
 			valueChangeListener="#{autoCompleteBean.updateList}"
 			listValue="#{autoCompleteBean.list}">
 			<f:facet name="selectInputText">
 				<ice:panelGrid columns="3" style="margin-bottom:-20px;"
 					columnClasses="cityCol,stateCol,zipCol">
 					<ice:outputText value="#{city.city}" />
 					<ice:outputText value="#{city.state}" />
 					<ice:outputText value="#{city.zip}" />
 				</ice:panelGrid>
 			</f:facet>
 		</ice:selectInputText>


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...

Here -> http://www.icefaces.org/main/resources/tutorials.iface

Sorry!
now I figured it out...

I just forgot to uncomment this:

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


Thanks!
 
Profile for Andreh -> Messages posted by Andreh [33] Go to Page: Previous  1, 2, 3 Next 
Go to:   
Powered by JForum 2.1.7ice © JForum Team