Re: [Lift] TableEditor enhancements
Is that possible without Ajax? - Jim Barrows wrote: On Wed, Feb 3, 2010 at 5:23 AM, Naftoli Gugenheim wrote: > It's very different -- you edit the whole table on one screen at the same > time, and changes are buffered until you click save. > We're doing that in a very heavy data entry app. A really nice feature is to be able for the client to go "Oh look the backend is down again, better hold off on sending for a bit, and let the user know so they don't lose everything." Our user will typically enter 20-30 courses before finding out that the app can't save :) > - > Jeppe Nejsum Madsen wrote: > > Naftoli Gugenheim writes: > > [...] > > > They tickets are: > > 299 - ItemsList should be have refresh method to clear added/removed > > without requerying database > > Until now it only had a reload method, which reset the state to that > > of the database, clearing pending additions and deletions. This adds a > > refresh method, which only reloads items but remembers pending > > additions and deletions. > > 300 - ItemsList.save unremoves removed unsaved items > > This is a defect. After a number of attempts, I made a more > > substantial change to fix it. > > 301 - ItemsListEditor should allow custom columns > > Provide a hook so user code can add additional columns, e.g., > calculated data. > > 302 - ItemsListEditor should display items pending removal, albeit in > > strikeout font > > Previously when you click 'Remove' the item disappears, and only > > reappears if you reload it without saving first. This places the items > > at the end of the list, uneditable and in a strikeout font. > > > > I would like to add a new enhancement as well, namely to generate > > javascript to prompt you if you try to leave the page with unsaved > > items. > > These changes sound nice. I haven't used this before. How does it differ > from CRUDify? Seems like it covers the same functionality? > > /Jeppe > > -- > You received this message because you are subscribed to the Google Groups > "Lift" group. > To post to this group, send email to lift...@googlegroups.com. > To unsubscribe from this group, send email to > liftweb+unsubscr...@googlegroups.com > . > For more options, visit this group at > http://groups.google.com/group/liftweb?hl=en. > > -- > You received this message because you are subscribed to the Google Groups > "Lift" group. > To post to this group, send email to lift...@googlegroups.com. > To unsubscribe from this group, send email to > liftweb+unsubscr...@googlegroups.com > . > For more options, visit this group at > http://groups.google.com/group/liftweb?hl=en. > > -- James A Barrows -- You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to lift...@googlegroups.com. To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/liftweb?hl=en. -- You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to lift...@googlegroups.com. To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/liftweb?hl=en.
Re: [Lift] TableEditor enhancements
On Wed, Feb 3, 2010 at 5:23 AM, Naftoli Gugenheim wrote: > It's very different -- you edit the whole table on one screen at the same > time, and changes are buffered until you click save. > We're doing that in a very heavy data entry app. A really nice feature is to be able for the client to go "Oh look the backend is down again, better hold off on sending for a bit, and let the user know so they don't lose everything." Our user will typically enter 20-30 courses before finding out that the app can't save :) > - > Jeppe Nejsum Madsen wrote: > > Naftoli Gugenheim writes: > > [...] > > > They tickets are: > > 299 - ItemsList should be have refresh method to clear added/removed > > without requerying database > > Until now it only had a reload method, which reset the state to that > > of the database, clearing pending additions and deletions. This adds a > > refresh method, which only reloads items but remembers pending > > additions and deletions. > > 300 - ItemsList.save unremoves removed unsaved items > > This is a defect. After a number of attempts, I made a more > > substantial change to fix it. > > 301 - ItemsListEditor should allow custom columns > > Provide a hook so user code can add additional columns, e.g., > calculated data. > > 302 - ItemsListEditor should display items pending removal, albeit in > > strikeout font > > Previously when you click 'Remove' the item disappears, and only > > reappears if you reload it without saving first. This places the items > > at the end of the list, uneditable and in a strikeout font. > > > > I would like to add a new enhancement as well, namely to generate > > javascript to prompt you if you try to leave the page with unsaved > > items. > > These changes sound nice. I haven't used this before. How does it differ > from CRUDify? Seems like it covers the same functionality? > > /Jeppe > > -- > You received this message because you are subscribed to the Google Groups > "Lift" group. > To post to this group, send email to lift...@googlegroups.com. > To unsubscribe from this group, send email to > liftweb+unsubscr...@googlegroups.com > . > For more options, visit this group at > http://groups.google.com/group/liftweb?hl=en. > > -- > You received this message because you are subscribed to the Google Groups > "Lift" group. > To post to this group, send email to lift...@googlegroups.com. > To unsubscribe from this group, send email to > liftweb+unsubscr...@googlegroups.com > . > For more options, visit this group at > http://groups.google.com/group/liftweb?hl=en. > > -- James A Barrows -- You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to lift...@googlegroups.com. To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/liftweb?hl=en.
Re: [Lift] TableEditor enhancements
Is there a wiki article? Otherwise are the scaladocs not sufficient? - Jeppe Nejsum Madsen wrote: Naftoli Gugenheim writes: > It's very different -- you edit the whole table on one screen at the same > time, and changes are buffered until you click save. Sounds cool. Any live demos available? Alternatively, full examples? /Jeppe -- You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to lift...@googlegroups.com. To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/liftweb?hl=en. -- You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to lift...@googlegroups.com. To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/liftweb?hl=en.
Re: [Lift] TableEditor enhancements
Naftoli Gugenheim writes: > It's very different -- you edit the whole table on one screen at the same > time, and changes are buffered until you click save. Sounds cool. Any live demos available? Alternatively, full examples? /Jeppe -- You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to lift...@googlegroups.com. To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/liftweb?hl=en.
Re: [Lift] TableEditor enhancements
It's very different -- you edit the whole table on one screen at the same time, and changes are buffered until you click save. - Jeppe Nejsum Madsen wrote: Naftoli Gugenheim writes: [...] > They tickets are: > 299 - ItemsList should be have refresh method to clear added/removed > without requerying database > Until now it only had a reload method, which reset the state to that > of the database, clearing pending additions and deletions. This adds a > refresh method, which only reloads items but remembers pending > additions and deletions. > 300 - ItemsList.save unremoves removed unsaved items > This is a defect. After a number of attempts, I made a more > substantial change to fix it. > 301 - ItemsListEditor should allow custom columns > Provide a hook so user code can add additional columns, e.g., calculated > data. > 302 - ItemsListEditor should display items pending removal, albeit in > strikeout font > Previously when you click 'Remove' the item disappears, and only > reappears if you reload it without saving first. This places the items > at the end of the list, uneditable and in a strikeout font. > > I would like to add a new enhancement as well, namely to generate > javascript to prompt you if you try to leave the page with unsaved > items. These changes sound nice. I haven't used this before. How does it differ from CRUDify? Seems like it covers the same functionality? /Jeppe -- You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to lift...@googlegroups.com. To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/liftweb?hl=en. -- You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to lift...@googlegroups.com. To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/liftweb?hl=en.
Re: [Lift] TableEditor enhancements
Naftoli Gugenheim writes: [...] > They tickets are: > 299 - ItemsList should be have refresh method to clear added/removed > without requerying database > Until now it only had a reload method, which reset the state to that > of the database, clearing pending additions and deletions. This adds a > refresh method, which only reloads items but remembers pending > additions and deletions. > 300 - ItemsList.save unremoves removed unsaved items > This is a defect. After a number of attempts, I made a more > substantial change to fix it. > 301 - ItemsListEditor should allow custom columns > Provide a hook so user code can add additional columns, e.g., calculated > data. > 302 - ItemsListEditor should display items pending removal, albeit in > strikeout font > Previously when you click 'Remove' the item disappears, and only > reappears if you reload it without saving first. This places the items > at the end of the list, uneditable and in a strikeout font. > > I would like to add a new enhancement as well, namely to generate > javascript to prompt you if you try to leave the page with unsaved > items. These changes sound nice. I haven't used this before. How does it differ from CRUDify? Seems like it covers the same functionality? /Jeppe -- You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to lift...@googlegroups.com. To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/liftweb?hl=en.
[Lift] TableEditor enhancements
I have a patch on Review Board. I haven't asked on the list for the committers to review it because I've needed to perfect it still. It occurred to me that some of the tickets might not have been discussed on the list, so I want to do so now in case I didn't yet, although the enhancements included are trivial and pretty basic. As you may know, the net.liftweb.mapper.view package contains some useful Mapper-related components. One is TableEditor, which provides a very simple snippet to edit a Mapper table--useful for very basic lists. It's based on ItemsListEditor, which allows for similar functionality in a much more configurable way. It in turn uses ItemsList, which is a convenient way to hold a list of Mapper entities and keep track of new items pending being saved, and items pending removal. This way a user can cancel their edits, as long as they have not clicked Save. They tickets are: 299 - ItemsList should be have refresh method to clear added/removed without requerying database Until now it only had a reload method, which reset the state to that of the database, clearing pending additions and deletions. This adds a refresh method, which only reloads items but remembers pending additions and deletions. 300 - ItemsList.save unremoves removed unsaved items This is a defect. After a number of attempts, I made a more substantial change to fix it. 301 - ItemsListEditor should allow custom columns Provide a hook so user code can add additional columns, e.g., calculated data. 302 - ItemsListEditor should display items pending removal, albeit in strikeout font Previously when you click 'Remove' the item disappears, and only reappears if you reload it without saving first. This places the items at the end of the list, uneditable and in a strikeout font. I would like to add a new enhancement as well, namely to generate javascript to prompt you if you try to leave the page with unsaved items. Thoughts? Thanks. -- You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to lift...@googlegroups.com. To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/liftweb?hl=en.