[jboss-user] [JBoss Tools (users)] - Re: how to deploy a datasource

2008-02-12 Thread atao
Thank you for your quick answer.

In fact I didn't see that JBoss Tools offers these JBoss Runtime adapters.

Now everything is ok. 

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4128772#4128772

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4128772
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Tools (users)] - how to deploy a datasource

2008-02-11 Thread atao
I just created my first seam project with the Seam Web Project wizard.

It's an EAR project with a data source. It uses JBoss 4.2 as server.

When I use Run On Server, I get this error:

  | --- MBeans waiting for other MBeans ---
  | ObjectName: persistence.units:ear=test-swp-ear.ear,unitName=test-swp
  |   State: NOTYETINSTALLED
  |   I Depend On:
  | jboss.jca:name=test-swpDatasource,service=DataSourceBinding
  | 
  | --- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
  | ObjectName: jboss.jca:name=test-swpDatasource,service=DataSourceBinding
  |   State: NOTYETINSTALLED
  |   Depends On Me:
  | persistence.units:ear=test-swp-ear.ear,unitName=test-swp
  | 
  | 

The file test-swp-ds.xml exists in the directory test-swp-ear/resources but is 
not copied in jboss-4.2.2.GA/server/default/deploy.

Is there a way to copy this file during deploying the application?




View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4128365#4128365

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4128365
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Problem with: seam-gen deploy

2008-02-04 Thread atao

  | @In attribute requires non-null value: routingHome.nodeHome1
  | 

You need to declare nodeHome1, nodeHome2, nodeHome3 ... as seam components in a 
components.xml file.

See the patch doublon for JBSEAM-994.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4126416#4126416

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4126416
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Log4j Configuration for Seam 2

2008-01-08 Thread atao
See patch with http://jira.jboss.com/jira/browse/JBSEAM-1675

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4117806#4117806

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4117806
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: seam-gen : reverse DB : many-to-many convention ?

2007-12-19 Thread atao
I haven't try to use seam-gen to generate many-to-many relationship from DB. 
But I use the new generate-ui target to do it from existing classes. 
It needs changes not only in view  templates (view, list and edit.xhtml.ftl) 
but also in EntityHome.java.ftl.

About M2M and reverse DB: you should be able to find a old thread in jira where 
the seam team discussed this issue

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4114120#4114120

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4114120
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Programmatic Log4j Configuration

2007-12-11 Thread atao
See http://jira.jboss.com/jira/browse/JBSEAM-1675



View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4112118#4112118

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4112118
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: seam-gen : list.xhtml - Create Button issue

2007-11-30 Thread atao
Sorry i wrote too quickly. Indeed it should have been

anonymous wrote : The JBSEAM-1493 Seam-gen: allow return to original page 
should take this case into account.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4109385#4109385

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4109385
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: seam-gen : list.xhtml - Create Button issue

2007-11-30 Thread atao
The JBSEAM-1493 Seam-gen: allow return to original page takes this case into 
account.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4109377#4109377

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4109377
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: core resource-loader for resource bundles

2007-11-27 Thread atao
You can use directly something like:

  | java.util.ResourceBundle resourceBundle = 
org.jboss.seam.core.ResourceBundle.instance();
  | String message = resourceBundle.getString(key);
  | 

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4108253#4108253

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4108253
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Successfully created message

2007-11-26 Thread atao
Put in your properties file these keys:

[EntityName]_created
[EntityName]_deleted
[EntityName]_updated


View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4107714#4107714

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4107714
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: JBoss tools - Seam generate entities from existing entit

2007-11-21 Thread atao
anonymous wrote : 
  | There is no plan to create a generate-ui task?
  | 

Pete Muir just integreted JSEAM 843 (Generate application from existing 
entities) in CVS.


anonymous wrote : 
  | For 1.2.1 there is http://jira.jboss.org/jira/browse/JBSEAM-1206;
  | 

This issue is related to improve i18n in seam-gen. What is the link with this 
thread?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4106756#4106756

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4106756
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Myseam, the jboss seam2.0GA's expander framework, offers

2007-11-21 Thread atao
About 3), see also 
http://www.jboss.com/index.html?module=bbop=viewtopict=122806

and the related feature request Namespace or alias of messages' key

http://jira.jboss.com/jira/browse/JBSEAM-2237


View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4106778#4106778

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4106778
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: JBoss tools - Seam generate entities from existing entit

2007-11-19 Thread atao
it seems to me this question is related to JBSEAM-843

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4106075#4106075

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4106075
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Namespace or alias of messages' key

2007-11-11 Thread atao
I just created a jira entry:


http://jira.jboss.com/jira/browse/JBSEAM-2237

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4103509#4103509

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4103509
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Namespace or alias of messages' key

2007-11-05 Thread atao
I like this idea.

Can you create a jira entry?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4101709#4101709

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4101709
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: seam-gen generate entities errors

2007-10-25 Thread atao
anonymous wrote : nothing to do with seamgen

I think so. 

You can try:
- to add
 sql-type=char(32)
 in 

@Column(name = id, unique = true, nullable = false, length = 32)

  
- or to extend MySQLDialect class.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4098666#4098666

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4098666
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: seam-gen generate entities errors

2007-10-23 Thread atao
The line 


  | property name=hibernate.hbm2ddl.auto value=validate/
  | 

is not the problem. It's just the tool which tells you that you have a problem 
with the column type of column id:


  | Wrong column type: id, expected: varchar(32)
  | 

Here the issue may be with the MySql dialect. I had the same type of error with 
bit type and Hsqldb dialect. 

Check hibernate forum.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4098050#4098050

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4098050
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: messageformat error blows up (JBSEAM-1859)

2007-10-12 Thread atao
Good!

May I suggest that, in place of the partial result of interpolation, the wrong 
message is also shown to the user by returning it in the catch block:

  | log.warn(exception interpolating string:  + string, e);
  | return string;
  | 

It gives then a direct clue that something is wrong. And it's already the way 
to do thing in other
cases of wrong syntax (see messageformat error blows up test in 
InterpolatorTest)


View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4094796#4094796

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4094796
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: extending seam Idenity with a domain

2007-10-11 Thread atao
Declare your new Identity class with something like:


  | @Name(org.jboss.seam.security.identity)
  | @Scope(SESSION)
  | @Install(precedence = APPLICATION)
  | @BypassInterceptors
  | @Startup
  | public class ExtendedIdentity extends RuleBasedIdentity
  | 

the point here is the @Install(precedence = APPLICATION) which has higher 
priority than:
- @Install(precedence=FRAMEWORK) for RuleBasedIdentity
- or @Install(precedence = BUILT_IN) for Identity

Change nothing in components.xml

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4093981#4093981

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4093981
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: EntityHome wire() and isWired()

2007-10-10 Thread atao
Below what I found. There are maybe other uses.

About wire():
Used in files {entity}Edit.page.xml to manage M2O link.

About isWired():
ATM, only used in edit page with save button, to disable it

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4093788#4093788

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4093788
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: seam-gen : old issues

2007-10-09 Thread atao
anonymous wrote : JBSEAM-843 is about generate from existing entities; why 
shouldn't that make it into seam-gen ?

If so I misunderstood you. I'll be very happy if seam-gen can generate from 
existing entities.

anonymous wrote : alot of temp files are generated what does that mean ?

The patch:
- starts by create one text file for each entity class, the temp files, with 
the root name of each message key
- then creates the final properties files from this temp files

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4092842#4092842

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4092842
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: seam-gen : old issues

2007-10-09 Thread atao
in target generate-entities:

- a template is used to put the list of all the root keys needed by an entity 
in a text file; this template combines the structures of list.xhtml.ftl and 
edit.xhtml.ftl to be sure to cover all the messages needed by an entity

- and an other template will put the list of all the entity name in an other 
text file

- then an ant task will read all theses files and generate a unique file for 
each language with all the final keys and the messages associated

To do the job, this last task will read:
- /locale-config in faces-config.xml to get the list of languages to deal with
- a xml file provided by the developper to get all the translations wished.

If a translation is missing, the task will create a default message from the 
key, e.g.:

Worker.grossWage - entity.worker.gross.wage.label=Gross Wage

I'm ok to use any straight way to iterate on many entities to extract all the 
keys needed and put them directly in a unique file.

In my first patch I used fmpp library to do this, but Seam team asked me to do 
without it, then the current solution.


View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4093113#4093113

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4093113
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: seam-gen : old issues

2007-10-08 Thread atao
anonymous wrote : 
  | something that just compiles is not enough, it needs to also actually work
  | 

patch proposed with JSEAM-994 IS working here. 


View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4092569#4092569

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4092569
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: seam-gen : old issues

2007-10-08 Thread atao
anonymous wrote : 
  | i18n probably is easy to fix but needs fixes to hibernatetools to not 
overwrite files that are changed etc.
  | 

The current version here of this feature deals with it through separation of 
properties files:
- one with constant messages provided by Seam: can be modified by developer, 
but to be avoided (see below);
- one with all the messages generated each time that generate-entities is 
executed: must not be modified by developer
- one with specific messages provided by the developer.

In this last one, developer can even put messages which will overwrite thoses 
of the 2 other files.

When new translations is provided by developer, a new run of generate-entities 
will automatically takes them in account.

