cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mario Muja <mario.m...@delaval.com>
Subject Re: DatabaseXActions
Date Thu, 06 Sep 2001 13:24:25 GMT
<html>
<head>
</head>
<body>
Hi Chris,<br>
sorry for interrupting your discussion with Andrew. You wrote:<br>
<pre wrap="">"nullable" attribute in the AbstractDatabaseAction descriptor
"default" attribute in the AbstractDatabaseAction descriptor<br></pre>
Does this not conflict with the Form Validation descriptor, which also includes
nullable and default attributes?<br>
<br>
Regards, Mario<br>
<br>
<br>
<br>
Chris Newland wrote:<br>
<blockquote type="cite" cite="mid:GMELJLOHIGHKKHFNGOKMAEBACMAA.chris.newland@emorphia.com">
  <pre wrap="">Hi Andrew,<br><br>I'm working with the latest Cocoon2b2 code
from CVS.<br><br>I've added support in AbstractDatabaseAction for:<br><br>request
attributes overriding request parameters<br>"nullable" attribute in the AbstractDatabaseAction
descriptor<br>"default" attribute in the AbstractDatabaseAction descriptor<br><br>I'll
be submitting diffs today (if I can, my ISP is bad today :( )<br><br>Having said
that, these are only fixes. Christian Haul is working on a new<br>architecture for this
problem so I'm not sure if my diffs will make it into<br>the codebase. If your not happy
applying diffs I can send you the patched<br>classes.<br><br>Regards,<br><br>Chris<br><br></pre>
  <blockquote type="cite">
    <pre wrap="">-----Original Message-----<br>From: Andrew Answer [<a class="moz-txt-link-freetext"
href="mailto:creator0@mail.ru">mailto:creator0@mail.ru</a>]<br>Sent: 06 September
2001 11:43<br>To: Chris Newland<br>Subject: Re[2]: DatabaseXActions<br><br><br>Hello
Chris,<br><br>if you can send me your sources/patches, i will be very happy.<br>I'm
not java-spec, while only try :)<br><br>What version on C2 you change?<br><br>I
described on cocoon-dev mailing list and can send your sources to<br>developers. Or
if you subscribed too, you can do it.<br>I think what this changes are very important.<br>Date/time
requests is common task for any sites and i wonder why this<br>task can't decided earlier.<br><br>Wednesday,
September 05, 2001, 8:31:15 PM, you wrote:<br><br></pre>
    <blockquote type="cite">
      <pre wrap="">Hi Andrew,<br></pre>
      </blockquote>
      <blockquote type="cite">
        <pre wrap="">I'm currently modifying the Database&lt;Add|Delete|Update&gt;Action
actions to<br>allow request parameters to be overriden with request attributes.<br></pre>
        </blockquote>
        <blockquote type="cite">
          <pre wrap="">This will allow me to pass my form data through another action
which<br>manipulates the values and sets them in request attributes before the<br>DatabaseAddAction
adds them into the database.<br></pre>
          </blockquote>
          <blockquote type="cite">
            <pre wrap="">Regards,<br></pre>
            </blockquote>
            <blockquote type="cite">
              <pre wrap="">Chris<br></pre>
              </blockquote>
              <blockquote type="cite">
                <blockquote type="cite">
                  <pre wrap="">-----Original Message-----<br>From: Andrew Answer
[<a class="moz-txt-link-freetext" href="mailto:creator0@mail.ru">mailto:creator0@mail.ru</a>]<br>Sent:
05 September 2001 14:20<br>To: <a class="moz-txt-link-abbreviated" href="mailto:cocoon-users@xml.apache.org">cocoon-users@xml.apache.org</a><br>Subject:
DatabaseXActions<br><br><br>Hello cocoon-users,<br><br>  i read
thread named "Action to modify request parameters" and want<br>  to ask another questions.<br><br><br>
 1. I try to use DatabaseAddAction for getting form data. In<br>  descriptor file i
