I guess you need a rule engine. Tapestry's live class reloading wouldn't
be an option as you said you don't want to recompile classes.
Tapestry works on compiled bytecode, so using Groovy or Java or Scala
wouldn't make a difference.
On Mon, 07 Feb 2011 15:25:21 -0200, Mark <mark-li...@xeric.net> wrote:
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
--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,
and instructor
Owner, Ars Machina Tecnologia da Informação Ltda.
Consultor, desenvolvedor e instrutor em Java, Tapestry e Hibernate
Coordenador e professor da Especialização em Engenharia de Software com
Ênfase em Java da Faculdade Pitágoras
http://www.arsmachina.com.br
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org