So, no fixes of hibernatetools were needed.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4092576#4092576

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4092576
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: seam-gen : old issues

2007-10-08 Thread atao
anonymous wrote : 
  | I'm not against all these I just think some of the templates are 
(unnecessarily) complex as is (same for the generated result)
  | 

I guess that it's JBSEAM-1206 which is concerned here.

Mainly I replaced each hard coded message in templates by a 
#{messages['...']. 

I guess that what you are speaking about is:
- in a few cases I used messages with parameters
- some of the templates are quite rough and can be optimized.

But at least it works. 

I'm ok to rework any unnecessarily complex cases...

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4092604#4092604

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4092604
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Entities generated by seam (many 2 many)

2007-10-08 Thread atao
anonymous wrote : 
  | Does seam-gen even work with many-to-many relationships?
  | 

No.

See Generate apps that has many to many table with seam-gen,  
http://www.jboss.com/index.html?module=bbop=viewtopicp=4032289

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4092650#4092650

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4092650
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: seam-gen : old issues

2007-10-08 Thread atao
anonymous wrote : 
  | related is that we handle JBSEAM-843 ... in jboss tools/rhds now...just fyi 
;) 
  | 

does rhds manage manytomany associations?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4092665#4092665

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4092665
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: seam-gen : old issues

2007-10-08 Thread atao
About i18n:

I agree with you, the #{messages...} are ugly, but it's the standard way to do 
i18n with Seam...
An other way is #{interpolator.interpolate...}, but imo it's  worse and should 
be used only if necessary.

I think that seam-gen is not only for beginners, or a fun prototype, but an 
excellent place to start with new applications as said Dan Allen.

An option would be to be able to generate:
- either monolanguage application with hard coded messages, by default for 
beginners or if no multi languages is needed
- or fully i18n application if required

but then it adds a little more complexity in templates.

About i18n (2):

anonymous wrote : 
  | The patch might have been updated last time I saw it; but the first patch I 
looked at generated *alot* of additional files 1 per view artifcat...if that is 
not the case anymore then I rest my case ;) 
  | 

I don't remember exactly what does the first patch. At least the second patch 
still uses a lot of properties files but not one per view artifact! And now the 
current version here uses by default 3 properties files by language, as stated 
before:
- one with constant messages provided by Seam
- one with all the messages generated 
- one with specific messages provided by the developer

A lot of temp files are generated, but only the properties files above are to 
be know by the developer.

About many-to-many:

anonymous wrote : 
  | then that is an issue with seam-gen's templates; and since RHDS does its 
best to work with the seam developed templates we don't have a fix for that
  | 

If I understand, this issue has to be managed by seam-gen. Then the situation 
is:
- many-to-many can't be managed by target generate-entities: I don't remember 
where but on the forum or in jira there is a discussion on this issue.
- I wrote a patch to add many-to-many above the patch for JBSEAM-843
- but JBSEAM-843 will not be added to seam-gen

So now I have no clear vision of the next step...

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4092800#4092800

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4092800
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: seam-gen : old issues

2007-10-07 Thread atao
anonymous wrote : 
  | related is that we handle JBSEAM-843 and JBSEAM-1136 in jboss tools/rhds 
now...just fyi ;) 
  | 

Good! 

anonymous wrote : 
  | The best way to fix the other issues is patches and testcases
  | 

About 994, 1493  1206: a patch was proposed for each of them. So...

anonymous wrote : 
  | seam-gen does not try to be everything to everybody and simplicity will be 
preffered over complexity if it is not a *big* requirement
  | 

About 994 and 1493: imo, they are not new features but expected behaviors. 

About 1206: atm, all the messages are hard coded in english. If they are 
translated, as soon as you run again seam generate-entities all the 
translations are lost. It's not really i18n friendly.


View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4092362#4092362

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4092362
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Messages bundle problem

2007-10-06 Thread atao
messages in properties files are coded in iso-8859-1, not in utf-8

Any non iso-8859-1 character must be coded using Unicode escapes, i.e. \u.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4092304#4092304

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4092304
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - seam-gen : old issues

2007-10-04 Thread atao
There is a bunch of feature requests for seam-gen that are awaiting now for 
quite a long time, e.g.:

JBSEAM-994   seam-gen and mutiple foreign keys,
JBSEAM-843   Generate application from existing entities,
JBSEAM-1493 Seam-gen: allow return to original page,
JBSEAM-1136 Support multiple projects in Seam Gen,
JBSEAM-1206 improve i18n in seam-gen.

Is there any schedule about them? Can we expect to see them in some release 
2.0.x?


View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4091369#4091369

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4091369
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - hibernate filter

2007-10-01 Thread atao
I'd like to use hibernate filters. The only documentation I found is:
- Seam manual 8 - Using Hibernate filters
- Seam example wiki

Where can I find some more information:
- meaning of attributes in persistence:filter
- how to use such filter in java code



View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4090445#4090445

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4090445
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: seam-gen problem when same table is referenced two times

2007-09-26 Thread atao
see http://jira.jboss.com/jira/browse/JBSEAM-994

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4088908#4088908

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4088908
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - seam-gen setup and maven

2007-09-22 Thread atao
I just updated seam from cvs and tried to created a new project.

When I run seam setup I get:
anonymous wrote : 
  | Buildfile: C:\DEV\projects\eclipse\workspace\seam-cvs\seam-gen\build.xml
  | 
  | init:
  | [artifact:dependencies] Downloading: 
org/jboss/seam/jboss-seam-gen/${version}.${patchlevel}/jboss-seam-gen-${version}.${
  | patchlevel}.pom
  | [artifact:dependencies] [WARNING] POM for 
'org.jboss.seam:jboss-seam-gen:pom:${version}.${patchlevel}:compile' is invali
  | d. It will be ignored for artifact resolution. Reason: The POM expression: 
${version} could not be evaluated. Reason: Ex
  | pression value '${version}.${patchlevel}' references itself in 
'org.jboss.seam:jboss-seam-gen:pom:${version}.${patchleve
  | l}'. for project org.jboss.seam:jboss-seam-gen at Artifact 
[org.jboss.seam:jboss-seam-gen:pom:${version}.${patchlevel}:c
  | ompile]
  | [artifact:dependencies] Downloading: 
org/jboss/seam/jboss-seam-gen/${version}.${patchlevel}/jboss-seam-gen-${version}.${
  | patchlevel}.jar
  | [artifact:dependencies] An error has occurred while processing the Maven 
artifact tasks.
  | [artifact:dependencies]  Diagnosis:
  | [artifact:dependencies]
  | [artifact:dependencies] Unable to resolve artifact: Missing:
  | [artifact:dependencies] --
  | [artifact:dependencies] 1) 
org.jboss.seam:jboss-seam-gen:jar:${version}.${patchlevel}
  | [artifact:dependencies]
  | [artifact:dependencies]   Try downloading the file manually from the 
project website.
  | [artifact:dependencies]
  | [artifact:dependencies]   Then, install it using the command:
  | [artifact:dependencies]   mvn install:install-file 
-DgroupId=org.jboss.seam -DartifactId=jboss-seam-gen \
  | [artifact:dependencies]   -Dversion=${version}.${patchlevel} 
-Dpackaging=jar -Dfile=/path/to/file
  | [artifact:dependencies] Alternatively, if you host your own repository you 
can deploy the file there:   mvn deploy:d
  | eploy-file -DgroupId=org.jboss.seam -DartifactId=jboss-seam-gen \
  | [artifact:dependencies]   -Dversion=${version}.${patchlevel} 
-Dpackaging=jar -Dfile=/path/to/file \
  | [artifact:dependencies]-Durl=[url] -DrepositoryId=[id]
  | [artifact:dependencies]
  | [artifact:dependencies]   Path to dependency:
  | [artifact:dependencies] 1) unspecified:unspecified:jar:0.0
  | [artifact:dependencies] 2) 
org.jboss.seam:jboss-seam-gen:jar:${version}.${patchlevel}
  | [artifact:dependencies]
  | [artifact:dependencies] --
  | [artifact:dependencies] 1 required artifact is missing.
  | [artifact:dependencies]
  | [artifact:dependencies] for artifact:
  | [artifact:dependencies]   unspecified:unspecified:jar:0.0
  | [artifact:dependencies]
  | [artifact:dependencies] from the specified remote repositories:
  | [artifact:dependencies]   central (http://repo1.maven.org/maven2)
  | [artifact:dependencies]
  | [artifact:dependencies]
  | 
  | BUILD FAILED
  | C:\DEV\projects\eclipse\workspace\seam-cvs\seam-gen\build.xml:25: Unable to 
resolve artifact: Missing:
  | --
  | 1) org.jboss.seam:jboss-seam-gen:jar:${version}.${patchlevel}
  | 
  |   Try downloading the file manually from the project website.
  | 
  |   Then, install it using the command:
  |   mvn install:install-file -DgroupId=org.jboss.seam 
-DartifactId=jboss-seam-gen \
  |   -Dversion=${version}.${patchlevel} -Dpackaging=jar 
-Dfile=/path/to/file
  | Alternatively, if you host your own repository you can deploy the file 
there:   mvn deploy:deploy-file -DgroupId=org
  | .jboss.seam -DartifactId=jboss-seam-gen \
  |   -Dversion=${version}.${patchlevel} -Dpackaging=jar 
