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

thanks, this workaround helped me to solve my problem =]
Hi,

right now I'm facing a little problem... here I try to invalidate the whole HttpSession (and after forwarding to another page).

the relevant code:

Code:
      FacesContext context = FacesContext.getCurrentInstance();
      HttpSession session = (HttpSession) context.getExternalContext().getSession(true);
             session.invalidate();
 


then, BlockingServlet throws this Exception:

Code:
 17:19:35,265 ERROR [[Blocking Servlet]] Servlet.service() for servlet Blocking Servlet threw exception
 java.lang.IllegalStateException: getAttribute: Session already invalidated
         at org.apache.catalina.session.StandardSession.getAttribute(StandardSession.java:1011)
         at org.apache.catalina.session.StandardSessionFacade.getAttribute(StandardSessionFacade.java:109)
         at com.icesoft.faces.context.SessionMap.getAttribute(SessionMap.java:53)
         at com.icesoft.faces.context.AbstractAttributeMap.get(AbstractAttributeMap.java:149)
         at org.apache.myfaces.portlet.PortletUtil.isPortletRequest(PortletUtil.java:45)
         at org.apache.myfaces.application.NavigationHandlerImpl.handleNavigation(NavigationHandlerImpl.java:81)
         at org.apache.myfaces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:84)
         at javax.faces.component.UICommand.broadcast(UICommand.java:106)
         at javax.faces.component.UIViewRoot._broadcastForPhase(UIViewRoot.java:94)
         at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:168)
         at org.apache.myfaces.lifecycle.LifecycleImpl.invokeApplication(LifecycleImpl.java:343)
         at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:86)
         at com.icesoft.faces.webapp.xmlhttp.BlockingServlet.renderCycle(BlockingServlet.java:456)


So, what can I do to resolve this?

Sorry if this is already on JIRA...
First, test it with 1.5.3 maybe It works, if not... I'ts probably a bug
this exception also appear not using seam, in this case creating a custom validator:
http://www.icefaces.org/JForum/posts/list/4105.page


are you using a Development build?
try with version 1.5.3
Hi rmayhew,

on the popup, just change:
Code:
 <ice:panelGroup>
             <ice:outputText value="#{row.value}"/>
         </ice:panelGroup>


to:

Code:
<ice:panelGroup>
             <ice:inputText value="#{row.value}"/>
         </ice:panelGroup>


It seems that the problem doesn't occur with the outputText, but if you change it to inputText, you'll see that the inputText on the popup gets frozen, and that bugs the dataTable's values too...

Thanks!
I'm goin' to explain,

I have a dataTable with rowSelector, when I select something on this dataTable, a panelPopup appear, with the details of the selected row.
when I try to click on another row, the value of the previous selected row is passed to this one, and if I click on another, It'll be copied for that row too.

just ask me, if you still couldn't reproduce this, I can make a exemplo for you, or maybe you can download the file that I've attached in the head of this topic.

Thanks!
I'm thinking in a way, that I can recover a backing bean instance on runtime...
Let me explaim...

Think that I have a page and two backing beans..
I want to the backing bean number 1, have visibility on that second backing bean, recovering the instance of the back number 2 at runtime...

I'm just wondering if a could do that on icefaces, or maybe someone can guide me to find a solution in Jsf itself... or if someone made something like this...

Sorry if I'm posting in the wrong place, just searching for a solution for this idea!


Thanks!

It worked nice now!
maybe there's a problem with my network...
I'll look forward to solve it...


Thanks!
Hi,

When attempting to check out:

Code:
Error: PROPFIND request failed on '/'  
 Error: PROPFIND of '/': 405 Method Not Allowed (http://anonsvn.icefaces.org)  
 


and

Code:
Error: PROPFIND request failed on '/'  
 Error: PROPFIND of '/': 302 Moved Temporarily (http://sventon.icefaces.org)  
 


I've tried with subeclipse and with TortoiseSVN and get the same error.

don't know if It's my mistake...

Please, any idea?
Hi zark,

Why use action instead of actionListener? is some good practice?
because my page works as expected using the actionListener...

I don't need to refresh the page itself, since the datatable renders it alone and modifies the values on the datatable.

Thanks!

Hi,

I've followed your instructions and worked normally to me...
when I click the "selectAll" the dataTable work as expected, turning all the checkboxes to true.

This is some part of my code... let me know if You didn't make it to work.

Code:
		<ice:dataTable id="Table" value="#{myTable.list}" var="item">
 			<ice:column>
 				<f:facet name="header">
 					<ice:outputText value="Selects" />
 				</f:facet>
 				<ice:selectBooleanCheckbox value="#{item.selected}" partialSubmit="true" />
 					
 			</ice:column>
 			<ice:column>
 				<f:facet name="header">
 					<ice:outputText value="Nome" />
 				</f:facet>
 				<ice:outputText value="#{item.name}" />
 			</ice:column>
 		</ice:dataTable>
 	
 		<ice:commandButton value="SelectAll" actionListener="#{myTable.selectAll}" />
I've found the same issue...
just add an "icon="""

your ice:menuItem should be like this

Code:
<ice:menuItem value="myMenuItem" id="menuItem"
 				 	icon=""
 					actionListener="#{menuBar.myListener}" />



in my case It worked and fixed "the space"...

I'm using Firefox 2.0 and the download works for me..
never had this problem...

Have You tried to update your web browser?
sorry for bringing this back..
but I didn't manage to make the "include" work...

as I said before, I only find problems when using with Seam, I've made a test using sonly IceFaces and It worked.

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