[JBoss JIRA] Created: (RF-6057) list height of comboBox rendered to small if first element in list is SelectItem with empty String value
by Remo Marti (JIRA)
list height of comboBox rendered to small if first element in list is SelectItem with empty String value
--------------------------------------------------------------------------------------------------------
Key: RF-6057
URL: https://jira.jboss.org/jira/browse/RF-6057
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.3.0
Environment: RichFaces 3.3.0, JSF 1.2.09, Tomcat 6.0.18, FF 3.0.6, IE 7.0
Reporter: Remo Marti
The rendering of the list height in a combo box seems to depend on the number of elements contained therein, as well as the height of the first element. If the first element in the list is a SelectItem with empty value, the height of the entire list is incorrectly rendered.
Example:
<rich:comboBox>
<f:selectItems value="#{bean.optionsWithEmptyElement}"/>
</rich:comboBox>
public List<SelectItem> getOptionsWithEmptyElement () {
List<SelectItem> result= new ArrayList<SelectItem>();
result.add(new SelectItem(""));
result.add(new SelectItem("Item 1"));
result.add(new SelectItem("Item 2"));
result.add(new SelectItem("Item 3"));
return result;
}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
16 years, 7 months
[JBoss JIRA] Created: (RF-7291) RF Problem with editor and Seam Text
by Tony Herstell (JIRA)
RF Problem with editor and Seam Text
------------------------------------
Key: RF-7291
URL: https://jira.jboss.org/jira/browse/RF-7291
Project: RichFaces
Issue Type: Bug
Components: component
Affects Versions: 3.3.1
Environment: richfaces-api-3.3.2-20090526.040422-5.jar
Seam latest official (CR2)
Reporter: Tony Herstell
When using rich:editor component to create seam text (I assume you worked with them on this as it's called seam text) I get as far as this text:
=All classes are ungraded but run in accordance with ESNZ Rules.
=All horses must be eligible to compete at the level entered else they will have to ride HC (see - Rules of Dressage NZ Effective 1st Aug Chapter IV Article 460 - Grading of Horses and Ponies)
<ul>
<li class="seamTextUnorderedListItem">Level 0 Training
<ul><li class="seamTextUnorderedListItem">non-graded only</li></ul>
</li>
<li class="seamTextUnorderedListItem">Level 1 Grade
<ul><li class="seamTextUnorderedListItem">Less than 30 points in level 2 or above</li></ul>
</li>
<li class="seamTextUnorderedListItem">Level 2 Grade
<ul><li class="seamTextUnorderedListItem">t.b.c.</li></ul>
</li>
</ul>
=All classes run on All Weather Arenas (0.3 and 1.4 will be held indoors).
=Refund requests must be written, include Vet or Doctor certificate and be received within 48 hours before the event. Refunds less 20% handling charge.
=Start times will be posted on this web site (www.selwynequestriancentre.co.nz) on 16JUN2009 (NO times will be sent by post)
=Please take all droppings and litter home with you.
=No dogs allowed.
=All riders ride at own risk.
=Organisers will not be responsible for accidents and property damage.
=SEC reserves the right to refuse entries or alter schedule as deemed necessary.
This looks fine in RF but upon saving are trying to view with seam text it gets truncated.
Trying to redisplay the page again with the rich:editor causes a seamtext exception.
There is a disjoint in what is createable in rich:editor and what seamtext will support.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
16 years, 7 months
[JBoss JIRA] Created: (RF-7322) DropdownMenu: invalid parameters submitted
by Nick Belaevski (JIRA)
DropdownMenu: invalid parameters submitted
------------------------------------------
Key: RF-7322
URL: https://jira.jboss.org/jira/browse/RF-7322
Project: RichFaces
Issue Type: Bug
Components: component-menu
Affects Versions: 3.3.2.CR1
Environment: MyFaces 1.2.6
Reporter: Nick Belaevski
Assignee: Nick Belaevski
Priority: Critical
Fix For: 3.3.2.CR1
<h:form>
<rich:dropDownMenu value="menu">
<rich:menuItem target="_blank" submitMode="server" value="Submit" />
</rich:dropDownMenu>
</h:form>
Leads to: javax.crypto.IllegalBlockSizeException: Input length must be multiple of 8 when decrypting with padded cipher
Also submitted parameters contain number of functions:
2
l
3
a
4
n
5
k
blank
function () {
return /^\s*$/.test(this);
}
camelize
function () {
var parts = this.split("-"), len = parts.length;
if (len == 1) {
return parts[0];
}
var camelized = this.charAt(0) == "-" ? parts[0].charAt(0).toUpperCase() + parts[0].substring(1)
: parts[0];
for (var i = 1; i < len; i++) {
camelized += parts[i].charAt(0).toUpperCase() + parts[i].substring(1);
}
return camelized;
}
capitalize
function () {
return this.charAt(0).toUpperCase() + this.substring(1).toLowerCase();
}
dasherize
function () {
return this.gsub(/_/, "-");
}
empty
function () {
return this == "";
}
endsWith
function (pattern) {
var d = this.length - pattern.length;
return d >= 0 && this.lastIndexOf(pattern) === d;
}
escapeHTML
function () {
var self = arguments.callee;
self.text.data = this;
return self.div.innerHTML;
}
evalJSON
function (sanitize) {
var json = this.unfilterJSON();
try {
if (!sanitize || json.isJSON()) {
return eval("(" + json + ")");
}
} catch (e) {
}
throw new SyntaxError("Badly formed JSON string: " + this.inspect());
}
evalScripts
function () {
return this.extractScripts().map(function (script) {return eval(script);});
}
extractScripts
function () {
var matchAll = new RegExp(Prototype.ScriptFragment, "img");
var matchOne = new RegExp(Prototype.ScriptFragment, "im");
return (this.match(matchAll) || []).map(function (scriptTag) {var result = (scriptTag.match(matchOne
) || ["", ""])[1];result = result.replace(/</, "<").replace(/\s*<!--[^\r\n]*/, "");return result
;});
}
gsub
function (pattern, replacement) {
var result = "", source = this, match;
replacement = arguments.callee.prepareReplacement(replacement);
while (source.length > 0) {
if (match = source.match(pattern)) {
result += source.slice(0, match.index);
result += String.interpret(replacement(match));
source = source.slice(match.index + match[0].length);
} else {
result += source, source = "";
}
}
return result;
}
include
function (pattern) {
return this.indexOf(pattern) > -1;
}
inspect
function (useDoubleQuotes) {
var escapedString = this.gsub(/[\x00-\x1f\\]/, function (match) {var character = String.specialChar
[match[0]];return character ? character : "\\u00" + match[0].charCodeAt().toPaddedString(2, 16);});
if (useDoubleQuotes) {
return "\"" + escapedString.replace(/"/g, "\\\"") + "\"";
}
return "'" + escapedString.replace(/'/g, "\\'") + "'";
}
interpolate
function (object, pattern) {
return (new Template(this, pattern)).evaluate(object);
}
isJSON
function () {
var str = this;
if (str.blank()) {
return false;
}
str = this.replace(/\\./g, "@").replace(/"[^"\\\n\r]*"/g, "");
return /^[,:{}\[\]0-9.\-+Eaeflnr-u \n\r\t]*$/.test(str);
}
j_id2_SUBMIT
_
javax.faces.ViewState
b
parseQuery
function (separator) {
var match = this.strip().match(/([^?#]*)(#.*)?$/);
if (!match) {
return {};
}
return match[1].split(separator || "&").inject({}, function (hash, pair) {if ((pair = pair.split
("="))[0]) {var key = decodeURIComponent(pair.shift());var value = pair.length > 1 ? pair.join("=")
: pair[0];if (value != undefined) {value = decodeURIComponent(value);}if (key in hash) {if (!Object.isArray
(hash[key])) {hash[key] = [hash[key]];}hash[key].push(value);} else {hash[key] = value;}}return hash
;});
}
scan
function (pattern, iterator) {
this.gsub(pattern, iterator);
return String(this);
}
startsWith
function (pattern) {
return this.indexOf(pattern) === 0;
}
strip
function () {
return this.replace(/^\s+/, "").replace(/\s+$/, "");
}
stripScripts
function () {
return this.replace(new RegExp(Prototype.ScriptFragment, "img"), "");
}
stripTags
function () {
return this.replace(/<\/?[^>]+>/gi, "");
}
succ
function () {
return this.slice(0, this.length - 1) + String.fromCharCode(this.charCodeAt(this.length - 1) + 1
);
}
times
function (count) {
return count < 1 ? "" : (new Array(count + 1)).join(this);
}
toArray
function () {
return this.split("");
}
toJSON
function () {
return this.inspect(true);
}
toQueryParams
function (separator) {
var match = this.strip().match(/([^?#]*)(#.*)?$/);
if (!match) {
return {};
}
return match[1].split(separator || "&").inject({}, function (hash, pair) {if ((pair = pair.split
("="))[0]) {var key = decodeURIComponent(pair.shift());var value = pair.length > 1 ? pair.join("=")
: pair[0];if (value != undefined) {value = decodeURIComponent(value);}if (key in hash) {if (!Object.isArray
(hash[key])) {hash[key] = [hash[key]];}hash[key].push(value);} else {hash[key] = value;}}return hash
;});
}
truncate
function (length, truncation) {
length = length || 30;
truncation = Object.isUndefined(truncation) ? "..." : truncation;
return this.length > length ? this.slice(0, length - truncation.length) + truncation : String(this
);
}
underscore
function () {
return this.gsub(/::/, "/").gsub(/([A-Z]+)([A-Z][a-z])/, "#{1}_#{2}").gsub(/([a-z\d])([A-Z])/, "
#{1}_#{2}").gsub(/-/, "_").toLowerCase();
}
unescapeHTML
function () {
var div = new Element("div");
div.innerHTML = this.stripTags();
return div.childNodes[0] ? div.childNodes.length > 1 ? $A(div.childNodes).inject("", function (memo
, node) {return memo + node.nodeValue;}) : div.childNodes[0].nodeValue : "";
}
unfilterJSON
function (filter) {
return this.sub(filter || Prototype.JSONFilter, "#{1}");
}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
16 years, 7 months
[JBoss JIRA] Created: (RF-7190) rich:fileUpload broken in IE8
by Cody Lerum (JIRA)
rich:fileUpload broken in IE8
-----------------------------
Key: RF-7190
URL: https://jira.jboss.org/jira/browse/RF-7190
Project: RichFaces
Issue Type: Bug
Components: browser compatibility
Affects Versions: 3.3.1
Environment: JBAS 4.2.3GA
SEAM 2.1.1GA
RF 3.3.1 GA
Reporter: Cody Lerum
Attachments: ui.pack.js
I'm seeing an issue where the rich:fileUpload component isn't working under IE8. Seems to be working fine under Chrome, Safari, FF3 and IE7 (as well as IE8 Compatibility Mode). In IE8 the "Add Files" button is grayed out.
The IE8 script debugger says the issue is with an invalid argument at line 8259 character 25 of ui.pack.js
Here is the line:
if(typeof q.addRule==Q){q.addRule(v,r)
My component is used like so.
<rich:modalPanel id="fileUpload" width="420" height="205" keepVisualState="true">
<f:facet name="header">
<h:outputText value="Upload Files" />
</f:facet>
<f:facet name="controls">
<h:panelGroup>
<h:graphicImage value="/img/close.png" styleClass="hidelink" id="hidelinkFile"/>
<rich:componentControl for="fileUpload" attachTo="hidelinkFile" operation="hide" event="onclick"/>
</h:panelGroup>
</f:facet>
<h:form id="fileUploadForm">
<rich:fileUpload fileUploadListener="#{sfopportunity.uploadSFOpportunityFile}"
listHeight="125"
maxFilesQuantity="10"
id="upload"
addControlLabel="Add Files"
immediateUpload="false"
acceptedTypes="pdf, doc, docx, xls, xlsx, txt, csv, jpg, jpeg, gif, bmp, tif, tiff" allowFlash="true" autoclear="true">
<a:support event="onuploadcomplete" reRender="info" oncomplete="#{rich:component('fileUpload')}.hide()"/>
<f:facet name="label">
<h:outputText value="{_KB}KB of {KB}KB uploaded --- {mm}:{ss}" />
</f:facet>
</rich:fileUpload>
</h:form>
</rich:modalPanel>
Attaching the js file as well.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
16 years, 7 months