-Dfile=/path/to/file \
  |-Durl=[url] -DrepositoryId=[id]
  | 
  |   Path to dependency:
  | 1) unspecified:unspecified:jar:0.0
  | 2) org.jboss.seam:jboss-seam-gen:jar:${version}.${patchlevel}
  | 
  | --
  | 1 required artifact is missing.
  | 
  | for artifact:
  |   unspecified:unspecified:jar:0.0
  | 
  | from the specified remote repositories:
  |   central (http://repo1.maven.org/maven2)
  | 
  | 
  | Total time: 2 seconds
  | 
  | 

I don't know Maven. It seams that version and patchlevel should be initialized.

Am'I right? If so, where this must be done?


View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4087554#4087554

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4087554
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: messageformat error blows up (JBSEAM-1859)

2007-09-19 Thread atao
Well, good news: Seam 2 CR1 has been released

Bad news: nobody answered to this thread ;)

So, what next?

May I expect any reaction?


View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4086214#4086214

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4086214
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Gavin King: Bad tools of Seam is kill its uses!!!

2007-09-18 Thread atao
On http://labs.jboss.com/tools/, it's stated that Seam Tools will include 
support for seam-gen.

Where can  we find more information?


View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4085747#4085747

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4085747
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: regarding Redirect.captureCurrentView()

2007-09-10 Thread atao
Redirect.instance().captureCurrentView() works with the viewId of the required 
view. See login pages in seam-gen to get the idea.

You need to use a page parameter. See (in french): 
http://wiki.objetdirect.com/wiki/index.php?title=Navigation_avec_Seam

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4082503#4082503

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4082503
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: regarding Redirect.captureCurrentView()

2007-09-10 Thread atao
anonymous wrote : 
  | I think it should work as they described
  |  

In fact it does. But I needed some times before to get it: the key words are 
current request. The viewId is the one of the request, i.e. of the required 
view, not of the requiring view.

You can switch from the current request to a new one and then come back to this 
request, but not to the point which raised this request.

Login in seam-gen is a good example to get it.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4082535#4082535

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4082535
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: regarding Redirect.captureCurrentView()

2007-09-10 Thread atao
In application generated by seam-gen, there is in components.xml:

  |event type=org.jboss.seam.notLoggedIn
  |action expression=#{redirect.captureCurrentView}/
  |/event
  |event type=org.jboss.seam.postAuthenticate
  |action expression=#{redirect.returnToCapturedView}/
  |/event
  | 

and in pages.xml:

  | exception class=org.jboss.seam.security.NotLoggedInException
  | redirect view-id=/login.xhtml
  | 
message#{messages['org.jboss.seam.security.NotLoggedInException']}/message
  | /redirect
  | /exception
  | 
  | 

The event org.jboss.seam.notLoggedIn is raised by Pages.notLoggedIn which is 
called by Pages.redirectToLoginView just before going to the Login view.

And the event org.jboss.seam.postAuthenticate is raised by 
Identity.postAuthenticate

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4082615#4082615

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4082615
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - stay on the same page after AuthorizationException

2007-09-07 Thread atao
I'd like to stay on the same page after a 
org.jboss.seam.security.AuthorizationException.

I tried 


  | exception class=org.jboss.seam.security.AuthorizationException
  | redirect view-id=#{pages.getCurrentViewId()}
  | 
message#{messages['org.jboss.seam.security.AuthorizationException']}/message
  | /redirect
  | /exception
  | 

but only get an exception loop.

Any idea?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4082201#4082201

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4082201
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: BigDecimal and JSF f:convertNumber

2007-09-03 Thread atao
Can we have such a converter in Seam UI. Is it possible?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4080496#4080496

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4080496
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Problems using ajax validation in seam-gen

2007-09-03 Thread atao
Vincent said.
anonymous wrote : 
  | The issue comes from the fact that when I hit the Save button, the onblur 
event from a:support fires at the same time and it breaks the save process. If 
I click outside the edited field, and then click the save button it works.
  | 

so I tried this workaround:

  | a:support event=onblur reRender=cityNameDecoration 
bypassUpdates=true  onsubmit=this.getElement('0').focus();/
  | 
in the edit pages generated by: it works fine in this case!


View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4080680#4080680

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4080680
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: how to use @Roles?

2007-09-01 Thread atao
With @Name and @Role you can define only two components, with the same scope or 
not:


  | @Name(user)   
  | @Scope(SESSION)  
  | @Role(name=user2, scope=SESSION)
  | 

There is no such limitations with @Roles


  | @Name(user)   
  | @Scope(SESSION)  
  | @Roles({
  | @Role(name=user2, scope=SESSION),
  | @Role(name=user3, scope=SESSION),
  | @Role(name=user4, scope=SESSION),
  | @Role(name=user5, scope=SESSION),
  | })
  | 
  | 

The scopes can be differents.

Then all the Role names can be used as the Name one.



View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4080229#4080229

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4080229
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: BigDecimal and JSF f:convertNumber

2007-08-31 Thread atao

  | f:converter converterId=javax.faces.BigDecimal/
  | 

but without localization or any attribut other attribute as pattern


View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4079882#4079882

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4079882
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: BigDecimal and JSF f:convertNumber

2007-08-31 Thread atao
And use this to get a converter with l10n:


  | 
  | import java.math.BigDecimal;
  | 
  | import javax.faces.component.UIComponent;
  | import javax.faces.context.FacesContext;
  | import javax.faces.convert.NumberConverter;
  | 
  | /**
  |  * Converts a Double or Long value provided by standard jsf number 
  |  * converter to a BigDecimal value
  |  * 
  |  * To get a locale-sensitive converter, java.text.NumberFormat is used
  |  * (through javax.faces.convert.NumberConverter). 
  |  * The parsing done by java.math.BigDecimal is not affected by locale.
  |  * See javax.faces.convert.BigDecimalConverter
  |  * 
  |  */
  | public class BigDecimalConverter extends NumberConverter 
  | {
  | 
  | /*
  |  *  don't use BigDecimal ctor
  |  *  see java.math.BigDecimal
  |  */
  | public Object getAsObject(FacesContext context, UIComponent component, 
String string) {
  | Object value = super.getAsObject(context, component, string); 
  | if (value instanceof Long) return BigDecimal.valueOf((Long) value);
  | if (value instanceof Double) return BigDecimal.valueOf((Double) 
value);
  | return value;
  | }
  | }
  | 
  | 
  | 
  | 
  | 

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4080078#4080078

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4080078
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - messageformat error blows up (JBSEAM-1859)

2007-08-28 Thread atao
When an EL expression is not closed by a brace, an error is thrown.

It would be better to show the wrong expression as it is:
1/ it's already the way of doing the thing, see in InterpolatorTest the 
existing case of

// test that a messageformat error doesn't blow up
Assert.assertEquals({nosuchmessage}, 
interpolator.interpolate({nosuchmessage}));
 
2/ atm when an EL expression is not closed by a brace, the trace doesn't give a 
clear clue of what is wrong (see trace below). I wasted too much time with such 
an error.

With the wrong expression shown in place of the expected result, it'd be 
straightforward.

In any case I suggest to check that the end bracket is present and at least to 
throw a exception with a specific message.


Error in Authenticator:


  | public boolean authenticate() {
  | try {
  | User user = (User) entityManager
  | .createQuery(
  | from User where 
username = :username and password = :password)
  | .setParameter(username, 
identity.getUsername())
  | .setParameter(password, 
identity.getPassword())
  | .getSingleResult();
  | 
  | if (user.getRoles() != null) {
  | for (UserRole mr : user.getRoles())
  | 
Identity.instance().addRole(mr.getName());
  | }
  | return true;
  | } catch (NoResultException ex) {
  | FacesMessages.instance().add(
  | 
#{messages['entity.user.login.invalid']);
  | return false;
  | }
  | }
  | 
  | 

and the trace (only the first occurence, as it starts a loop):
anonymous wrote : 
  | 13:47:43,500 INFO  [STDOUT] Hibernate: select user0_.username as 
username11_, user0_.name as name11_, user0_.password as password11_, 
user0_.currentBranch as currentB4_11_ from User user0_ where user0_.username=? 
and user0_.password=?
  | 13:47:43,531 ERROR [SeamPhaseListener] uncaught exception
  | java.util.NoSuchElementException
  | at java.util.StringTokenizer.nextToken(StringTokenizer.java:332)
  | at 
org.jboss.seam.core.Interpolator.interpolateExpressions(Interpolator.java:94)
  | at org.jboss.seam.core.Interpolator.interpolate(Interpolator.java:66)
  | at 
org.jboss.seam.faces.FacesMessages.createFacesMessage(FacesMessages.java:371)
  | at 
org.jboss.seam.faces.FacesMessages.createFacesMessage(FacesMessages.java:379)
  | at org.jboss.seam.faces.FacesMessages$1.run(FacesMessages.java:425)
  | at org.jboss.seam.faces.FacesMessages.runTasks(FacesMessages.java:156)
  | at org.jboss.seam.faces.FacesMessages.afterPhase(FacesMessages.java:166)
  | at 
org.jboss.seam.jsf.SeamPhaseListener.afterServletPhase(SeamPhaseListener.java:224)
  | at 
org.jboss.seam.jsf.SeamPhaseListener.afterPhase(SeamPhaseListener.java:184)
  | at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:280)
  | at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
  | at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
  | at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  | at 
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:82)
  | at 
