[JBoss JIRA] Created: (RF-2560) It's not possible to create menu items with the help of <a4j:repeat />
by Bj?rn Weinbrenner (JIRA)
It's not possible to create menu items with the help of <a4j:repeat />
----------------------------------------------------------------------
Key: RF-2560
URL: http://jira.jboss.com/jira/browse/RF-2560
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.1.4
Environment: windows, jboss, ff/ie, jsf ri
Reporter: Bj?rn Weinbrenner
It seems that its not possible to use <ui:repeat /> or <a4j:repeat /> to create menus. if you iterate to add menuItems to a a menu e.g. contextmenu they won't appear.
That seems to depend on the implementation of org.richfaces.renderkit.html.AbstractMenuRenderer
Only direct children are search for items. Repeat-Components are ignored and their childs aren't found.
public void encodeItems(FacesContext context, UIComponent component) throws IOException {
List kids = component.getChildren();
Iterator it = kids.iterator();
while (it.hasNext()) {
UIComponent kid = (UIComponent)it.next();
if (kid instanceof UIMenuGroup || kid instanceof UIMenuItem || kid instanceof UIMenuSeparator) {
renderChild(context, kid);
}
}
}
--
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
[JBoss JIRA] Created: (RF-10203) a4j:repeat / ui:repeat not working with rich:toolbar and rich:dropDownMenu
by Karl Mueller (JIRA)
a4j:repeat / ui:repeat not working with rich:toolbar and rich:dropDownMenu
--------------------------------------------------------------------------
Key: RF-10203
URL: https://issues.jboss.org/browse/RF-10203
Project: RichFaces
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: component-menu
Affects Versions: 4.0.0.Milestone5
Environment: Windows Vista Build 6001
apache-tomcat-7.0.5
Sun jdk1.6.0_14
RichFaces 4.0.0.20101226-M5
Mojarra JSF 2.0.3-FCS
Reporter: Karl Mueller
Hi I was trying this :
<rich:toolbar height="26px">
<a4j:repeat value="#{menuBean.menuGroups}" var="menuGroup">
<rich:dropDownMenu mode="ajax">
<f:facet name="label">
<h:outputText value="#{menuGroup.menuName}" />
</f:facet>
<a4j:repeat value="#{menuGroup.menuElements}" var="menuElement">
<rich:menuItem label="#{menuElement.label}" action="#{menuElement.targetURL}" />
</a4j:repeat>
</rich:dropDownMenu>
</rich:toolBarGroup>
</a4j:repeat>
</rich:toolbar>
The outer repeat works, but creates 2 menus which are stacked above each other.The inner repeat is not processed at all. (I have added a log statement to the getMethods, therefore I know that they never get called at all.)
The behavior does not change when swapping a4j:repeat with ui:repeat.
When trying this the inner repeat is processed as expected.
<a4j:repeat value="#{menuBean.menuGroups}" var="menuGroup">
<h:outputText value="#{menuGroup.menuName}" />
<ui:repeat value="#{menuGroup.menuElements}" var="menuElement">
<h:outputText value="#{menuElement.label}" />
</ui:repeat>
</a4j:repeat>
So is this a bug or rather a case of menu tags misusage ?
My backingBeans look like this:
(sry, but I do not have the permission to attach files)
@ManagedBean(name="menuBean")
@SessionScoped
public class MenuBean {
private List<MenuGroup> menuGroups = new ArrayList<MenuGroup>();
//TODO Remove hard coded menus
public MenuBean(){
System.out.println(">>I AM!<<");
init();
}
private void init(){
//FIXME
MenuGroup m1 = new MenuGroup();
m1.setMenuName("Sysadmin");
MenuElement element = new MenuElement();
element.setLabel("Key");
element.setTargetURL("/sysadmin/key/key.xhtml");
m1.getMenuElements().add(element);
menuGroups.add(m1);
MenuGroup m2 = new MenuGroup();
m2.setMenuName("Test");
element = new MenuElement();
element.setLabel("Kontext");
element.setTargetURL("/temp/temp_context.xhtml");
m2.getMenuElements().add(element);
menuGroups.add(m2);
}
/**
* @return the menuGroups
*/
public List<MenuGroup> getMenuGroups() {
return menuGroups;
}
/**
* @param menuGroups the menuGroups to set
*/
public void setMenuGroups(List<MenuGroup> menuGroups) {
this.menuGroups = menuGroups;
}
}
public class MenuGroup {
private String menuName = null;
List<MenuElement> menuElements = new ArrayList<MenuElement>();
/**
* @return the menuElements
*/
public List<MenuElement> getMenuElements() {
return menuElements;
}
/**
* @param menuElements the menuElements to set
*/
public void setMenuElements(List<MenuElement> menuElements) {
this.menuElements = menuElements;
}
/**
* @return the menuName
*/
public String getMenuName() {
return menuName;
}
/**
* @param menuName the menuName to set
*/
public void setMenuName(String menuName) {
this.menuName = menuName;
}
}
public class MenuElement {
private String label;
private String targetURL;
/**
* @return the label
*/
public String getLabel() {
System.out.println(">>label>>" + label);
return label;
}
/**
* @param label the label to set
*/
public void setLabel(String label) {
this.label = label;
}
/**
* @return the targetURL
*/
public String getTargetURL() {
return targetURL;
}
/**
* @param targetURL the targetURL to set
*/
public void setTargetURL(String targetURL) {
this.targetURL = targetURL;
}
}
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
15 years
[JBoss JIRA] Created: (RF-10086) fileUpload: execute warnings
by Ilya Shaikovsky (JIRA)
fileUpload: execute warnings
----------------------------
Key: RF-10086
URL: https://issues.jboss.org/browse/RF-10086
Project: RichFaces
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: component-input
Affects Versions: 4.0.0.Milestone5
Reporter: Ilya Shaikovsky
Assignee: Nick Belaevski
Priority: Minor
27.12.2010 12:21:18 org.richfaces.context.PartialViewContextImpl processPartialExecutePhase
WARNING: Partial execute won't happen - executeIds were not specified
appears during upload.
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
15 years
[JBoss JIRA] Created: (RF-6456) SuggestionAction called twice during request if usingSuggestObjects = true
by Gerrit Brehmer (JIRA)
SuggestionAction called twice during request if usingSuggestObjects = true
--------------------------------------------------------------------------
Key: RF-6456
URL: https://jira.jboss.org/jira/browse/RF-6456
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.3.0
Reporter: Gerrit Brehmer
SuggestionAction is called twice, if usingSuggestObjects is activated. I looked into the sourcecode and found the two calls:
# Action with value from request/input field (method setupValue - setValue(suggestingAction.invoke(context.getELContext(), new Object[]{submittedValue}));)
# Action with "null" as string (method getRequestValuesData - setValue(suggestingAction.invoke(context.getELContext(), new Object[]{requestedValue}));)
(SourceCode from UiSuggestionAction.java Tag 3.3.0)
Is the second call really necessary? Because we call an expensive backend method (200ms - 7000ms for address suggest) this makes a noticable delay for the user
Our workaround is to return an empty list for the second call, which doesn't change the behaviour
--
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
[JBoss JIRA] Created: (RF-9777) rich:dataTable Attributes columnClasses and headerClass not working
by Karl Mueller (JIRA)
rich:dataTable Attributes columnClasses and headerClass not working
---------------------------------------------------------------------
Key: RF-9777
URL: https://jira.jboss.org/browse/RF-9777
Project: RichFaces
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: component-tables
Affects Versions: 4.0.0.Milestone3
Environment: Windows Vista Build 6001
apache-tomcat-7.0.4
Sun jdk1.6.0_14
RichFaces 4.0.0.20101004-M3
Mojarra JSF 2.0.3-FCS
Reporter: Karl Mueller
The attributes columnClasses, headerClass and footerClass show no effect when used on rich:dataTable.
The assigned css classes do not show up in the generated html table and the styles are not applied. Setting the attribute on h:column or rich:column element does not work either.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
15 years