[JBoss JIRA] Created: (RF-1441) a4j:push: JS error.
by Ilya Shaikovsky (JIRA)
a4j:push: JS error.
-------------------
Key: RF-1441
URL: http://jira.jboss.com/jira/browse/RF-1441
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.2.0
Reporter: Ilya Shaikovsky
Assigned To: Nick Belaevski
Fix For: 3.2.0
<a4j:form>
<a4j:region>
<a4j:push reRender="msg" eventProducer="#{pushBean.addListener}" interval="2000"/>
</a4j:region>
<a4j:outputPanel id="msg" >
<h:outputText value="#{pushBean.date}">
<f:convertDateTime type="time"/>
</h:outputText>
</a4j:outputPanel>
<a4j:commandButton value="Push!!" action="#{pushBean.push}" ajaxSingle="true"/>
</a4j:form>
package demo;
import java.util.Date;
import java.util.EventListener;
import java.util.EventObject;
import org.ajax4jsf.event.PushEventListener;
/**
*
* @author Administrator
*/
public class PushBean {
/** Creates a new instance of TheBean */
public PushBean() {
}
private Date date;
private PushEventListener listener = new MyPushEventListener();
public void addListener(EventListener listener) {
synchronized (listener) {
if (this.listener != listener) {
this.listener = (PushEventListener) listener;
}
}
}
public Date getDate() {
return new Date();
}
public void push() {
synchronized (this.listener) {
this.listener.onEvent(new EventObject(this));
}
}
}
class MyPushEventListener implements PushEventListener {
public void onEvent(EventObject evt) {
System.out.println(evt.getSource());
//DO SOME ACTION IN HERE
}
}
check that FireBug is disabled. click on the push button. JS error appears.
--
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
17 years
[JBoss JIRA] Updated: (RF-736) no attribute in FuncSpec
by Nick Belaevski (JIRA)
[ http://jira.jboss.com/jira/browse/RF-736?page=all ]
Nick Belaevski updated RF-736:
------------------------------
Priority: Major (was: Critical)
> no attribute in FuncSpec
> ------------------------
>
> Key: RF-736
> URL: http://jira.jboss.com/jira/browse/RF-736
> Project: RichFaces
> Issue Type: Bug
> Components: doc
> Affects Versions: 3.1.0
> Environment: no attribute in FuncSpec
> Reporter: Aleksej Yanul
> Assigned To: Ilya Shaikovsky
> Fix For: 3.2.0
>
>
> <rich:calendar
> converterMessage
> currentDate
> direction
> enableManualInput
> height
> inputStyle
> inputType
> jointPoint
> localValueSet
> monthLabelsShort
> optionalFooter
> optionalHeader
> requiredMessage
> showInput
> valid
> validatorMessage
> weekDayLabelsShort
> width
> />
> <rich:dropDownMenu
> submitMode
> />
> <rich:menuGroup
> converter
> />
> <rich:menuItem
> actionExpression
> ajaxSingle
> beforeUpdate
> bypassUpdates
> data
> eventsQueue
> focus
> ignoreDupResponses
> limitToList
> oncomplete
> requestDelay
> reRender
> status
> timeout
> />
> <rich:toolTip
> delay
> onkeydown
> onkeypress
> onkeyup
> onmousedown
> onmouseup
> zorder
> />
> <rich:message
> ajaxRendered
> keepTransient
> markerStyle
> style
> />
> <rich:messages
> ajaxRendered
> keepTransient
> markerStyle
> style
> />
> <rich:panelMenu
> converter
> converterMessage
> disabled
> disabledGroupStyle
> immediate
> localValueSet
> onkeydown
> onkeypress
> onkeyup
> onmousedown
> onmouseup
> required
> requiredMessage
> valid
> validator
> validatorMessage
> value
> valueChangeListener
> />
> <rich:panelMenuGroup
> accesskey
> align
> alt
> converter
> converterMessage
> expanded
> localValueSet
> maxlength
> onblur
> onchange
> onclick
> ondblclick
> onfocus
> onkeydown
> onkeypress
> onkeyup
> onmousedown
> onmouseup
> onselect
> required
> requiredMessage
> size
> tabindex
> valid
> validator
> validatorMessage
> value
> valueChangeListener
> />
> <rich:panelMenuItem
> actionExpression
> disabled
> ondblclick
> onkeydown
> onkeypress
> onkeyup
> value
> />
--
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
17 years