Giter VIP home page Giter VIP logo

platypus-js's People

Contributors

abogdanov37 avatar altsoft avatar altsoft-biz avatar jskonst avatar marat-gainullin avatar vadimv avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

platypus-js's Issues

Multiple object properties

Select some model widgets in designer and try to scroll down their properties

Callstack:

java.lang.NullPointerException
    at com.bearsoft.org.netbeans.modules.form.editors.EntityJSObjectEditor.supportsCustomEditor(EntityJSObjectEditor.java:50)
    at org.openide.explorer.propertysheet.RendererFactory.getRenderer(RendererFactory.java:277)
    at org.openide.explorer.propertysheet.SheetCellRenderer.getTableCellRendererComponent(SheetCellRenderer.java:158)
    at org.openide.explorer.propertysheet.BaseTable.prepareRenderer(BaseTable.java:626)
    at org.openide.explorer.propertysheet.SheetTable.prepareRenderer(SheetTable.java:622)
    at javax.swing.plaf.basic.BasicTableUI.paintCell(BasicTableUI.java:2114)
    at javax.swing.plaf.basic.BasicTableUI.paintCells(BasicTableUI.java:2016)
    at javax.swing.plaf.basic.BasicTableUI.paint(BasicTableUI.java:1812)
    at javax.swing.plaf.ComponentUI.update(ComponentUI.java:161)
    at javax.swing.JComponent.paintComponent(JComponent.java:780)
    at org.openide.explorer.propertysheet.BaseTable.paintComponent(BaseTable.java:1031)
    at org.openide.explorer.propertysheet.SheetTable.paintComponent(SheetTable.java:532)
    at javax.swing.JComponent.paint(JComponent.java:1056)
    at org.openide.explorer.propertysheet.BaseTable.paint(BaseTable.java:685)
    at javax.swing.JComponent.paintChildren(JComponent.java:889)
    at javax.swing.JComponent.paint(JComponent.java:1065)
    at javax.swing.JViewport.paint(JViewport.java:728)
    at javax.swing.JComponent.paintChildren(JComponent.java:889)
    at javax.swing.JComponent.paint(JComponent.java:1065)
    at javax.swing.JComponent.paintChildren(JComponent.java:889)
    at javax.swing.JSplitPane.paintChildren(JSplitPane.java:1047)
    at javax.swing.JComponent.paint(JComponent.java:1065)
    at javax.swing.JComponent.paintChildren(JComponent.java:889)
    at javax.swing.JComponent.paint(JComponent.java:1065)
    at javax.swing.JComponent.paintChildren(JComponent.java:889)
    at javax.swing.JComponent.paint(JComponent.java:1065)
    at javax.swing.JComponent.paintChildren(JComponent.java:889)
    at javax.swing.JComponent.paint(JComponent.java:1065)
    at javax.swing.JComponent.paintChildren(JComponent.java:889)
    at javax.swing.JComponent.paint(JComponent.java:1065)
    at javax.swing.JComponent.paintChildren(JComponent.java:889)
    at javax.swing.JComponent.paint(JComponent.java:1065)
    at org.netbeans.swing.tabcontrol.TabbedContainer.paint(TabbedContainer.java:994)
    at javax.swing.JComponent.paintChildren(JComponent.java:889)
    at javax.swing.JComponent.paint(JComponent.java:1065)
    at javax.swing.JComponent.paintToOffscreen(JComponent.java:5210)
    at javax.swing.RepaintManager$PaintManager.paintDoubleBuffered(RepaintManager.java:1579)
    at javax.swing.RepaintManager$PaintManager.paint(RepaintManager.java:1502)
    at javax.swing.RepaintManager.paint(RepaintManager.java:1272)
    at javax.swing.JComponent._paintImmediately(JComponent.java:5158)
    at javax.swing.JComponent.paintImmediately(JComponent.java:4969)
    at javax.swing.JComponent.paintImmediately(JComponent.java:4950)
    at javax.swing.RepaintManager$4.run(RepaintManager.java:831)
    at javax.swing.RepaintManager$4.run(RepaintManager.java:814)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
    at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:814)
    at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:789)
    at javax.swing.RepaintManager.prePaintDirtyRegions(RepaintManager.java:738)
    at javax.swing.RepaintManager.access$1200(RepaintManager.java:64)
    at javax.swing.RepaintManager$ProcessingRunnable.run(RepaintManager.java:1732)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756)
    at java.awt.EventQueue.access$500(EventQueue.java:97)
    at java.awt.EventQueue$3.run(EventQueue.java:709)
    at java.awt.EventQueue$3.run(EventQueue.java:703)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:726)
    at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:159)
[catch] at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)

bug: Grid view bugs

  • Commands makeVisible, select, clearSelection isn't working when the browser window isn't active
form.grid.clearSelection();
form.grid.makeVisible(rowData, true);
//form.grid.select(rowData);
form.grid.redraw();
  • Under SE client there's no attribute selected

Enterprise JavaScript

Development of enterprise applications is not funny. Server and client sides both are full of dark ancient evil. JavaScript must be the future of enterprise development.

