Hi again Thanks for the suggestion, Shawn. I have been tracing the localWebEvent through the code of 1.1.3 and it seems like a localWebEvent will only be executed the first time a page is loaded. If you get to the page by an internal followUp or a javascript:document.dbforms.submit() or something, a "NoopEvent" will be triggered and localWebEvent won't be evaluated. I acknowledge that this behavior is in most cases desirable (not in mine though) I have tried to tweak this mechanism for my purposes with very limited success. I also tried turning a NoopEvent into a NavFirst event if my jumpToFirst parameter is set to true, with no success. The Event code is way beyond my Java skills.
Julio Ortuzar, who had some problems with localWebEvents earlier reports ( http://www.mail-archive.com/[EMAIL PROTECTED]/msg01071 .html ) that he used org.dbforms.event.datalist to solve them, however I think they are part of 1.1.4 (which is not recommended for the production enviroment I want to use DbForms in) only and I am not even sure if they offer a solution to my specific problem of jumping to the first row if a trigger parameter is set. I guess I'll trade simplicity for a bit of ergonomy and just add a navFirstButton to the top. Again, thanks for your suggestion! Regards, Sebastian Scheible -----Ursprüngliche Nachricht----- Von: Shawn [mailto:[EMAIL PROTECTED] Gesendet: Freitag, 29. August 2003 01:56 An: Scheible, Sebastian; dbf interest Betreff: Re: [dbforms] db:sort and jumping to the first row On Thu, 28 Aug 2003 21:09:44 +0200, Scheible, Sebastian <[EMAIL PROTECTED]> wrote: >> Hi there, >> >> I'ld like my DbForms application to jump to the first row of a table >> after >> the user did a sort. >I haven't done such a thing but the taglib gives this info (for the dbforms >tag): >localWebEvent >this attribute allows a JSP view developer to trigger >WebEvents(NavigationsEvents)on the JSP. >No controller interaction is needed. This attribute aims to make linkage >between dialogs easier. >currently, the available "local web event"-commands are: >navFirst >navPrev >navNext >navLast >navNew >if a developer wants to show the last row of a table, then she/he could >apply the value >"navNext" to this attribute. Note that this attribute is evaluated in >runtime, >this gives additional flexibility --(I think they meant "navLast") >this attribute was added in release 0.9 >[RTExpValue] ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ DbForms Mailing List http://www.wap-force.net/dbforms
