-
1. Re: rich:menuItem action attribute does not work
ilya_shaikovsky Nov 13, 2007 5:43 AM (in response to andrei.dumitru)Do you have form around menu?
Are you sure that there are no validation/conversion errors on your page? -
2. Re: rich:menuItem action attribute does not work
andrei.dumitru Nov 13, 2007 5:55 AM (in response to andrei.dumitru)
There are no validation/or conversion errors, the dropDownMenu is nested in a column of a dataTable and the dataTable is included in an a4j:form.
tx for the reply,
andrei -
3. Re: rich:menuItem action attribute does not work
ilya_shaikovsky Nov 13, 2007 9:09 AM (in response to andrei.dumitru)Ok.. lets check your environment.
My is :
JSF 1.2_05
Facelets 1.1.14
Rich Faces 3.2.0 latest snapshot.
Tomcat 6.0.14
FF 2.0.0.8 -
4. Re: rich:menuItem action attribute does not work
andrei.dumitru Nov 14, 2007 2:01 AM (in response to andrei.dumitru)
my env :
JSF : 1.2_05-b06-FCS
RichFaces 3.0.1 snapshot
JBoss 4.2.1
Should i upgrade to last version of Richfaces, are there any backwards compatibility issues?
Andrei -
5. Re: rich:menuItem action attribute does not work
andrei.dumitru Nov 14, 2007 5:07 AM (in response to andrei.dumitru)Here is how i construct my column where i place the dropDownMenu :
private void addRichDropDownMenu(HtmlDataTable resultsTable){ HtmlColumn actionsColumn = new HtmlColumn(); HtmlDropDownMenu actionsMenu = new HtmlDropDownMenu(); actionsMenu.setId("action_menu"); actionsMenu.setEvent("onclick"); /* * The popup direction should be "bottom-right" if the action is generated over a record in the upper-section * of the table, or "top-right" if the action is generated in the lower-section of the table */ actionsMenu.setValueExpression("direction", JSFUtil.createValueExpression("#{viewsModel.resultsTable.menuDirection}", String.class)); actionsMenu.setSubmitMode("none"); /* * Add the actions as items in the drop menu */ for (Iterator it=actions.iterator(); it.hasNext() ; ) { String currentAction = (String) it.next(); HtmlMenuItem actionToAdd = new HtmlMenuItem(); actionToAdd.setValue(currentAction); actionToAdd.setSubmitMode("server"); /* * The method binding is used to create separate action methods for each custom action. * The method should be called "viewsForm" bean an should return a String (navigationRule from outcome). */ actionToAdd.setActionExpression(JSFUtil.createMethodExpression("#{viewsForm.goToViewDetails}", String.class, new Class[0])); MethodExpression m = JSFUtil.createMethodExpression("#{viewsForm.goToViewDetails}", String.class, new Class[0]); try { m.getMethodInfo(FacesContext.getCurrentInstance().getELContext()); } catch (PropertyNotFoundException e) { logger.debug("Exceptie la getMethodInfo" + e.getStackTrace()); } catch (MethodNotFoundException e) { logger.debug("Exceptie la getMethodInfo" + e.getStackTrace()); } catch (NullPointerException e) { logger.debug("Exceptie la getMethodInfo" + e.getStackTrace()); } catch (ELException e) { logger.debug("Exceptie la getMethodInfo" + e.getStackTrace()); } actionsMenu.getChildren().add(actionToAdd); } actionsColumn.getChildren().add(actionsMenu); resultsTable.getChildren().add(actionsColumn); }
Can anybody please help me with this? Could this problem be caused by the fact that i have embeded this dropDown inside a dataTable?
andrei -
6. Re: rich:menuItem action attribute does not work
ilya_shaikovsky Nov 14, 2007 5:13 AM (in response to andrei.dumitru)you may freely use 3.1.2. Or 3.2.0 SNAPSHOTS - at present - no incompatibilities present
-
7. Re: rich:menuItem action attribute does not work
nico.ben Jan 29, 2008 6:57 AM (in response to andrei.dumitru)Hi Andrei,
have you solved this problem?
I have a similar problem:
<rich:menuItem submitMode="none">
<h:outputLink value="www.jboss.org"/>
</rich:menuItem>
I hardcoded a dinamic menuItem but clicking on it doesn't lead me to the url site.
BYe,
Nicola -
8. Re: rich:menuItem action attribute does not work
ilya_shaikovsky Jan 29, 2008 7:51 AM (in response to andrei.dumitru)Your problem isn't the same.. But thanks for the comment!
http://jira.jboss.com/jira/browse/RF-2102
filled -
9. Re: rich:menuItem action attribute does not work
nohacks Feb 13, 2008 3:21 PM (in response to andrei.dumitru)
Hi,
Was this error ever fixed???
Phil -
10. Re: rich:menuItem action attribute does not work
ilya_shaikovsky Feb 17, 2008 7:57 AM (in response to andrei.dumitru)Yes we also think that it's very important.. watch the bug please..
-
11. Re: rich:menuItem action attribute does not work
corneil Sep 30, 2008 3:09 AM (in response to andrei.dumitru)According RF-2102 is was fixed and merged to 3.1.x but it is not working in 3.1.6 and the latest demos on 3.1 and 3.2 still use the workaround.
-
12. Re: rich:menuItem action attribute does not work
ilya_shaikovsky Sep 30, 2008 4:42 AM (in response to andrei.dumitru)According to RF-2102 it is fixed only in trunk. Should works fine with 3.2.1 and 3.2.2 and higher snapshots.