Hey All,
I found the source of the problem with the new filter tags. I have a href included in the db:body element of my dbform.
<td>
<a href=""'"+(String)currentRow_FORM.get("LAST_CHANGED_BY")+"','"+(String)currentRow_FORM.get("LAST_CHANGED_WHEN")+"','"+(String)currentRow_FORM.get("CREATED_WHEN")+"','"+(String)currentRow_FORM.get("CREATED_BY")+"'"%>);">[Info]</a>
</td>
<a href=""'"+(String)currentRow_FORM.get("LAST_CHANGED_BY")+"','"+(String)currentRow_FORM.get("LAST_CHANGED_WHEN")+"','"+(String)currentRow_FORM.get("CREATED_WHEN")+"','"+(String)currentRow_FORM.get("CREATED_BY")+"'"%>);">[Info]</a>
</td>
Whenever I filter the form and it returns data, it works fine. However if the query doesnt return any data it crashes. If i remove the href, and the query returns no data, it works fine. So i think if any other elements apart from data bound elements incuded in the body causes a null exception error when the filter query returns nno data. I am not sure if this has been resolved in more recent versions but was just informing you of my findings. Any suggestions are welcome. Thanks.
Shawn <[EMAIL PROTECTED]> wrote:
Shawn <[EMAIL PROTECTED]> wrote:
see the filter boxes
> with the criteria when i select the criteria but when I click set,
> nothing happens. Also if i click set then update or delete, the dbforms
> crashes.
I saw some problems similar to what you are describing too with early
versions (but no crashes), what are you using? I suggest a version at
least after 9.15.2003 as behavior for tagpooling was fixed then. The tag
has been modified as recently as 10.20 but AFAIK was ok after 9.15.
Take a look at bookstore/tests/testAuthorBooksSubFormWithFilter.jsp
there is a nice working example there. If it doesn't work, then I think
you will need a more recent version.
This is kinda a new tag though, so do please keep us informed on how it
works for you.
If new versions don't work, you could look in your logs Catalina.out or
whereever you set log4j to write to and see what it says.
Heck, you could even check the log before changing your version.
> I am also not sure what set is supposed to do. Is it supposed to refresh
> the current dbform showing only the data returned by my filter criteria?
Yes that is correct. Convenient eh!
--
Shawn
Happily using M2, Opera's revolutionary e-mail client:
http://www.opera.com/m2/
Do you Yahoo!?
Exclusive Video Premiere - Britney Spears
