cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Simon Price <simon.pr...@bristol.ac.uk>
Subject Re: how to use a checkbox with DatabaseUpdateAction
Date Thu, 25 Jul 2002 13:27:37 GMT
Thanks Christian. I'll look into this. My fallback plan is to write a 
logicsheet in XSLT/ESQL to do the same as the DB actions but at a higher 
level. What I'm trying to end up with is an XForm-like way of writing 
(simple model) forms but without having to write any java. For many 
simple applications, this is all lots of people would need (I think).

Cheers

Simon

Christian Haul wrote:

> On 23.Jul.2002 -- 09:36 PM, Simon Price wrote:
> 
>>Is it possible to get DatabaseUpdateAction to write, for example, 'Y' or
>>'N' into an SQL column according to whether a checkbox is checked/unchecked?
>>
> 
> You could have a default for this column of "N" - but since the
> parameter is not present (-> null) the DatabaseUpdateAction will
> insert a NULL into that column. No luck.
> 
> You could use DatabaseUpdateAction from the modular package
> (scratchpad in 2.0.3, trunk in 2.1-dev) and wrap this column with a
> default module. 2.1-dev has such a module (DefaultsMetaModule), while
> 2.0.3 does not. This is because the signature of InputModules has
> changed slightly and 2.0.3 is bug-fix only.
> 
> It should be easy to backport a module from 2.1 to 2.0.3 as the basic
> difference is the use of the objectModel instead of Request.
> 
> 	Chris.
> 


-- 

-------------------------------------------------------------------
Simon Price
Institute for Learning and Research Technology
University of Bristol
8-10 Berkeley Square
Bristol BS8 1HH
United Kingdom

Direct: +44 (0)7071 226 720
Office: +44 (0)117 928 7193
Fax: +44 (0)117 928 7112
Simon.Price@bristol.ac.uk
http://www.ilrt.bristol.ac.uk


---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail:   <cocoon-users-help@xml.apache.org>


Mime
View raw message