[richfaces-issues] [JBoss JIRA] (RF-13335) Page fragments: get rid of commons-lang dependency
Lukáš Fryč (JIRA)
jira-events at lists.jboss.org
Tue Nov 12 03:12:07 EST 2013
[ https://issues.jboss.org/browse/RF-13335?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12922625#comment-12922625 ]
Lukáš Fryč commented on RF-13335:
---------------------------------
I came to conclusion that we should not need JSON parsing at all - in RichFaces bridgeBase, we can retrieve options using following jQuery UI widget factory invocation:
{code}
$(element).pluginName("optionName");
{code}
Unfortunately, RichFaces 4 BaseComponent doesn't allow to retrieve options at runtime.
I suggest to introduce method {{getOptions}} to [{{BaseComponent}}|https://github.com/richfaces/richfaces/blob/0855b61d55533ad9c1b31555f222608911806cb0/framework/src/main/resources/META-INF/resources/org.richfaces/common/richfaces-base-component.js#L193]:
{code}
function getOptions() {
return this.options;
}
{code}
This would need to be introduced in both, RF 4.3, RF 4.5 and RF 5.0.
> Page fragments: get rid of commons-lang dependency
> --------------------------------------------------
>
> Key: RF-13335
> URL: https://issues.jboss.org/browse/RF-13335
> Project: RichFaces
> Issue Type: Sub-task
> Security Level: Public(Everyone can see)
> Components: page-fragments
> Affects Versions: 5.0.0.Alpha2
> Reporter: Lukáš Fryč
> Assignee: Lukáš Fryč
> Fix For: 5.0.0.Alpha2
>
>
> I didn't found reason to leave {{Validate.isTrue}} - this should be replaced by more verbose but dependency free code.
> I did some googling for alternatives to {{StringEscapeUtils.unescapeJava}} and found out few [suggestions for dependency free Java-unescaping|http://stackoverflow.com/questions/3537706/howto-unescape-a-java-string-literal-in-java].
--
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
More information about the richfaces-issues
mailing list