You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-user@portals.apache.org by James Wang <to...@yahoo.com> on 2002/09/02 09:14:21 UTC

why i cant to go to buildNormalContext() after i run doInsert() method in Action?

i wrote a portlet,and insert a form data and then i
want to go to the normal,original screen of the
portlet.

the form is like:
<form action="$jlink">
  ......
  <input type="submit" name="eventSubmit_doInsert()">
</form>

in my action.java,
......
protected void buildNormalContext(VelocityPortlet
portlet, Context context, RunData rundata) {
...
}

protected void doInsert(VelocityPortlet portlet,
Context context, RunData rundata) {
...
}

after the action run doInsert() method,the porlet
doesn't go to buildNormalContext() method,

and i add the sentence:
   setTemplate(data,"buildnorml.vm");
in doInsert() method,but it cant run yet!buildnormal 
is default vm of the portlet and is the default screen
which is loaded in buildNormalContext() method.

what can i do?





__________________________________________________
Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes
http://finance.yahoo.com

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: why i cant to go to buildNormalContext() after i run doInsert() method in Action?

Posted by James Wang <to...@yahoo.com>.
OH! i found the way,just in doInsert(),add the
following:
   VelocityPortlet portlet =
(VelocityPortlet)context.get("portlet");
   buildNormalContext(portlet,context,data);





--- James Wang <to...@yahoo.com> wrote:
> i wrote a portlet,and insert a form data and then i
> want to go to the normal,original screen of the
> portlet.
> 
> the form is like:
> <form action="$jlink">
>   ......
>   <input type="submit"
> name="eventSubmit_doInsert()">
> </form>
> 
> in my action.java,
> ......
> protected void buildNormalContext(VelocityPortlet
> portlet, Context context, RunData rundata) {
> ...
> }
> 
> protected void doInsert(VelocityPortlet portlet,
> Context context, RunData rundata) {
> ...
> }
> 
> after the action run doInsert() method,the porlet
> doesn't go to buildNormalContext() method,
> 
> and i add the sentence:
>    setTemplate(data,"buildnorml.vm");
> in doInsert() method,but it cant run yet!buildnormal
> 
> is default vm of the portlet and is the default
> screen
> which is loaded in buildNormalContext() method.
> 
> what can i do?
> 
> 
> 
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Finance - Get real-time stock quotes
> http://finance.yahoo.com
> 
> --
> To unsubscribe, e-mail:  
>
<ma...@jakarta.apache.org>
> For additional commands, e-mail:
> <ma...@jakarta.apache.org>
> 


__________________________________________________
Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes
http://finance.yahoo.com

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>