[JBoss JIRA] (RF-12764) rich:select - javascript error when using myfaces with french locale
by Brian Leathem (JIRA)
[ https://issues.jboss.org/browse/RF-12764?page=com.atlassian.jira.plugin.s... ]
Brian Leathem commented on RF-12764:
------------------------------------
A github pull request with the proposed patch would be welcome. We can then review the patch and run our tests to check for regressions.
> rich:select - javascript error when using myfaces with french locale
> --------------------------------------------------------------------
>
> Key: RF-12764
> URL: https://issues.jboss.org/browse/RF-12764
> Project: RichFaces
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Affects Versions: 4.3.0.CR2
> Reporter: Dupont Dupont
> Labels: patch_proposed
> Fix For: 4.5-Tracking
>
>
> Using RF 4.3.0.CR2, using rich:select with french locale on Myfaces produces the following javascript error :
> {code}
> Uncaught SyntaxError: Unexpected identifier.
> {code}
> It appears when javax.faces.component.UISelectOne.INVALID error message has a value containing a single quote.
> To reproduce it, just add the following line in your jsf messages properties :
> {code}
> javax.faces.component.UISelectOne.INVALID = {0} : Erreur de validation : la valeur n''est pas valide.
> {code}
> And add a rich:select in your JSF page.
> We end up with the javascript :
> {code}
> RichFaces.csv.addMessage({ 'UISELECTONE_INVALID': {detail:'{0} : Erreur de validation : la valeur n'est pas valide.',summary:'{0} : Erreur de validation : la valeur n'est pas valide.',severity:2} });
> {code}
> This error impacts users of Websphere 8 (tested on 8.0.0.3) with french locale (myfaces provides a default message containing simple quotes).
> Resolved locally by modifying AddCSVMessageScript#appendcript
> But perhaps I've missed some side effects.
> {code:java}
> @Override
> public void appendScript(Appendable target) throws IOException {
> String summary = facesMessage.getSummary();
> String detail = facesMessage.getDetail();
> int severity = facesMessage.getSeverity().getOrdinal();
> StringBuilder builder = new StringBuilder();
> ScriptUtils.appendEncodedString(builder, summary);
> summary = builder.toString();
> builder = new StringBuilder();
> ScriptUtils.appendEncodedString(builder, detail);
> detail = builder.toString();
>
> String script = MessageFormat.format(MESSAGE_OBJECT, messageId, summary, detail, severity);
> target.append(script);
> }
> {code}
--
This message was sent by Atlassian JIRA
(v6.2.3#6260)
11 years, 9 months
[JBoss JIRA] (RF-12764) rich:select - javascript error when using myfaces with french locale
by Christophe Porté (JIRA)
[ https://issues.jboss.org/browse/RF-12764?page=com.atlassian.jira.plugin.s... ]
Christophe Porté commented on RF-12764:
---------------------------------------
This issue affects also the current 4.3.7 version, and is quite critical, as when the failing javascript is added to the current page, major part of the page fails and become unusable (no more ajax calls)
> rich:select - javascript error when using myfaces with french locale
> --------------------------------------------------------------------
>
> Key: RF-12764
> URL: https://issues.jboss.org/browse/RF-12764
> Project: RichFaces
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Affects Versions: 4.3.0.CR2
> Reporter: Dupont Dupont
> Labels: patch_proposed
> Fix For: 5-Tracking
>
>
> Using RF 4.3.0.CR2, using rich:select with french locale on Myfaces produces the following javascript error :
> {code}
> Uncaught SyntaxError: Unexpected identifier.
> {code}
> It appears when javax.faces.component.UISelectOne.INVALID error message has a value containing a single quote.
> To reproduce it, just add the following line in your jsf messages properties :
> {code}
> javax.faces.component.UISelectOne.INVALID = {0} : Erreur de validation : la valeur n''est pas valide.
> {code}
> And add a rich:select in your JSF page.
> We end up with the javascript :
> {code}
> RichFaces.csv.addMessage({ 'UISELECTONE_INVALID': {detail:'{0} : Erreur de validation : la valeur n'est pas valide.',summary:'{0} : Erreur de validation : la valeur n'est pas valide.',severity:2} });
> {code}
> This error impacts users of Websphere 8 (tested on 8.0.0.3) with french locale (myfaces provides a default message containing simple quotes).
> Resolved locally by modifying AddCSVMessageScript#appendcript
> But perhaps I've missed some side effects.
> {code:java}
> @Override
> public void appendScript(Appendable target) throws IOException {
> String summary = facesMessage.getSummary();
> String detail = facesMessage.getDetail();
> int severity = facesMessage.getSeverity().getOrdinal();
> StringBuilder builder = new StringBuilder();
> ScriptUtils.appendEncodedString(builder, summary);
> summary = builder.toString();
> builder = new StringBuilder();
> ScriptUtils.appendEncodedString(builder, detail);
> detail = builder.toString();
>
> String script = MessageFormat.format(MESSAGE_OBJECT, messageId, summary, detail, severity);
> target.append(script);
> }
> {code}
--
This message was sent by Atlassian JIRA
(v6.2.3#6260)
11 years, 9 months
[JBoss JIRA] (RF-13659) Autocomplete cannot select option on IE11
by Brian Leathem (JIRA)
[ https://issues.jboss.org/browse/RF-13659?page=com.atlassian.jira.plugin.s... ]
Brian Leathem updated RF-13659:
-------------------------------
Labels: waiting_on_user (was: )
> Autocomplete cannot select option on IE11
> -----------------------------------------
>
> Key: RF-13659
> URL: https://issues.jboss.org/browse/RF-13659
> Project: RichFaces
> Issue Type: Feature Request
> Security Level: Public(Everyone can see)
> Components: component-input
> Affects Versions: 4.3.5, 4.3.6, 4.3.7
> Environment: Internet Explorer 11
> Reporter: Alexandre Palmeira
> Assignee: Juraj Húska
> Labels: waiting_on_user
>
> Components: autocomplete, select, inplaceSelect.
> Works on IE 10.
> Issues:
> User cannot visually select an option from the popup list == moving mouse over the items in the list will not change theirs class.
> however clicking on the item will select the option correctly. EXCEPT autocomplete (RF4), where it will not select anything.
> workaround: the item can be selected, when moving off the list and back to it on the correct item, but the cursor should not move through scroller.
> User cannot select option with keyboard.
--
This message was sent by Atlassian JIRA
(v6.2.3#6260)
11 years, 9 months
[JBoss JIRA] (RF-13659) Autocomplete cannot select option on IE11
by Brian Leathem (JIRA)
[ https://issues.jboss.org/browse/RF-13659?page=com.atlassian.jira.plugin.s... ]
Brian Leathem commented on RF-13659:
------------------------------------
[~apalmeira] please provide sample code and instructions to reproduce.
> Autocomplete cannot select option on IE11
> -----------------------------------------
>
> Key: RF-13659
> URL: https://issues.jboss.org/browse/RF-13659
> Project: RichFaces
> Issue Type: Feature Request
> Security Level: Public(Everyone can see)
> Components: component-input
> Affects Versions: 4.3.5, 4.3.6, 4.3.7
> Environment: Internet Explorer 11
> Reporter: Alexandre Palmeira
> Assignee: Juraj Húska
> Labels: waiting_on_user
>
> Components: autocomplete, select, inplaceSelect.
> Works on IE 10.
> Issues:
> User cannot visually select an option from the popup list == moving mouse over the items in the list will not change theirs class.
> however clicking on the item will select the option correctly. EXCEPT autocomplete (RF4), where it will not select anything.
> workaround: the item can be selected, when moving off the list and back to it on the correct item, but the cursor should not move through scroller.
> User cannot select option with keyboard.
--
This message was sent by Atlassian JIRA
(v6.2.3#6260)
11 years, 9 months
[JBoss JIRA] (RF-13658) Component issues in 4.5
by Michal Petrov (JIRA)
[ https://issues.jboss.org/browse/RF-13658?page=com.atlassian.jira.plugin.s... ]
Michal Petrov commented on RF-13658:
------------------------------------
I tried resetting to [49fe32a3ac1390665aaafa5d3b6e3ec55b9f26e9|https://github.com/richfaces/ric...] (before the EPVC merge/update); the trees do not work but the ajax updates do. Will investigate further.
> Component issues in 4.5
> -----------------------
>
> Key: RF-13658
> URL: https://issues.jboss.org/browse/RF-13658
> Project: RichFaces
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Affects Versions: 4.5.0.Alpha3
> Reporter: Michal Petrov
> Assignee: Michal Petrov
> Fix For: 4.5.0.Alpha3
>
> Original Estimate: 1 day
> Remaining Estimate: 1 day
>
> I've checked showcase and photoalbum and discovered several issues:
> * trees: the node ids are not being resolved correctly, resulting in ids like this: {{overForm:PreDefinedTree:org.richfaces.model.SequenceRowKey\[DeclarativeModelKey\{modelId=j_idt273, modelKey=\}\]:j_idt275}}
> ** this completely breaks photoalbum
> * data retrieval from server doesn't seem to work (there are no errors on either server or client)
> ** datascroller - the pages switch but the data stay the same (works with a4j:repeat)
> ** extendedDataTable with enabled ajax loading does not load any data
> ** progressbar does not work
> ** togglePanel does not switch
> ** dynamic tabPanels do not switch
> ** tooltips that make a server call do not work (the tooltip is empty)
--
This message was sent by Atlassian JIRA
(v6.2.3#6260)
11 years, 9 months
[JBoss JIRA] (RF-13658) Component issues in 4.5
by Michal Petrov (JIRA)
[ https://issues.jboss.org/browse/RF-13658?page=com.atlassian.jira.plugin.s... ]
Michal Petrov reassigned RF-13658:
----------------------------------
Assignee: Michal Petrov
> Component issues in 4.5
> -----------------------
>
> Key: RF-13658
> URL: https://issues.jboss.org/browse/RF-13658
> Project: RichFaces
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Affects Versions: 4.5.0.Alpha3
> Reporter: Michal Petrov
> Assignee: Michal Petrov
> Fix For: 4.5.0.Alpha3
>
> Original Estimate: 1 day
> Remaining Estimate: 1 day
>
> I've checked showcase and photoalbum and discovered several issues:
> * trees: the node ids are not being resolved correctly, resulting in ids like this: {{overForm:PreDefinedTree:org.richfaces.model.SequenceRowKey\[DeclarativeModelKey\{modelId=j_idt273, modelKey=\}\]:j_idt275}}
> ** this completely breaks photoalbum
> * data retrieval from server doesn't seem to work (there are no errors on either server or client)
> ** datascroller - the pages switch but the data stay the same (works with a4j:repeat)
> ** extendedDataTable with enabled ajax loading does not load any data
> ** progressbar does not work
> ** togglePanel does not switch
> ** dynamic tabPanels do not switch
> ** tooltips that make a server call do not work (the tooltip is empty)
--
This message was sent by Atlassian JIRA
(v6.2.3#6260)
11 years, 9 months
[JBoss JIRA] (RF-13659) Autocomplete cannot select option on IE11
by Juraj Húska (JIRA)
[ https://issues.jboss.org/browse/RF-13659?page=com.atlassian.jira.plugin.s... ]
Juraj Húska commented on RF-13659:
----------------------------------
I can not reproduce this issue.
The only issue I am able to reproduce is RF-13640.
> Autocomplete cannot select option on IE11
> -----------------------------------------
>
> Key: RF-13659
> URL: https://issues.jboss.org/browse/RF-13659
> Project: RichFaces
> Issue Type: Feature Request
> Security Level: Public(Everyone can see)
> Components: component-input
> Affects Versions: 4.3.5, 4.3.6, 4.3.7
> Environment: Internet Explorer 11
> Reporter: Alexandre Palmeira
> Assignee: Juraj Húska
>
> Components: autocomplete, select, inplaceSelect.
> Works on IE 10.
> Issues:
> User cannot visually select an option from the popup list == moving mouse over the items in the list will not change theirs class.
> however clicking on the item will select the option correctly. EXCEPT autocomplete (RF4), where it will not select anything.
> workaround: the item can be selected, when moving off the list and back to it on the correct item, but the cursor should not move through scroller.
> User cannot select option with keyboard.
--
This message was sent by Atlassian JIRA
(v6.2.3#6260)
11 years, 9 months
[JBoss JIRA] (RF-13251) FocusManager to support complex components like rich:autocomplete
by Brian Leathem (JIRA)
[ https://issues.jboss.org/browse/RF-13251?page=com.atlassian.jira.plugin.s... ]
Brian Leathem updated RF-13251:
-------------------------------
Labels: waiting_on_user (was: )
Assignee: (was: Lukáš Fryč)
> FocusManager to support complex components like rich:autocomplete
> -----------------------------------------------------------------
>
> Key: RF-13251
> URL: https://issues.jboss.org/browse/RF-13251
> Project: RichFaces
> Issue Type: Feature Request
> Security Level: Public(Everyone can see)
> Components: component-misc
> Affects Versions: 4.3.4
> Reporter: Immo Benjes
> Priority: Minor
> Labels: waiting_on_user
>
> Currently the FocusManager in Richfaces only works on 'simple' UI components like h:inputText or h:selectOneMenu but not on more complex components like rich:autocomplete.
> It would be good if FocusManager could support complex components or 'real' Ids as generated for that page.
> The use case for the support on autocomplete is like this:
> User has to enter multiple 'entities'. A rich:autocomplete is used to select the entity and add it to a list. After each ajax submit the focus gets lost and the user has to manually set the focus back to the autocomplete input field.
--
This message was sent by Atlassian JIRA
(v6.2.3#6260)
11 years, 9 months