The global variable "P" is not declared -- Hide this warning in JS editor

Steps to reproduce:

  1. Create a new module. Check the generated stub in the JS editor.

Result: in the left of the "var self = this, model = P.loadModel(this.constructor.name);" a warning sign shown.
Expected result: No warning signs shown for the global variable "P" and other predefined objects.

modelGrid.columns

Column model text field view is not showing new data immediately after end of editing. It updates only after mouse click on other field.
Column model text area view is working same + there's an bad handle for enter key with multi-line text.

Query copy problem in designer

Attempt to copy queries in designer from one project into ANOTHER causes false changing of @name annotation in it by adding "_1" string in the end.
Example, before copy:
@name GetRoutes
after:
@name GetRoutes_1

Show error message in the browser.

Steps to reproduce:

  1. Add an entity to a form containing non-public query when running under the default role.
  2. Refresh the page.
    Result: empty page in the browser. To find out the problem have to check logs.
    Expected: some error message should be visible on the page.

Bug: Parallel require

Wrong work of a callback function in case of parallel requirement of the same js file. The first callback function fires before the module has loaded.

Error when trying to add a table to db structure diagram

Error callstack:
java.lang.NullPointerException
[catch] at com.eas.client.model.gui.selectors.DbTablesListRenderer.getListCellRendererComponent(DbTablesListRenderer.java:39)
at javax.swing.plaf.basic.BasicListUI.paintCell(BasicListUI.java:209)
at javax.swing.plaf.basic.BasicListUI.paintImpl(BasicListUI.java:317)
at javax.swing.plaf.basic.BasicListUI.paint(BasicListUI.java:240)
at javax.swing.plaf.ComponentUI.update(ComponentUI.java:161)
at javax.swing.JComponent.paintComponent(JComponent.java:780)
at javax.swing.JComponent.paint(JComponent.java:1056)
at javax.swing.JComponent.paintChildren(JComponent.java:889)
at javax.swing.JComponent.paint(JComponent.java:1065)
at javax.swing.JViewport.paint(JViewport.java:728)
at javax.swing.JComponent.paintChildren(JComponent.java:889)
at javax.swing.JComponent.paint(JComponent.java:1065)
at javax.swing.JComponent.paintChildren(JComponent.java:889)
at javax.swing.JComponent.paint(JComponent.java:1065)
at javax.swing.JComponent.paintChildren(JComponent.java:889)
at javax.swing.JComponent.paint(JComponent.java:1065)
at javax.swing.JViewport.paint(JViewport.java:728)
at javax.swing.JComponent.paintChildren(JComponent.java:889)
at javax.swing.JComponent.paint(JComponent.java:1065)
at javax.swing.JComponent.paintChildren(JComponent.java:889)
at javax.swing.JComponent.paint(JComponent.java:1065)
at javax.swing.JComponent.paintChildren(JComponent.java:889)
at javax.swing.JComponent.paint(JComponent.java:1065)
at javax.swing.JComponent.paintChildren(JComponent.java:889)
at javax.swing.JComponent.paint(JComponent.java:1065)
at javax.swing.JLayeredPane.paint(JLayeredPane.java:586)
at javax.swing.JComponent.paintChildren(JComponent.java:889)
at javax.swing.JComponent.paintToOffscreen(JComponent.java:5217)
at javax.swing.RepaintManager$PaintManager.paintDoubleBuffered(RepaintManager.java:1579)
at javax.swing.RepaintManager$PaintManager.paint(RepaintManager.java:1502)
at javax.swing.RepaintManager.paint(RepaintManager.java:1272)
at javax.swing.JComponent.paint(JComponent.java:1042)
at java.awt.GraphicsCallback$PaintCallback.run(GraphicsCallback.java:39)
at sun.awt.SunGraphicsCallback.runOneComponent(SunGraphicsCallback.java:79)
at sun.awt.SunGraphicsCallback.runComponents(SunGraphicsCallback.java:116)
at java.awt.Container.paint(Container.java:1975)
at java.awt.Window.paint(Window.java:3912)
at javax.swing.RepaintManager$4.run(RepaintManager.java:842)
at javax.swing.RepaintManager$4.run(RepaintManager.java:814)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:814)
at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:789)
at javax.swing.RepaintManager.prePaintDirtyRegions(RepaintManager.java:738)
at javax.swing.RepaintManager.access$1200(RepaintManager.java:64)
at javax.swing.RepaintManager$ProcessingRunnable.run(RepaintManager.java:1732)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756)
at java.awt.EventQueue.access$500(EventQueue.java:97)
at java.awt.EventQueue$3.run(EventQueue.java:709)
at java.awt.EventQueue$3.run(EventQueue.java:703)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:726)
at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:159)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:109)
at java.awt.WaitDispatchSupport$2.run(WaitDispatchSupport.java:184)
at java.awt.WaitDispatchSupport$4.run(WaitDispatchSupport.java:229)
at java.awt.WaitDispatchSupport$4.run(WaitDispatchSupport.java:227)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.WaitDispatchSupport.enter(WaitDispatchSupport.java:227)
at java.awt.Dialog.show(Dialog.java:1084)
at java.awt.Component.show(Component.java:1673)
at java.awt.Component.setVisible(Component.java:1625)
at java.awt.Window.setVisible(Window.java:1014)
at java.awt.Dialog.setVisible(Dialog.java:1005)
at com.eas.client.model.gui.selectors.TableNameSelector.selectTableName(TableNameSelector.java:86)
at com.eas.designer.explorer.selectors.TablesSelector.selectTableRef(TablesSelector.java:43)
at com.eas.client.model.gui.view.model.ModelView.selectTableRef(ModelView.java:1553)
at com.eas.client.dbstructure.gui.view.DbSchemeModelView.selectTableRef(DbSchemeModelView.java:177)
at com.eas.client.model.gui.view.model.ModelView$AddTable.actionPerformed(ModelView.java:2007)
at com.eas.client.dbstructure.gui.view.DbSchemeModelView$AddTableAction.actionPerformed(DbSchemeModelView.java:418)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2022)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2348)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:252)
at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:290)
at java.awt.Component.processMouseEvent(Component.java:6535)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3324)
at com.eas.gui.JDropDownButton.processMouseEvent(JDropDownButton.java:162)
at java.awt.Component.processEvent(Component.java:6300)
at java.awt.Container.processEvent(Container.java:2236)
at java.awt.Component.dispatchEventImpl(Component.java:4891)
at java.awt.Container.dispatchEventImpl(Container.java:2294)
at java.awt.Component.dispatchEvent(Component.java:4713)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4888)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4525)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4466)
at java.awt.Container.dispatchEventImpl(Container.java:2280)
at java.awt.Window.dispatchEventImpl(Window.java:2750)
at java.awt.Component.dispatchEvent(Component.java:4713)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758)
at java.awt.EventQueue.access$500(EventQueue.java:97)
at java.awt.EventQueue$3.run(EventQueue.java:709)
at java.awt.EventQueue$3.run(EventQueue.java:703)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86)
at java.awt.EventQueue$4.run(EventQueue.java:731)
at java.awt.EventQueue$4.run(EventQueue.java:729)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:728)
at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:159)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)