org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:68)
  | at 
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:68)
  | at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:85)
  | at 
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:68)
  | at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
  | at 
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:68)
  | at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:44)
  | at 
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:68)
  | at 
org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:127)
  | at 
org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:277)
  | at org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:60)
  | at 
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:68)
  | at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:58)
  | at 
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:68)
  | at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:149)
  | at 

[jboss-user] [JBoss Seam] - Re: MDA generators with Seam?

2007-08-27 Thread atao
anonymous wrote : 
  | Actually I've been developping myself an MDA generator for Seam using 
Acceleo, for my company, but unfortunately they don't plan to put it on 
opensource.
  | 

Any chance your company rethinks about this?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4078225#4078225

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4078225
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: MDA generators with Seam?

2007-08-24 Thread atao
There is no official release of the seam cartridge and so no doc.

You have to check by yourself. The snapshot is at

http://team.andromda.org/maven2/org/andromda/cartridges/andromda-seam-cartridge




View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4077866#4077866

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4077866
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


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

2007-08-20 Thread atao
OK. 

1/ So it isn't possible to use here the enhanced EL of Seam, something like:


  | h:outputText binding=#{bindingtest.testText('toto')} /
  | 


  | public HtmlOutputText testText(String text)
  | {
  | HtmlOutputText outputtext = new HtmlOutputText();
  | outputtext.setValue(values.get(text));
  | return outputtext ;
  | }
  | 
  | 

2/ I don't understand why a setter is needed as HtmlOutputText is a read only 
UIComponent.  

And everything works fine the first time the page is shown. The issue occures 
only when the submit button is clicked and the page is rerendered: facelet 
tries then to set the value of the HtmlOutputText  instance. 

Why the renderer doesn't just reread the HtmlOutputText instance?

The full exception stack is:
anonymous wrote : 
  | INFO: Added Library from: 
jar:file:/C:/SERVER/jboss-4.2.0.CR2/server/default/deploy/popsuite-binding.ear/popsuite-binding.war/WEB-INF/lib/jsf-facelets.jar!/META-INF/jsf-core.taglib.xml
  | 10:24:09,018 WARN  [lifecycle] executePhase(RESTORE_VIEW 1,[EMAIL 
PROTECTED]) threw exception
  | javax.el.PropertyNotWritableException: /home.xhtml @18,66 
binding=#{bindingtest.getTestText('toto')}: Illegal Syntax for Set Operation
  | at 
com.sun.facelets.el.TagValueExpression.setValue(TagValueExpression.java:98)
  | at 
com.sun.faces.lifecycle.RestoreViewPhase.doPerComponentActions(RestoreViewPhase.java:245)
  | at 
com.sun.faces.lifecycle.RestoreViewPhase.doPerComponentActions(RestoreViewPhase.java:250)
  | at 
com.sun.faces.lifecycle.RestoreViewPhase.execute(RestoreViewPhase.java:193)
  | at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
  | at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
  | at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
  | at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  | at 
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:82)
  | at 
org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:68)
  | at 
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:68)
  | at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:85)
  | at 
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:68)
  | at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
  | at 
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:68)
  | at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:44)
  | at 
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:68)
  | at 
org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:127)
  | at 
org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:277)
  | at org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:60)
  | at 
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:68)
  | at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:58)
  | at 
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:68)
  | at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:149)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
  | at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  | at 
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
  | at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  | at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:228)
  | at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
  | at 
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
  | at 
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)
  | at 
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
  | at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
  | at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
  | at 
org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
  | at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
  | at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:216)
  | at 

[jboss-user] [JBoss Seam] - Re: Enhancing seam-gen to support multiple projects

2007-08-20 Thread atao
Modoc,

Will you create a new Jira entry?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4075706#4075706

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4075706
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Enhancing seam-gen to support multiple projects

2007-08-19 Thread atao
Here is a try i did some time ago with generate-entities. 
The idea is to avoid to duplicate the same code in seam-gen/build.xml and in 
{project_home}/build.xml.

It should work for any other target.

In the seam-gen/build-scripts/build.xml, add:


  | target name=generate-entities 
  | description=Reverse engineer entities from the database
  | 
  | ant dir=${seam.home}/seam-gen target=generate-entities 
inheritall=false
  | property name=project.name value=${project.name}/
  | property file=${basedir}/build.properties/
  | property file=${basedir}/seam-gen.properties/
  | /ant
  | 
  | /target
  | 
  | 
  | 

the variable seam.home must be defined in {project_home}/build.properties
in seam-gen/build-scripts/build.properties, add:

  | seam.home = @seamHome@
  | 
  | 

and in seam-gen/build.xml, in filterset project, add:

  | filter token=seamHome value=${basedir}/.. /
  | 
  | 

the seam-gen/build.properties is copied in {project_home}/seam-gen.properties
in seam-gen/build.xml, in target file-copy, add:

  | copy tofile=${project.home}/seam-gen.properties 
  | file=${basedir}/build.properties
  | filterset refid=project/
  | /copy
  | 
  | 






View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4075590#4075590

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4075590
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Enhancing seam-gen to support multiple projects

2007-08-18 Thread atao
An other way would be:
- when you create a new project, copy the build.properties inside it
- add in the build.xml of the project targets generate-entity ... linked 
  to the associated targets in seam-gen/build.xml

You can call these targets from the project under Eclipse.

Then each project is fully independent.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4075440#4075440

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4075440
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - exception

2007-08-18 Thread atao
In a page with only a h:outputText and a h:form, as soon as I click on the 
submit button of the form, I get this exception

anonymous wrote : 
  | 12:23:22,468 WARN  [lifecycle] executePhase(RESTORE_VIEW 1,[EMAIL 
PROTECTED]) threw exception
  | javax.el.PropertyNotWritableException: /home.xhtml @18,57 
binding=#{bindingtest.testText()}: Illegal Syntax for Set Operation
  | at 
com.sun.facelets.el.TagValueExpression.setValue(TagValueExpression.java:98)
  | [...]
  | Caused by: javax.el.PropertyNotWritableException: /home.xhtml @18,57 
binding=#{bindingtest.testText()}: Illegal Syntax for Set Operation
  | at 
com.sun.facelets.el.TagValueExpression.setValue(TagValueExpression.java:98)
  | at 
com.sun.faces.lifecycle.RestoreViewPhase.doPerComponentActions(RestoreViewPhase.java:245)
  | at 
com.sun.faces.lifecycle.RestoreViewPhase.doPerComponentActions(RestoreViewPhase.java:250)
  | at 
com.sun.faces.lifecycle.RestoreViewPhase.execute(RestoreViewPhase.java:193)
  | at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
  | at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
  | at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
  | ... 37 more
  | 
  | 
  | 

It must be obvious but i have no idea why. 

The application is generated with seam2/seam-gen from today cvs. The only 
changes are:
- outputText and form in home.xhtml
- class BindingTest.java


  | !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN 
  |   
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd;
  | html xmlns=http://www.w3.org/1999/xhtml;
  |   xmlns:h=http://java.sun.com/jsf/html;
  |   
  | head
  | meta http-equiv=Content-Type content=text/html; charset=UTF-8 /
  | titlepopsuite-binding/title
  | link href=stylesheet/theme.css rel=stylesheet type=text/css /
  | /head
  | 
  | body
  | 
  | h:messages/
  | 
  | Testbr /
  | 
  | h:outputText binding=#{bindingtest.testText()} /
  | 
  | h:form id=bindingtest
  |
  |h:commandButton id=valid 
  |   value=OK  
  |  action=#{bindingtest.valid}/  
  |
  | /h:form
  | /body
  | /html
  | 


  | package org.popsuite.binding2;
  | 
  | import static org.jboss.seam.ScopeType.APPLICATION;
  | import static org.jboss.seam.annotations.Install.BUILT_IN;
  | 
  | import javax.faces.component.UIComponent;
  | import javax.faces.component.html.HtmlOutputText;
  | 
  | import org.jboss.seam.annotations.Install;
  | import org.jboss.seam.annotations.Name;
  | import org.jboss.seam.annotations.Scope;
  | import org.jboss.seam.annotations.intercept.BypassInterceptors;
  | 
  | @Scope(APPLICATION)
  | @BypassInterceptors
  | @Name(bindingtest)
  | @Install(precedence = BUILT_IN)
  | public class BindingTest
  | {
  | private String name;
  | private String city;
  | 
  | public UIComponent testText()
  | {
  | HtmlOutputText text = new HtmlOutputText();
  | text.setValue(Very simple binding test);
  | return text;
  | }
  | 
  | public String valid()
  | {
  | return null;
  | }
  | 
  | public String getName(){
  | return this.name;
  | }
  | 
  | public void setName(String name){
  | this.name = name;
  | }
  | 
  | public String getCity(){
  | return this.city;
  | }
  | 
  | public void setCity(String city){
  | this.city = city;
  | }
  | 
  | 
  | }
  | 



View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4075451#4075451

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4075451
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Enhancing seam-gen to support multiple projects

