[JBoss JIRA] Created: (RF-3850) rich:calendar converter bug
by Tim Evers (JIRA)
rich:calendar converter bug
---------------------------
Key: RF-3850
URL: http://jira.jboss.com/jira/browse/RF-3850
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.2.1
Environment: Running richfaces 3.2.1GA with facelets 1.1.13 and seam 2.0.1
Reporter: Tim Evers
The following code worked under richfaces 3.2.0 but not under 3.2.1GA
<rich:calendar id="postingDate"
inputStyle="width:80px"
value="#{LedgerFilterDataBean.postingDate}"
datePattern="dd/MM/yyyy"
converter="GekkoDateConverter"
/>
The value expression binds to a variable of type GekkoDate (our own custom date type)
The code that fails under 3.2.1GA is
public String getAsString(FacesContext context,
UIComponent component,
Object value)
{
if (value == null) {
return "";
}
try {
return DateFormatUtils.formatDate((GekkoDate) value,
getDateFormat(component));
} catch (ConverterException e) {
throw new ConverterException(MessageFactory.getMessage(context,
STRING_ID, value, MessageFactory.getLabel(context, component)),
e);
}
}
The reason it fails is that under 3.2.1GA sometimes the parameter (Object value) is not of type GekkoDate. It is of type java.util.date.
Somehow in the change from 3.2.0 to 3.2.1GA the support for custom date types has been broken.
--
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
15 years, 9 months
[JBoss JIRA] Created: (RF-4389) Permission denied to get property with a4j:status
by Tobias Kilian (JIRA)
Permission denied to get property with a4j:status
-------------------------------------------------
Key: RF-4389
URL: https://jira.jboss.org/jira/browse/RF-4389
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.2.1
Environment: Firefox 3.0.1
Firebug 1.2.0
Reporter: Tobias Kilian
I have the following code:
<a4j:status id="myStatus" forceId="true" onstart="disableInputs();">
<f:facet name="start">
<h:graphicImage value="/img/icons/loading.gif"/>
</f:facet>
</a4j:status>
which gives me the resulting html snippet:
<span id="myStatus">
<span id="myStatus.start" style="display: none">
<img src="/img/icons/loading.gif" />
</span>
<script type="text/javascript">window.document.getElementById('myStatus.start').onstart=function(){disableInputs();};</script>
<span id="myStatus.stop"></span>
</span>
This leads to the javascript warning:
Permission denied to get property HTMLDivElement.tagName
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
15 years, 9 months