Hello, yesterday I said that sometimes the insert button did not display (when it was 
in a subform and there were rows)

I decided to take a look at the source code and in 
org.dbforms.taglib.DbInsertButtonTag.java there's this

        if ( !"true".equalsIgnoreCase(showAlways) && !(parentForm.getFooterReached() 
&& ResultSetVector.isEmptyOrNull(parentForm.getResultSetVector())) )
        {
            return EVAL_PAGE;
        }

The offending (to me :-) code is 
        ResultSetVector.isEmptyOrNull(parentForm.getResultSetVector())
which as can be seen forces a return and prevents display of the button when there are 
rows.

I simply commented it and customer_complaints.jsp displayed always the insert button.

BUT! I suppose that it had some function, what am I missing, oh, masters?

Dom�nec Sos i Vall�s       [EMAIL PROTECTED]



-------------------------------------------------------
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_id78&alloc_id371&op=click
_______________________________________________
DbForms Mailing List

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

Reply via email to