[JBoss JIRA] Created: (RF-3033) a4j:support - oncomplete handle js-code incorrect
by Andreas Höhmann (JIRA)
a4j:support - oncomplete handle js-code incorrect
-------------------------------------------------
Key: RF-3033
URL: http://jira.jboss.com/jira/browse/RF-3033
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.2.0
Environment: myfaces 1.2.2
jdk 1.5
tomcat 6.0.14
Reporter: Andreas Höhmann
I have a selectbox with 5 options: 1..4 numbers and -1 as a "special value" :)
If the user select the special value i want open a dialog ... here is my code:
<h:selectOneMenu id="quantity" value="#{bean.quantity}" styleClass="addToBasketAmount">
<c:forEach begin="1" end="3" var="i">
<f:selectItem itemValue="#{i * quantity}"/>
</c:forEach>
<f:selectItem itemValue="#{bean.userQuantity}"/>
<f:selectItem itemValue="-1" itemLabel="[enter]" />
<a4j:support event="onchange"
oncomplete="if(this.value == -1){Richfaces.showModalPanel('orderQuantityDialog')}" />
</h:selectOneMenu>
The dialog will not open ... but ... if i change the code to this:
<h:selectOneMenu id="quantity" value="#{bean.quantity}" styleClass="addToBasketAmount">
<c:forEach begin="1" end="3" var="i">
<f:selectItem itemValue="#{i * quantity}"/>
</c:forEach>
<f:selectItem itemValue="#{bean.userQuantity}"/>
<f:selectItem itemValue="-1" itemLabel="[enter]" />
<a4j:support event="onchange"
oncomplete="alert(this.value);if(this.value == -1){Richfaces.showModalPanel('orderQuantityDialog')}" />
</h:selectOneMenu>
a alertbox is shown (-1) and then the dialog is shown.
is this a bug?
--
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, 4 months
[JBoss JIRA] Created: (RF-3246) ComponentControl do not submit f:params to ContextMenu
by Ludovic Dussart (JIRA)
ComponentControl do not submit f:params to ContextMenu
------------------------------------------------------
Key: RF-3246
URL: http://jira.jboss.com/jira/browse/RF-3246
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.2.0
Environment: JSG 1.2_04
Reporter: Ludovic Dussart
Priority: Blocker
ComponentControl do not transmit the f:parameters to the contextMenu.
<rich:componentControl event="onclick" for="menu1" operation="show" rendered="#{ligne.zoneA.rendererMenu}">
<f:param value="#{ligne.zoneA.dropValue}" name="zone"/>
<f:param value="#{ligne.id}" name="ligne"/>
</rich:componentControl>
<rich:contextMenu attached="false" id="menu1" submitMode="ajax">
<rich:menuItem value="Supprimer" actionListener="#{craBean.processMenu}" reRender="ZoneDrop1">
<a4j:actionparam name="delete" assignTo="#{craBean.paramMenu}" value="{zone}"/>
<a4j:actionparam name="numeroLigne" assignTo="#{craBean.idLine}" value="{ligne}"/>
</rich:menuItem>
...
</rich:contextMenu>
NB : This code works with RF 3.1.4 but not with 3.2.0 and 3.2.0SR1
Log :
09:39:49,640 ERROR [STDERR] 25 avr. 2008 09:39:49 javax.faces.event.MethodExpressionActionListener processAction
GRAVE: Received 'java.lang.NullPointerException' when invoking action listener '#{craBean.processMenu}' for component 'j_id_jsp_388773205_5pc4'
09:39:49,656 ERROR [STDERR] 25 avr. 2008 09:39:49 javax.faces.event.MethodExpressionActionListener processAction
GRAVE: java.lang.NullPointerException
...
--
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, 4 months