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
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
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;
|
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
__
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
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
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
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
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
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
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
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:/
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)
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
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
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
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
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
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
___
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
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() {
|
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
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
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
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,
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
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
"[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
"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
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:/
"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
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
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
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
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
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
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,
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:
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
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
___
"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
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
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
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
"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
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
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
"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
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
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
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
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
_
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
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
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
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
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
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
__
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
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
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
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
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
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
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
__
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
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
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
_
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
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
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://
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.
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
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
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
__
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
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
___
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
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
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
| * 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
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
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.
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
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=-
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
__
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?
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
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
___
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
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
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
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
___
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.
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
___
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
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
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
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
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 - 100 of 104 matches
Mail list logo