Hi David,

yeah i have used all these..

But in my case i need to forward to another page when there are no items in the 
cart.

The panel containing the sheet gets refreshed via ajax. and then it should 
forward to other page when there are no items in the cart, but not display a 
message there it self.

Hope u got my question..

Thnx
Madan

----- Original Message ----
From: David Steinkopff <[EMAIL PROTECTED]>
To: MyFaces Discussion <[email protected]>
Sent: Tuesday, 3 April, 2007 11:09:48 AM
Subject: Re: [Tobago] <jsp:forward> in Tobago pages

Hi Madan,

why you dont use the attribute rendered with EL? 
<tc:sheet rendered="#{ ! empty bean.list}"></tc:sheet>
<tc:out rendered="#{empty bean.list}" value="Itemlist is empty" />


Regards
David

2007/4/3, madan chowdary <[EMAIL PROTECTED]>:
Hi Volker,

I am doing this request via Ajax.

I tried to forward to the particular page based on the condition from the 
controller, but that doesn't work as this is via Ajax.


I am refreshing a sheet which has some products in it and a checkbox to delete.

I select the checkbox and submit a button which does a refresh on the panel.

If i have only one product and checks for that to delete and submit the button, 
then it deletes it and then displays an empty sheet.


This sheet is placed in a jsp which includes many other fields in that. 

So i cant show a message that u don't have any items at the bottom of the page 
making all the fields in active state.

so i need to forward to another page for displaying
 this message.

Thats the reason i am in need of a forward.

Cant this be done or have any other means to do this..

Regards,
Madan


----- Original Message ----
From: Volker Weber <[EMAIL PROTECTED]>
To: MyFaces Discussion <
[email protected]>
Sent: Monday, 2 April, 2007 12:46:52 PM

Subject: Re: [Tobago] <jsp:forward> in Tobago pages

Hi Madan,

you can't, but you can switch the output in your action method based
on the condition.

Regards,
  Volker

2007/4/2, madan chowdary <
[EMAIL PROTECTED]>:
>
> Hi David,
>
> thnx for the hint, but will this satisfy my question..

>
> this is my navigation case in faces-config.xml
>
> <navigation-case>
>    
 <from-outcome>goto_checkout</from-outcome>
>     <to-view-id>/jsp/checkout.jsp</to-view-id>
> </navigation-case>
>
> so how could i use this to forward to "goto_checkout"  based upon a

> condition as such.
>
>  <tc:panel rendered="#{!shoppingCart.cartContainsItems}">
>     <f:verbatim>
>         <jsp:forward
> page="<%=request.getContextPath
()%>/jsp/checkout.faces"/>
>     </f:verbatim>
> </tc:panel>
>
> Madan
>
> ----- Original Message ----
> From: David Steinkopff <
[EMAIL PROTECTED]>
> To: MyFaces Discussion <[email protected]>

> Sent: Monday, 2 April, 2007 12:11:55 PM
> Subject: Re: [Tobago] <jsp:forward> in Tobago
 pages
>
> Hi Madan,
> my hint for you
> faces-config.xml -> navigation rules
> Regards
> David
>
> 2007/3/31, madan chowdary <
[EMAIL PROTECTED] >:
> >
> >
> >
> > Hi All,
> >
> > Is there any way to do such kind of thing...?
> >
> > Madan
> >
> >

> >
> > ----- Original Message ----
> > From: madan chowdary <[EMAIL PROTECTED]
>
> > To: MyFaces Discussion < [email protected]>
> > Sent: Friday, 30 March, 2007 2:57:27 PM

> > Subject: [Tobago] <jsp:forward> in Tobago pages
> >
> >
> >
> > Hi All,
> >
> > I need to forward to a page based upon a condition that i need to check.

> >
> > I was doing some thing like this,
> >
> > <tc:panel
 rendered="#{!shoppingCart.cartContainsItems}">
> >     <f:verbatim>
> >         <jsp:forward
> page="<%=request.getContextPath()%>/jsp/checkout.faces"/>

> >     </f:verbatim>
> > </tc:panel>
> >
> > But this doesn't work as am using scriplets.
> >
> > But i need to a forward to the URL as specified above.

> >
> > How can i achieve this ?
> >
> > Regards,
> > Madan
> >
> > ________________________________
>  Here's a new way to find what you're looking for - Yahoo! Answers

> >
> >
> > ________________________________
>  Here's a new way to find what you're looking for - Yahoo!
 Answers
>
>
>
>  ________________________________
>  Here's a new way to find what you're looking for - Yahoo! Answers









        

        
                 
Here's a new way to find what you're looking for - Yahoo! Answers
 










                
__________________________________________________________
Yahoo! India Answers: Share what you know. Learn something new
http://in.answers.yahoo.com/

Reply via email to