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