[JBoss JIRA] (RF-13316) PDF is rendered on top of components
by Jonáš Trantina (JIRA)
[ https://issues.jboss.org/browse/RF-13316?page=com.atlassian.jira.plugin.s... ]
Jonáš Trantina updated RF-13316:
--------------------------------
Attachment: reproducer.zip
Reproducer application.
> PDF is rendered on top of components
> ------------------------------------
>
> Key: RF-13316
> URL: https://issues.jboss.org/browse/RF-13316
> Project: RichFaces
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Affects Versions: 4.3.2, 4.3.4
> Environment: Internet Explorer with Adobe Reader plugin
> Reporter: Jonáš Trantina
> Attachments: correct.jpg, incorrect.jpg, reproducer.zip
>
>
> If I try to display RichFaces components over a PDF object (either PDF in iframe, or object or embed tag) in Internet Explorer with Adobe Reader plugin, the PDF is either always on top of everything or some components are over the PDF and some are under (e.g. when using overlapEmbedObjects attribute).
> Take a look at images attached to this case, also there is a reproducer app attached.
> This seems as a issue with Adobe Reader and IE, as in Linux environment in Chrome there is no problem with that setup, components are rendered on top, even without the overlapEmbedObjects option.
> Let me know if you need anything.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
11 years
[JBoss JIRA] (RF-13316) PDF is rendered on top of components
by Jonáš Trantina (JIRA)
Jonáš Trantina created RF-13316:
-----------------------------------
Summary: PDF is rendered on top of components
Key: RF-13316
URL: https://issues.jboss.org/browse/RF-13316
Project: RichFaces
Issue Type: Bug
Security Level: Public (Everyone can see)
Affects Versions: 4.3.4, 4.3.2
Environment: Internet Explorer with Adobe Reader plugin
Reporter: Jonáš Trantina
If I try to display RichFaces components over a PDF object (either PDF in iframe, or object or embed tag) in Internet Explorer with Adobe Reader plugin, the PDF is either always on top of everything or some components are over the PDF and some are under (e.g. when using overlapEmbedObjects attribute).
Take a look at images attached to this case, also there is a reproducer app attached.
This seems as a issue with Adobe Reader and IE, as in Linux environment in Chrome there is no problem with that setup, components are rendered on top, even without the overlapEmbedObjects option.
Let me know if you need anything.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
11 years
[JBoss JIRA] (RF-13288) EDT: sortOrder gets re-set when resizing a column
by Lukáš Fryč (JIRA)
[ https://issues.jboss.org/browse/RF-13288?page=com.atlassian.jira.plugin.s... ]
Lukáš Fryč updated RF-13288:
----------------------------
Fix Version/s: (was: 4.3.4)
> EDT: sortOrder gets re-set when resizing a column
> -------------------------------------------------
>
> Key: RF-13288
> URL: https://issues.jboss.org/browse/RF-13288
> Project: RichFaces
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: component-tables
> Affects Versions: 4.3.2
> Reporter: Jonáš Trantina
> Assignee: Lukáš Fryč
> Labels: waiting_on_user
> Attachments: reproducer.tar.gz
>
>
> I have the following extendedDataTable:
> {noformat}
> <rich:extendedDataTable value="#{sandboxHandler.workItems}"
> keepSaved="true" var="workitem" id="table">
> <rich:column sortBy="#{workitem}"
> sortOrder="#{sandboxHandler.sortingBean.sortsOrders['entryPD']}">
> <f:facet name="header">
> <h:outputText value="bla" />
> <uwl:simpleSortIcons sortingBean="#{sandboxHandler.sortingBean}"
> sortBy="entryPD" render="table" />
> </f:facet>
> <h:outputFormat value="{0, date, dd.MM.yyyy - HH:mm}">
> <f:param value="#{workitem}" />
> </h:outputFormat>
> </rich:column>
> </rich:extendedDataTable>
> {noformat}
> The issue is the sorting stops working after resizing a column. It gets stuck at ASC or DESC. This is caused by ELResolver, that is setting sandboxHandler.sortingBean.sortsOrders['entryPD'] back to the old value right after the SortingBean has done its job and set the right sort order.
> Note that before resizing the column everything works fine and nobody (except SortingBean) touches the sortOrders map.
> Please see the attached reproducer app, that is debug-friendly and shows the behaviour.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
11 years
[JBoss JIRA] (RF-13288) EDT: sortOrder gets re-set when resizing a column
by Lukáš Fryč (JIRA)
[ https://issues.jboss.org/browse/RF-13288?page=com.atlassian.jira.plugin.s... ]
Lukáš Fryč resolved RF-13288.
-----------------------------
Fix Version/s: 4.3.4
Resolution: Out of Date
[~jtrantin] confirmed offline that the issue is fixed in 4.3.4.
> EDT: sortOrder gets re-set when resizing a column
> -------------------------------------------------
>
> Key: RF-13288
> URL: https://issues.jboss.org/browse/RF-13288
> Project: RichFaces
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: component-tables
> Affects Versions: 4.3.2
> Reporter: Jonáš Trantina
> Assignee: Lukáš Fryč
> Labels: waiting_on_user
> Fix For: 4.3.4
>
> Attachments: reproducer.tar.gz
>
>
> I have the following extendedDataTable:
> {noformat}
> <rich:extendedDataTable value="#{sandboxHandler.workItems}"
> keepSaved="true" var="workitem" id="table">
> <rich:column sortBy="#{workitem}"
> sortOrder="#{sandboxHandler.sortingBean.sortsOrders['entryPD']}">
> <f:facet name="header">
> <h:outputText value="bla" />
> <uwl:simpleSortIcons sortingBean="#{sandboxHandler.sortingBean}"
> sortBy="entryPD" render="table" />
> </f:facet>
> <h:outputFormat value="{0, date, dd.MM.yyyy - HH:mm}">
> <f:param value="#{workitem}" />
> </h:outputFormat>
> </rich:column>
> </rich:extendedDataTable>
> {noformat}
> The issue is the sorting stops working after resizing a column. It gets stuck at ASC or DESC. This is caused by ELResolver, that is setting sandboxHandler.sortingBean.sortsOrders['entryPD'] back to the old value right after the SortingBean has done its job and set the right sort order.
> Note that before resizing the column everything works fine and nobody (except SortingBean) touches the sortOrders map.
> Please see the attached reproducer app, that is debug-friendly and shows the behaviour.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
11 years
[JBoss JIRA] (RF-13312) rich:editor doesn't work in RF 4.5
by Lukáš Fryč (JIRA)
[ https://issues.jboss.org/browse/RF-13312?page=com.atlassian.jira.plugin.s... ]
Lukáš Fryč edited comment on RF-13312 at 11/4/13 12:43 PM:
-----------------------------------------------------------
This can be caused by re-mapping of org.richfaces.* library to resource servlet: RF-13078
Not sure how it's related yet though.
was (Author: lfryc):
This can be caused by re-mapping of org.richfaces.* library to resource servlet: RF-13078
> rich:editor doesn't work in RF 4.5
> ----------------------------------
>
> Key: RF-13312
> URL: https://issues.jboss.org/browse/RF-13312
> Project: RichFaces
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: component-input
> Affects Versions: 4.5-Tracking
> Reporter: Michal Petrov
> Fix For: 4.5.0.Alpha1
>
>
> The editor's UI doesn't get rendered. The rendering fails with:
> {panel}
> 10:59:36,709 SEVERE \[javax.enterprise.resource.webcontainer.jsf.application\] (http--127.0.0.1-8080-1) Error Rendering View\[/richfaces/component-sample.xhtml\]: java.lang.StringIndexOutOfBoundsException: String index out of range: -1
> {panel}
> It is caused by [this line|https://github.com/richfaces4/components/blob/master/input/ui/src/ma...]. The actual request path does not contain any parameters.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
11 years
[JBoss JIRA] (RF-13305) Autocomplete: i must press button twice for popup window
by Brian Leathem (JIRA)
[ https://issues.jboss.org/browse/RF-13305?page=com.atlassian.jira.plugin.s... ]
Brian Leathem reassigned RF-13305:
----------------------------------
Assignee: Lukáš Fryč
[~lfryc] please assess the proposed fix and schedule accordingly.
> Autocomplete: i must press button twice for popup window
> --------------------------------------------------------
>
> Key: RF-13305
> URL: https://issues.jboss.org/browse/RF-13305
> Project: RichFaces
> Issue Type: Feature Request
> Security Level: Public(Everyone can see)
> Affects Versions: 4.3.4
> Reporter: alexey plotnikov
> Assignee: Lukáš Fryč
>
> All described here https://community.jboss.org/thread/233971
> I try repeat:
> I have this autocomplete component:
> {code}
> <table>
> <tr>
> <td>
> <rich:autocomplete mode="ajax" autocompleteMethod="#{autocomplete.autocompleteProviders}"
> minChars="0" var="s" fetchValue="#{s.realName}" id="provider-suggestion"
> autofill="false"
> onselectitem="autocompleteChangeProvider(event.target)" style="display: inline;"
> layout="table" value="#{autocomplete.providerName}" >
> <a4j:queue requestDelay="500" ignoreDupResponses="true" />
> <h:column>
> <h:outputText style="display:none;" value="#{s.id}"/>
> <h:outputText style="display:none;" value="#{s.realName}"/>
> </h:column>
> <h:column>
> <h:outputText value="#{s.name}" escape="false"/>
> </h:column>
> </rich:autocomplete>
> </td>
> <td>
> <h:graphicImage value="/img/arrow.png" onclick="#{rich:component('provider-suggestion')}.setValue('');#{rich:component('provider-suggestion')}.showPopup();stopEvent(event);"
> alt=""/>
> <h:graphicImage value="/img/cancel.png"
> onclick="#{rich:component('provider-suggestion')}.hidePopup();#{rich:component('provider-suggestion')}.setValue('');autocompleteChangeProvider(null);"
> alt="#{messages['pages.clear']}" title="#{messages['pages.clear']}"/>
> <h:inputHidden id="filter-provider-id" value="#{autocomplete.providerId}"/>
> </td>
> </tr>
> </table>
> {code}
> as you can see, i don't use showButton="true", because i need another functionality, i need erase input text before show popup window.
> I use JavaScript function "autocompleteChangeProvider" for extract selected id.
> I use separate button(/img/cancel.png) for erase input text, as you can see this function just use Richfaces API.
>
> And problem:
> if autocomplete.providerName not null and not empty(in rich:autocomplete) and user clicks on cancel button(img/cancel.png), then after that, if user clicks on show button(/img/arrow.png) popup not showing, user must clicks twice on this button.
> *This problem shows if i use showButton from rich:autocomplete instead my show button.*
> I think i found a solution of this problem:
> Autocomplete.js has this code:
> {code}
> var onChangeValue = function (event, value, callback) {
> selectItem.call(this, event);
>
> // value is undefined if called from AutocompleteBase onChange
> var subValue = (typeof value == "undefined") ? this.__getSubValue() : value;
> var oldValue = this.value;
> this.value = subValue;
>
> if ((this.options.isCachedAjax || !this.options.ajaxMode) &&
> this.cache && this.cache.isCached(subValue)) {
> ...
> } else {
> if (event.keyCode == rf.KEYS.RETURN || event.type == "click") {
> this.__setInputValue(subValue);
> }
> if (subValue.length >= this.options.minChars) {
> if ((this.options.ajaxMode || this.options.lazyClientMode) && oldValue != subValue) {
> callAjax.call(this, event, callback);
> }
> } else {
> if (this.options.ajaxMode) {
> clearItems.call(this);
> this.__hide(event);
> }
> }
> }
> };
> {code}
> for show popup this must be true:
> {code}
> oldValue != subValue
> {code}
> but in this part of code
> oldValue is ''(empty string) and subValue is ''(empty string),
> so this condition
> {code}
> oldValue != subValue
> {code}
> return false!
>
> i replace this code by this:
> {code}
> var onChangeValue = function (event, value, callback) {
> selectItem.call(this, event);
>
> // value is undefined if called from AutocompleteBase onChange
> var subValue = (typeof value == "undefined") ? this.__getSubValue() : value;
> var oldValue = this.value;
> this.value = subValue;
>
> if ((this.options.isCachedAjax || !this.options.ajaxMode) &&
> this.cache && this.cache.isCached(subValue)) {
> ...
> } else {
> if (event.keyCode == rf.KEYS.RETURN || event.type == "click") {
> this.__setInputValue(subValue);
> }
> if (subValue.length >= this.options.minChars) {
> if ((this.options.ajaxMode || this.options.lazyClientMode) && (oldValue != subValue || (oldValue === '' && subValue === ''))) {
> callAjax.call(this, event, callback);
> }
> } else {
> if (this.options.ajaxMode) {
> clearItems.call(this);
> this.__hide(event);
> }
> }
> }
>
> };
> {code}
> so, than oldValue='' and subValue=='' callAjax.call will be called and popup will be showing.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
11 years
[JBoss JIRA] (RF-13306) Autocomplete: ignored API call .setValue('')
by Brian Leathem (JIRA)
[ https://issues.jboss.org/browse/RF-13306?page=com.atlassian.jira.plugin.s... ]
Brian Leathem reassigned RF-13306:
----------------------------------
Assignee: Lukáš Fryč
[~lfryc] please assess the proposed fix and schedule accordingly.
> Autocomplete: ignored API call .setValue('')
> --------------------------------------------
>
> Key: RF-13306
> URL: https://issues.jboss.org/browse/RF-13306
> Project: RichFaces
> Issue Type: Feature Request
> Security Level: Public(Everyone can see)
> Affects Versions: 4.3.4
> Reporter: alexey plotnikov
> Assignee: Lukáš Fryč
>
> All described here https://community.jboss.org/thread/233973
> I have this autocomplete component:
> {code}
> <table>
> <tr>
> <td>
> <rich:autocomplete mode="ajax" autocompleteMethod="#{autocomplete.autocompleteProviders}"
> minChars="0" var="s" fetchValue="#{s.realName}" id="provider-suggestion"
> autofill="false"
> onselectitem="autocompleteChangeProvider(event.target)" style="display: inline;"
> layout="table" value="#{autocomplete.providerName}" >
> <a4j:queue requestDelay="500" ignoreDupResponses="true" />
> <h:column>
> <h:outputText style="display:none;" value="#{s.id}"/>
> <h:outputText style="display:none;" value="#{s.realName}"/>
> </h:column>
> <h:column>
> <h:outputText value="#{s.name}" escape="false"/>
> </h:column>
> </rich:autocomplete>
> </td>
> <td>
> <h:graphicImage value="/img/arrow.png" onclick="#{rich:component('provider-suggestion')}.setValue('');#{rich:component('provider-suggestion')}.showPopup();stopEvent(event);"
> alt=""/>
> <h:graphicImage value="/img/cancel.png"
> onclick="#{rich:component('provider-suggestion')}.hidePopup();#{rich:component('provider-suggestion')}.setValue('');autocompleteChangeProvider(null);"
> alt="#{messages['pages.clear']}" title="#{messages['pages.clear']}"/>
> <h:inputHidden id="filter-provider-id" value="#{autocomplete.providerId}"/>
> </td>
> </tr>
> </table>
> {code}
> as you can see, i don't use showButton="true", because i need another functionality, i need erase input text before show popup window.
> I use JavaScript function "autocompleteChangeProvider" for extract selected id.
> I use separate button(/img/cancel.png) for erase input text, as you can see this function just use Richfaces API.
>
> And a problem:
> if autocomplete.providerName not null and not empty(in rich:autocomplete) and user clicks on show button(/img/arrow.png) than input text not erasing, but i called #{rich:component('provider-suggestion')}.setValue('') !!!
>
> I think i found a solution
> AutocompleteBase.js has this code:
> {code}
> rf.ui.AutocompleteBase = function(componentId, selectId, fieldId, options) {
> // call constructor of parent class
> $super.constructor.call(this, componentId);
> this.selectId = selectId;
> this.fieldId = fieldId;
> this.options = $.extend({}, defaultOptions, options);
> this.namespace = this.namespace || "." + rf.Event.createNamespace(this.name, this.selectId);
> this.currentValue = "";
> this.tempValue = this.getValue();
> this.isChanged = this.tempValue.length != 0;
> bindEventHandlers.call(this);
> };
> {code}
> as you can see this.currentValue = "" so JS thinks that this.currentValue="" so currentValue equal new value("" - empty string), so nothing happens.
> i replace this code by this:
> {code}
> rf.ui.AutocompleteBase = function(componentId, selectId, fieldId, options) {
> // call constructor of parent class
> $super.constructor.call(this, componentId);
> this.selectId = selectId;
> this.fieldId = fieldId;
> this.options = $.extend({}, defaultOptions, options);
> this.namespace = this.namespace || "." + rf.Event.createNamespace(this.name, this.selectId);
> this.currentValue = $(rf.getDomElement(fieldId)).val();
> this.tempValue = this.getValue();
> this.isChanged = this.tempValue.length != 0;
> bindEventHandlers.call(this);
> };
> {code}
> and it works!
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
11 years