[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: lazily initialize collections in their getters

2008-08-06 Thread mars1412
thanks for the answers "jaikiran" wrote : Well, that's what the user would expect right? If someone explicitly sets it to null, then he should get back null, isn't it? Yes, you are right. In the case of collection initalisation the other approach is more appropriate. When I think about it, th

[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: lazily initialize collections in their getters

2008-08-06 Thread mars1412
basically it's the same, but with your approach the getter could return null, if anyone called setMyEntities(null) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4168948#4168948 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=rep

[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - lazily initialize collections in their getters

2008-08-06 Thread mars1412
I am thinking of using lazy initialization of collections in thier getters: example: private java.util.Set myEntities; | |public java.util.Set getMyEntities() { | if (myEntities == null) { | myEntities = new HashSet(); | } | return myEntities; |

[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: overriding of embedded field names

2008-04-04 Thread mars1412
ups, the Address class should of course be annotated @Embeddable View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4141605#4141605 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4141605 __

[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - overriding of embedded field names

2008-04-04 Thread mars1412
when I use the same embedded component several times in my entity (e.g. Addresses), I need to use @AttributeOverride for EACH field of the embedded component. This is tedious when the entity is used several times and has a lot of fields. And if you add a field to the embeddable component, you mi

[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: @OneToOne and SELECT (1+n) problem

2008-04-03 Thread mars1412
AFAIK all your fancy annotation stuff is useless when you explicitly code your query. if you would just use em.find(Person.class, Id) your annotation setting should work but if you hardcode your query, you must explicitly use a fetch statement like: from Person p inner join fetch p.metadata V

[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: truncation of data in entity bean

2008-03-31 Thread mars1412
Usually you don't want to just truncate data. I'd recommend to use @Length(max=100) (then you don't need length=100 in the @Column annotation) - this way you could easily validate the input data. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4140009#4140009

[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: Multiple entity level join fetch

2008-03-25 Thread mars1412
should be smth. like this (I didn't try it): select o from Owner o | join fetch o.cats c | join fetch c.kittens View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4138653#4138653 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=re

[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: newbie: em.flush() is locking a select statement

2008-03-20 Thread mars1412
ah, thanks you pointed me in the right direction after some investigations I found out, that the READ_COMMITED transaction isolation level behaves differently between oracle and MS Sql server. SQL Server uses shared locks by default. Thus the select statement is blocked while the update is not

[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - newbie: em.flush() is locking a select statement

2008-03-20 Thread mars1412
I just noticed following issue, that I can't understand. I change some properties on myEntity and set a breakpoint before entityManager.flush(); In a command window I start sqlcmd (MS-Sql Servers commandline interface) and select the entity that I am about to change. select * from MyEntity whe

[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: Need Urgent help!!!! JDBC Driver class not found: com.my

2008-03-14 Thread mars1412
but what does it really buy me to provide a minimal configuration, that includes only stuff, I need in my application? I (newbie) find it very difficult to decicde what I really need and how to deactivate other stuff so I stick with the all profile for now. is it better performance, because some

[jboss-user] [Beginners Corner] - Re: Use external .jar into a seam Project

2008-03-12 Thread mars1412
another wild guess: are you sure, that the application server uses the same (or an higher) java version, as your application/your complicated jar has been compiled with? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4135869#4135869 Reply to the post : http:/

[jboss-user] [Beginners Corner] - Re: Use external .jar into a seam Project

2008-03-12 Thread mars1412
I am also quite new to java and eclipse, but I think this might help: You have to take care of the following fact: when you are compiling the source-code in eclipse, then eclipse will use the classpath that you have specified in eclipse (I guess, that's stored in your workspaces .classpath file)

[jboss-user] [Beginners Corner] - Re: ear: read a file from webapplication

2008-03-06 Thread mars1412
tx for the reply actually I just looked into the seam source how the seam.properties file is read and came up with this solution: javax.faces.context.FacesContext facesContext = javax.faces.context.FacesContext.getCurrentInstance(); | ServletContext servletContext = (ServletContext)facesConte

[jboss-user] [Beginners Corner] - ear: read a file from webapplication

2008-03-05 Thread mars1412
how can I read a file from my webapplication? e.g. file is in project.ear\twentyfouract.war\img\mypic.gif File file = new File("img\mypic.gif"); View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4134362#4134362 Reply to the post : http://www.jboss.com/index.html

[jboss-user] [Beginners Corner] - Re: plugins available for eclipse

2008-03-05 Thread mars1412
http://labs.jboss.com/tools/download/index.html especially JBossAS Tools you should also check JBDS http://www.jboss.com/products/devstudio View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4134183#4134183 Reply to the post : http://www.jboss.com/index.html?modu

[jboss-user] [Beginners Corner] - Re: JBoss seam forum broken

2008-03-05 Thread mars1412
you know about the new forum, do you? http://www.seamframework.org/Community/SeamUsers View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4134142#4134142 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4134142

[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - @Length not working on embedded component

2008-03-04 Thread mars1412
When I use @Length annotation on the fields of my entity, the column in the table is created with the expected length (see email field in the example below) But in embedded components, it seems that the @Length annotation is ignored (when creating the table) and the column in the table is always

[jboss-user] [Beginners Corner] - Re: java script is compressed

2008-03-03 Thread mars1412
this works now it seems that I just had to restart the JBoss server View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4133555#4133555 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4133555 ___

[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: Possible bug in named queries

2008-02-28 Thread mars1412
I remember to have read, that this is intentional somewhere on the forums - so U better change the name View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4132819#4132819 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=41328

[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: hibernate: MS-SQL Server and UTF-8

2008-02-27 Thread mars1412
found the answer: you have to create your own hibernate dialect and then set the correct column types:package mypackage; | | import java.sql.Types; | | public class SQLServerDialect extends | org.hibernate.dialect.SQLServerDialect { | | public SQLServerDialect() { |

[jboss-user] [Beginners Corner] - Re: Developing EJB with JBoss Eclipse and JBossTools

2008-02-27 Thread mars1412
read about JBoss Developer Studio: http://www.jboss.com/products/devstudio JBDS forum: http://www.jboss.com/index.html?module=bb&op=viewforum&f=258 JBDS is commercial, but it's just a combination of open source plugins. so you could assemble it yourself JBDS provides nice Hot Deployment View the

[jboss-user] [Beginners Corner] - java script is compressed

2008-02-26 Thread mars1412
when I deploy my web-application and want to view my java-script code in firebug, all linebreaks have been removed. I tried to set this in web.xml, but it does not change anything: | org.ajax4jsf.COMPRESS_SCRIPT | false | I am using jboss web server, s

[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - hibernate: MS-SQL Server and UTF-8

2008-02-21 Thread mars1412
How can I tell MS-SQL Server to create columns as nvarchar() instead of varchar()? in MS-SQL Server the varchar() columnd do not support UTF-8 characters! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4131294#4131294 Reply to the post : http://www.jboss.co

[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - newbie: import script questions

2008-02-21 Thread mars1412
1) what character encoding do I need to use for the import.sql file: ISO-8859-1 or UTF-8 2) when you have master-child data to insert, what is the best way to do it? since I am using MS-SQL database, the ID's will be generated by the database, so I must do this: insert into ParentTable (field1,

[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: newbie: automatically writing auditing data

2008-02-18 Thread mars1412
ok, I just got 1 step further I used the event listener and assigned my class, that exetended: org.hibernate.ejb.event.EJB3PostInsertEventListener as already stated above, this works, but 'post' is the wrong time I could not find some EJB3PreInsertEventListener and also found nothing in org

[jboss-user] [Beginners Corner] - Re: Problem with deploy web application with JSF 1.2 to JBos

2008-02-18 Thread mars1412
in my case, I think the problem is, that the application finds 2 different versions of jsf-impl.jar (which includes com.sun.faces.config.WebConfiguration):* C:\Programme\jboss-4.2.0.GA\server\default\deploy\jboss-web.deployer\jsf-libs | * C:\Programme\jboss-4.2.0.GA\server\default\deploy\twen

[jboss-user] [JBoss Seam] - Re: Conversation @Begin(join=true) not working properly?

2008-02-15 Thread mars1412
"[EMAIL PROTECTED]" wrote : Hm. Interesting. The current implementation is "kill the conversation at the *end* of the request". Perhaps what people really want is "kill the conversation at the *beginning* of the request. | | I have to think this through... still thinking? View the origi

[jboss-user] [JBoss Seam] - Re: Help - post login and EntityHome instance

2008-02-15 Thread mars1412
"terryb" wrote : | If I view View or Edit form, both of wich utilise EntityHome, and then right after I click on Add form, the Add form shows record which was focused by View or Edit form. | Did you solve that? I have the same problem and I am quite stuck. I have no idea why this entity is

[jboss-user] [JBoss Seam] - Re: How to not propagate conversations??

2008-02-15 Thread mars1412
I think it is possible to set the conversation id on your own (I never used it) so if you click the link again and this conversation already exists, you could continue it (I think) I know: that's not exactly what you want - but maybe this is also ok in your case? View the original post : http:/

[jboss-user] [JBoss Seam] - Re: How to not propagate conversations??

2008-02-15 Thread mars1412
"MSchmidke" wrote : Seam 2.0.0.GA, Facelets | A propagation of "none", however, works like expected. New conversations are started every time, and the old ones hang around unused until timed out. But this is not what I want - in fact, I want to cancel the conversation when the menu is selected

[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: newbie: automatically writing auditing data

2008-02-14 Thread mars1412
to clarify my question: is there smth. like hibernate.ejb.event.pre-update and hibernate.ejb.event.pre-insert? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4129470#4129470 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p

[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - newbie: automatically writing auditing data

2008-02-14 Thread mars1412
I want to have basic auditing: just need to know who changed/created the entity and when I created a History component, that I simply include into the entities, that I want to audit. I use hibernate.ejb.event.post-insert and hibernate.ejb.event.post-update event listeners, to write the history

[jboss-user] [JBoss Seam] - Re: Including generated HTML in an xhtml

2008-02-13 Thread mars1412
check the escape attribute of h:outputText but be aware, that it might be a bad idea, to let the users enter arbitrary html View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4129157#4129157 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting

[jboss-user] [JBoss Seam] - Re: Why a STATIC RESTRICTIONS in Seam-gen EntityQuery?

2008-02-13 Thread mars1412
http://java.sun.com/docs/books/tutorial/java/javaOO/classvars.html BTW: that's plain java - nothing to do with seam View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4129156#4129156 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=rep

[jboss-user] [JBoss Seam] - Re: Why a STATIC RESTRICTIONS in Seam-gen EntityQuery?

2008-02-13 Thread mars1412
IMO: it's static because you want to make it a class-variable (NOT instance variable) it's final, because you will never change it anonymous wrote : | The only place currently reffering to this attribute is within the class itself (getRestrictions).That's why it is private View the original po

[jboss-user] [Beginners Corner] - Re: fileupload

2008-02-12 Thread mars1412
anonymous wrote : Yes, I meant upload. One of these days I will learn how to spell. Or type. Or just plain learn to keep my mind focused on the topic at hand instead of wandering off in 18 related and unrelated directions. (I have no hope whatsoever of achieving that final goal.) good to hear,

[jboss-user] [JBoss Seam] - Re: view sub folder

2008-02-11 Thread mars1412
not AFAIK worked straight forward for me are you sure, you have the right extention? page.seam instead of page.xhtml access to xhtml files is usually restricted in web.xml View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4128416#4128416 Reply to the post : http:

[jboss-user] [JBoss Seam] - Re: Validation Failed exception

2008-02-11 Thread mars1412
I had a similar problem, and got the same errormessage. my newbie error was, that I have used the hibernate @NotEmpty annoation on my entity, and in my inputtext-tag I forgot to use required=true then I was wondering, why I got to the errorpage eventhough no validation message was shown. for det

[jboss-user] [JBoss Seam] - Re: Seam overlay and associated table question

2008-02-11 Thread mars1412
1) check this: http://livedemo.exadel.com/richfaces-demo/richfaces/modalPanel.jsf?c=modalPanel View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4128321#4128321 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4128321 ___

[jboss-user] [Beginners Corner] - Re: fileupload

2008-02-11 Thread mars1412
"PeterJ" wrote : What mechanism are you using for the file download? you mean upload, do you? "PeterJ" wrote : If I recall correctly, the apache commons file upload library provides a mechanism to query the file size before uploading the file. well - my question is a more general one - not relate

[jboss-user] [JBoss Seam] - Re: Seam moves from CVS to SVN

2008-02-11 Thread mars1412
I am using subclipse:* rename from myfile to myFile does not work | that does not work directly in SVN, but there are workaournds: | http://tortoisesvn.net/docs/release/TortoiseSVN_en/tsvn-dug-rename.html#tsvn-dug-renameincase | * ignoring directories and files | that works for me, there i

[jboss-user] [JBoss Seam] - Re: Seam moves from CVS to SVN

2008-02-08 Thread mars1412
i also use subclipse - everything works fine for me. renaming files also works: what exactly is your problem with refactoring? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4127846#4127846 Reply to the post : http://www.jboss.com/index.html?module=bb&op=post

[jboss-user] [Beginners Corner] - fileupload

2008-02-08 Thread mars1412
we provide both an upload applet and a standard HTML form, to let the user upload files to the server. with the applet it is simple to check the max. filesize and reject large files on the client side. but for the plain HTML upload form, I think there is no way to limit the filesize. so what co

[jboss-user] [JBoss Seam] - Re: How to passing through request parameters to the next pa

2008-02-06 Thread mars1412
"schmatz" wrote : | This is not save! If you enter a wrong email address someone else gets your email, can log in, and sees your details. | well, it's not that bad:* the other user cannot login - he does not know your password* since you have never logged in before, there are no "personal

[jboss-user] [JBoss Seam] - Re: How to passing through request parameters to the next pa

2008-02-06 Thread mars1412
why would you let the user login, before she even confirmed the e-mail address? in most system it works like that:* user registers | * email is sent to given address | * user clicks on the activation link (NO login required) | * account is activated | * from now on the user can login

[jboss-user] [JBoss Seam] - Re: Recursive rendering in Seam Mail

2008-02-06 Thread mars1412
isn't that a great security risk? e.g. I could use: #{identity.addRole("admin")} to try to get more rights in your seam app (and I guess this would work in most apps) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4126922#4126922 Reply to the post : http://w

[jboss-user] [JBoss Seam] - Re: Error creating component org.jboss.seam.core.resourceBun

2008-02-04 Thread mars1412
"saasira" wrote : I am also facing probolem in loading my own messagebundle | | In components.xml I have | | | messages |mycompany_messages | | | didn't U forget the 'v

[jboss-user] [JBoss Seam] - Re: Cannot instantitate @Embeddable attribute.

2008-02-04 Thread mars1412
I think you must create the embedded component somewhere: e.g. private MonetaryAmount annualIncome = new MonetaryAmont(); and you should really check how ur forum-entries look, before posting :) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4126099#4126099 R

[jboss-user] [JBoss Seam] - Re: s:fileupload and a4j

2008-02-04 Thread mars1412
FYI: there are already a lot of upload applets out there some R open-source: e.g. jupload, postlet some R commercial ones: e.g. aurigma image uploader View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4126072#4126072 Reply to the post : http://www.jboss.com/index

[jboss-user] [JBoss Seam] - Re: Displaying dataTable row numbers with uiComponent, what

2008-01-23 Thread mars1412
does it work when you remove thr "row" column and just display smth. like emailAddresses.Id (or what ever)? maybe also post your person and emailAddresses source View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4122724#4122724 Reply to the post : http://www.jb

[jboss-user] [JBoss Seam] - Re: Tricky Q on Hibernate filters and roles

2008-01-23 Thread mars1412
maybe this helps: http://www.jboss.com/index.html?module=bb&op=viewtopic&t=127041 [/url] View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4122575#4122575 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4122575 _

[jboss-user] [JBoss Seam] - Re: Conversation Beans and Session scoped beans resulting in

2008-01-23 Thread mars1412
just some thoughts: * are you sure, the GestionAffichage bean has already been created and exists in the session scope? | * maybe the GestionAffichage cannot be created (for any reason) and thus the activitesByCollaborateurCrossData cannot be created. | * it's also strange, that the activites

[jboss-user] [JBoss Seam] - Re: SFSB vs. JavaBean

2008-01-21 Thread mars1412
thanks, pete I'll try to sum up and clarify: * this is a stateless EJB3 Seam component - it is stateless | @Name("slsb") | | @Stateless | | class Slsb {} | | | * this is a POJO Seam component - it is stateful | @Name("pojo") | | class Pojo {} | | | * this is a state

[jboss-user] [JBoss Seam] - Re: SFSB vs. JavaBean

2008-01-21 Thread mars1412
I don't see how a component could be something else than statefull or stateless. quote from the book: "JBoss ® Seam: Simplicity and Power Beyond Java EE" anonymous wrote : we would not need the @Stateful annotation on the POJO. Seam POJO components are stateful by default. And it has the default

[jboss-user] [JBoss Seam] - Re: SFSB vs. JavaBean

2008-01-21 Thread mars1412
I'm not sure, if I understood that: AFAIK: If you annotate any Java class with @Name, then it's a Seam component. If you also add @Stateless: its a stateless Seam component - otherwise it's a stateful component. How would you declare (annnotate) your POJO-Seam component? View the original post

[jboss-user] [JBoss Seam] - Re: UTF-encoded characters not displaying

2008-01-21 Thread mars1412
one pitfall mitght be that the java .properties files must be ISO-8859-1 encoded (NOT UTF-8). http://java.sun.com/j2se/1.5.0/docs/api/java/util/Properties.html BTW: U mean native2ascii View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4121746#4121746 Reply to th

[jboss-user] [JBoss Seam] - Re: access URL parameters directly

2008-01-18 Thread mars1412
how embarrassing I knew that I was missing something basic there :) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4121287#4121287 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4121287 __

[jboss-user] [JBoss Seam] - access URL parameters directly

2008-01-18 Thread mars1412
I have a servlet, that will, in cas of an error, redirect to a custom errorpage. the errormessage is URL encoded and appended to the custom error page URL: e.g. http://domain.my/myproject/customerror.seam?err=Some+error what would be the easiest was to just display the URL parameter in the custom

[jboss-user] [JBoss Seam] - Re: JSF component

2008-01-18 Thread mars1412
try these: http://www.jsftoolbox.com/documentation/help/12-TagReference/index.jsf http://horstmann.com/corejsf/jsf-tags.html http://www.exadel.com/tutorial/jsf/jsftags-guide.html BTW: wrong forum View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4121209#4121209 R

[jboss-user] [JBoss Seam] - Re: no-connection servlet issue

2008-01-18 Thread mars1412
Seam 2.0.0.CR2 on jboss-4.2.0.GA View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4121201#4121201 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4121201 ___ jboss-user mailing li

[jboss-user] [Beginners Corner] - constants in java code and webpage

2008-01-17 Thread mars1412
I need to access some constants in javacode and in the webpage e.g. when the user uploads some files, I need to get the filesize for the upload component in the webpage and also on the serverside in my uploadServlet. I'd like to define the constant in some java class as static final. What is the

[jboss-user] [JBoss Seam] - no-connection servlet issue

2008-01-15 Thread mars1412
NOT URGENT I have a (third party) java applet, that connects to my servlet sending following request when it is initialized: HEAD /twentyfouract//servlets/multiupload HTTP/1.1 | Host: localhost | Connection: close this works fine and returns what I expect (I implemented only doPost): HTTP/1

[jboss-user] [JBoss Seam] - Re: How to use Url user friendly with seam

2008-01-11 Thread mars1412
look for urlrewrite in the wiki examples View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4119097#4119097 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4119097 ___ jboss-user mai

[jboss-user] [JBoss Seam] - Re: No action called

2008-01-10 Thread mars1412
that catches my eye: action="#{callCenterAgentEdit.editSelectedCallCenterAgentDetails(details)}" View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4118650#4118650 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4118650 __

[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: configuration of hiberante events

2008-01-10 Thread mars1412
ntoe: this has already been answerde in the seam forum: http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4118460#4118460 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4118643#4118643 Reply to the post : http://www.jboss.com/index.html?module=bb&op=po

[jboss-user] [JBoss Seam] - Re: configuration: hiberante events in seam

2008-01-10 Thread mars1412
thanx, that works, but I still don't understand why the hibernate-config does not work: I thought, the following 2 configurations should do the same: persistence.xml - works | | hibernate.cfg.xml - does not work | | | | any ideas? View

[jboss-user] [JBoss Seam] - Re: configuration: hiberante events in seam

2008-01-10 Thread mars1412
ok, I'll try: http://www.jboss.com/index.html?module=bb&op=viewtopic&t=127327 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4118551#4118551 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4118551 _

[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - configuration of hiberante events

2008-01-10 Thread mars1412
I am trying to create some eventlisteners for hibernate: http://www.hibernate.org/hib_docs/reference/en/html/events.html#objectstate-events but my listeners seem not to fire. I think, it's just a configuration issue. I created a simple listener, by overriding the default hibernate update event l

[jboss-user] [JBoss Seam] - Re: Wildcard for pages action

2008-01-09 Thread mars1412
could you please rephrase your question and maybe give some detailed example? I have no idea what you wanna do... View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4118399#4118399 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply

[jboss-user] [JBoss Seam] - Re: How to get query string parameters

2008-01-09 Thread mars1412
I don't think this is gone: maybe it just changed the namespace: - @org.jboss.seam.annotations.RequestParameter became @org.jboss.seam.annotations.web.RequestParameter View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4118395#4118395 Reply to the post : http://

[jboss-user] [JBoss Seam] - Re: Backing a selectOneMenu with a Collection

2008-01-09 Thread mars1412
take a look at following seam-example: anonymous wrote : jboss-seam-2.0.0.CR2\examples\ui\view\selectItems.xhtml I think the "Continent of Birth" is close, to what U want this might also help U: http://shrubbery.mynetgear.net/wiki/Seam#I.27ve_made_an_.40Factory.28.22foo.22.29_method.2C_but_.22foo.

[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: hsqldb-ds configuration for server-mode!?

2008-01-09 Thread mars1412
just a thought: check the settings in your persistence*.xml file/s --> this will automatically drop the database after usage... View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4118232#4118232 Reply to the post : http://www.jboss.com/index.html?module=bb&op=pos

[jboss-user] [JBoss Seam] - Re: Backing a selectOneMenu with a Collection

2008-01-09 Thread mars1412
I think the factory should return an array of User Objects View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4118229#4118229 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4118229

[jboss-user] [JBoss Seam] - Re: #{messages[...]} and ChoiceFormat

2008-01-08 Thread mars1412
check this out: http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4100761 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4117997#4117997 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4117997 __

[jboss-user] [JBoss Seam] - Re: Creating a simple selectOneMenu

2008-01-08 Thread mars1412
i think this should be possible using s:enumItem and s:convertEnum, but you should also consider using a java-enumeration at entity-bean level: public enum CustomerStatus { | INACTIVE, | ACTIVE; | public String getLabel() { |return this.name(); //return whatever name yo

[jboss-user] [JBoss Seam] - Re: How to read & write URL parameters

2008-01-08 Thread mars1412
search for @RequestParameter http://docs.jboss.org/seam/1.2.1.GA/reference/en/html/annotations.html View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4117955#4117955 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4117955 ___

[jboss-user] [JBoss Seam] - configuration: hiberante events in seam

2008-01-08 Thread mars1412
I am trying to create some eventlisteners for hibernate: http://www.hibernate.org/hib_docs/reference/en/html/events.html#objectstate-events but my listeners seem not to fire. I think, it's just a configuration issue. I created a simple listener, by overriding the default hibernate update event l

[jboss-user] [JBoss Seam] - Re: TimeZoneSelector discussion/enhancements

2007-12-19 Thread mars1412
another comment on the second issue: maybe that was already intendet to be implemented by timeZone/timeZoneSelector (http://jira.jboss.org/jira/browse/JBSEAM-405) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4114132#4114132 Reply to the post : http://www.jb

[jboss-user] [JBoss Seam] - Re: TimeZoneSelector discussion/enhancements

2007-12-19 Thread mars1412
created feature requests:* TimeZoneSelector: Initialization | http://jira.jboss.org/jira/browse/JBSEAM-2404 | * TimeZoneSelector: getTimeZones() | http://jira.jboss.org/jira/browse/JBSEAM-2405 | some additional comments on this one: | * if java.util.TimeZone.getAvailableIDs() will be us

[jboss-user] [JBoss Seam] - Re: [newbie] timezones and s:convertDateTime

2007-12-18 Thread mars1412
| * call the page 4 the 1st time | 15:37:02,640 INFO [Contexts] starting up: org.jboss.seam.web.session | 15:37:02,702 INFO [DebugObserver] JSF phase: before RESTORE_VIEW 1 | 15:37:02,811 INFO [DebugObserver] JSF phase: after RESTORE_VIEW 1 | 15:37:02,858 INFO [DebugObserver] JSF p

[jboss-user] [Beginners Corner] - can seam generate entity mappings in hibernate.cfg.xml?

2007-12-14 Thread mars1412
when using, seam all my entities are annotated in the eclipse ide, to use the hibernate plugin, I need to map all entities in the hibernate.cfg.xml file: | i find it quite awkward to enter all classes in this file manually. so, does anyone know a way to relieve me of this burden? e.g. to le

[jboss-user] [JBoss Seam] - TimeZoneSelector discussion/enhancements

2007-12-12 Thread mars1412
I would suggest following enhancements to the TimeZoneSelector: | * initialization: | it is somewhat strange, that the getTimeZoneId() will return null, while a call to getTimeZone() will return the default timezone wouldn't it be better, to initialize the timezone Id to java.util.TimeZone.

[jboss-user] [JBoss Seam] - Re: [newbie] timezones and s:convertDateTime

2007-12-12 Thread mars1412
after some other hours of trying, changing and debugging, I already know somthing more :-) when I change the timezone via the timezone-switcher, the timezone will be set to the new value, BUT at that time the date-time that I display on the page has already been converted (using the "old" timez

[jboss-user] [JBoss Seam] - Re: [newbie] timezones and s:convertDateTime

2007-12-12 Thread mars1412
I just tried to switch the locale of my browser (via a nice firefox plugin: quick locale switcher). When I do this, it seems, that convertDateTime displays the correct local time (relative to the selected locale). CurrentDateTime: timezone: sun.util.calendar.ZoneInfo[id="Etc/GMT+12",offset=-

[jboss-user] [JBoss Seam] - Re: JBoss EL date formatting

2007-12-11 Thread mars1412
maybe this will help u: http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4100761 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4112001#4112001 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4112001 __

[jboss-user] [JBoss Seam] - Re: Date formatting in EL expression

2007-12-11 Thread mars1412
if it was for dates in the properties fieles only, then this is the same issue: http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4100761 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4112002#4112002 Reply to the post : http://www.jboss.com/index.html?

[jboss-user] [JBoss Seam] - [newbie] timezones and s:convertDateTime

2007-12-11 Thread mars1412
I want the user to select a timezone and then display a the server systemdate in the users timezone... switching the timezone seems to work, but the page will always display the same date, no matter, which timezone I select. first I wrote a small stateless bean, to get the available timezones an

[jboss-user] [JBoss Seam] - Re: [newbie] Problem passing parameters

2007-12-11 Thread mars1412
check this out: http://docs.jboss.com/seam/latest/reference/en/html/tutorial.html#messages View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4111967#4111967 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4111967 ___

[jboss-user] [JBoss Seam] - Re: Is there an easy way to create a pulldown with all avail

2007-12-11 Thread mars1412
hi, I also searched 4 smth. like TimeZone.timeZones (much like Theme.themes) I found a bugreport, saying this was fixed in version 1.1.0: http://jira.jboss.org/jira/browse/JBSEAM-405 however, can it be, that this is still missing? however, it seems not to exist in seam version 2.0.0.GA: http://d

[jboss-user] [JBoss Seam] - s:decorate how to use invalid on first page hit

2007-11-20 Thread mars1412
what I'd like to for input fields: * user opens page: show no image after the input field | * invalid input: show a red sign | * valid input: show a green sign how would I do that? details: when using s:decorate you can use the vars invalid and required inside of the template but how I can

[jboss-user] [Beginners Corner] - Re: message format in .properties file

2007-10-31 Thread mars1412
for more details on this please see: http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4100761 sorry for cross-posting - since I am a newbie, I thought this was the proper forum... View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4100776#4100776 Reply t

[jboss-user] [JBoss Seam] - Re: Seam Text: message format

2007-10-31 Thread mars1412
created jira: http://jira.jboss.org/jira/browse/JBSEAM-2197 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4100773#4100773 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4100773 ___

[jboss-user] [JBoss Seam] - Re: Seam Text: message format

2007-10-31 Thread mars1412
well, I asked it on a JSF forum - no reply however, I wrote a simple sample application with JSF on JBoss without SEAM and it worked as expected (but I used jsp instead of facelets) anyway I just debugged into the SEAM source and found out, that the problem is, that the messages component (org.

[jboss-user] [JBoss Seam] - Re: Interpolator: FacesMessages from resource bundle with pa

2007-10-31 Thread mars1412
that was exactly what I was searching for tx pete - U really prevented a newbie of going mad - View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4100688#4100688 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4100688 ___

[jboss-user] [Beginners Corner] - Re: message format in .properties file

2007-10-31 Thread mars1412
well, after some other checks, it turned out, that the message string is not read corectly from the .properties file string in .properties file: mtr.test.param.format=string {1} currency {0,number,#.#} integer {2,number,integer} date {3,date,short}. when I output the message string in the HTML

[jboss-user] [JBoss Seam] - Re: Interpolator: FacesMessages from resource bundle with pa

2007-10-30 Thread mars1412
I forgot to post the explanation, why the original code does not work: facesMessages.add("#{messages['registration.success']}", "#{webUser.name}"); When debugging into the seam source I learned, that this cannot work, because the Interpolator.interpolate() method wil: examine the given string and

[jboss-user] [JBoss Seam] - Interpolator: FacesMessages from resource bundle with parame

2007-10-30 Thread mars1412
short explanation: the registration.success string in the resource bundle is: registration.success={0} has been registered sucessfully in my java file, I just want to add a faces massage like this: facesMessages.add("#{messages['registration.success']}", "#{webUser.name}"); but this will render

[jboss-user] [Beginners Corner] - Re: newbie: stateless component

2007-10-30 Thread mars1412
ok - I just found out why this does not work when you use the @Stateless or @Stateful annotation: * the class must implement a method with the @Remove annotation. from the seam reference manual: anonymous wrote : In addition, stateful session bean components must define a method with no parameter

[jboss-user] [Beginners Corner] - newbie: stateless component

2007-10-29 Thread mars1412
hi, for test reasons, I have created a very simple class, that only returns some simple values (see below for details). However, since the class does not need to keep any state, I think I should add the @Stateless annotation. But this does not work - without the @Stateless annotation it works f

  1   2   >