ORM error

An error occurs when loading data with scalar link in server module
30-May-2015 18:29:46.840 SEVERE [http-nio-8080-exec-5] com.eas.server.httpservlet.PlatypusHttpServlet.lambda$processPlatypusRequest$1 com.bearsoft.rowset.exceptions.FlowProviderFailedException: java.sql.SQLException: file:/...../WEB-INF/classes/platypus.js:750 TypeError: Cannot redefine property "workplace" of [object Object]

P.Principal error

On server module:

        function getUserRole(){
            for(var i in roles){
                if (P.principal.hasRole(roles[i])){
                    return roles[i];
                }
            }
            return false;
        };

        self.getUserRole = getUserRole;

        self.getStartForm = function(aRole){
            P.Logger.warning(P.principal.name);
            if(!aRole) aRole = getUserRole();
            for(var i in roles){
                P.Logger.warning(aRole);
                if(roles[i] == aRole)
                    return forms[i];
            }
            return false;
        };

try to getStartForm() from client

http-context.js

There is no require for http-context.js in server dependencies

Web form is not updated after changing its design.

Steps to reproduce:

  1. Create a form and add a button on it.
  2. Run the application as a web application. Check the position of the button in the browser.
  3. Change the positioning of the button.
  4. Refresh (F5) the page.
    Result: the form's stays the same.
    Expected: the form's design should be updated.

Failed to load resource

'Failed to load resource' in GWT if server down on cordova based mobile client.
Unable to catch this exception with window.onerror.

wrong year

Wrong year on logotype(2014) and on Help->about (2009-2013)

Chevron in HTML area is not appears

There is no chevron Icon in HTML area. When width of html area is small, there is no chevron icon, but clicking on empty space on the right side is showing elements, but some of they have too small height.

Ctrl-S does not save a form's design changes

Steps to reproduce:

  1. Create a new form. Go to Design tab.
  2. Add some widget to the form.
  3. Try to save the changes pressing Ctrl-S keys.
    Result: The changes on the form are not saved.
    Expected result: the design changes should be saved on this keyboard shortcut.

Flow Pane in web-client

New elements on FlowPane appears on new line, even if there is enough space on current line

Form object properties are unavailible in debugger

Steps to reproduce:

  1. Create a form.
  2. Add a button to the form.
  3. Set a break point to the button's click handler.
  4. Debug the application as Java application. Click on the button.
  5. Try to expand form's object properties in the Variables view.

Result: some looking meaningless properties of the form's object observed.
Expected: JS properties like form's widgets should be available.

Network issues cause hanging of Platypus Designer

As far DB diagram work with database directly, opening a DB diagram during miss of the Internet cause permanent designer process hanging even if network back to normal again.
It would be cool to prevent this hanging and display network error message.

PS: It's normal when DB server not available. Hanging happens only if there is not Internet at all. Right now the only cure is process kill.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.