[JBoss JIRA] Created: (RF-4012) a4j:region is always necessary
by Jan Ziegler (JIRA)
a4j:region is always necessary
------------------------------
Key: RF-4012
URL: https://jira.jboss.org/jira/browse/RF-4012
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.2.2
Environment: Tomcat 6.0.16
MyFaces 1.2.3
Tomahawk 1.1.17 Snapshot
Facelets 1.1.15 Snapshot
Richfaces 3.2.2 Snapshot
Reporter: Jan Ziegler
If a use any a4j-component and do not wrap it in an <a4j:region>, the ajax call is not executed correctly (ajaxrequest=null in the request, empty response). This was no problem with the early 3.2.2. Snapshots. I testet with the snapshot from 20080724.
This is a simple example which sets a beans value via ajax on click of a commandLink and reRenders the output of the beans value:
Code:
<h:form>
...
<!-- WORKING (-> wrapped in region) -->
<a4j:region>
<h:outputText id="output" value="#{ajaxBean.text}" />
<a4j:commandLink reRender="output" value="click me!">
<f:setPropertyActionListener target="#{ajaxBean.text}" value="you clicked the button" />
</a4j:commandLink>
</a4j:region>
<!-- NOT WORKING ANYMORE! -->
<h:outputText id="output" value="#{ajaxBean.text}" />
<a4j:commandLink reRender="output" value="click me!">
<f:setPropertyActionListener target="#{ajaxBean.text}" value="you clicked the button" />
</a4j:commandLink>
...
</h:form>
I always thought that an <a4j:region> is not necessary and therefor the viewroot is the default region - has this changed?
--
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
16 years, 2 months
[JBoss JIRA] Created: (RF-3853) HotKey: Impossible to add/remove hotkeys using JS functions under Opera and IE6-7.
by Alexander Dubovsky (JIRA)
HotKey: Impossible to add/remove hotkeys using JS functions under Opera and IE6-7.
----------------------------------------------------------------------------------
Key: RF-3853
URL: http://jira.jboss.com/jira/browse/RF-3853
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.2.2
Environment: Opera, IE6-7
Reporter: Alexander Dubovsky
Assigned To: Nick Belaevski
Source:
<h:inputText id="inputTextID" value="test input" />
<rich:hotKey id="jsID" timing="onregistercall"/>
<h:panelGrid columns="2">
<h:commandButton id="jsAddCCID" value="add hotkey: alt+b"></h:commandButton>
<h:commandButton id="jsRemoveCCID" value="remove hotkey: alt+b"></h:commandButton>
<rich:componentControl disableDefault="true" attachTo="jsAddCCID" for="jsID" event="onclick" operation="add">
<f:param name="selector" value="#formID\:hotKeySubviewID\:inputTextID" />
<f:param name="key" value="alt+b" />
<f:param name="handler" value="alert('alt+b')" />
</rich:componentControl>
<rich:componentControl disableDefault="true" attachTo="jsRemoveCCID" for="jsID" event="onclick" operation="remove">
<f:param name="key" value="alt+b" />
<f:param name="selector" value="#formID\:hotKeySubviewID\:inputTextID" />
</rich:componentControl>
</h:panelGrid>
# click "add hotkey: alt+b" button
# set focus on input field
# try to call hotkey
Result: hotkey was not added.
--
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
16 years, 2 months