[jboss-user] [JBoss Seam] - Re: @Factory annotation

2007-07-09 Thread harpritt
Cheers Ellen 

Lol i was copying and pasting like made ... lol i must have missed that 
one its was fine in my app though..

lol... cheers dude

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

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


[jboss-user] [JBoss Seam] - Re: @Factory annotation

2007-07-08 Thread [EMAIL PROTECTED]
Take a look at s:selectItems, and the ui example - it gives you cleaner 
ui/backing layer separation. 

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

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


[jboss-user] [JBoss Seam] - Re: @Factory annotation

2007-07-08 Thread harpritt
Cheers man ill give it a look 

Any idea about the use of multiple @factory annotations in a stateless bean?

Cheers again Pete

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

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


[jboss-user] [JBoss Seam] - Re: @Factory annotation

2007-07-08 Thread [EMAIL PROTECTED]
Post what you are trying to do with @Factory, then I can tell you what is wrong 
:)

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

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


[jboss-user] [JBoss Seam] - Re: @Factory annotation

2007-07-08 Thread harpritt
That is some VERY cool stuff! especially the 

framework:entity-query name=continents ejbql=select c from Continent c / 

in components.xml 

... im going to look up to see if i can use an XML file to populate the 
entity rather than a ejbql query

VERY VERY FLIPPING COOL I LOVE THIS STUFF 



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

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


[jboss-user] [JBoss Seam] - Re: @Factory annotation

2007-07-08 Thread harpritt
Hi Pete

I was trying to do this... below

the only difference between this and what i actually did was that my multiple 
@Factory annotations were in a stateless session bean I was calling all 3 
from a single UI page. The crappy problem i had was that only one of the 3 
@Factory variables got added to the scope. and seam ui complained about a 
needing a not null variable... I wish i could explain it better  



  | 
  | import org.jboss.seam.annotations.Factory;
  | import org.jboss.seam.annotations.Name;
  | 
  | @Name(UiStuff)
  | public class UiStuff
  | {
  |
  |@Factory(ages)
  |public int[] getAges() {
  |   int[] ages = {18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30};
  |   return ages;
  |}
  | 
  |@Factory(names)
  |public String[] getNames() {
  |   int[] names= {jim,john,tom,mick,bodger,badger};
  |   return names;
  |}
  | 
  |@Factory(reallyRandom)
  |public String[] getRandomness() {
  |   int[] randomIt= {john ketly,is,a,weather,man};
  |   return randomIt;
  |}
  | 
  | }

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

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


[jboss-user] [JBoss Seam] - Re: @Factory annotation

2007-07-08 Thread [EMAIL PROTECTED]
It should work just fine like this, or in a SLSB. Sounds like its working now 
anyway.  Post back if you have more problems.

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

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


[jboss-user] [JBoss Seam] - Re: @Factory annotation

2007-07-08 Thread harpritt
nice one pete

you rock

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

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


[jboss-user] [JBoss Seam] - Re: @Factory annotation

2007-07-08 Thread enzhao
maybe the code 
  | int[] names= {jim,john,tom,mick,bodger,badger};
  | 

should be like 
  | String[] names= {jim,john,tom,mick,bodger,badger};
  | 

And the int[] type in your first method is a bit tricky if you want to do null 
testI would like to use the Integer[] or better yet, List in your case

Regards,
Ellen

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

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


[jboss-user] [JBoss Seam] - Re: @Factory annotation

2007-07-08 Thread enzhao
I mean List. :-)

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

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


[jboss-user] [JBoss Seam] - Re: @Factory annotation

2007-07-08 Thread enzhao

  | ListInteger
  | 

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

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