2007-08-18 Thread atao
anonymous wrote : You'd have to modify the seam-gen templates

seam-gen/build-scripts/build.xml and seam-gen/build.xml.

Other?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4075503#4075503

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4075503
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: resource bundle

2007-08-14 Thread atao
What is you configuration in faces-config.xml?

What is the current value of locale?



View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4073906#4073906

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4073906
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: resource bundle

2007-08-14 Thread atao
Try:

- either to remove default-locale in locale-config

- or to change the name of properties file from messagesAfn.properties to 
messagesAfn_en.properties




View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4074002#4074002

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4074002
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: SeamGen enhancements

2007-08-14 Thread atao
An other custom-made approach would be:
- keep a quickstarting as it is currently,
  without choice about the basic frameworks
  as Richfaces...
- add the possibility to use specific technologies 
  e.g. joda datetime, PDF generation...
- and still be able to regenerate all the project without deleting
  the specific developments

This means to add in seam-gen some custom entry points like:
- library declarations in xhtml templates
- type filters in edit/viewproperties.xhtml.ftl and list.xhtml.ftl
- derived classes for HomeEntity and ListEntity in build.properties
- some src/misc directory to put in it  the project devlopments
- ...
  


View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4074091#4074091

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4074091
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: resource bundle

2007-08-13 Thread atao
Only use messages to get the message map, i.e.:


  | h:outputText value=#{messages['pwdchange.screen.title']} /
  | 

even if you use different bundle names

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4073748#4073748

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4073748
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Startup exception: Ajax4jsfFilter

2007-07-31 Thread atao
I rebuild from the start my project with seam-gen, and now it's ok.
So it must be a mess with an old library or some configuration parameter...

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4069181#4069181

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4069181
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Seam Gen

2007-07-31 Thread atao
I'm not sure to understand your idea. Can you explain a little more?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4069247#4069247

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4069247
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Seam Gen

2007-07-31 Thread atao
why not.

IMO a better trick would be to use hibernate custom value types for the foreign 
keys. Then it will be easy to check these types in the template.




View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4069349#4069349

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4069349
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Little problem using seam-gen

2007-07-31 Thread atao
See http://jira.jboss.com/jira/browse/JBSEAM-994

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4069351#4069351

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4069351
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Seam Gen

2007-07-31 Thread atao
in generate-entities target, add a hbmtemplate to create some 
hibernate-console.cfg.xml file. 


  | hbmtemplate filepattern=hibernate-console.cfg.xml
  | 
template=hibernatetools/hibernate-console.cfg.xml.ftl 
  |  destdir=${project.home}
  |  /
  | 
  | 

with template

  | ?xml version=1.0 encoding=UTF-8?
  | !DOCTYPE hibernate-configuration PUBLIC
  | -//Hibernate/Hibernate Configuration DTD 3.0//EN
  | http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd;
  | hibernate-configuration
  | session-factory
  | #foreach entity in cfg.classMappings
  | mapping class=${entity.entityName} /
  | /#foreach 
  | /session-factory
  | /hibernate-configuration
  | 

Then you can use the generated file to define any custom values and specify 
wich properties are concerned.

As this file will be overwritten at each run of generate-entities, may be a 
better way will be to create a cfg.xml file for each entity. 

about custom value types, see 
http://www.hibernate.org/hib_docs/v3/reference/en/html_single/#mapping-types-custom

about template: the job is done in seam-gen/view/editproperty.xhtml.ftl, 
viewproperty.xhtml.ftl and list.xhtml.ftl



View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4069372#4069372

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4069372
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Component configuration with complex types

2007-07-31 Thread atao
It's really a work in progress.

I just checked it againt Seam 2 cvs. 

So, the code as it is...

