myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "H. Swaczinna" <swaczi...@wlp-systems.de>
Subject Re: [Tobago] <jsp:forward> in Tobago pages
Date Tue, 03 Apr 2007 13:13:10 GMT
<head></head><body>Hi Madan,<br><br>I had the same error after
upgrading. Make sure there're no Tobago 1.0.10 jar in your<br>classpath and war file
and try a cleanbuild.<br><br>"outcome != null" simply means return a not null
string value from your action method.<br><br>public String action() {<br>&nbsp;
return "foo";<br>}<br><br>Regards<br>Helmut<br><br><table
width="100%"><tbody><tr><td bgcolor="blue" width="5">&nbsp;</td><td><style
type="text/css"></style><div style="font-family: verdana,helvetica,sans-serif;
font-size: 10pt;"><div style="font-family: verdana,helvetica,sans-serif; font-size:
10pt;">Hi Volker,<br><br>Was getting this error when replaced Tobago 1.0.10
with Tobago 1.0.11 Snapshot<br><br>java.lang.NoSuchMethodError: org.apache.myfaces.tobago.ajax.api.AjaxUtils.getAja<br>xComponents(Ljavax/faces/context/FacesContext;)Ljava/util/List;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
at org.apache.myfaces.tobago.lifecycle.RenderResponseExecutor.execute(Re<br>nderResponseExecutor.java:45)<br><br>MyFaces
api and impl are 1.1.5 v.<br><br>And can u plz tell how can i use " outcome !=
null in the action to invoke standard jsf navigation, also on ajax requests" .<br><br>Thnx
<br>Regards,<br>Madan<br><br><div>----- Original Message ----<br>From:
madan chowdary
 &lt;madan_narra@yahoo.com&gt;<br>To: MyFaces Discussion &lt;users@myfaces.apache.org&gt;<br>Sent:
Tuesday, 3 April, 2007 1:07:00 PM<br>Subject: Re: [Tobago] &lt;jsp:forward&gt;
in Tobago pages<br><br><div style="font-family: verdana,helvetica,sans-serif;
font-size: 10pt;"><div style="font-family: verdana,helvetica,sans-serif; font-size:
10pt;">Hi Volker,<br><br>Can u send me the code syntax where to place this
' outcome != null '<br><br>Madan<br><br><div>----- Original
Message ----<br>From: Volker Weber &lt;v.weber@inexso.de&gt;<br>To: MyFaces
Discussion &lt;users@myfaces.apache.org&gt;<br>Sent: Tuesday, 3 April, 2007
12:47:57 PM<br>Subject: Re: [Tobago] &lt;jsp:forward&gt; in Tobago pages<br><br><div>Hi,<br><br>in
1.0.11-snapshot you can just do a outcome != null in the action to<br>invoke standard<br>jsf
navigation, also on ajax requests.<br><br>Regards,<br>&nbsp;&nbsp;Volker<br><br>2007/4/3,
 madan chowdary &lt;madan_narra@yahoo.com&gt;:<br>&gt;<br>&gt;
Hi Volker,<br>&gt;<br>&gt; I am doing this request via
 Ajax.<br>&gt;<br>&gt; I tried to forward to the particular page based
on the condition from the<br>&gt; controller, but that doesn't work as this is via
Ajax.<br>&gt;<br>&gt; I am refreshing a sheet which has some products
in it and a checkbox to<br>&gt; delete.<br>&gt;<br>&gt; I select
the checkbox and submit a button which does a refresh on the panel.<br>&gt;<br>&gt;
If i have only one product and checks for that to delete and submit the<br>&gt;
button, then it deletes it and then displays an empty sheet.<br>&gt;<br>&gt;
This sheet is placed in a jsp which includes many other fields in that.<br>&gt;<br>&gt;
So i cant show a message that u don't have any items at the bottom of the<br>&gt;
page making all the fields in active state.<br>&gt;<br>&gt; so i need
to forward to another page for displaying this message.<br>&gt;<br>&gt;
Thats the reason i am in need of a forward.<br>&gt;<br>&gt; Cant this
be done or have any other means to do this..<br>&gt;<br>&gt;
 Regards,<br>&gt; Madan<br>&gt;<br>&gt; ----- Original Message
----<br>&gt; From: Volker Weber &lt;v.weber@inexso.de&gt;<br>&gt;
To: MyFaces Discussion &lt;users@myfaces.apache.org&gt;<br>&gt; Sent: Monday,
2 April, 2007 12:46:52 PM<br>&gt; Subject: Re: [Tobago] &lt;jsp:forward&gt;
in Tobago pages<br>&gt;<br>&gt; Hi Madan,<br>&gt;<br>&gt;
you can't, but you can switch the output in your action method based<br>&gt; on
the condition.<br>&gt;<br>&gt; Regards,<br>&gt;&nbsp;&nbsp;
Volker<br>&gt;<br>&gt; 2007/4/2, madan chowdary &lt;madan_narra@yahoo.com&gt;:<br>&gt;
&gt;<br>&gt; &gt; Hi David,<br>&gt; &gt;<br>&gt;
&gt; thnx for the hint, but will this satisfy my question..<br>&gt; &gt;<br>&gt;
&gt; this is my navigation case in faces-config.xml<br>&gt; &gt;<br>&gt;
&gt; &lt;navigation-case&gt;<br>&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;from-outcome&gt;goto_checkout&lt;/from-outcome&gt;<br>&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;
 &lt;to-view-id&gt;/jsp/checkout.jsp&lt;/to-view-id&gt;<br>&gt;
