I have a situation where I need to be able to change the logic that
occurs on a page at runtime without recompiling or redeploying the
app.  For example, imagine a shopping cart for a site that offers all
kids of constantly changing promotions. Examples would be:

- Buy a blue widget and get 10% off a white widget.
- Buy two white widgets and get $5 off your entire order
- Buy  white and blue widget before 2/15 and get a green widget for free.

The point is that the rules are varied enough that they can't be coded
into the app and they really need to best stored in the database where
they can easily be changed on the fly--even if that means you have to
have a developer write them.

I know there is a way to create a java class in a running system on
the fly, so that is one option. Using some sort of expression language
like MVEL is another option. I just wanted to make sure there isn't
some way to do this using Tapestry's capabilities that I'm
overlooking.

Specifically, is there a way to get some type of executable script
into a Page or Service in a running app? Is this something Groovy can
do, or does Groovy only work with Tapestry when it is compiled to byte
code?

Mark

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to