All the calls go through MenuManager

  | package org.jboss.seam.menu;
  | 
  | import static org.jboss.seam.ScopeType.APPLICATION;
  | import static org.jboss.seam.annotations.Install.BUILT_IN;
  | 
  | import java.io.InputStream;
  | import java.util.Collections;
  | import java.util.HashMap;
  | import java.util.List;
  | import java.util.Map;
  | 
  | import org.dom4j.DocumentException;
  | import org.dom4j.Element;
  | import org.jboss.seam.Component;
  | import org.jboss.seam.annotations.Create;
  | import org.jboss.seam.annotations.Install;
  | import org.jboss.seam.annotations.Name;
  | import org.jboss.seam.annotations.Scope;
  | import org.jboss.seam.annotations.intercept.BypassInterceptors;
  | import org.jboss.seam.contexts.Contexts;
  | import org.jboss.seam.log.LogProvider;
  | import org.jboss.seam.log.Logging;
  | import org.jboss.seam.menu.MenuItem.ItemType;
  | import org.jboss.seam.menu.NavigationFactory.NavigationType;
  | import org.jboss.seam.util.Resources;
  | import org.jboss.seam.util.XML;
  | 
  | /**
  |  * Provide menu items 
  |  * 
  |  * - in the same application, it should be possible to use different 
implementations through component configuration
  |  *   atm the only one available is RichFaces
  |  * - in menus.xml, everything is a item, without no information about how 
to show these items
  |  * - the way that a menu is inserted in a page is fixed on from the page 
side with the choice between 3 methods: 
  |  *   - getNavigationItem : return an simple item
  |  *   - getNavigationMenu : return a single top menu
  |  *   - getNavigationMenus: retourne a list of top menus
  |  *   What is exactly returned depends of the implementation.
  |  * - any item, whatever its declaration place is, can be named with id 
attribute and so reused 
  |  *   (in a tag, through attribut refid)
  |  * - TODO to set parameters specifics for a given implementation, with the 
tag
  |  * specific type=richfaces.../specific
  |  *   inside any item.
  |  * - all seam parameters defined for a link are directly available; atm 
only propagation
  |  * - the children of an item can be unwrapped i.e. used in place of the 
item.
  |  * 
  |  * Syntaxe of a menu file:
  |  * menus
  |  *   item id=...
  |  *   item id=...
  |  * label=...
  |  * icon=...
  |  * description
  |  * rendered
  |  * disabled
  |  * action
  |  * type
  |  * propagation
  |  * split
  |  * target
  |  * 
  |  *  ...
  |  *   /item
  |  *   item
  |  * ...
  |  *   /item
  |  *...
  |  * /menus  
  |  * 
  |  * @author Pierre
  |  *
  |  */
  | @Scope(APPLICATION)
  | @BypassInterceptors
  | @Name(menumanager)
  | @Install(precedence = BUILT_IN)
  | public class MenuManager {
  | private static String EMPTY_STRING = ;
  | private static String TRUE_STRING = true;
  | private static String ITEM_TAG = item;
  | private static String ID_ATTR = id;
  | private static String REFID_ATTR = refid;
  | private static String ICON_ATTR = icon;
  | private static String LABEL_ATTR = label;
  | private static String HOTKEY_ATTR = accesskey;
  | private static String DESCRIPTION_ATTR = description;
  | private static String RENDERED_ATTR = rendered;
  | private static String DISABLED_ATTR = disabled;
  | private static String ACTION_ATTR = action;
  | private static String TYPE_ATTR = type;
  | private static String PROPAGATION_ATTR = propagation;
  | private static String TARGET_ATTR = target;
  | private static String UNWRAP_ATTR = unwrap;
  | 
  | public static NavigationType MENU_LIST_TYPE = NavigationType.GROUP;
  | public static NavigationType MENU_TYPE = NavigationType.ROOT;
  | 
  | private String menusFile = /WEB-INF/menus.xml;
  | private String menuImpl = Richfaces;
  | 
  | private static final LogProvider log = Logging
  | .getLogProvider(MenuManager.class);
  | private MapString, MenuItem menusById = Collections
  | .synchronizedMap(new HashMapString, MenuItem());
  | private NavigationFactory factory;
  | 
  | @Create
  | public void initialize() {
  | InputStream stream = Resources.getResourceAsStream(menusFile, 
null);
  | if (stream == null) {
  | log.debug(no  + menusFile +  file found);
  | }
  | if (stream != null) {
  | log.debug(reading  + menusFile);
  | parse(stream);
  | }
  | 
  | factory = NavigationFactory.getInstance(menuImpl);
  | }
  | 
  | public static MenuManager instance() {
  | if (Contexts.isApplicationContextActive()) {
  | 

[jboss-user] [JBoss Seam] - Re: Message bundle in an EAR is not working

2007-07-31 Thread atao
and what if:

ear/a.war/WEB-INF/classes/Messages.properties

ear/b.war/WEB-INF/classes/Messages.properties

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4069429#4069429

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4069429
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Using Seamgen from entities

2007-07-30 Thread atao
See http://jira.jboss.com/jira/browse/JBSEAM-843

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4068632#4068632

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4068632
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Seam Gen

2007-07-30 Thread atao
About your first point, I'm not sure it's the best way to get a customized 
label. 
The comment must remain a comment, e.g. some thing to be use in a popup window.

I'd rather get the column name as something immutable and use it to retrieve an 
i18n message. 

As example you can see the patch I proposed for i18n in seam-gen, cf. 
http://jira.jboss.com/jira/browse/JBSEAM-1206

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4068728#4068728

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4068728
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Seam Gen

2007-07-30 Thread atao
About point 1: it's not on the roadmap for seam 2.0.1.GA, see 
http://jira.jboss.com/jira/browse/JBSEAM?report=com.atlassian.jira.plugin.system.project:roadmap-panel

About point 2: yes some time you want dropdown list. IMO, the presence of a 
foreign key is not a good criterion. 
I already customerized my version of seam-gen for enumeration: all of them are 
shown as dropdown list by default.
An other good candidate would be the embedded attribute.
About many-to-one association: there is no clear default choice. Each case is 
specific. I have no clear idea how to specify it: annotation, hibernate mapping 
...?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4068775#4068775

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4068775
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Startup exception: Ajax4jsfFilter

2007-07-30 Thread atao
After updating one hour ago, I get now the same exception. 
I don't think it's about declaration of Ajax4JSF  filter in web.xml as:
- i was already working with Seam 2 cvs but updated may be 10 days ago
- there is no Ajax4JSF filter in the project web.xml, and this since i work 
with seam 2

So...



View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4068958#4068958

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4068958
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Component configuration with complex types

2007-07-27 Thread atao
Hello,

I just started to work on a menu build through configuration file, but:
- without using any of the standard configuration files as components.xml: 
I define a specific menus.xml file in the same way that pages.xml
- and agnostic about implementation, even if by default it'll be RichFaces.

Atm a lot of things are still missing but it works. If you are interested...

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4068356#4068356

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4068356
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: touble with messages.properites

2007-07-19 Thread atao
Mmm, may be tell to JSF where to find the messages, add message-bundle tag:


  |application
  |   message-bundlemessages/message-bundle
  |   locale-config
  | default-localeen/default-locale
  | supported-localeen/supported-locale
  | [...]   
  |   /locale-config
  |/application
  | 


View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4065683#4065683

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4065683
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: touble with messages.properites

2007-07-18 Thread atao
In your faces-config.xml file:


  | application
  | locale-config
  | default-localezh/default-locale
  | supported-localeen/supported-locale
  | supported-localeen_US/supported-locale
  | supported-localeen_AU/supported-locale
  | supported-localede/supported-locale
  | supported-localefr/supported-locale
  | /locale-config
  | /application
  | 

zh is not declared as a supported-locale

try after adding it.


View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4065536#4065536

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4065536
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Hot redeployment - internationalization

2007-07-07 Thread atao
Hot redeployment of Properties files is working (files are updated on the 
server). 

But you need to restart the application to get the new messages as these files 
are read only when the application is started by the server.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4061589#4061589

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4061589
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Hot redeployment - internationalization

2007-07-07 Thread atao
May be some ideas here:

http://www.javaworld.com/javaworld/javatips/jw-javatip125.html

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4061627#4061627

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4061627
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Can't set Character encoding for submitted form data

2007-06-13 Thread atao
The only thing you really need is  


  | meta http-equiv=Content-Type content=text/html; charset=UTF-8 /
  | 

as stated previously. It is always used by the browser to sent request to the 
server. Even if the encoding option of the browser is forced to an other value.

The attribut lang in tag html is not related to the charset but to the 
presentation options for date, currency, number...

I've never had any problem with english/french applications. I let the browser 
and server switch between the two of them. I don't use any 
CharacterEncodingFilter. At least it must be used without overrideClient 
parameter unless you're sure at 100% that all the pages sent to the browser are 
in the same charset that the one specified.

The last time I got such issue, it was related to a database server which was 
configured with a charset different of the one specified in the web pages.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4054042#4054042

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4054042
___
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 released

2007-06-13 Thread atao
Where is ConversationPropagation?

I just updated from CVS, and when I try to build seam, I  got error 
ConversationPropagation cannot be resolved.
I tried to find it, but was unable.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4054122#4054122

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4054122
___
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

2007-06-08 Thread atao
First try: everything seems ok now.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4052403#4052403

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4052403
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: jboss el and jstl functions issue

2007-06-08 Thread atao
Thanks! It works fine.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4052402#4052402

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4052402
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: jboss el and jstl functions issue

2007-06-07 Thread atao
Not all uses of jstl's fn: function produce an exception.

For exemple:

  | #{fn:length(testFromType)}
  | 
works fine. 

But I get the same exception with

  | s:button id=done
  |value=Done
  | view=/TestList.xhtml
  | 
  | f:param name=lengthTest 
  | value=#{fn:length(testFromType)}/
  | /s:button
  | 

and only when I change of tab in a rich:tabPanel (but not when the page is 
loaded)
 

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4052355#4052355

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4052355
___
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

2007-06-06 Thread atao
lschaffer is right. It's aN issue with the version of hibernat in 
seam-csv/lib/hibernate-all.jar.

Even if you specify an other archive file for hibernate, seam always uses 
seam-csv/lib/hibernate-all.jar as there is 


  | java -cp %JAVA_HOME%\lib\tools.jar;%DIRNAME%lib\ant-launcher.jar 
-Dant.home=%DIRNAME%lib -Dant.library.dir=%DIRNAME%lib 
org.apache.tools.ant.launch.Launcher -buildfile %SEAMGENDIR%\build.xml %ARGS% 
 
  | 

in seam.bat under windows 

and 


  | java -cp ${JAVA_HOME}/lib/tools.jar:../lib/ant-launcher.jar 
-Dant.home=../lib -Dant.library.dir=../lib org.apache.tools.ant.launch.Launcher 
${*}
  | 

in seam under linux.

A turnaround is to remove hibernate-all.jar from seam-csv/lib when using seam 
generate-entities.


View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4051667#4051667

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4051667
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: JBoss AS 4.2.0, seam 1.2.1 and seamgen

2007-05-28 Thread atao
atm, I use:
- seam 1.2.1 with jboss AS 4.0.5 (application dev)
- seam from cvs with jboss AS 4.2 (test of ideas)

and I don't mix the two of them...

About seam-gen from cvs, there is some issues but nothing fatal:
1/ an exception when loading:
anonymous wrote : 
  | caused by: java.lang.NoSuchMethodError: 
org.drools.RuleBase.newWorkingMemory(Z)Lorg/drools/WorkingMemory;
  | at 
org.jboss.seam.security.RuleBasedIdentity.initSecurityContext(RuleBasedIdentity.java:57)
  | 

2/ the headers of tables are not generated



View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4049041#4049041

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4049041
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: conversation propagation and navigation rule

2007-05-06 Thread atao
I just tried the workaroud with

  | page view-id=*
  | navigation
  | rule if-outcome=home
  | redirect view-id=/home.xhtml/
  | /rule
  | rule if-outcome=fundList
  | end-conversation/
  | redirect view-id=/FundList.xhtml
  | param name=conversationPropagation 
value=#{'none'}/
  | /redirect
  | /rule
  | /navigation
  | /page
  | 

There is no more exception, but the genereted link is now:
anonymous wrote : 
  | 
http://localhost:9090/payroll/FundList.seam?conversationPropagation=nonecid=9
  | 

It doesn't look as the expected one...

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4043550#4043550

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4043550
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - conversation propagation and navigation rule

2007-05-05 Thread atao
With seam 1.2.1.GA, I tried this code:


  | page view-id=*
  | navigation
  | rule if-outcome=fundList
  | redirect view-id=/FundList.xhtml
  | param name=conversationPropagation value=none /
  | /redirect
  | /rule
  | /navigation
  | /page
  | 

and I got this exception:

anonymous wrote : 
  | javax.servlet.ServletException: Invalid expression: 'none'. Parsed 
Expression of unexpected type java.lang.String
  | at javax.faces.webapp.FacesServlet.service(FacesServlet.java:152)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
  | at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
  | at 
org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:147)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
  |  ...
  | 
  | 21:18:15,218 ERROR [ExceptionFilter] exception root cause
  | javax.faces.el.ReferenceSyntaxException: Invalid expression: 'none'. Parsed 
Expression of unexpected type java.lang.String
  | at 
org.apache.myfaces.el.ELParserHelper.parseExpression(ELParserHelper.java:84)
  | at 
org.apache.myfaces.el.ValueBindingImpl$2.newInstance(ValueBindingImpl.java:82)
  | at 
org.apache.myfaces.shared_impl.util.BiLevelCacheMap.get(BiLevelCacheMap.java:123)
  | at org.apache.myfaces.el.ValueBindingImpl.(ValueBindingImpl.java:115)
  | 
  | ...
  | 

So how to specify no conversation propagation from navigation rule inside 
pages.xml?



View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4043479#4043479

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4043479
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - eam-gen and EntityHome.wire

2007-04-25 Thread atao
I generated an application with seam-gen from Seam 1.2.1.GA. 

 In the [Entity]Edit.page.xml files, there is always a call to 
[Entity]Home.wire, e.g.:

  |action execute=#{workerHome.wire}/
  | 

But the wire method are never called when the Edit page is called. Almost 
always there is no problem. But I have at least one case where the Edit view 
doesn't show the current entity but create a new one.

Any idea?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4040524#4040524

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4040524
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Integrating Tomahawk with Seam

2007-04-21 Thread atao
anonymous wrote : As noted in my post, I added the mappings to my web.xml and 
that just made my application crash.
yes but your error message states that 
anonymous wrote : ExtensionsFilter not correctly configured
so...

And about
anonymous wrote : tomahawk,jar have to be in the web-inf/lib

I think it's ok in the war/WEB-INF/lib directory.

In my configuration, I put it in the root of the ear archive and I add its 
reference in the classpath of war/META-INF/MANIFEST.MF

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4039538#4039538

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4039538
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - componentClasses configuration property

2007-04-20 Thread atao
In the manuel of version 1.2.1.GA, I found this:

anonymous wrote : 
  | 23.9. Infrastructural components
  | 
  | These components provide critical platform infrastructure. You can install 
a component by including its class name in the 
org.jboss.seam.core.init.componentClasses configuration property.
  | 
  | org.jboss.seam.core.init
  | 
  | Initialization settings for Seam. Always installed.
  | 
  | *
  | 
  |   org.jboss.seam.core.init.jndiPattern ? the JNDI pattern used for 
looking up session beans
  | *
  | 
  |   org.jboss.seam.core.init.debug ? enable Seam debug mode
  | *
  | 
  |   org.jboss.seam.core.init.clientSideConversations ? if set to 
true, Seam will save conversation context variables in the client instead of in 
the HttpSession.
  | *
  | 
  |   org.jboss.seam.core.init.userTransactionName ? the JNDI name to 
use when looking up the JTA UserTransaction object. 
  | 

When I try to define a configuration property in web.xml with

  | context-param
  | param-nameorg.jboss.seam.core.init.componentClasses/param-name
  | param-valueorg.popsuite.Pages/param-value
  | /context-param
  | 

I get an exception
anonymous wrote : 
  | 16:51:54,359 INFO  [Component] Component: org.jboss.seam.core.init, scope: 
APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.Init
  | 16:51:54,421 ERROR [[/popsuitepayroll]] Exception sending context 
initialized event to listener instance of class 
org.jboss.seam.servlet.SeamListener
  | java.lang.RuntimeException: Could not create Component: 
org.jboss.seam.core.init
  | at 
org.jboss.seam.init.Initialization.addComponent(Initialization.java:865)
  | at org.jboss.seam.init.Initialization.init(Initialization.java:492)
  | at 
org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:33)
  | at 
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3763)
  | at 
