I'll give you an example of an application/portlet. We are wanting to design a simple portlet that is going to use a form text input to search for the user's username and password. If the name is found it returns a User Object containing the users data (username, password, department etc..). The User object has then got to be presented on the portlet for the user to view.
Now that you have the general idea I'll tell you where the problem comes in. When I submit my form data into the Velocity Action event I am not returning any data to the buildNormalContext method after calling my Action Event through the eventSubmit_searchUser submit button. I simple need to have somebody explain to me the flow of the data from the time the user submits until it is displayed.


Here is what I thought the flow was

Velocity template(calls buildNormalContext method)-->User presses button (calls ActionEvent)-->Data is gathered from the RunData turbine object and processed-->From that point you can place the returned data into the request attribute which is passed back to the buildNormalContext-->buildNormalContext is called again, I add my object to the context-->I display my object data in the View (Velocity template).

I have seen two examples of Action Event method both of which were different. Are the action event methods required to start with do or is like searchUser(String user) okay? Secondly do the methods need only the RunData and Context objects to be passed into it or does it need the Portlet/VelocityPortlet too. An example VelocityPortletAction subclass from somebody would be great!

I'm sorry for all of the questions I just want to make sense of what is going on. The tutorial doesn't seem to document the order very well. Thanks for the help!

--Sloan Bowman


Can u give more clarification and and example of what is going wrong
with you ?


-----Original Message----- From: Sloan Bowman [mailto:[EMAIL PROTECTED] Sent: Thursday, October 23, 2003 5:14 AM To: Jetspeed Mailing List Subject: Velocity and Action Events?


Have anybody else had problems with Velocity and Action events? Is there a good resource to learn more about this. I am looking to display a form asking for a name. When the form is submitted it calls my Action class then using the ActionEvent eventSubmit_{method name} and runs the method. My problem is it I dont' understand the flow of how to get the data from one method to the other. I thought I understood from the example in the tutorial. Can anyone guide me in the right direction? Thanks.

--
--------------------------------------------------------
Sloan Bowman
--------------------------------------------------------
"Never fear failure if you are doing the right thing. Fail your way to
success"

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Content-Type: application/x-pkcs7-signature; name="smime.p7s" Content-Disposition: attachment; filename="smime.p7s"

Attachment converted: SHDDX:smime 18.p7s (????/----) (00148D13)


--
--------------------------------------------------------
Sloan Bowman
--------------------------------------------------------
"Never fear failure if you are doing the right thing. Fail your way to success"

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to