Share

ADempiere ERP Business Suite

Tracker: Bugs

3 Menu is generated bad if it contains diacritics - ID: 1738951
Last Update: Settings changed ( globalqss )

== Test case ==
Suppose you have a menu item that contains diacritics.
Login using WebUI.
Instead of menu you will see the html code for it.

This is because, the menu is generated using string concatenations
(StringBuffer) and not org.apache.ecs classes, and when your string has
characters with code > 255 the filter state for that element is
automatically set to true.

== Sugestion ==
1. Implement the menu generation using ecs classes (recommended solution)
2. Edit WMenu and modify (easy solution):
(aprox line 455)
td td = new td().setColSpan(2).setNoWrap(true);
td.setClass("menuCenter");
StringElement s = new StringElement(buf.toString());
s.setFilter(new NullFilter());
td.addElement(s);
table.addElement(new tr().addElement(td));


Best regards,
Teo Sarca


Teo Sarca ( teo_sarca ) - 2007-06-18 08:59

3

Open

None

Nobody/Anonymous

UI HTML

Beta

Public


Comments ( 3 )

Date: 2007-07-08 04:44
Sender: rob_k


Teo,
I'll follow up on this required change.
Thanks
Rob


Date: 2007-06-28 07:54
Sender: teo_sarcaProject Admin


Hi,
Basically ECS sources are in the trunk with Compiere header :)

Does anybody know what was changed ? (excluding the header comment)
Should be this the right approach ?

Best regards,
Teo Sarca



Date: 2007-06-27 05:37
Sender: bmovaqar


Hi Teo,

ECS elements can be overriden and customised, am I right? Looks like it
helps us further extend WebUI.

Warm regards,
Bahman


Attached File

No Files Currently Attached

Changes ( 2 )

Field Old Value Date By
artifact_group_id v3.3.0 2008-02-15 07:32 globalqss
priority 5 2008-02-15 07:32 globalqss