[JBoss JIRA] Created: (RF-6734) Do not render default attributes.
by Alexander Smirnov (JIRA)
Do not render default attributes.
---------------------------------
Key: RF-6734
URL: https://jira.jboss.org/jira/browse/RF-6734
Project: RichFaces
Issue Type: Feature Request
Affects Versions: 3.3.0
Reporter: Alexander Smirnov
Calendar JavaScript code is always rendered with full attributes values that significant increase size of html page:
new Calendar('pageForm:SITE_V_HOLD_BEGIN_DATE_date', {dayListTableId: 'pageForm:SITE_V_HOLD_BEGIN_DATE_dateDay',
weekNumberBarId: 'pageForm:SITE_V_HOLD_BEGIN_DATE_dateWeekNum',
weekDayBarId: 'pageForm:SITE_V_HOLD_BEGIN_DATE_dateWeekDay',
currentDate: new Date(2009,3,8),
selectedDate: null,
datePattern: 'MM/dd/yyyy',
jointPoint: 'bottom-left',
direction: 'bottom-right',
toolTipMode:'batch',
boundaryDatesMode:'inactive',
popup: true,
enableManualInput: false,
showInput: true,
disabled: false,
readonly: false,
ajaxSingle: true,
verticalOffset:0,
horizontalOffset: 0,
style:'z-index: 3; ',
firstWeekDay: 0,
minDaysInFirstWeek: 1,
todayControlMode:'select',
showHeader:true,
showFooter:true,
showWeeksBar:true,
showWeekDaysBar:true,
showApplyButton:false,
resetTimeOnDateSelect:false,
defaultTime:{hours:12,minutes:0},
labels:{apply:'Apply', today:'Today', clean:'Clean', cancel:'Cancel', ok:'OK', close:'x'},
'monthLabelsShort': ['Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec'] ,
'weekDayLabelsShort': ['Sun','Mon','Tue','Wed','Thu','Fri','Sat'] ,
'monthLabels': ['January','February','March','April','May','June','July','August','September','October','November','December'] ,
'weekDayLabels': ['Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday'] }).load();
Because page developers almost newer use all of them together, calendar should use built-in default values and never render default values.
--
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-7674) CLONE -problem with rich:tree in ie 7 with richfaces 3.3.0 and 3.3.1
by Joey asdasd (JIRA)
CLONE -problem with rich:tree in ie 7 with richfaces 3.3.0 and 3.3.1
--------------------------------------------------------------------
Key: RF-7674
URL: https://jira.jboss.org/jira/browse/RF-7674
Project: RichFaces
Issue Type: Bug
Components: browser compatibility
Affects Versions: 3.3.0
Environment: Internet Explorer 7
Reporter: Joey asdasd
Assignee: Nick Belaevski
Hi everybody,
I'm creating a page with rich:tree component.
The page is working perfectly with mozilla 3. In IE 7 the tree is show and I can expand and colapse, but when I try to select any node I get an error message of the script debbuger. The first node clicke is processed by the nodeSelectionListener but then the tree don't works anymore.
The error is indicated in line 10, the error is 'elements' is null or is not an object.
The debbuger shows a javascript and highlight the text: "var field=form.elements[fields[i]]" in line 10.
My code is:
<rich:tree id="treeModelo" style="width:200px" value="#{modeloTreeBean.treeNode}" nodeFace="#{item.tipo}"
var="item" switchType="ajax" nodeSelectListener="#{modeloTreeBean.processSelection}"
ajaxSubmitSelection="true" ajaxKeys="#{null}" reRender="treeModelo">
<rich:treeNode type="ap" iconLeaf="/images/icons/document.png" icon="/images/icons/document.png" >
<h:outputText value="#{item.nome}" />
</rich:treeNode>
<rich:treeNode type="m" iconLeaf="/images/icons/document.png" icon="/images/icons/document.png" >
<h:outputText value="#{item.nome}" />
</rich:treeNode>
<rich:treeNode type="p" iconLeaf="/images/icons/document.png" icon="/images/icons/document.png" >
<h:outputText value="#{item.nome}" />
</rich:treeNode>
</rich:tree>
the complete code of the debbuger is:
if(!window.A4J){window.A4J={};}
if(!A4J.findForm){function _JSFFormSubmit(linkId,formName,target,parameters){var form=(typeof formName=='string'?document.getElementById(formName):formName);if(form){var paramNames=[];var oldTarget=form.target;if(target){form.target=target;}
if(parameters){for(var param in parameters){paramNames.push(param);if(form.elements[param]){form.elements[param].value=parameters[param];}else{var input=document.createElement("input");input.type="hidden";input.id=param;input.name=param;input.value=parameters[param];if(param==="javax.faces.portletbridge.STATE_ID"&&form.firstChild){form.insertBefore(input,form.firstChild);}else{form.appendChild(input);}}}}
var onsubmitResult;if(form.fireEvent){onsubmitResult=form.fireEvent("onsubmit");}else{var event=document.createEvent("HTMLEvents");event.initEvent("submit",true,true)
onsubmitResult=form.dispatchEvent(event);}
if(onsubmitResult){form.submit();}
_clearJSFFormParameters(formName,oldTarget,paramNames);}else{alert("Form "+formName+" not found in document");}
return false;};function _clearJSFFormParameters(formName,target,fields){var form=(typeof formName=='string'?document.getElementById(formName):formName);if(form){if(target){form.target=target;}else{form.target='';}
if(fields){for(var i=0;i<fields.length;i++){var field=form.elements[fields[i]];if(field){var pNode=field.parentNode;if(pNode){pNode.removeChild(field);}}}}}}
function clearFormHiddenParams(formName,target,fields){_clearJSFFormParameters(formName,target,fields);}
A4J.findForm=function(element){var parent=element;do{parent=parent.parentNode;}while(parent&&parent.nodeName.toLowerCase()!='form');if(!parent){parent={reset:function(){},submit:function(){}};}
return parent;}
A4J._formInput=null;A4J.setupForm=function(id){var element=(typeof id=='string'?window.document.getElementById(id):id);var name="click";if(element.addEventListener){element.addEventListener(name,A4J._observer,false);}else if(element.attachEvent){element.attachEvent('on'+name,A4J._observer);}}
A4J._observer=function(evt){var src=evt.target||evt.srcElement;if(src&&src.nodeName.toUpperCase()=='INPUT'&&src.type.toUpperCase()=='SUBMIT'){A4J._formInput=src;}else{A4J._formInput=null;}}
--
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-4320) Hi All, I have created a suggestionbox using richfaces which consists nationalitylist, but the problem is when I click on any letter only the first one in the is getting selected not the one which am trying to select.
by Samala Swathi (JIRA)
Hi All, I have created a suggestionbox using richfaces which consists nationalitylist, but the problem is when I click on any letter only the first one in the is getting selected not the one which am trying to select.
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Key: RF-4320
URL: https://jira.jboss.org/jira/browse/RF-4320
Project: RichFaces
Issue Type: Bug
Environment: Windows XP
Reporter: Samala Swathi
This is nationality.xhtml
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:a4j="http://richfaces.org/a4j"
xmlns:rich="http://richfaces.org/rich">
<h:form id="suggestionbox_form">
<h:inputText value="" id="text" />
<rich:suggestionbox id="suggestionBoxId" for="text"
suggestionAction="#{capitalsBean.autocomplete}" var="result"
fetchValue="#{result.countryName}"
nothingLabel="No capitals found" columnClasses="center">
<h:column>
<h:outputText value="#{result.countryName}" />
</h:column>
</rich:suggestionbox>
</h:form>
</ui:composition>
This is the action class capitalsBean.java
package com.manam.sakana.session;
import java.io.IOException;
import java.io.Serializable;
import java.net.URL;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import javax.faces.FacesException;
import javax.faces.application.FacesMessage;
import javax.faces.context.FacesContext;
import javax.faces.model.SelectItem;
import javax.persistence.EntityManager;
//import org.apache.commons.digester.Digester;
//import org.apache.commons.digester.xmlrules.DigesterLoader;
import org.jboss.seam.annotations.In;
import org.jboss.seam.annotations.Name;
import org.xml.sax.SAXException;
import com.manam.sakana.entity.NationalityList;
@Name("capitalsBean")
public class CapitalsBean {
private String nationality;
private ArrayList<NationalityList> nationalityList = new ArrayList<NationalityList>();
@In EntityManager entityManager;
public List autocomplete(Object suggest) {
String pref = (String)suggest;
System.out.println("Received Letters " +pref);
ArrayList<NationalityList> result = new ArrayList();
Iterator iterator = getAllData().iterator();
while (iterator.hasNext()) {
NationalityList elem = ((NationalityList) iterator.next());
if ((elem.getCountryName() != null && elem.getCountryName().toLowerCase().indexOf(pref.toLowerCase()) == 0) || "".equals(pref))
{
result.add(elem);
}
}
return result;
}
public ArrayList<NationalityList> getAllData(){
ArrayList<NationalityList> tempList2 = new ArrayList<NationalityList>();
ArrayList<NationalityList> nationalityList = new ArrayList<NationalityList>();
tempList2 = (ArrayList<NationalityList>)entityManager.createQuery("from NationalityList order by id").getResultList();
if(tempList2!=null)
{
for(NationalityList nationality : tempList2)
{
nationalityList.add(nationality);
}
}
return nationalityList;
}
public String getNationality() {
return nationality;
}
public void setNationality(String nationality) {
this.nationality = nationality;
}
public ArrayList<NationalityList> getNationalityList() {
return nationalityList;
}
public void setNationalityList(ArrayList<NationalityList> nationalityList) {
this.nationalityList = nationalityList;
}
}
--
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-4889) Suggestion box hides behind modalPanel in IE 7
by Darrel Su (JIRA)
Suggestion box hides behind modalPanel in IE 7
----------------------------------------------
Key: RF-4889
URL: https://jira.jboss.org/jira/browse/RF-4889
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.1.6
Reporter: Darrel Su
In IE7, suggestionbox is hidden behind modalpanel.
Using zindex attribute suggestionbox can be shown up front in firefox, but IE7 it is still a problem.
In richfaces 3.1.6 suggestionbox.js has zindex 200 setting so the workaround is not working.
For some reasons, we can not upgrade to 3.2.x. Is there a new workaround to fix this problem?
<rich:suggestionbox id="caseAssignSuggestionBoxId" for="loginName" tokens=","
rules="#{bundle.AutoSuggestRules}"
suggestionAction="#{switchUserBean.autocomplete}" var="result"
fetchValue="#{result.loginName}" rows="#{bundle.AutoSuggestRows}"
first="#{bundle.AutoSuggestFirst}"
minChars="#{bundle.AutoSuggestMinchars}"
shadowOpacity="#{bundle.AutoSuggestShadowOpacity}"
border="#{bundle.AutoSuggestBorder}" width="#{bundle.AutoSuggestWidth}"
height="#{bundle.AutoSuggestHeight}"
shadowDepth="#{switchUserBean.shadowDepth}"
zindex="9999" >
<h:column>
<h:outputText value="#{result.loginName} (#{result.firstName} #{result.lastName})" />
</h:column>
--
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-4321) I created suggestion box
by gopi b (JIRA)
I created suggestion box
------------------------
Key: RF-4321
URL: https://jira.jboss.org/jira/browse/RF-4321
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.2.0
Environment: Seam frame work using Rich faces server Jboss
Reporter: gopi b
Fix For: 3.2.2
I created suggestion box for country(nationality) using rich faces, and seam the problem am facing is "Only the topmost name in the list of the countries is displaying if also I select the country in the list of countries (like If I type "A", countries name starting with 'A' are displaying, at this time only the top most country is selected, If I select any of them).
--
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