Re: [TRINIDAD 1.0.12] LocaleSymbols* at LocaleElements*.js files are empty in 1.0.12 release
Rafa, hrm.. can u file a bug ticket, that we don't forget to look at it? I am currently traveling so not much room for stuff. 2010/2/23 Rafa Pérez raja...@gmail.com: Hi Matthias, yep, .JS are in there... but *inside you have this (1.0.12):* *var LocaleSymbols_en = new LocaleSymbols({ });* TrMessageFactory._TRANSLATIONS={ 'org.apache.myfaces.trinidad.validator.DoubleRangeValidator.NOT_IN_RANGE_detail':'The number must be between {2} and {3}.', 'org.apache.myfaces.trinidad.convert.LongConverter.MAXIMUM':'The number is too high.', 'org.apache.myfaces.trinidad.validator.RangeValidator.MAXIMUM_HINT':'Enter a number less than or equal to {0}.', 'org.apache.myfaces.trinidad.validator.DateTimeRangeValidator.RANGE_HINT':'Enter a date between {0} and {1}.', 'org.apache.myfaces.trinidad.validator.DateTimeRangeValidator.MAXIMUM_detail':'The date must be on or before {2}.', 'org.apache.myfaces.trinidad.validator.LongRangeValidator.MAXIMUM_detail':'The number must be less than or equal to {2}.', 'org.apache.myfaces.trinidad.convert.NumberConverter.CONVERT_PERCENT':'The percentage is not in the correct format.', 'javax.faces.validator.LongRangeValidator.MAXIMUM_detail':'The number must be less than or equal to {2}.', 'org.apache.myfaces.trinidad.UPLOAD':'The file is too large.', 'org.apache.myfaces.trinidad.UIXSelectMany.UNSUPPORTED_MODEL_TYPE':'Unsupported model type.', 'org.apache.myfaces.trinidad.validator.LongRangeValidator.MAXIMUM':'The number is too high.', 'org.apache.myfaces.trinidad.validator.LengthValidator.MAXIMUM':'There are too many characters.', 'org.apache.myfaces.trinidad.validator.DateTimeRangeValidator.MAXIMUM_HINT':'Enter a date on or before {0}.', 'org.apache.myfaces.trinidad.convert.LongConverter.CONVERT':'The number is not a whole number.', 'org.apache.myfaces.trinidad.convert.DoubleConverter.CONVERT':'The value is not a number.', 'org.apache.myfaces.trinidad.UIXEditableValue.CONVERSION_detail':'Enter a value that matches this pattern: {2}', 'org.apache.myfaces.trinidad.convert.ColorConverter.FORMAT_HINT':'Example format: {0}', 'org.apache.myfaces.trinidad.validator.LengthValidator.NOT_IN_RANGE_detail':'Enter {2} or more characters, up to a maximum of {3}.', 'org.apache.myfaces.trinidad.convert.ShortConverter.CONVERT':'The number is not a whole number.', 'org.apache.myfaces.trinidad.UPLOAD_detail':'The file could not be uploaded because it is too large.', 'org.apache.myfaces.trinidad.validator.RegExpValidator.NO_MATCH':'The format is incorrect.', 'org.apache.myfaces.trinidad.convert.ALERT_FORMAT_detail':'{0} - {1}', 'javax.faces.validator.LongRangeValidator.MINIMUM':'The number is too low.', 'org.apache.myfaces.trinidad.validator.DateRestrictionValidator.DAY':'The date is not valid.', 'org.apache.myfaces.trinidad.validator.LengthValidator.NOT_IN_RANGE':'The number of characters is out of range.', 'org.apache.myfaces.trinidad.convert.DateTimeConverter.CONVERT_BOTH_detail':'Enter a date and time in the same format as this example: {2}', 'org.apache.myfaces.trinidad.convert.DoubleConverter.CONVERT_detail':'The value must be a number.', 'org.apache.myfaces.trinidad.convert.DateTimeConverter.BOTH_HINT':'Example format: {0}', 'org.apache.myfaces.trinidad.convert.NumberConverter.CONVERT_PATTERN_detail':'The format of the number must match this pattern: {2}', 'org.apache.myfaces.trinidad.convert.DateTimeConverter.CONVERT_TIME':'The time is not in the correct format.', 'org.apache.myfaces.trinidad.convert.NumberConverter.CONVERT_PERCENT_detail':'Enter a percentage in the same format as this example: {2}', 'org.apache.myfaces.trinidad.convert.ShortConverter.MAXIMUM_detail':'The number must be less than or equal to {2}.', 'org.apache.myfaces.trinidad.convert.IntegerConverter.CONVERT':'The number is not a whole number.', 'org.apache.myfaces.trinidad.validator.DateRestrictionValidator.MONTH':'Dates in this month are not valid.', 'org.apache.myfaces.trinidad.convert.LongConverter.MAXIMUM_detail':'The number must be less than or equal to {2}.', 'org.apache.myfaces.trinidad.UIXTableSelectOne.REQUIRED_detail':'You must select a row.', 'org.apache.myfaces.trinidad.convert.NumberConverter.CONVERT_NUMBER_detail':'The value must be a number.', 'org.apache.myfaces.trinidad.convert.IntegerConverter.MINIMUM_detail':'The number must be greater than or equal to {2}.', 'org.apache.myfaces.trinidad.convert.IntegerConverter.MINIMUM':'The number is too low.', 'org.apache.myfaces.trinidad.UIXSelectOne.REQUIRED_detail':'You must make at least one selection.', 'org.apache.myfaces.trinidad.validator.DateTimeRangeValidator.NOT_IN_RANGE_detail':'The date must be between {2} and {3}.', 'org.apache.myfaces.trinidad.component.core.input.CoreInputFile.INPUT_FILE_ERROR_detail':'A file upload error has occurred, please verify your upload data and file name.', 'org.apache.myfaces.trinidad.convert.IntegerConverter.MAXIMUM_detail':'The number must be
Re: [TRINIDAD 1.0.12] LocaleSymbols* at LocaleElements*.js files are empty in 1.0.12 release
Done , bug https://issues.apache.org/jira/browse/TRINIDAD-1737. -- Rafa On Wed, Feb 24, 2010 at 10:55 AM, Matthias Wessendorf mat...@apache.orgwrote: Rafa, hrm.. can u file a bug ticket, that we don't forget to look at it? I am currently traveling so not much room for stuff. 2010/2/23 Rafa Pérez raja...@gmail.com: Hi Matthias, yep, .JS are in there... but *inside you have this (1.0.12):* *var LocaleSymbols_en = new LocaleSymbols({ });* TrMessageFactory._TRANSLATIONS={ 'org.apache.myfaces.trinidad.validator.DoubleRangeValidator.NOT_IN_RANGE_detail':'The number must be between {2} and {3}.', 'org.apache.myfaces.trinidad.convert.LongConverter.MAXIMUM':'The number is too high.', 'org.apache.myfaces.trinidad.validator.RangeValidator.MAXIMUM_HINT':'Enter a number less than or equal to {0}.', 'org.apache.myfaces.trinidad.validator.DateTimeRangeValidator.RANGE_HINT':'Enter a date between {0} and {1}.', 'org.apache.myfaces.trinidad.validator.DateTimeRangeValidator.MAXIMUM_detail':'The date must be on or before {2}.', 'org.apache.myfaces.trinidad.validator.LongRangeValidator.MAXIMUM_detail':'The number must be less than or equal to {2}.', 'org.apache.myfaces.trinidad.convert.NumberConverter.CONVERT_PERCENT':'The percentage is not in the correct format.', 'javax.faces.validator.LongRangeValidator.MAXIMUM_detail':'The number must be less than or equal to {2}.', 'org.apache.myfaces.trinidad.UPLOAD':'The file is too large.', 'org.apache.myfaces.trinidad.UIXSelectMany.UNSUPPORTED_MODEL_TYPE':'Unsupported model type.', 'org.apache.myfaces.trinidad.validator.LongRangeValidator.MAXIMUM':'The number is too high.', 'org.apache.myfaces.trinidad.validator.LengthValidator.MAXIMUM':'There are too many characters.', 'org.apache.myfaces.trinidad.validator.DateTimeRangeValidator.MAXIMUM_HINT':'Enter a date on or before {0}.', 'org.apache.myfaces.trinidad.convert.LongConverter.CONVERT':'The number is not a whole number.', 'org.apache.myfaces.trinidad.convert.DoubleConverter.CONVERT':'The value is not a number.', 'org.apache.myfaces.trinidad.UIXEditableValue.CONVERSION_detail':'Enter a value that matches this pattern: {2}', 'org.apache.myfaces.trinidad.convert.ColorConverter.FORMAT_HINT':'Example format: {0}', 'org.apache.myfaces.trinidad.validator.LengthValidator.NOT_IN_RANGE_detail':'Enter {2} or more characters, up to a maximum of {3}.', 'org.apache.myfaces.trinidad.convert.ShortConverter.CONVERT':'The number is not a whole number.', 'org.apache.myfaces.trinidad.UPLOAD_detail':'The file could not be uploaded because it is too large.', 'org.apache.myfaces.trinidad.validator.RegExpValidator.NO_MATCH':'The format is incorrect.', 'org.apache.myfaces.trinidad.convert.ALERT_FORMAT_detail':'{0} - {1}', 'javax.faces.validator.LongRangeValidator.MINIMUM':'The number is too low.', 'org.apache.myfaces.trinidad.validator.DateRestrictionValidator.DAY':'The date is not valid.', 'org.apache.myfaces.trinidad.validator.LengthValidator.NOT_IN_RANGE':'The number of characters is out of range.', 'org.apache.myfaces.trinidad.convert.DateTimeConverter.CONVERT_BOTH_detail':'Enter a date and time in the same format as this example: {2}', 'org.apache.myfaces.trinidad.convert.DoubleConverter.CONVERT_detail':'The value must be a number.', 'org.apache.myfaces.trinidad.convert.DateTimeConverter.BOTH_HINT':'Example format: {0}', 'org.apache.myfaces.trinidad.convert.NumberConverter.CONVERT_PATTERN_detail':'The format of the number must match this pattern: {2}', 'org.apache.myfaces.trinidad.convert.DateTimeConverter.CONVERT_TIME':'The time is not in the correct format.', 'org.apache.myfaces.trinidad.convert.NumberConverter.CONVERT_PERCENT_detail':'Enter a percentage in the same format as this example: {2}', 'org.apache.myfaces.trinidad.convert.ShortConverter.MAXIMUM_detail':'The number must be less than or equal to {2}.', 'org.apache.myfaces.trinidad.convert.IntegerConverter.CONVERT':'The number is not a whole number.', 'org.apache.myfaces.trinidad.validator.DateRestrictionValidator.MONTH':'Dates in this month are not valid.', 'org.apache.myfaces.trinidad.convert.LongConverter.MAXIMUM_detail':'The number must be less than or equal to {2}.', 'org.apache.myfaces.trinidad.UIXTableSelectOne.REQUIRED_detail':'You must select a row.', 'org.apache.myfaces.trinidad.convert.NumberConverter.CONVERT_NUMBER_detail':'The value must be a number.', 'org.apache.myfaces.trinidad.convert.IntegerConverter.MINIMUM_detail':'The number must be greater than or equal to {2}.', 'org.apache.myfaces.trinidad.convert.IntegerConverter.MINIMUM':'The number is too low.', 'org.apache.myfaces.trinidad.UIXSelectOne.REQUIRED_detail':'You must make at least one selection.', 'org.apache.myfaces.trinidad.validator.DateTimeRangeValidator.NOT_IN_RANGE_detail':'The date must be between {2} and {3}.',
Re: Tomahawk | Generate a JSP from Backing Bean
Thanks Jacob but I found a better solution on this page: http://www.nearinfinity.com/blogs/michael_bevels/dynamic_forms_using_jsf.html Thanks!!! On Tue, Feb 23, 2010 at 11:42 AM, Jakob Korherr jakob.korh...@gmail.comwrote: great! So you can use JSTL tags (c:if or c:choose) to determine the component to be rendered! So something like this should work: c:if test=#{bean.componenttype == 1} h:outputText value=#{bean.value} / /c:if Regards, Jakob 2010/2/23, daniel ccss danielcc...@gmail.com: Thanks, 1.2 why?? On Tue, Feb 23, 2010 at 9:58 AM, Jakob Korherr jakob.korh...@gmail.comwrote: hi, what jsf version are you using? 1.1, 1.2 or 2.0? Regards, Jakob 2010/2/23, daniel ccss danielcc...@gmail.com: Hi all, I have a question: Does anyone have an example of how to paint a JSP from a Backing Bean ( I´m using myfaces tomahawk.)? I have a table in the db that indicades what types of fields the JSP will have. For example 1 = t:inputText 1= t:inputText 2= h:selectOneMenu 3= t:commandLink I think i can do it using some scriptless (I do not like this solution) I can put all the fields types in an arrayList in the backingBean and then with a for sentence paint the controls in the JSP: % for(fieldsObject) { if(type == 1){ %t:inputText...% }else if (type == 2){ %h:selectOneMenu...% }else if (type == 3){ %t:commandLink...% } } % Anyone have a better solution?. If not, I also have a problem with the solution with scriptless: I recived an error message when I put the id to the field, that said that I can´t put an id in execution time, Im tried to put the ids in the following way: % for(i= 0; i fieldsObject, i++) { if(type == 1){ String inputId = Input_ + i; %t:inputText... id='%=inputId %' % }else if (type == 2){ String selectOneId = SelectOneMenu_ + i; %h:selectOneMenu...id='%=selectOneId %' % }else if (type == 3){ String commandLinkId= CommandLink_ + i; %t:commandLink...id='%=commandLinkId%' % } } % I hope anyone can help me, Thanks!!
Re: Tomahawk | Generate a JSP from Backing Bean
You're welcome! However if you use such a solution, you will maybe run into different problems regarding the binding of the panelGrid (e.g. which scope are you using to bind it? session? what if you have multiple tabs/windows open on one machine?..). On my opinion it would be a lot better to use JSTL tags. But, of course, it's your opinion what you will use ;) Regards, Jakob 2010/2/24 daniel ccss danielcc...@gmail.com Thanks Jacob but I found a better solution on this page: http://www.nearinfinity.com/blogs/michael_bevels/dynamic_forms_using_jsf.html Thanks!!! On Tue, Feb 23, 2010 at 11:42 AM, Jakob Korherr jakob.korh...@gmail.com wrote: great! So you can use JSTL tags (c:if or c:choose) to determine the component to be rendered! So something like this should work: c:if test=#{bean.componenttype == 1} h:outputText value=#{bean.value} / /c:if Regards, Jakob 2010/2/23, daniel ccss danielcc...@gmail.com: Thanks, 1.2 why?? On Tue, Feb 23, 2010 at 9:58 AM, Jakob Korherr jakob.korh...@gmail.comwrote: hi, what jsf version are you using? 1.1, 1.2 or 2.0? Regards, Jakob 2010/2/23, daniel ccss danielcc...@gmail.com: Hi all, I have a question: Does anyone have an example of how to paint a JSP from a Backing Bean ( I´m using myfaces tomahawk.)? I have a table in the db that indicades what types of fields the JSP will have. For example 1 = t:inputText 1= t:inputText 2= h:selectOneMenu 3= t:commandLink I think i can do it using some scriptless (I do not like this solution) I can put all the fields types in an arrayList in the backingBean and then with a for sentence paint the controls in the JSP: % for(fieldsObject) { if(type == 1){ %t:inputText...% }else if (type == 2){ %h:selectOneMenu...% }else if (type == 3){ %t:commandLink...% } } % Anyone have a better solution?. If not, I also have a problem with the solution with scriptless: I recived an error message when I put the id to the field, that said that I can´t put an id in execution time, Im tried to put the ids in the following way: % for(i= 0; i fieldsObject, i++) { if(type == 1){ String inputId = Input_ + i; %t:inputText... id='%=inputId %' % }else if (type == 2){ String selectOneId = SelectOneMenu_ + i; %h:selectOneMenu...id='%=selectOneId %' % }else if (type == 3){ String commandLinkId= CommandLink_ + i; %t:commandLink...id='%=commandLinkId%' % } } % I hope anyone can help me, Thanks!!
Paginator for tableSuggestAjax component from sandbox
Hi, I have received a support request from my client to add pagination functionality to a popup that implemented via the tableSuggestAjax component. I have found the attribute maxSuggestedItems, that specified in tableSuggestAjax, if paginator functionality is used. My question is if it really possible to add a paginator to this ajax enabled table? I can’t find any example… Thanks in advance! Igor -- View this message in context: http://old.nabble.com/Paginator-for-tableSuggestAjax-component-from-sandbox-tp27714201p27714201.html Sent from the MyFaces - Users mailing list archive at Nabble.com.