[JBoss JIRA] Created: (RF-7761) rich:tabPanel facing some issue
by sanket behera (JIRA)
rich:tabPanel facing some issue
--------------------------------
Key: RF-7761
URL: https://jira.jboss.org/jira/browse/RF-7761
Project: RichFaces
Issue Type: Feature Request
Components: component
Affects Versions: 3.3.1
Environment: jsf-facelets.jar
richfaces-api-3.3.0.GA.jar
richfaces-impl-3.3.0.GA.jar
richfaces-ui-3.3.0.GA.jar
tomahawk12-1.1.7.jar
myfaces-api-1.2.6.jar
myfaces-impl-1.2.6.jar
Reporter: sanket behera
Priority: Critical
Fix For: 3.3.0
We have a issue with tabPanel. We have two tabs within a tabpanel and the first tab has a <inputText> which is a required field.
If we click on submit button staying in the first taband without entering anything to the inputtext than the validation error for the required input text is shown but when we switch to the second tab without entering the input text for first tab than the form is getting submitted without validating the inputtext. Can you please let me know hw this validation can be enabled before submitting the form.
<rich:tabPanel name="tabpanel" width="40%" headerAlignment="right" >
<rich:tab name="tab1" label="Canon" >
<h:outputLabel value="Tab1" for="text1" />
<h:inputText id="text1" required="true" requiredMessage="Required Field"/>
<h:message id="msg1" for="text1" />
</rich:tab>
<rich:tab name="tab2" label="Nikon">
<h:outputLabel value="Tab2" for="text2" />
</rich:tab>
</rich:tabPanel>
<h:commandButton name="Button1" action="google.com" value="Submit" />
--
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, 7 months
[JBoss JIRA] Created: (RF-7136) h:inputText doesn't reflect backing bean value on ajax rerendering
by Denis Petrunin (JIRA)
h:inputText doesn't reflect backing bean value on ajax rerendering
------------------------------------------------------------------
Key: RF-7136
URL: https://jira.jboss.org/jira/browse/RF-7136
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.3.0
Environment: RichFaces 3.3.0GA
Mojarra JSF Implementation 1.2_12-b01-FCS
Reporter: Denis Petrunin
1) open edit.jsf page (see below)
2) input "1" into "Id" field, click "Edit" button
3) make a note that "Name" field contains "First", "Note" field contains "Note-1"
4) clear "Name" field, click "Save" button
5) make a not that the error message is shown: "fmEdit:itName: Validation Error: Value is required."
6) input "2" into "Id" field, click "Edit" button
7) make a note that "Name" field contains "Second", "Note" field still contains "Note-1"
Expected result: "Note" field must contain "Note-2"
I think other UIInput, UIData are affected as well.
<<===== edit.jspx =====>>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:rich="http://richfaces.org/rich"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:a4j="http://richfaces.org/a4j"
xmlns:s="http://jboss.com/products/seam/taglib">
<head>
</head>
<body>
<h:form id="fmItemSelector">
<h:outputLabel value="Id" />
<h:inputText value="#{bean.editingItemId}" />
<a4j:commandButton value="Edit" reRender="fmEdit" />
</h:form>
<h:form id="fmEdit">
<h:panelGrid columns="2">
<h:outputLabel value="Name" />
<h:inputText id="itName" value="#{bean.editingItem.name}" required="true" disabled="#{bean.editingItem == null}" />
<h:outputLabel value="Note" />
<h:inputText id="itNote" value="#{bean.editingItem.note}" required="true" disabled="#{bean.editingItem == null}" />
</h:panelGrid>
<a4j:commandButton value="Save" rendered="#{bean.editingItem != null}" action="#{bean.save}" reRender="fmItemSelector, fmEdit" />
</h:form>
<rich:messages />
</body>
</html>
<<===== Backing bean =====>>
import java.util.Arrays;
import java.util.List;
import org.jboss.seam.ScopeType;
import org.jboss.seam.annotations.Name;
import org.jboss.seam.annotations.Scope;
@Name("bean")
@Scope(ScopeType.SESSION)
public class Test
{
private static final List<Item> model = Arrays.asList(new Item(1, "First", "Note-1"), new Item(2, "Second", "Note-2"));
private Integer editingItemId;
public Item getEditingItem()
{
if (editingItemId == null)
return null;
for (Item item : model) {
if (item.getId() == editingItemId)
return item;
}
return null;
}
public void save()
{
editingItemId = null;
}
public Integer getEditingItemId()
{
return editingItemId;
}
public void setEditingItemId(Integer editingItemId)
{
this.editingItemId = editingItemId;
}
public static class Item
{
private int id;
private String name;
private String note;
public Item(int id, String name, String note)
{
this.id = id;
this.name = name;
this.note = note;
}
public int getId()
{
return id;
}
public void setId(int id)
{
this.id = id;
}
public String getName()
{
return name;
}
public void setName(String name)
{
this.name = name;
}
public String getNote()
{
return note;
}
public void setNote(String note)
{
this.note = note;
}
}
}
--
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, 7 months
[JBoss JIRA] Created: (RF-7172) Parameters not being passed to contextMenu
by Daniel Wiell (JIRA)
Parameters not being passed to contextMenu
------------------------------------------
Key: RF-7172
URL: https://jira.jboss.org/jira/browse/RF-7172
Project: RichFaces
Issue Type: Bug
Components: component
Affects Versions: 3.3.1
Environment: richfaces 3.3.1.CR2, JSF 1.2_12, Seam 2.1.2.CR1
Reporter: Daniel Wiell
The following snippet display testValue in the JavaScript alert when using 3.3.0.GA. 3.3.1.CR2 displays {testParam}
<h:outputLink value="#">
click
<rich:componentControl event="onclick" for="contextMenu" operation="show">
<f:param name="testParam" value="testValue"/>
</rich:componentControl>
</h:outputLink>
<rich:contextMenu id="contextMenu">
<rich:menuItem onselect="alert('{testParam}');">
Test
<f:param name="testParam" value="{testParam}"/>
</rich:menuItem>
</rich:contextMenu>
--
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, 7 months
[JBoss JIRA] Created: (RF-7754) core-demo link.xhtml parameter is null error
by Jay Balunas (JIRA)
core-demo link.xhtml parameter is null error
--------------------------------------------
Key: RF-7754
URL: https://jira.jboss.org/jira/browse/RF-7754
Project: RichFaces
Issue Type: Bug
Components: examples
Affects Versions: 4.0.0.ALPHA1
Reporter: Jay Balunas
Assignee: Nick Belaevski
Fix For: 4.0.0.ALPHA1
When navigating the link.xhtml get the exception below. If more is expected on the URL should have a launch page for it.
java.lang.NullPointerException: Argument Error: Parameter text is null
at com.sun.faces.renderkit.html_basic.HtmlResponseWriter.writeText(HtmlResponseWriter.java:917)
at javax.faces.context.ResponseWriter.writeText(ResponseWriter.java:275)
at org.richfaces.renderkit.html.CommandLinkRenderer.encodeBegin(CommandLinkRenderer.java:78)
at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:823)
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1608)
at javax.faces.render.Renderer.encodeChildren(Renderer.java:168)
at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:848)
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1610)
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1613)
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1613)
at com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandlingStrategy.java:340)
at com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:126)
at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:127)
at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:97)
at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:311)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:637)
--
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, 7 months
[JBoss JIRA] Created: (RF-7753) core-demo ajax-taglib.xml is not in WEB-INF and causes loading warning
by Jay Balunas (JIRA)
core-demo ajax-taglib.xml is not in WEB-INF and causes loading warning
----------------------------------------------------------------------
Key: RF-7753
URL: https://jira.jboss.org/jira/browse/RF-7753
Project: RichFaces
Issue Type: Bug
Components: build, examples
Affects Versions: 4.0.0.ALPHA1
Reporter: Jay Balunas
Assignee: Nick Belaevski
Fix For: 4.0.0.ALPHA1
The file is not in the war or in the src tree that I could find.
INFO: Initializing Mojarra 2.0.0 (SNAPSHOT b10) for context '/core-demo-4.0.0-SNAPSHOT'
2009-08-24 09:58:15,374 DEBUG [org.richfaces.log.Resource] Instance of org.richfaces.resource.ResourceHandlerImpl resource handler created
2009-08-24 09:58:15,391 INFO [org.ajax4jsf.cache.CacheManager] Selected [org.ajax4jsf.cache.JBossCacheCacheFactory]
2009-08-24 09:58:16,098 INFO [org.jboss.cache.jmx.PlatformMBeanServerRegistration] JBossCache MBeans were successfully registered to the platform mbean server.
2009-08-24 09:58:16,099 INFO [org.jboss.cache.factories.ComponentRegistry] JBoss Cache version: JBossCache 'Cascabel' 3.1.0.GA
Aug 24, 2009 9:58:16 AM com.sun.faces.config.configprovider.BaseWebConfigResourceProvider getResources
WARNING: JSF1067: Resource /WEB-INF/ajax-taglib.xml specified by the javax.faces.CONFIG_FILES configuration option cannot be found. The resource will be ignored.
Aug 24, 2009 9:58:16 AM com.sun.faces.config.ConfigureListener$WebConfigResourceMonitor$Monitor <init>
INFO: Monitoring jndi:/localhost/core-demo-4.0.0-SNAPSHOT/WEB-INF/faces-config.xml for modifications
Aug 24, 2009 9:58:16 AM org.apache.coyote.http11.Http11Protocol start
--
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, 7 months