&gt; &lt;/navigation-case&gt;<br>&gt; &gt;<br>&gt; &gt;
so how could i use this to forward to "goto_checkout"&nbsp;&nbsp;based upon a<br>&gt;
&gt; condition as such.<br>&gt; &gt;<br>&gt; &gt;&nbsp;&nbsp;&lt;tc:panel
rendered="#{!shoppingCart.cartContainsItems}"&gt;<br>&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;f:verbatim&gt;<br>&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;jsp:forward<br>&gt; &gt; page="&lt;%=request.getContextPath()%&gt;/jsp/checkout.faces"/&gt;<br>&gt;
&gt;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/f:verbatim&gt;<br>&gt;
&gt; &lt;/tc:panel&gt;<br>&gt; &gt;<br>&gt; &gt; Madan<br>&gt;
&gt;<br>&gt; &gt; ----- Original Message ----<br>&gt; &gt;
From: David Steinkopff &lt;david.steinkopff@googlemail.com&gt;<br>&gt; &gt;
To: MyFaces Discussion &lt;users@myfaces.apache.org&gt;<br>&gt; &gt;
Sent: Monday, 2 April, 2007 12:11:55 PM<br>&gt; &gt; Subject: Re: [Tobago] &lt;jsp:forward&gt;
in Tobago
 pages<br>&gt; &gt;<br>&gt; &gt; Hi Madan,<br>&gt; &gt;
my hint for you<br>&gt; &gt; faces-config.xml -&gt; navigation rules<br>&gt;
&gt; Regards<br>&gt; &gt; David<br>&gt; &gt;<br>&gt;
&gt; 2007/3/31, madan chowdary &lt;madan_narra@yahoo.com &gt;:<br>&gt;
&gt; &gt;<br>&gt; &gt; &gt;<br>&gt; &gt; &gt;<br>&gt;
&gt; &gt; Hi All,<br>&gt; &gt; &gt;<br>&gt; &gt; &gt;
Is there any way to do such kind of thing...?<br>&gt; &gt; &gt;<br>&gt;
&gt; &gt; Madan<br>&gt; &gt; &gt;<br>&gt; &gt; &gt;<br>&gt;
&gt; &gt;<br>&gt; &gt; &gt; ----- Original Message ----<br>&gt;
&gt; &gt; From: madan chowdary &lt;madan_narra@yahoo.com&gt;<br>&gt;
&gt; &gt; To: MyFaces Discussion &lt; users@myfaces.apache.org&gt;<br>&gt;
&gt; &gt; Sent: Friday, 30 March, 2007 2:57:27 PM<br>&gt; &gt; &gt;
Subject: [Tobago] &lt;jsp:forward&gt; in Tobago pages<br>&gt; &gt; &gt;<br>&gt;
&gt; &gt;<br>&gt; &gt; &gt;<br>&gt; &gt; &gt;
Hi All,<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; I need to
forward to a page based upon a
 condition that i need to check.<br>&gt; &gt; &gt;<br>&gt; &gt;
&gt; I was doing some thing like this,<br>&gt; &gt; &gt;<br>&gt;
&gt; &gt; &lt;tc:panel<br>&gt; rendered="#{!shoppingCart.cartContainsItems}"&gt;<br>&gt;
&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp; &lt;f:verbatim&gt;<br>&gt;
&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;jsp:forward<br>&gt; &gt; page="&lt;%=request.getContextPath()%&gt;/jsp/checkout.faces"/&gt;<br>&gt;
&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/f:verbatim&gt;<br>&gt;
&gt; &gt; &lt;/tc:panel&gt;<br>&gt; &gt; &gt;<br>&gt;
&gt; &gt; But this doesn't work as am using scriplets.<br>&gt; &gt;
&gt;<br>&gt; &gt; &gt; But i need to a forward to the URL as specified
above.<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; How can i achieve
this ?<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; Regards,<br>&gt;
&gt; &gt; Madan<br>&gt; &gt; &gt;<br>&gt; &gt; &gt;
________________________________<br>&gt; &gt;&nbsp;&nbsp;Here's a new
way to find what you're looking for - Yahoo!
 Answers<br>&gt; &gt; &gt;<br>&gt; &gt; &gt;<br>&gt;
&gt; &gt; ________________________________<br>&gt; &gt;&nbsp;&nbsp;Here's
a new way to find what you're looking for - Yahoo! Answers<br>&gt; &gt;<br>&gt;
&gt;<br>&gt; &gt;<br>&gt; &gt;&nbsp;&nbsp;________________________________<br>&gt;
&gt;&nbsp;&nbsp;Here's a new way to find what you're looking for - Yahoo! Answers<br>&gt;<br>&gt;<br>&gt;&nbsp;&nbsp;________________________________<br>&gt;&nbsp;&nbsp;Here's
a new way to find what you're looking for - Yahoo! Answers<br></div></div><br></div></div><br>
	

	
		<hr size="1"> 
Here’s a new way to find what you're looking for - <a href="http://us.rd.yahoo.com/mail/in/yanswers/*http://in.answers.yahoo.com/">Yahoo!
Answers</a> </div><br></div></div><br>
	

	
		<hr size="1"> 
Here’s a new way to find what you're looking for - <a href="http://us.rd.yahoo.com/mail/in/yanswers/*http://in.answers.yahoo.com/">Yahoo!
Answers</a> </td></tr></tbody></table></body>

Mime
View raw message