Hi all,

>> When using navNewButton to insert new rows I had problems
>> with null values; this values are calculated by postgres with
>> triggers when the form passes a "null" value...
>> with the attrib "nullFieldValue" now postgres receives
>> another value and it isn't running well.
>> So I have to delete this db:labels and change them with
>> out.println(....).
>>
>> The "nullFieldValue" isn't a required attribute but if I skip
>> it the JSP gives me a "Error:null" message when handling pageContext.



> Sounds that the chapter nullFields are quite difficult.
>
> Any idea how to handle nullField values better as now?
> In the moment there is used:
>
> 1. the value of nullFieldValue if it exists.
> 2. if this value do not exist the resource string "dbforms.nodata" is
> searched and the result is used as nullFieldValue.
>    If you put in an   in your resources nothing is shown.
>

^^^^^^^^^^^^^^^^^^^^^^^^^^^
In my opinion in the last weekly build the dbforms.nodata resource isn't
called if dbforms detects a null value without "nullFieldValue".
I have two version of the software builded with dbforms, one of this is
running with 1.1.4pr1 and the second with 1.1.4pr2...

For example  I have :
* an associated radio
* a db:label based on a field of the database calucated automatically when
dbforms sends a null "value"
* and three textFields.

With the PR1 when I use the navNewButton all is Ok, the dbLabel displays
[No data] and passes to db the "null", my triggers so are working ok.

With the PR2 version, I have a "Error:null", the error is due to
parsing+writing the dbLabel on the jsp (the only time I debugged I noticed
that a try catch of the generated .java file of my jsp went to the catch
when working to the dbLabel object). If I could re-debug I will send you
more precise information. Howevere my impression is that the null value
isn't passed to the db and that the resource dbforms.nodata isn't used
anymore (I have the same impression with insertButton).

When I deleted the label all was ok also with pr2.

Now I'm going to test the next steps.

Regards
Ivan







-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
_______________________________________________
DbForms Mailing List

http://www.wap-force.net/dbforms

Reply via email to