[JBoss JIRA] Created: (RF-7628) How to programmatically select an item in rich:comboBox with selectItems
by Leonid Sokolin (JIRA)
How to programmatically select an item in rich:comboBox with selectItems
------------------------------------------------------------------------
Key: RF-7628
URL: https://jira.jboss.org/jira/browse/RF-7628
Project: RichFaces
Issue Type: Feature Request
Components: component
Environment: Windows XP, IE or Firefox
Reporter: Leonid Sokolin
I need to find out how I could change the selected item in Rich combo box, which has collection of selectItems populated from the database.
I am able to change the value of this combo box, when another combo box has selected value changed, but if I click on drop down, it still shows first record as selected, even if text field has a different value. I have to find that value in the list before it would be highlighted.
I would appreciate, if someone would tell me how to access the selectItem for this combo box. Please see XHTML below:
<h:outputText value="Product:" />
<a4j:region>
<rich:comboBox id="product" width="300" value="#{piQueryToolBean.product}"
enableManualInput="false" valueChangeListener="#{piQueryToolBean.changeBenchmark}"
immediate="true"
converter="#{productConverter}">
<a4j:support event="onselect" reRender="benchmark,benchmarkList" />
<f:selectItems id="productList" value="#{piQueryToolBean.productList}" />
</rich:comboBox>
</a4j:region>
<rich:message for="product" style="color:red;" />
<h:outputText value="Benchmark:" />
<a4j:region>
<rich:comboBox id="benchmark" width="300" value="#{piQueryToolBean.benchmark}"
directInputSuggestions="true" enableManualInput="false"
converter="#{benchmarkConverter}" onlistcall="findBenchmark()" >
<f:selectItems id="benchmarkList" value="#{piQueryToolBean.benchmarkList}" />
</rich:comboBox>
</a4j:region>
<rich:message for="benchmark" style="color:red;" />
--
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, 8 months
[JBoss JIRA] Created: (RF-7626) Ajax4jsf : ResourceNotFoundException after Apache web server plugin installation
by Nilakandan V (JIRA)
Ajax4jsf : ResourceNotFoundException after Apache web server plugin installation
--------------------------------------------------------------------------------
Key: RF-7626
URL: https://jira.jboss.org/jira/browse/RF-7626
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.0.1
Reporter: Nilakandan V
Priority: Blocker
Hi,
After installion of of the Apache Web server Plugin , i'm gettign the following error while starting up the server. Apache Web server Plugin is installed on the front end Apache Web server to communicate with the backend WebLogic Cluster/Servers. We use Apache Web server in separate physical box from WebLogic and the Apache server has Oracle Netpoint Webgate specific libraries and modules for SSO enablement. For futher information regarding the Apache Plugin please check this link: http://e-docs.bea.com/wls/docs81/plugins/apache.html#101251. I request anyone to provide me a solution for this issue since a production roll out is pending on this.
5:32:06,178 INFO MyfacesConfig:195 - Starting up Tomahawk on the MyFaces-JSF-Implementation
15:32:06,372 INFO SecurityFilter:72 - Entering SecurityFilter.doFilter()
15:32:06,927 DEBUG ConfigurationServiceImpl:44 - Inside getConfigurationItem() method for SYSTEM_ADMIN_EMAIL_ID
[GC [DefNew: 164736K->4099K(169856K), 0.0673580 secs] 194297K->33661K(519424K), 0.0674618 secs]
15:32:07,340 DEBUG ServiceLocatorImpl:161 - Method: loadServices() - Loading the service beans
15:32:07,345 DEBUG ServiceLocatorImpl:168 - Method: loadServices() - Successfully loaded MetaAnalysis service beans
15:32:07,347 DEBUG ServiceLocatorImpl:173 - Method: loadServices() - Successfully loaded all the required endpoint service bean
15:32:07,349 DEBUG ServiceLocatorImpl:177 - Method: loadServices() - Successfully loaded all the required datamanagement service bean
15:32:07,351 DEBUG ServiceLocatorImpl:181 - Method: loadServices() - Successfully loaded all the required indication service bean
15:32:07,354 DEBUG ServiceLocatorImpl:185 - Method: loadService() - Successfully loaded all the required search service bean
15:32:07,356 DEBUG ServiceLocatorImpl:189 - Method: loadService() - Successfully loaded ILiteratureReferenceService service bean
15:32:07,358 DEBUG ServiceLocatorImpl:193 - Method: loadService() - Successfully loaded all the required report service bean
15:32:07,360 DEBUG ServiceLocatorImpl:197 - Method: loadService() - Successfully loaded security service bean
15:32:07,362 DEBUG ServiceLocatorImpl:201 - Method: loadService() - Successfully loaded comment service bean
15:32:07,364 DEBUG ServiceLocatorImpl:205 - Method: loadService() - Successfully loaded meta analysis data file service bean
15:32:07,366 DEBUG ServiceLocatorImpl:209 - Method: loadService() - Successfully loaded literature meta data file service bean
15:32:07,368 DEBUG ServiceLocatorImpl:213 - Method: loadService() - Successfully loaded metaanalysis view all service bean
15:32:07,370 DEBUG ServiceLocatorImpl:217 - Method: loadService() - Successfully loaded dictionary service bean
15:32:07,372 DEBUG ServiceLocatorImpl:221 - Method: loadService() - Successfully loaded configure service bean
15:32:07,952 INFO SecurityFilter:72 - Entering SecurityFilter.doFilter()
15:32:08,179 INFO SecurityFilter:72 - Entering SecurityFilter.doFilter()
15:32:09,707 INFO SecurityFilter:72 - Entering SecurityFilter.doFilter()
15:32:10,613 WARN HtmlGridRendererBase:243 - PanelGrid searchManagerForm:subView_search:_idJsp55:_idJsp59 has not enough children. Child count should be a multiple of the columns attribute.
[GC [DefNew: 168835K->2702K(169856K), 0.0599606 secs] 198397K->33692K(519424K), 0.0600849 secs]
<Jul 22, 2009 3:32:12 PM EDT> <Error> <HTTP> <BEA-101017> <[ServletContext(id=32235011,name=like,context-path=/like)] Root cause of ServletException.
org.ajax4jsf.framework.resource.ResourceNotFoundException: Resource not registered : org/richfaces/renderkit/html/scripts/browser_info.js
at org.ajax4jsf.framework.resource.ResourceBuilderImpl.getResource(ResourceBuilderImpl.java:367)
at org.ajax4jsf.framework.resource.ResourceBuilderImpl.getResourceForKey(ResourceBuilderImpl.java:322)
at org.ajax4jsf.framework.resource.InternetResourceService.serviceResource(InternetResourceService.java:152)
at org.ajax4jsf.framework.resource.InternetResourceService.serviceResource(InternetResourceService.java:141)
at org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:261)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:190)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6724)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3764)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2644)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
>
.
.
.
.....
<Jul 22, 2009 3:32:14 PM EDT> <Error> <HTTP> <BEA-101017> <[ServletContext(id=32235011,name=like,context-path=/like)] Root cause of ServletException.
org.ajax4jsf.framework.resource.ResourceNotFoundException: Resource not registered : org/richfaces/renderkit/html/images/spacer.gif
at org.ajax4jsf.framework.resource.ResourceBuilderImpl.getResource(ResourceBuilderImpl.java:367)
at org.ajax4jsf.framework.resource.ResourceBuilderImpl.getResourceForKey(ResourceBuilderImpl.java:322)
at org.ajax4jsf.framework.resource.InternetResourceService.serviceResource(InternetResourceService.java:152)
at org.ajax4jsf.framework.resource.InternetResourceService.serviceResource(InternetResourceService.java:141)
at org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:261)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:190)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6724)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3764)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2644)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
>
.
.
.
.
Thanks in Advance.
Regards,
Nila
--
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, 8 months
[JBoss JIRA] Created: (RF-7625) fileUpload does not execute validator
by Benedikt Thelen (JIRA)
fileUpload does not execute validator
-------------------------------------
Key: RF-7625
URL: https://jira.jboss.org/jira/browse/RF-7625
Project: RichFaces
Issue Type: Bug
Environment: Seam 2.1.2
Reporter: Benedikt Thelen
Neither required="true" or validator="function" in rich:fileupload does produce messages (are not valiadated).
Example:
[xhtml]
...
<s:validateAll>
....
<rich:fileUpload
id="uploads"
fileUploadListener="#{my.listener}"
maxFilesQuantity="10"
immediateUpload="true"
allowFlash="false"
required="true"
validator="#{my.validateUploads}"
noDuplicate="true">
<a4j:support event="onuploadcomplete" />
<f:facet name="label">
<h:outputText
value="{_KB}KB from {KB}KB uploaded --- {mm}:{ss}" />
</f:facet>
</rich:fileUpload>
<rich:message for="uploads" />
...
</s:validateAll>
...
[Bean code]
...
public void validateUploads(FacesContext facesContext, UIComponent uiComponent, Object value)
throws ValidatorException{
throw new ValidatorException(new FacesMessage("This is The searched ERROR!"));
}
Does not produce an error message.
Running in Debug shows that the validator function is never called.
It is therefore impossible to check if there are any files uploaded.
--
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, 8 months
[JBoss JIRA] Created: (RF-7622) rich:columns var evaluated even when not rendered
by Robin Stocker (JIRA)
rich:columns var evaluated even when not rendered
-------------------------------------------------
Key: RF-7622
URL: https://jira.jboss.org/jira/browse/RF-7622
Project: RichFaces
Issue Type: Bug
Components: component-tables
Affects Versions: 3.3.1
Environment: Tomcat 6, Linux
Reporter: Robin Stocker
When loading the following page on the first time (the first tab is active), sandbox.columns is evaluated, even though the tab and the dataTable inside it are not rendered.
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
<f:view>
<a4j:page pageTitle="Example">
<rich:tabPanel>
<rich:tab label="First">
<h:outputText>First!</h:outputText>
</rich:tab>
<rich:tab label="Second">
<rich:dataTable value="#{sandbox.data}" var="record">
<rich:columns value="#{sandbox.columns}" var="column">
<f:facet name="header">
<h:outputText value="#{column.label}" />
</f:facet>
<h:outputText value="#{record.values[column.id]}" />
</rich:columns>
</rich:dataTable>
</rich:tab>
</rich:tabPanel>
</a4j:page>
</f:view>
If calculating sandbox.columns is an expensive operation, this slows down the load time. Our main navigation is built with tabs and three have rich:columns in them, so that has an impact on the load time.
--
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, 8 months
[JBoss JIRA] Created: (RF-7616) UITree does not accept datamodel as value
by John Leed (JIRA)
UITree does not accept datamodel as value
-----------------------------------------
Key: RF-7616
URL: https://jira.jboss.org/jira/browse/RF-7616
Project: RichFaces
Issue Type: Bug
Components: component-tree
Affects Versions: 3.3.1
Reporter: John Leed
UIData accepts both data or a datamodel as its value, in the former case wrapping the data in a datamodel. As a subclass of UIData, UITree should behave the same way. Instead, if the value is set to a TreeDataModel, UITree tries wrapping it in a swingTreeDataModel. This presents a problem if a custom data model is desired.
Proposed fix:
protected ExtendedDataModel createDataModel() {
Object value = this.getValue();
if (value != null) {
if (value instanceof TreeDataModel {
return value;
}
else if (value instanceof TreeNode) {
TreeDataModel<TreeNode> treeDataModel = new ClassicTreeDataModel();
treeDataModel.setWrappedData(value);
if (this.allowCachedModel && PRESERVE_MODEL_REQUEST.equals(getPreserveModel())) {
treeDataModel = new ClassicCacheableTreeDataModel(treeDataModel);
}
return treeDataModel;
} else {
TreeDataModel<javax.swing.tree.TreeNode> swingTreeDataModel = new SwingTreeDataModel();
swingTreeDataModel.setWrappedData(value);
if (this.allowCachedModel && PRESERVE_MODEL_REQUEST.equals(getPreserveModel())) {
swingTreeDataModel = new SwingCacheableTreeDataModel(swingTreeDataModel);
}
return swingTreeDataModel;
}
} else {
//TODO implement request caching
StackingTreeModel stackingTreeModel = new VisualStackingTreeModel(null);
if (getChildCount() > 0) {
Iterator children = getChildren().iterator();
while (children.hasNext()) {
UIComponent component = (UIComponent) children.next();
if (component instanceof StackingTreeModelProvider) {
StackingTreeModelProvider provider = (StackingTreeModelProvider) component;
stackingTreeModel.addStackingModel(provider.getStackingModel());
}
}
}
return stackingTreeModel;
}
}
--
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, 8 months