org.apache.catalina.core.StandardContext.start(StandardContext.java:4211)
  | at 
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
  | at 
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
  | at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
  | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:585)
  | at 
org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503)
  | at 
org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
  | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
  | at 
org.apache.catalina.core.StandardContext.init(StandardContext.java:5052)
  | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:585)
  | at 
org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503)
  | at 
org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
  | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
  | at 
org.jboss.web.tomcat.tc5.TomcatDeployer.performDeployInternal(TomcatDeployer.java:297)
  | at 
org.jboss.web.tomcat.tc5.TomcatDeployer.performDeploy(TomcatDeployer.java:103)
  | at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:371)
  | at org.jboss.web.WebModule.startModule(WebModule.java:83)
  | at org.jboss.web.WebModule.startService(WebModule.java:61)
  | at 
org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
  | at 
org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
  | at sun.reflect.GeneratedMethodAccessor136.invoke(Unknown Source)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:585)
  | at 
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
  | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
  | at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
  | at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
  | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
  | at 
org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
  | at $Proxy0.start(Unknown Source)
  | at org.jboss.system.ServiceController.start(ServiceController.java:417)
  | at 

[jboss-user] [JBoss Seam] - Re: Integrating Tomahawk with Seam

2007-04-20 Thread atao
anonymous wrote : 
  | I was thinking perhaps we need to add the configuration to JBoss not our 
app, since the MyFaces stuff is in JBoss but I couldnt find anything on the 
JBoss site except in some forums people say they do have this configured.
  | 

Tomahawk works fine with application configuration. I put this in web.xml:


  | !-- MyFaces : Tomahawk extension --
  | 
  | filter
  | filter-nameMyFacesExtensionsFilter/filter-name
  | 
filter-classorg.apache.myfaces.webapp.filter.ExtensionsFilter/filter-class
  | init-param
  |   param-namemaxFileSize/param-name
  |   param-value20m/param-value
  | /init-param
  | /filter
  | 
  | !-- extension mapping for adding script/, link/, and other 
resource tags to JSF-pages  --
  | !-- keep only the mappingwith url-pattern
  | filter-mapping
  | filter-nameMyFacesExtensionsFilter/filter-name
  | servlet-nameFaces Servlet/servlet-name
  | /filter-mapping
  | --
  |  
  | filter-mapping
  |   filter-nameMyFacesExtensionsFilter/filter-name
  |   url-pattern*.seam/url-pattern
  | /filter-mapping
  | 
  | !-- extension mapping for serving page-independent resources 
(javascript, stylesheets, images, etc.)  --
  | filter-mapping
  | filter-nameMyFacesExtensionsFilter/filter-name
  | url-pattern/faces/*/url-pattern
  | /filter-mapping
  | 
  | 

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4039453#4039453

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4039453
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - seam-gen build

2007-03-25 Thread atao
I work under Eclipse, with seam 1.2.0PATCH1

In the build.xml of a project created by seam-gen, the targets explode and 
buildtest are lauched after each change of a file. But then the target 
compile is not lauched. 
So after any change in a java file, compile must be lauched by hand.

Is it on purpose or did I miss something?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4031375#4031375

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4031375
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: seam-gen build

2007-03-25 Thread atao
I change my question...

If I use the Eclipse clean command for the project, I get the compilation of 
all the project java files... and a little more: jboss seam's class files are 
also compiled under test-build and then copied under 
exploded-archives/[project].jar

Is it on purpose? 

I tried without copying seam class files in the [project].jar. It ran fine.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4031385#4031385

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4031385
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: How to truncate output?

2007-03-25 Thread atao
You can use jstl functions:


  | xmlns:fn=http://java.sun.com/jsp/jstl/functions;
  | 
  | [...]
  | 
  | h:outputText value=#{fn:substring(aString, 0, 5)}.../
  | 

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4031393#4031393

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4031393
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: s:convertDateTime subtract 1 day

2007-03-07 Thread atao
It's a known issue with dateConverter. By default GMT is used. If your server 
isn't in GMT+1, then... the first day of a month can become the last day of the 
previous month!

To avoid this:
- fixe timezone explicitly
- use joda library
- use a converter as the one you tested
- ...

Pierre




View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4025819#4025819

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4025819
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: s:convertDateTime subtract 1 day

2007-03-07 Thread atao
anonymous wrote : 
  | If your server is in GMT+1
  | 
indeed

Sorry for the noise.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4025823#4025823

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4025823
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Setting up an ajax4jsf + trinidad project

2007-03-02 Thread atao
Hello,

anonymous wrote :  added the trinidad and a4j-trinidad jar

Can you be more specefic? trinidad-api-incubator-m1-SNAPSHOT.jar and 
trinidad-impl-incubator-m1-SNAPSHOT.jar?

anonymous wrote :  to WEB-INF/lib and added them to the build.xml to be added 
to the ear

are they copied in the root of the project ear or in the WEB-INF/lib of the 
project war?

About the config files, mines are below.

Regards
Pierre


  | ?xml version=1.0 encoding=UTF-8?
  | web-app version=2.5
  | xmlns=http://java.sun.com/xml/ns/javaee;
  | xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
  | xsi:schemaLocation=http://java.sun.com/xml/ns/javaee 
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd;
  | 
  | [...]
  | 
  | !-- Ajax4jsf (must come before the other filters!) --
  | 
  | !-- 
  | context-param
  | param-nameorg.ajax4jsf.VIEW_HANDLERS/param-name
  | 
param-valueorg.jboss.seam.ui.facelet.SeamFaceletViewHandler/param-value
  | /context-param
  | --
  | 
  | filter
  | display-nameAjax4jsf Filter/display-name
  | filter-nameajax4jsf/filter-name
  | filter-classorg.ajax4jsf.Filter/filter-class
  | init-param
  | param-nameforceparser/param-name
  | param-valuefalse/param-value
  | /init-param
  | /filter
  | 
  | filter-mapping
  | filter-nameajax4jsf/filter-name
  | url-pattern*.seam/url-pattern
  | /filter-mapping
  | 
  | !-- Trinidad --
  | 
  | context-param
  | 
param-nameorg.apache.myfaces.trinidad.ALTERNATE_VIEW_HANDLER/param-name
  | !-- 
  | param-valuecom.sun.facelets.FaceletViewHandler/param-value
  | --
  | 
param-valueorg.jboss.seam.ui.facelet.SeamFaceletViewHandler/param-value
  | /context-param
  | 
  | context-param
  | 
param-nameorg.apache.myfaces.trinidad.USE_APPLICATION_VIEW_CACHE/param-name
  | param-valuefalse/param-value
  | /context-param
  | 
  | context-param
  | 
param-nameorg.apache.myfaces.trinidad.CHECK_FILE_MODIFICATION/param-name
  | param-valuetrue/param-value
  | /context-param
  | 
  | filter
  |   filter-nametrinidad/filter-name
  |   
filter-classorg.apache.myfaces.trinidad.webapp.TrinidadFilter/filter-class
  | /filter
  | 
  | filter-mapping
  |   filter-nametrinidad/filter-name
  |   !-- servlet-name must match the name of your 
javax.faces.webapp.FacesServlet entry --
  |   servlet-nameFaces Servlet/servlet-name
  |   dispatcherREQUEST/dispatcher
  |   dispatcherFORWARD/dispatcher
  |   dispatcherINCLUDE/dispatcher
  | /filter-mapping
  | 
  | !-- resource loader servlet --
  | servlet
  |   servlet-nameresources/servlet-name
  |   
servlet-classorg.apache.myfaces.trinidad.webapp.ResourceServlet/servlet-class
  | /servlet
  |
  | servlet-mapping
  |   servlet-nameresources/servlet-name
  |   url-pattern/adf/*/url-pattern
  | /servlet-mapping
  | 
  | !-- Seam --
  | 
  | listener
  |   listener-classorg.jboss.seam.servlet.SeamListener/listener-class
  | /listener
  | 
  | filter
  |   filter-nameSeam Exception Filter/filter-name
  |   
