Skip to content

Commit

Permalink
merge
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.potix.com/svn/zk1/releases/5.0.4@15249 dd50bd9b-9913-0410-b9ba-e07a3075be86
  • Loading branch information
tomyeh committed Sep 3, 2010
2 parents d2dcd4d + 10e6dab commit 86a4b01
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
10 changes: 7 additions & 3 deletions zk/src/org/zkoss/zk/ui/impl/DesktopImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -258,10 +258,11 @@ private static String getQueryString(Object request) {
}
return null;
}
private static final String DESKTOP_ID_PREFIX = "zd_";
private static String nextDesktopId(DesktopCache dc) {
if (dc != null)
return Strings.encode(
new StringBuffer(12).append("zd_"), dc.getNextKey()).toString();
new StringBuffer(12).append(DESKTOP_ID_PREFIX), dc.getNextKey()).toString();

final int v;
synchronized (DesktopImpl.class) {
Expand All @@ -280,8 +281,11 @@ private void init() {
}
/** Updates _uuidPrefix based on _id. */
private void updateUuidPrefix() {
_uuidPrefix = _id.substring(1, _id.length() <= 2 ? 2: 3);
//the first few chars because of the encode's algorithm
String id = _id.startsWith(DESKTOP_ID_PREFIX) ?
_id.substring(DESKTOP_ID_PREFIX.length()): _id;
final int len = id.length();
_uuidPrefix = len > 3 ? id.substring(0, 3): id;
//since _id's first few character is changed first, we pick the first few
}

public String getId() {
Expand Down
1 change: 1 addition & 0 deletions zkdoc/release-note
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ ZK 5.0.4
3054784: Native parameter in Button.setUpload() is not effective
3057311: Select list fires a unnecessary onSelect on IE
3057288: Listbox in ROD, the items will disappear
3058547: In Liferay, if page has two portlet, won't work

* Upgrade Notes
+ The default value of tabindex is changed from -1 to 0.
Expand Down

0 comments on commit 86a4b01

Please sign in to comment.