[
http://jira.jboss.com/jira/browse/RF-2173?page=all ]
Vladislav Baranov reassigned RF-2173:
-------------------------------------
Assignee: Maksim Kaszynski (was: Vladislav Baranov)
suggestionbox generates class attribute 2 times on return of results
--------------------------------------------------------------------
Key: RF-2173
URL:
http://jira.jboss.com/jira/browse/RF-2173
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.2.0, Future Versions, 3.1.3
Environment: any
Reporter: Jonathan Richard
Assigned To: Maksim Kaszynski
Priority: Critical
Fix For: 3.2.0
The suggestion box generates 2 class="" attributes on the <table> tag it
returns.
The table.jspx template file uses the following code to generate it's default CSS
classe and styleClass attribute:
<table border="0" cellpadding="0" cellspacing="0"
class="dr-sb-int-decor-table rich-sb-int-decor-table" width="100%"
>
...
<f:attribute name="class" property="styleClass"/>
...
</table>
the result of this will be:
<table border="0" cellpadding="0" cellspacing="0"
class="dr-sb-int-decor-table rich-sb-int-decor-table" width="100%"
class="">
but it should be using the same technique as all other rich faces tags to avoid this:
<table border="0" cellpadding="0" cellspacing="0"
class="dr-sb-int-decor-table rich-sb-int-decor-table
#{component.attributes['styleClass']}" width="100%">
and add the property definition in the suggestionbox.xml config file:
<property>
<name>styleClass</name>
<classname>java.lang.String</classname>
<description>Corresponds to the HTML class attribute</description>
</property>
---
This does not cause any problems since the second generated class attribute is detected
by the tidy parser and the latter merge the both class tag content. If you disable the
FastHtmlParser, a4j won't render the suggestionbox returned content since it is not
well formed html....
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira