[jboss-user] [Security & JAAS/JBoss] - JBoss Negotiation - Tomcat
Is it possible to use JBoss Negotiation with just Tomcat (not JBoss)? If so, can someone please point me to the documentation? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4247131#4247131 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4247131 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Security & JAAS/JBoss] - JBoss Negotiation - Missing Service Pack
JIRA seems to suggest that the latest version of Negotiation is 2.0.3.SP1 (around April 2009), but the Downloads link only shows 2.0.3.GA (around Janurary 2009). https://jira.jboss.org/jira/browse/SECURITY?report=com.atlassian.jira.plugin.system.project:roadmap-panel http://jboss.org/jbosssecurity/downloads/JBoss%20Negotiation?action=a&windowstate=maximized It would be great to see the latest version available. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4247130#4247130 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4247130 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - Re: Jboss support for Webservices over REST?
Is there a forum for RestEASY? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4198631#4198631 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4198631 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - Re: Wrong minOccurs in wsdl generated by Jboss
FYI... I asked the same question here: http://www.jboss.com/index.html?module=bb&op=viewtopic&t=146142 As a rule, I think any Java object is treated as minOccurs=0. The only thing that isn't optional are primitives like int. Alas, I too am interested in some control over this because some objects are not optional and we should be able to annotate them as such. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4192829#4192829 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4192829 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - How to avoid optional parameters (wsgen)
Consider a simple web service method: | @WebMethod | void foo (@WebParam(name="param") String param) | When generating the WSDL using wsgen, and inspecting it in SoapUI, I notice that a primitive type (like an int) won't appear as optional, but an object reference does. In some cases, I would like to declare the parameter as required. I thought I could do something like: | @WebMethod | void foo (@WebParam(name="param") @XmlElement(nillable=false, required=true) String param) | Alas, this doesn't even compile because I can't use XmlElement for a method parameter... I'm pretty sure that the optional interpretation is coming from the minOccurs="0" attribute on the xs:element. Is there a way that I can control this? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4191518#4191518 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4191518 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - Best Practices for Dates
I have a web service that returns Dates. Imagine something simple like: | @WebMethod | Date getCurrentBusinessDate() | In this case, I am only interested in a Date (not a Time or Date Time). This is by design because otherwise one might go down the road of considering Time Zones, etc. -- and that is not necessary for this case. When running something like this, we see a full date/time appear in the SOAP result. Sure, the time is zero/midnight, but it also mentions a time zone (which really shouldn't be there, but seems to be impossible to get rid of). By rights, I really only want to see a Date transmitted (like -MM-DD). In JPA, for example, I use a Date type but qualify it with a @Temporal annotation to clarify the TemporalType (Date, Time, DateTime). I see that JAXB has similar distinctions (xsd:date, xsd:time, xsd:dateTime). Is there a way to annotate the web method so the return value is clarified to be an xsd:date? Secondly... Is there a material difference between using java.util.Date vs. java.util.Calendar? (Is one really preferred over the other?) If I am writing Java-first Web Services, should I be using Date or Calendar to represent dates? Thanks for your help! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4191502#4191502 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4191502 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: EJB3-embed jars in Maven repo?
More than a year later, and thirdparty-all is still kicking around... These kitchen sink "-all" jars need to be replaced with proper poms and let Maven do its job. With the "-all" jars, we need to pay attention to classpath ordering to avoid version conflicts... Ugh! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4191135#4191135 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4191135 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: TimerBean and TimeBeanImpl from seam-gen project
I received a reply from the ICEfaces Forum: http://www.icefaces.org/JForum/posts/list/6110.page anonymous wrote : The TimerBean interface is not currently being used. If you wanted to add to the TimerBeamImpl, make it stateful for example, you might want it. Other than that, it's just legacy. (we did ask that it be removed, but it lingers on) | | The TimerBeanImpl is just an example of how to use server-initiated rendering in the form of ICEfaces IntervalRenderer. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4099402#4099402 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4099402 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - TimerBean and TimeBeanImpl from seam-gen project
After building a project with seam-gen, I see a TimerBean interface and TimerBeanImpl class. I see the timer component is being used by layout\template.xhtml, but I am wondering why this is generated instead of part of the ice jar? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4099030#4099030 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4099030 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam 2.0.0 CR3
I notice that CR3 is on the JBoss Maven2 repository (great!), but I don't see a CR3 release for JBoss-EL. Is that an oversight? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4098987#4098987 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4098987 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Audit Interceptor with State
So in the end, how did you do this Kevin? Did you use Pete's strategy, or end up using Hibernate Interceptors? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4073228#4073228 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4073228 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: migration from 1.2 to 2.0beta1 @In
The lack of qualification for the component name presents this risk. Why not make it best practice to qualify the component name? So built-in components are "org.jboss.seam.Session", and my own objects would be "com.domain.project.Session". I know it seems verbose, but it just seems practical for large projects. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4063756#4063756 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4063756 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - New Eclipse Project
I am trying to mimick the demo: http://docs.jboss.com/jbpm/v3/demos/movies/jbpm-overview.htm But I am stuck on the first point... My Eclipse 3.2 does not have a New JBPM project option. I have JBossIDE installed: http://download.jboss.org/jbosstools/updates/development Do I need another site? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4063088#4063088 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4063088 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Facelets 1.1.11 and problem
Out of curiousity, what is special with the facelets library that comes with Seam? (I can see that it doesn't match 1.1.11 or 1.1.12 -- both of which are several months old already...) As a Maven user, I typically just enter a dependency that is available from Ibiblio or somewhere... In this case, I had to override the jar as you suggest, but I'm just curious as to the background. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4054061#4054061 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4054061 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: s:convertEntity with non-numeric @Id
I logged this issue in JIRA: http://jira.jboss.com/jira/browse/JBSEAM-1444 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4053799#4053799 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4053799 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: s:convertEntity with non-numeric @Id
I'm using Seam 1.3.0.ALPHA. Here is the full stack trace: Caused by javax.servlet.ServletException with message: "For input string: "USD"" | javax.faces.webapp.FacesServlet.service(FacesServlet.java:256) | org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) | org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) | org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) | org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:60) | org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:55) | org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:47) | org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:55) | org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:81) | org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:55) | org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:293) | org.jboss.seam.web.AbstractAjax4jsfFilter.doFilter(AbstractAjax4jsfFilter.java:35) | org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:55) | org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:64) | org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:55) | org.jboss.seam.web.SeamFilter.doFilter(SeamFilter.java:126) | org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) | org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) | org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:127) | org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:277) | org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) | org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) | org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96) | org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) | org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) | org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230) | org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) | org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179) | org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433) | org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84) | org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) | org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104) | org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156) | org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) | org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241) | org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) | org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:580) | org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) | java.lang.Thread.run(Thread.java:619) | Caused by java.lang.NumberFormatException with message: "For input string: "USD"" | java.lang.NumberFormatException.forInputString(NumberFormatException.java:48) | java.lang.Integer.parseInt(Integer.java:447) | java.lang.Integer.(Integer.java:620) | org.jboss.seam.ui.EntityConverter.getAsObject(EntityConverter.java:80) | com.sun.faces.renderkit.html_basic.HtmlBasicInputRenderer.getConvertedValue(HtmlBasicInputRenderer.java:152) | com.sun.faces.renderkit.html_basic.MenuRenderer.convertSelectOneValue(MenuRenderer.java:197) | com.sun.faces.renderkit.html_basic.MenuRenderer.getConvertedValue(MenuRenderer.java:359) | javax.faces.component.UIInput.getConvertedValue(UIInput.java:934) | javax.faces.component.UIInput.validate(UIInput.java:860) | javax.faces.component.UIInput.executeValidate(UIInput.java:1065) | javax.faces.component.UIInput.processValidators(UIInput.java:666) | javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1030) | javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1030) | javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1030) | javax.faces.component.UIForm.processValidators(UIForm.java:229) | javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1030) | javax.faces.component.UIViewRoot.processValidators(UIViewRoot.java:662) | org.ajax4jsf.framework.ajax.AjaxViewRoot.access$201(AjaxViewRoot.java:53) | org.ajax4jsf.framework.ajax.AjaxViewRoot$3.invo
[jboss-user] [JBoss Seam] - s:convertEntity with non-numeric @Id
According to the documentation: anonymous wrote : | The converter works with any entity which has an @Id annotation - either simple or composite. | But if I try to use it with an Entity that has a String as the @Id, I get a NumberFormatException: | java.lang.NumberFormatException.forInputString(NumberFormatException.java:48) | java.lang.Integer.parseInt(Integer.java:447) | java.lang.Integer.(Integer.java:620) | org.jboss.seam.ui.EntityConverter.getAsObject(EntityConverter.java:80) | com.sun.faces.renderkit.html_basic.HtmlBasicInputRenderer.getConvertedValue(HtmlBasicInputRenderer.java:152) | So this would lead me to believe that it works only for numbers. Can this please be emphasized in the documentation? So what do I need to do? I guess I need to delcare my own converter? And then how do I get it wired in? Or could EntityConverter be enhanced to handle String @Id Entities? (Overload the get method in EntityConverterStore, and do some kind of class meta-data check in EntityConverter?) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4053685#4053685 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4053685 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Facelets version
What version of Facelets is required for Seam 1.3 and JBoss 4.2? I notice that 1.1.11 is still the latest official release, but the file size doesn't match (1.1.12 draft either). View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4053643#4053643 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4053643 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: seam-gen: What is it good for?
I think you have raised a good question... I personally don't use it beyond getting an initial baseline. I have found that even after the code generation, I need to hunt around and make several tweaks (disabling schema validation, changing the naming strategy -- some of this is related to Oracle). Also, if you augment the an Entity bean, and then run generate-entities again, you will lose your change. As a result, I don't feel it is meant to be used throughout the development cycle... Of course, I think it should be easier to run it repeatedly. I have asked for a way to say, "generate-entities ", so that you could just add the one entity and CRUD. I also think you should be able to supply your own Entity bean, and just let seam-gen create the CRUD. This would skip the reverse engineering -- there are several issues that I have with the reverse engineering (lack of enum support, constraints, etc.). I am also a Maven fan, so I will take the ant oriented project and migrate it to a maven oriented project... I could see seam-gen evolve into a maven plugin. Imagine:c:\workspace\project\> mvn seam-gen:generate-crud View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4051864#4051864 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4051864 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - faces-config 1.1 or 1.2
>From Michael Yuan's blog, he instructs to update the /WEB-INF/faces-config.xml >file to add the SeamELResolver using the new JSF 1.2 XML schema declaration... Looking at a fresh seam-gen application (from 1.3.0.ALPHA), I see that faces-config still has the 1.1 dtd and it has no SeamELResolver... I thought this was important for JBoss 4.2 / JSF 1.2 compliance. Should that be updated? Or is Michael's advice not necessary? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4051562#4051562 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4051562 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: seam 1.3.0.alpha seam-gen error
I traced the problem to having a foreign key constraint. If I drop the constraint, seam-gen works fine... (But I want that constraint, and I'm expecting seam-gen will generate code with convert-entity...) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4051518#4051518 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4051518 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: seam 1.3.0.alpha seam-gen error
Are you sure that did the trick? I see the same hibernate-all.jar in project\lib as seam-gen\lib. Renaming the one in project\lib doesn't change a thing for me... I recall I had this problem in the past and I had gotten around it by removing tables and constraints... View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4051511#4051511 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4051511 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Localizable CRUD from seam-gen
For a long time, I never paid much attention to localization because my users all spoke English. Alas, I now need the convenience of localization. I remember that the earlier generation of seam-gen (the one built into the Hibernate reverse engineering tool part of the JBoss IDE) embedded message bundle lookups for all of its generated labels. But it would seem that this feature no longer exists, and I am seeing a lot of hard-coded English. For example, in seam-gen\view\edit.xhtml.ftl: | | and in seam-gen\view\editproperty.xhtml.ftl: | ${componentProperty.name} | For the first case, I could see seam-gen automatically declare some constants for common labels like "Save", "Delete", "Cancel", etc. Let's say they were called, "Seam.Edit.Save", then the template could embed a messages lookup:value="#{messages['Seam.Edit.Save']}" For the second case, it is a little more complicated because the template needs to have a messages lookup and we need to augment the messages.properties file... The first part is easy enough, but the messages.properties file looks like a constant artifact in seam-gen. Adding a message bundle lookup for field labels would help in renaming the fields -- I only need to tweak the message bundle instead of editing 3 xhtml files for each business domain object. But before I dig any further, it looks like someone has beat me to this issue and logged an issue already: http://jira.jboss.org/jira/browse/JBSEAM-1206 Any plans for getting this in the 1.3 beta? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4051162#4051162 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4051162 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - DRY Edit pages
Consider the following seam-gen generated snippet from an Edit.xhtml: | | | | I like how seam will impose my Entity bean restrictions at the UI level, so that my @NotNull constraint is translated into a required="true", and my @Length(max=2) constraint is translated into a maxlength="2". But I'm concerned that this is repeating oneself -- especially when a change is made. If a constraint is changed on the @Entity bean, I need to update the Edit page in addition to the database... Why can't the Edit page be driven by the meta-data of the Entity bean at run-time? I would like the framework to interrogate the Entity bean's meta data for required and maxlength if they are not specified. (If this is a conscious decision based on the poor performance of reflection, then I understand. Too bad the xhtml couldn't be enriched from meta data at build time.) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4051155#4051155 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4051155 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Why avoid HTTP Authentication?
>From 12.4.7. HTTP Authentication, the Seam docs say: anonymous wrote : Although not recommended for use unless absolutely necessary, Seam provides means for authenticating using | either HTTP Basic or HTTP Digest (RFC 2617) methods. Can someone elaborate on why HTTP authentication is meant to be avoided? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4051143#4051143 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4051143 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - XML formattting in Eclipse to match seam-gen
When looking at seam-gen generated xhtml, I can see it is formatted in a way that the element attributes are aligned on the equals (=) sign: | | name | | | | | This is certainly pretty, and makes it easy to read. My problem is that this alignment is lost when I reformat this XML in Eclipse because it has its own indentation rules. Is there a way to get this kind of indentation in Eclipse? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4051131#4051131 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4051131 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam + Maven + Richfaces + softeu
I would like to reiterate the value of Maven support. I liken Maven to my TiVo. It is one of those inventions that you don't really need, but when you start using it, you realize the benefits. The main issue with using Maven is that the open-source dependencies are driven by a community. If everyone used/supported Maven, my build and dependency management would be much easier. The main stumbling block with Maven is typically when you try integrating projects that don't support Maven. Simple jars (like JDBC drivers) are usually not a problem, but frameworks with lots of dependencies (and dependencies have dependencies, etc.) can be awkward. The Maven user community has grown significantly over the past year, and it sounds like it will overtake Ant. The JBoss Maven2 repository (http://repository.jboss.com/maven2/) is very helpful. Thanks! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4051030#4051030 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4051030 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: jboss-seam-CVS.20061204 seam-gen project
After supplying the ehcache jar, generate-entities fails with a new error: anonymous wrote : | BUILD FAILED | java.lang.IllegalAccessError: tried to access field org.hibernate.cfg.Collection | SecondPass.collection from class org.hibernate.cfg.JDBCBinder$JDBCCollectionSecondPass View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4050775#4050775 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4050775 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: jboss-seam-CVS.20061204 seam-gen project
seam generate-entities is failing for me with the latest CVS tree because ehcache is missing from the lib directory. It reports a java.lang.NoClassDefFoundError: net/sf/ehcache/CacheException. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4050774#4050774 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4050774 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Boiler-plate getMaxResults for domain object List class
I am afraid that you missed my point... I am advocating that the framework (EntityQuery or Query) defines a default so that the numerous Entity List classes do not need to declare this. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4050688#4050688 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4050688 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: seam-gen enhancement
I notice that this issue (http://jira.jboss.org/jira/browse/JBSEAM-843) is still not on the roadmap. (I recall that this had just missed the 1.1.7 release, but I had hoped that it would have been included in the 1.2.x release, and now I don't even see it scheduled for 1.3.) Please don't forget about it because I am trying to promote a Java-first approach whereby the Entity beans begin as Java code, not a database table, and the DDL is derived from the Java code. (This helps ensure that the Java annotations are correct and complete.) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4050636#4050636 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4050636 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Boiler-plate getMaxResults for domain object List class
The boiler-plate for an entity List class overrides getMaxResults with a constant: | @Override | public Integer getMaxResults() { | return 25; | } | Why is this done (or necessary)? The underlying Query (http://fisheye.jboss.com/browse/JBoss/jboss-seam/src/main/org/jboss/seam/framework/Query.java? r=1.32) class already has a property: | public Integer getMaxResults() | { | return maxResults; | } | Users could set this variable in a constructor if they want to override the default 25. I am surprised to see the getMaxResults return a constant because it means that the getter is inconsistent with the setter. For example, the following assertion fails: | myList.setMaxResults(50), | assert 50 == myList.getMaxResults(); | It just doesn't seem right... And I don't see why I shouldn't be able to change the result set size. Note that the EntityQuery class (or Query) should specify a default initialization for maxResults. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4050635#4050635 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4050635 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Excel support in Seam: any interest?
I'd like to add my two cents... First off, I agree that a displaytag equivalent is a great idea! Sometimes a simple solution is the best. And I too have searched for a JSF equivalent to displaytag. I would love to see Seam (or one of the Faces sister projects) provide something like this. As far as creating true Excel sheets (similar to creating PDF), that would also be a nice feature. But the simpler displaytag case whereby a user can export a grid into Excel is a higher priority for me that I would expect to use more frequently. For what it is worth, I have been using a simple strategy for several years now to create an Excel file: simply create an HTML page and specify the content type to be "application/vnd.ms-excel". In ColdFusion, there is a cfcontent tag:And Java/JSP has a similar mechanism (see javax.servlet.ServletResponse.setContentType). The neat thing about the HTML import is that a lot of formatting is maintained. I've even managed to build formulas and Pivot Tables via HTML. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4025884#4025884 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4025884 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Correct Syntax for enum lookup in messages
I'd just like to add that I did have a build problem where the messages_en.properties file wasn't placed properly in WEB-INF/classes, but even after it was resolved, I still can't get the enum translations to work... View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4016430#4016430 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4016430 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Correct Syntax for enum lookup in messages
For an edit page, I have an enum. My code looks something like: | | My problem is that I am not seeing any label text... I may have a bug in my build process, but I figured that it is worth asking... Consider a ficticious enum declaration: | package com.mycompany.foo; | | public enum enumType | { | E_ABC, | E_PQR, | E_XYZ; | | @Override | public String toString () | { | return name().substring(2); | } | } | Note that I am overriding toString because this enum is saved as a string to the database, and the "E_" prefix is redundant. For messages_en.properties, what should the entries be? Ironically, I have tried several permutations, and nothing seems to work, hence I am considering that I may have a build problem. But it would help to have a case like this documented since most of the examples are simply constants, like "#{messages.someMessageText}". Thanks! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4016190#4016190 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4016190 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: seam-gen enhancement
Good work Kent! I can't wait to try this... I can't stress how important this feature is because the reverse engineering approach makes a lot of incorrect assumptions. The Entity bean provides much richer information for CRUD generation. Some problems that I have run into with reverse engineering include: | * I have run into problems dealing with Dates because the database (SQL Server) only has one date type (datetime) for dates, times, and timestamps. However, if you look at my Entity bean, it clearly has the field tagged with a Temporal annotation (@Temporal(TemporalType.DATE)). | | * I have run into problems with Enumerated types. To the database, I often store enum values as Strings, so the reverse engineering makes the field a String rather than an enum. My Entity bean has an enum annotated (@Enumerated(EnumType.STRING)). | | * I rarely override the columnDefinition (for an enum code or iso code, for example). The reverse engineering translates char(n) columns to be varchar(n), then deployment fails because Hibernate does some validation. | | * Foreign Key constraints often creates unneccesary object coupling. For example, I have an Exchange object that has a ManyToOne relationship with a Country. Reverse engineering will create the Country object with a set of Exchanges. In truth, Country should not really know about its Exchanges, but an Exchange must know its Country. | Because of these problems, I am often only able to use Seam-gen as a very rough guide because it often doesn't yield a working solution. I definitely am not expecting perfection, but there is clearly an information gap due to reverse engineering that can be mitigated by using the Entity beans directly. I recognize Seam-gen as an invaluable tool for Seam development. It has definitely saved me time, but this enhancement makes it 100 times more useful. I'm crossing my fingers for 1.1.7. ;-) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4016060#4016060 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4016060 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Foreign Keys and changing Seam Gen templates
I think I have the same problem as you, and Gavin suggested getting the latest seam-gen from CVS... See my post: http://www.jboss.com/index.html?module=bb&op=viewtopic&t=101221 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4014189#4014189 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4014189 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Best practice for creating reference entity for entity creat
I used seam-gen from 1.1.6 GA to create a reverse-engineered project. I have a table with a self join. (Note that in order to use generate-entities, I had to drop the foreign key constraint, then I doctored the generated project a bit to restore the object relationship.) My entity looks something like: | @Entity | public class Currency implements Serializable | { | private static final long serialVersionUID = 1L; | | /** ISO 4217 Currency Code */ | @Id | @Column(columnDefinition = "char(3)", length = 3) | @NotNull | @Length(min = 3, max = 3) | private String code; | | /** Currency name (English) */ | @Column(length = 40, nullable = false, unique = true) | @NotEmpty | @Length(max = 40) | private String name; | | /** Rank for sorting */ | @Column(nullable = false) | @NotNull | private int sortRank; | | /** | * Replacement Currency. For example pre-Euro currencies would have EUR specified. | */ | @ManyToOne | private Currency replacementCurrency; | | /** | * Replacement Date is the date that the currency was replaced. For example, | * the date when the currency was converted to EUR. | */ | @Temporal(TemporalType.DATE) | private Date replacementDate; | ... | } | So on the CurrencyEdit.xhtml page, there is code like: | | Replacement Currency | | | | | | | | Of course, when I try to save, I get an argument type mismatch error: anonymous wrote : | CurrencyEdit.xhtml @85,96 value="#{currencyHome.instance.replacementCurrency}": Exception setting property replacementCurrency of base with class com.mycompany.reference.iso.Currency, Bean: com.mycompany.reference.iso.Currency, property: replacementCurrency, argument type mismatch | The form only is accepting a String, which is the PK of Currency, but not a Currency object. Clearly, I need to use that String key to find the object instance, and then assign that to the object being edited... Anybody have an example? I can imagine the code to do this, but I am really wondering what the best practice is. Can I use the CurrencyHome or CurrencyList object in some fashion, or do I need to create another bean? (I am a little surprised that I couldn't find an example in the Seam documentation.) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4014018#4014018 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4014018 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - stylesheet/date.css missing from seam-gen project
>From my 1.1.6 GA seam-gen project, the template.xhtml has a link to >stylesheet/date.css, but the date.css file is not part of the project. Looks >like a bug... View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4013910#4013910 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4013910 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Trinidad PPR/Ajax and Seam
Does anybody know if this is still necessary with 1.1.5 GA of Seam? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4009207#4009207 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4009207 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Feature Request: seam crud
>From this movie, I can see how Hibernate Tools can be used to reverse engineer >a Seam CRUD application based on a database schema. My main problem is that >the Entity beans that it generates aren't always right. (For example, I have >two entities: Exchange and Country. There is a Many-To-One relationship >between Exchange and Country, and that relationship is OK in the Exchange >Entity bean, but the generated Country Entity bean gets a Set member that I do >not want because I feel it tightens the coupling.) seam generate-entities can be used to do a basic reverse engineering, then I can tweak the entity bean a bit to my liking. Then, I'd like to be able to run something like seam crud to generate a CRUD interface for the entity. Is this possible? Is this on the roadmap? Also, it would be great if seam generate-entities accepted a list of database tables rather than having it scan the entire database everytime. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4002459#4002459 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4002459 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - seam generate-entities yields java.lang.StackOverflowError
Running seam generate-entities against a SQL Server schema with handful of entities yields me a failure: | BUILD FAILED | java.lang.StackOverflowError | at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1225) | at org.apache.tools.ant.Project.executeTarget(Project.java:1185) | at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40) | at org.apache.tools.ant.Project.executeTargets(Project.java:1068) | at org.apache.tools.ant.Main.runBuild(Main.java:668) | at org.apache.tools.ant.Main.startAnt(Main.java:187) | at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246) | at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67) | Caused by: java.lang.StackOverflowError | at freemarker.ext.beans.BeansWrapper.introspectClass(BeansWrapper.java:660) | at freemarker.ext.beans.BeanModel.(BeanModel.java:134) | at freemarker.ext.beans.StringModel.(StringModel.java:90) | at freemarker.ext.beans.StringModel$1.create(StringModel.java:75) | at freemarker.ext.util.ModelCache.getInstance(ModelCache.java:113) | at freemarker.ext.beans.BeansWrapper.wrap(BeansWrapper.java:393) | at freemarker.ext.beans.BeansWrapper.invokeMethod(BeansWrapper.java:584) | at freemarker.ext.beans.BeanModel.invokeThroughDescriptor(BeanModel.java:252) | at freemarker.ext.beans.BeanModel.get(BeanModel.java:177) | at freemarker.core.Dot._getAsTemplateModel(Dot.java:76) | at freemarker.core.Expression.getAsTemplateModel(Expression.java:89) | at freemarker.core.Dot._getAsTemplateModel(Dot.java:74) | at freemarker.core.Expression.getAsTemplateModel(Expression.java:89) | at freemarker.core.ListLiteral.getModelList(ListLiteral.java:119) | at freemarker.core.MethodCall._getAsTemplateModel(MethodCall.java:89) | at freemarker.core.Expression.getAsTemplateModel(Expression.java:89) | at freemarker.core.ListLiteral.getModelList(ListLiteral.java:119) | at freemarker.core.MethodCall._getAsTemplateModel(MethodCall.java:89) | at freemarker.core.Expression.getAsTemplateModel(Expression.java:89) | at freemarker.core.Assignment.accept(Assignment.java:90) | at freemarker.core.Environment.visit(Environment.java:196) | ...REMOVED... | at freemarker.core.MixedContent.accept(MixedContent.java:92) | at freemarker.core.Environment.visit(Environment.java:196) | at freemarker.core.ConditionalBlock.accept(ConditionalBlock.java:79) | at freemarker.core.Environment.visit(Environment.java:196) | at freemarker.core.IteratorBlock$Context.runLoop(IteratorBlock.java:160) | at freemarker.core.Environment.visit(Environment.java:351) | at freemarker.core.IteratorBlock.accept(IteratorBlock.java:95) | at freemarker.core.Environment.visit(Environment.java:196) | at freemarker.core.Environment.include(Environment.java:1375) | at freemarker.core.Include.accept(Include.java:155) | at freemarker.core.Environment.visit(Environment.java:196) | at freemarker.core.MixedContent.accept(MixedContent.java:92) | at freemarker.core.Environment.visit(Environment.java:196) | Any idea as to what is wrong? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3999308#3999308 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3999308 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Object level validation
I can see someone has a similar issue: http://opensource.atlassian.com/projects/hibernate/browse/ANN-513 I though about using AssertTrue, but it felt forced, especially when I would need to use several if I wanted to actually link errors to certain fields... Is there a way that I can create a ClassValidator for the Bond class, register it with Hibernate so that it always validates Bond objects before persisting? (I found little documentation on doing something like this, but did see a post that hinted at this notion.) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3996949#3996949 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3996949 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam & Maven2
>From http://raibledesigns.com/page/rd?entry=tse_hop_into_real_object: anonymous wrote : Ben just did a survey of the room asking who's using Ant vs. Maven. Surprisingly, Ant only slightly beats Maven. I can't stress the importance of being able to declare Seam as a dependency for Maven users. It is a speedbump to Seam adoption. Kudos to all involved. I can't wait! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3996945#3996945 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3996945 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Object level validation
I am creating JPA/EJB3 entity objects, and am using Hibernate Validation annotations for some basic constraints. And I definitely like how this validation framework is leveraged by Seam -- DRY! But how can I best provide semantic object level validation? For example, imagine that I have a Bond class with several properties for creating the coupons: | @Entity | public class Bond | { | /** Primary key id */ | @Id | @GeneratedValue | private int id; | | @NotNull | @Temporal(TemporalType.DATE) | private Date issueDate; | | @Temporal(TemporalType.DATE) | private Date datedDate; | | @Temporal(TemporalType.DATE) | private Date firstCouponDate; | | @Temporal(TemporalType.DATE) | private Date penultimateCouponDate; | | @Temporal(TemporalType.DATE) | private Date maturityDate; | | @Column(columnDefinition = "tinyint") | @Enumerated(EnumType.STRING) | private CouponFrequency couponFrequency; | | @Column(length = 13) | @Enumerated(EnumType.STRING) | private AccrualMethod accrualMethod; | } | I need the capability to validate the bond object to ensure the following: | * issueDate < maturityDate | * issueDate < firstCouponDate | * issueDate < penultimateCouponDate | * datedDate < firstCouponDate | * datedDate < maturityDate | * datedDate < penultimateCouponDate | * firstCouponDate < penultimateCouponDate | * firstCouponDate < maturityDate | * penultimateCouponDate < maturityDate | And this is just the tip of the iceberg. (Note that there are seemingly redundant checks listed because most of the columns are nullable.) What is the best practice for enforcing object level validation? I'm looking for a strategy whereby a validation routine could be executed to create a list of invalid values, which them Seam could report to the user -- just like other Hibernate Validation annotation restrictions like @Min, @Max, @Range, etc. Thanks! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3996727#3996727 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3996727 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user