[JBoss Seam] - s:selectDate render problem
by rmemoria
Hi,
I had no idea how to warn about bugs found+corrected in the source code, so I'm sending it here.
A few posts ago I related a problem wiht the s:selectDate tag and the Romanian language. Acctually I found that the DateFormatSymbols.ShortWeekdays using the romanian locale returns strings with length of 1 char:
D,L,Ma,Mi,J,V,S
I checked the method ui.org.jboss.seam.ui.UISelectDate.commaSeparate and found a problem there:
The code in use:
private String commaSeparate(String[] values, int maxLength)
| {
| StringBuilder sb = new StringBuilder();
| for (String val : values)
| {
| if (!"".equals(val))
| {
| if (sb.length() > 0) sb.append(',');
| sb.append(maxLength == -1 ? val : val.substring(0, maxLength));
| }
| }
| return sb.toString();
| }
I just replaced the
sb.append(maxLength == -1 ? val : val.substring(0, maxLength));
by
sb.append((maxLength == -1) || (val.length() < maxLength) ? val : val.substring(0, maxLength));
and now it's working fine.
Best,
Ricardo
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4026616#4026616
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4026616
19Â years, 1Â month
[EJB 3.0] - ejb-jar.xml a clear definition for EJB3
by sandrocchio_0.1
Hi there,
I'm facing a problem which is probably quite common with newbie like me. There a lot of informations and tutorials on the net, but they're quite different between eachother. So in the end we are just confused and we are not sure about we are following the good procedure.
I'm ok with Persistence and EJB3 annotations (for the moment), but I'm stuck with the configuration files.
First of all, with the annotations, do we still need the ejb-jax.xml? And if yes, how should it look like, at least the minimum tags required by JBoss 4.1
Same question for the jboss.xml.
I'm trying to deploy an EJB Module which implements Hibenate and EJB3, is it correct rename the package as .ejb3 instead of .jar?
I hope that someone with more experience then me help me in keep this thread active as I think to not be the only person facing these issues.
Thanks in advance
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4026608#4026608
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4026608
19Â years, 1Â month