filter-classorg.jboss.seam.servlet.SeamExceptionFilter/filter-class
  | /filter
  | 
  | filter-mapping
  |   filter-nameSeam Exception Filter/filter-name
  |   url-pattern/*/url-pattern
  | /filter-mapping
  | 
  | !-- Propagate conversations through redirects --
  |
  | filter
  |   filter-nameSeam Redirect Filter/filter-name
  |   filter-classorg.jboss.seam.servlet.SeamRedirectFilter/filter-class
  | /filter
  | 
  | filter-mapping
  |   filter-nameSeam Redirect Filter/filter-name
  |   url-pattern*.seam/url-pattern
  | /filter-mapping
  | 
  | !-- Faces servlet --
  | 
  | servlet
  |   servlet-nameFaces Servlet/servlet-name
  |   servlet-classjavax.faces.webapp.FacesServlet/servlet-class
  |   load-on-startup1/load-on-startup
  | /servlet
  | 
  | servlet-mapping
  |   servlet-nameFaces Servlet/servlet-name
  |   url-pattern*.seam/url-pattern
  | /servlet-mapping
  |
  | !-- MyFaces --
  |
  | listener
  |   
listener-classorg.apache.myfaces.webapp.StartupServletContextListener/listener-class
  | /listener
  |   
  | [...]
  | 
  | /web-app
  | 

and I have in faces-config.xml

  |application
  |  !-- No FaceletViewHandler in this file
  |view-handlercom.sun.facelets.FaceletViewHandler/view-handler
  |
view-handlerorg.jboss.seam.ui.facelet.SeamFaceletViewHandler/view-handler
  |  --
  |  !-- Use the Trinidad RenderKit AND the ajax4jsf view handler --
  |
default-render-kit-idorg.apache.myfaces.trinidad.core/default-render-kit-id
  |

[jboss-user] [JBoss Seam] - Re: Seam breaks with Groovy

2007-03-01 Thread atao
Hello,

thirdparty-all.jar doesn't contain the full asm library.

The simplest way is to use the groovy archive with dependencies, that is 
groovy-all-1.0-RC-01.jar. 

Regards

Pierre

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4024509#4024509

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4024509
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - seam-gen : two attributes of same kind in an entity

2007-02-28 Thread atao
Hello,

I use seam-gen (seam 1.1.7.RC1) to generate list and home classes from entities 
with jpaconfiguration .

One class, Contract,  has two attributs, seller and purchaser, with the same 
type Party. 

The generated ContractHome class contains:

  | @In(value = #{partyHome.managedInstance}, required = false)
  | Party seller;
  | @In(value = #{partyHome.managedInstance}, required = false)
  | Party purchaser;
  | 
  | 

So seller and purchaser use the same instance!

Any idea to get two different instances?

Regards
Pierre

PJ :



  | @Name(contract)
  | @javax.persistence.Entity
  | public class Contract extends Entity
  | {
  | 
  | private DateTime  begin;
  | private DateTime  end;
  | private Party seller;
  | private Party purchaser;
  | 
  | public Contract()
  | {
  | this(null);
  | }
  | 
  | public Contract(Party seller)
  | {
  | this(seller, null);
  | }
  | 
  | public Contract(Party seller, Party purchaser)
  | {
  | super();
  | this.seller = seller;
  | this.purchaser = purchaser;
  | }
  | 
  | @Id 
  | public String getId() {return super.getId();}
  | public void setId(String id) {super.setId(id);}
  | 
  | /**
  |  * the seller
  |  */
  | @ManyToOne
  | @JoinColumn(name=sellerId)
  | public Party getSeller() {return this.seller;}
  | public void setSeller(Party seller) {this.seller = seller;}
  | public Contract seller(Party seller) {
  | setSeller(seller);
  | return this;
  | }
  | 
  | /**
  |  * the purchaser
  |  */
  | @ManyToOne
  | @JoinColumn(name=purchaserId)
  | public Party getPurchaser() {return this.purchaser;}
  | public void setPurchaser(Party purchaser) {this.purchaser = purchaser;}
  | public Contract purchaser(Party purchaser) {
  | setPurchaser(purchaser);
  | return this;
  | }
  | 
  | /**
  |  * the begin date
  |  */
  | @Column(name=begindate)
  | @Type(type=org.joda.time.contrib.hibernate.PersistentDateTime)
  | public DateTime getBegin() {return this.begin;}
  | public void setBegin(DateTime begin) {this.begin = begin;}
  | public Contract begin(DateTime begin) {
  | setBegin(begin);
  | return this;
  | }
  | 
  | /**
  |  * the end date
  |  */
  | @Column(name=enddate)
  | @Type(type=org.joda.time.contrib.hibernate.PersistentDateTime)
  | public DateTime getEnd() {return this.end;}
  | public void setEnd(DateTime end) {this.end = end;}
  | public Contract end(DateTime end) {
  | setEnd(end);
  | return this;
  | }
  | 
  | /* (non-Javadoc)
  |  * @see java.lang.Object#toString()
  |  */
  | @Override
  | public String toString()
  | {
  | return Contract(   + getPurchaser().getName() 
  |  +  [  + getBegin() 
  |  +  -  + getEnd()
  |  +  ]);
  | }
  | 
  | }
  | 



  | @Name(contractHome)
  | public class ContractHome extends EntityHomeContract {
  | 
  | @In(value = #{partyHome.managedInstance}, required = false)
  | Party seller;
  | @In(value = #{partyHome.managedInstance}, required = false)
  | Party purchaser;
  | 
  | public void setContractId(String id) {
  | setId(id);
  | }
  | 
  | public String getContractId() {
  | return (String) getId();
  | }
  | 
  | @Override
  | protected Contract createInstance() {
  | Contract contract = new Contract();
  | return contract;
  | }
  | 
  | public void wire() {
  | if (seller != null) {
  | getInstance().setSeller(seller);
  | }
  | if (purchaser != null) {
  | getInstance().setPurchaser(purchaser);
  | }
  | }
  | 
  | public boolean isWired() {
  | return true;
  | }
  | 
  | public Contract getManagedInstance() {
  | return isManaged() ? getInstance() : null;
  | }
  | 
  | }
  | 



View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4024028#4024028

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4024028
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: integration with Trinidad (ADF)

2006-12-21 Thread atao
Hello

you are using Trinitad with a4j, so try with ajax4jsf 1.0.5 and  
a4j-trinidad.jar

see https://ajax4jsf.dev.java.net/nonav/ajax/ajax-jsf/download.html#binary

Regards

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3995542#3995542

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3995542
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: i18n validation message during test

2006-11-26 Thread atao
Richard

read the thread

http://www.jboss.com/index.html?module=bbop=viewtopict=93507

to get some more explanations about NotNull annotation and validation tag.

Pierre

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3988670#3988670

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3988670
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: some help with s:validate/ please...

2006-10-30 Thread atao
anonymous wrote : JSF only runs validatation (in this case the 
HibernateValidator via the s:validate/s:validateAll tags) if the input field 
isn't empty. To check that a field is not null / not an empty string you need 
to use the required=true attribute on the JSF component tag.
  | bsmithjj
  | Post

How to specify Hibernate validation with a field that may stay null? Sth like:

@Pattern(regex=^(|\\w(-| |\\w)*)$, 
message=#{messages['view.job.name.illegal.char']})   
  | 

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3981666#3981666

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3981666
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: some help with s:validate/ please...

2006-10-30 Thread atao
anonymous wrote : If the field is null the hibernate validator won't run
  | 

As I understood, required=true is needed to be sure that any hibernate 
validators specified will be run with s:validate(All).

But what about:
- if null value, I don't care (a value is optional)
- but if a value is written, it needs to respect a pattern, like no punctuation 
or no number inside the string

If I put a required=true to get the hibernate validation in the second case, 
then the first case is always rejected by jsf.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3981718#3981718

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3981718
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: some help with s:validate/ please...

2006-10-30 Thread atao
anonymous wrote : In other words what I am saying is that all hibernate 
validators work as you describe EXCEPT @NotNull/@Length(min=1).

OK.

After some more trials, I found that with no required=true and:
- @NotNull, the null value is accepted!
- any other hibernate validation which assumes a non null string, as 
@Length(min=1), a exception is generated and uncaught.

For exemple with a null input : 
- ^\\w*$ will be fine
- ^\\w+$ will throw an uncaught exception 

Petemuir, thanks for help.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3981755#3981755

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3981755
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


  1   2   >