You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@velocity.apache.org by Brian Rowe <br...@hotmail.com> on 2002/03/04 22:49:08 UTC
CRUD Screens
I wanted to generate CRUD screens using velocity from the XML file that
defines the database in Turbine. 2 questions:
1. Is there an easy way to generate Velocity CRUD screens?
2. My error when doing this. I could not pass a velocity variable to a
velocity function where the the velocity function was to be included in the
template. For instance: To produce this line for differnt pages you want
the action to be a variable like ${TableName}Insert instead of SQL
everytime.
<form method="post" action="$link.setPage("Index.vm").setAction("SQL")">
Velocity won't allow the this. Any ideas?
Thank you,
Brian
_________________________________________________________________
Chat with friends online, try MSN Messenger: http://messenger.msn.com
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: CRUD Screens
Posted by Bill Burton <bi...@progress.com>.
Hello,
Brian Rowe wrote:
>
> I wanted to generate CRUD screens using velocity from the XML file that
> defines the database in Turbine. 2 questions:
> 1. Is there an easy way to generate Velocity CRUD screens?
> 2. My error when doing this. I could not pass a velocity variable to a
> velocity function where the the velocity function was to be included in the
> template. For instance: To produce this line for differnt pages you want
> the action to be a variable like ${TableName}Insert instead of SQL
> everytime.
>
> <form method="post" action="$link.setPage("Index.vm").setAction("SQL")">
>
> Velocity won't allow the this. Any ideas?
If I understand you correctly, try this:
#set($action = "${TableName}Insert")
<form method="post"
action="$link.setPage("Index.vm").setAction($action)">
Hope this helps,
-Bill
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: CRUD Screens
Posted by "Geir Magnusson Jr." <ge...@optonline.net>.
On 3/4/02 4:49 PM, "Brian Rowe" <br...@hotmail.com> wrote:
> I wanted to generate CRUD screens using velocity from the XML file that
> defines the database in Turbine. 2 questions:
> 1. Is there an easy way to generate Velocity CRUD screens?
> 2. My error when doing this. I could not pass a velocity variable to a
> velocity function where the the velocity function was to be included in the
> template. For instance: To produce this line for differnt pages you want
> the action to be a variable like ${TableName}Insert instead of SQL
> everytime.
>
> <form method="post" action="$link.setPage("Index.vm").setAction("SQL")">
>
> Velocity won't allow the this. Any ideas?
First, is this more of a Turbine question? If so, you will have better luck
on the turbine lists.
Second, re the Velocity part, what won't it allow?
--
Geir Magnusson Jr. geirm@optonline.net
System and Software Consulting
The question is : What is a Mahnamahna?
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>