setup column type as timestamp<br>  &lt;value param="datetime" dbcol="fdatetime"
type="time-stamp"/&gt;.<br>  How to set request parameter on NOW + 1 hour (for example)?<br>
 I can get integer or string values from form through request<br>  parameters, but can't
get timestamp.<br>  &lt;util:time format="..."/&gt; not work because of this
is a string<br>  instead of date.<br>  &lt;xsp:logic&gt;reque
st.setAttribute("date",new Date());&lt;/xsp:logic&gt; not<br>  work because
DatabaseAddAction read real parameters only, not<br>  attributes (as i understand).<br>
 Now i use Hsqldb and not need to convert Java datatypes into<br>  another. This actions
work without converting types?<br><br>  2. Anybody use DatabaseSelectAction? How
it work? It present into my<br>  version (xml-cocoon2_20010831101539.tar.gz) of C2.
When i use other<br>  database actions, i call cocoon-action through pressing button.<br>
 How to run DatabaseSelectAction automatically when i open page?<br><br>--<br>Best
regards,<br> Andrew                          <a class="moz-txt-link-freetext" href="mailto:creator0@mail.ru">mailto:creator0@mail.ru</a><br><br><br><br>---------------------------------------------------------------------<br>Please
check that your question has not already been answered in the<br>FAQ before posting.
<a class="moz-txt-link-rfc2396E" href="http://xml.apache.org/cocoon/faqs.html">&lt
;http://xml.apache.org/cocoon/faqs.html&gt;</a><br><br>To unsubscribe,
e-mail: <a class="moz-txt-link-rfc2396E" href="mailto:cocoon-users-unsubscribe@xml.apache.org">&lt;cocoon-users-unsubscribe@xml.apache.org&gt;</a><br>For
additional commands, e-mail: <a class="moz-txt-link-rfc2396E" href="mailto:cocoon-users-help@xml.apache.org">&lt;cocoon-users-help@xml.apache.org&gt;</a><br><br><br><br></pre>
                  </blockquote>
                  </blockquote>
                  <pre wrap=""><br><br><br><br>--<br>Best
regards,<br> Andrew                            <a class="moz-txt-link-freetext" href="mailto:creator0@mail.ru">mailto:creator0@mail.ru</a><br><br><br><br>---------------------------------------------------------------------<br>Please
check that your question has not already been answered in the<br>FAQ before posting.
<a class="moz-txt-link-rfc2396E" href="http://xml.apache.org/cocoon/faqs.html">&lt;http://xml.apache.org/cocoon/faqs.html&gt;</a><br><br>To
unsubscribe, e-mail: <a class="moz-txt-link-rfc2396E" href="mailto:cocoon-users-unsubscribe@xml.apache.org">&lt;cocoon-users-unsubscribe@xml.apache.org&gt;</a><br>For
additional commands, e-mail: <a class="moz-txt-link-rfc2396E" href="mailto:cocoon-users-help@xml.apache.org">&lt;cocoon-users-help@xml.apache.org&gt;</a><br><br><br><br></pre>
                  </blockquote>
                  <pre wrap=""><!----><br><br><br>---------------------------------------------------------------------<br>Please
check that your question has not already been answered in the<br>FAQ before posting.
<a class="moz-txt-link-rfc2396E" href="http://xml.apache.org/cocoon/faqs.html">&lt;http://xml.apache.org/cocoon/faqs.html&gt;</a><br><br>To
unsubscribe, e-mail: <a class="moz-txt-link-rfc2396E" href="mailto:cocoon-users-unsubscribe@xml.apache.org">&lt;cocoon-users-unsubscribe@xml.apache.org&gt;</a><br>For
additional commands, e-mail: <a class="moz-txt-link-rfc2396E" href="mailto:cocoon-users-help@xml.apache.org">&lt;cocoon-users-help@xml.apache.org&gt;</a><br><br><br></pre>
                  </blockquote>
                  <br>
                  </body>
                  </html>


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Mime
View raw message