[JBoss JIRA] Created: (RF-2173) suggestionbox generates class attribute 2 times on return of results
by Jonathan Richard (JIRA)
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.1.3, 3.2.0, Future Versions
Environment: any
Reporter: Jonathan Richard
Priority: Critical
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
14 years, 11 months
[JBoss JIRA] Created: (RF-2131) Calendar: Problems working when pattern contains time
by Ilya Shaikovsky (JIRA)
Calendar: Problems working when pattern contains time
------------------------------------------------------
Key: RF-2131
URL: http://jira.jboss.com/jira/browse/RF-2131
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.2.0
Reporter: Ilya Shaikovsky
Assigned To: Pavel Yaschenko
Fix For: 3.2.0
<rich:calendar value="#{calendarBean.selectedDate}"
locale="#{calendarBean.locale}"
popup="#{calendarBean.popup}"
datePattern="#{calendarBean.pattern}"
showApplyButton="#{calendarBean.showApply}">
<a4j:support event="onchange" reRender="out"/>
</rich:calendar>
<h:outputText id="out" value="#{calendarBean.selectedDate}"/>
onchange event seems not fired not for date selection nor for time change.
ondateselected - doesn't works when I just change the time
1) We should add event which will fired on any date or time change
2) We should add ontimechanged attribute
--
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
14 years, 11 months