Hi David,
I need more help...

*My new window is:*
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
   pageEncoding="ISO-8859-1" %>
<%@ taglib uri="http://java.sun.com/jsf/html"; prefix="h"%>
<%@ taglib uri="http://java.sun.com/jsf/core"; prefix="f"%>
<%@ taglib uri="http://myfaces.apache.org/tomahawk"; prefix="t"%>
<%@ taglib uri="http://myfaces.apache.org/sandbox"; prefix="s"%>

<t:div >
<t:panelGroup>
 <t:outputText value="Confirm Windown" />
</t:panelGroup>

<h:form id="confirm">
 <t:div >
  <h:panelGrid columns="2" >
   <h:panelGrid columns="1" >
    teste da mensagem
   </h:panelGrid>
  </h:panelGrid>
 </t:div>

 <t:div styleClass="actions">
  <h:panelGrid columns="2" >
   <h:commandButton id="ok"     action="#{bean.delete}"  value="ok"
/>
   <h:commandButton id="cancel" action="#{bean.cancel}"  value="cancel"
/>
  </h:panelGrid>
 </t:div>
</h:form>
</t:div>

*So, I do just that in my Itm.jsf:*
<h:commandButton id="delete" action="#{bean.confirmDelete}" value="Delete"
disabled="#{empty bean.idSelected}"  />
*Into my .xml:*
<navigation-case>
  <from-outcome>confirmDelete</from-outcome>
  <to-view-id>/common/confirm.jsp</to-view-id>
</navigation-case>
<navigation-case>
  <from-outcome>cancel</from-outcome>
  <to-view-id>/item.jsp</to-view-id>
</navigation-case>
<navigation-case>
  <from-outcome>delete</from-outcome>
  <to-view-id>/item.jsp</to-view-id>
</navigation-case>

Into my class, I just made teh test and redirect to the possibilities of
confirm ok or cancel.

But, I'm not sure, wiht what I realy must all do into my item.jsf ?

I nedd to specifie one form, corrext, but were ? How exactly ?

Thanks,
Carla

Reply via email to