myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From madan chowdary <madan_na...@yahoo.com>
Subject Re: [Tobago] <jsp:forward> in Tobago pages
Date Mon, 02 Apr 2007 07:12:17 GMT
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 <david.steinkopff@googlemail.com>
To: MyFaces Discussion <users@myfaces.apache.org>
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 <madan_narra@yahoo.com
>:
Hi All,

Is there any way to do such kind of thing...?

Madan


----- Original Message ----
From: madan chowdary <madan_narra@yahoo.com>
To: MyFaces Discussion <
users@myfaces.apache.org>
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
 










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