Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0020781Openbravo ERPA. Platformpublic2012-06-15 12:122012-06-21 15:49
iperdomo 
iperdomo 
urgentminoralways
closedfixed 
303.3.7-1-ARCH
pi 
3.0MP133.0MP13 
Google Chrome
Core
No
0020781: Refactor StaticResourcesComponent concepts
Currently a module can add resources to Openbravo through a ComponentProvider.

A resource can be:
- Static
- Dynamic
- Style

And you can be included a "mode":
- classic
- 3.00

This approach is too restrictive. You cannot reuse the StaticResourcesComponent in another window that is not classic, nor 3.00.
Try to use StaticResources in a different HTML file (application) that is not classic, nor Openbravo 3.
The proposed solution is to add the concept of Application, a resource is either Static, Dynamic or Style, and is "valid for" an *Application*.

This allows us to reuse the StaticResourcesComponent in other applications like Web POS.
No tags attached.
related to defect 0020807 closed iperdomo Wrong behaviour in add transaction and in add payment from transaction windows 
Issue History
2012-06-15 12:12iperdomoNew Issue
2012-06-15 12:12iperdomoAssigned To => iperdomo
2012-06-15 12:12iperdomoWeb browser => Google Chrome
2012-06-15 12:12iperdomoModules => Core
2012-06-15 12:12iperdomoWeb browserGoogle Chrome => Google Chrome
2012-06-15 12:12iperdomoTypedefect => design defect
2012-06-15 12:12iperdomoWeb browserGoogle Chrome => Google Chrome
2012-06-15 12:12iperdomoDescription Updatedbug_revision_view_page.php?rev_id=3555#r3555
2012-06-15 12:13iperdomoWeb browserGoogle Chrome => Google Chrome
2012-06-15 12:13iperdomoDescription Updatedbug_revision_view_page.php?rev_id=3556#r3556
2012-06-15 12:30iperdomoStatusnew => scheduled
2012-06-15 12:30iperdomofix_in_branch => pi
2012-06-15 16:19hgbotCheckin
2012-06-15 16:19hgbotNote Added: 0049860
2012-06-15 16:19hgbotStatusscheduled => resolved
2012-06-15 16:19hgbotResolutionopen => fixed
2012-06-15 16:19hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/9dc141df1f4374822efb03fe4c5ba498c931ec4c [^]
2012-06-19 18:13SandrahuguetRelationship addedrelated to 0020807
2012-06-21 15:49alostaleNote Added: 0049987
2012-06-21 15:49alostaleStatusresolved => closed
2012-06-21 15:49alostaleFixed in Version => 3.0MP13

Notes
(0049860)
hgbot   
2012-06-15 16:19   
Repository: erp/devel/pi
Changeset: 9dc141df1f4374822efb03fe4c5ba498c931ec4c
Author: Iván Perdomo <ivan.perdomo <at> openbravo.com>
Date: Fri Jun 15 16:17:10 2012 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/9dc141df1f4374822efb03fe4c5ba498c931ec4c [^]

Fixes issue 20781: Adds the concept of _application_ to ComponentResources
- Now a ComponentResource (dynamic, static, style) has a *valid for* list, in this way we
  can reuse the StaticResourcesComponent and StyleResourcesComponents in other
  applications like Web POS
- This changeset doesn't introduce a change in behavior. If a request is made with _appName,
  the parameter is used, if not, we check for _mode, and the last case case (no parameter)
  is a classic mode call
- Adds an error handler to index.jsp to get an alert() when you have errors in some static .js

---
M modules/org.openbravo.client.application/src/org/openbravo/client/application/ApplicationComponentProvider.java
M modules/org.openbravo.client.kernel/src/org/openbravo/client/kernel/BaseComponent.java
M modules/org.openbravo.client.kernel/src/org/openbravo/client/kernel/BaseComponentProvider.java
M modules/org.openbravo.client.kernel/src/org/openbravo/client/kernel/KernelConstants.java
M modules/org.openbravo.client.kernel/src/org/openbravo/client/kernel/StaticResourceComponent.java
M modules/org.openbravo.client.kernel/src/org/openbravo/client/kernel/StyleSheetResourceComponent.java
M src/index.jsp
---
(0049987)
alostale   
2012-06-21 15:49   
code reviewed and verified on pi@20d1a6b019e0