[JBoss-user] [JBoss Seam] - @Out(jected) list Scope problem

2006-07-05 Thread superfis
Hello,

  I've got a code as shown below.

Seam action (using in long running conversation):
@Stateful
  | @Name(action)
  | class ActionImpl implements Action {
  | ...
  |  @Out( required = false, scope = ScopeType.EVENT )
  |  private ListSomeBean someList
  | 
  |  @Factory(someList)
  |  public void someListFactory {
  |// hiere the list is filling up
  |someList = ...
  |  }
  | }


There is also xhtml somePage page which uses someList variable stored in EVENT 
context. When I invoke somePage page first time, someList list is filling by 
factory method and it's ok. EVENT scope is to provide values for one somePage 
display only. Another displaying this page should refreshing someList but it 
doesn't happen. 

I need refreshed data. How to solve this problem? It can't be refreshed (by 
factory method) even if I come back to this page from another one in the same 
conversation. 
It happens only if it's first showing somePage in new conversation.

Regards,
Slawek

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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3955481

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Seam] - Re: Something other than conversationId on URL

2006-06-29 Thread superfis
Hi,

I tried to change conversationId with some other name, but the only result 
was no ability to get into long-running conversation and in url there further 
existed ?conversationId=
I did it with todays CVS version of Seam.


Slawek

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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3954341

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Seam] - Re: Something other than conversationId on URL

2006-06-29 Thread superfis
My mistake. Sorry!

Slawek

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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3954345

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Seam] - Default interceptor (explicitly) in seam action bean

2006-06-05 Thread superfis
Hi,

For a long time I was trying to solve problem of not working bijection 
(http://www.jboss.com/index.html?module=bbop=viewtopict=83804) and now I know 
how to work around it. 

Despite existance of META-INF/ejb-jar.xml file with content:
ejb-jar
  |assembly-descriptor
  |   interceptor-binding
  |  ejb-name*/ejb-name
  | interceptor-classorg.jboss.seam.ejb.SeamInterceptor/interceptor-class
  |   /interceptor-binding
  |/assembly-descriptor
  | /ejb-jar

Jboss-4.0.4GA ignores it (I suppose) and bijections in seam actions work 
incorrectly. Only when I added @Interceptors( SeamInterceptor.class ) 
annotation into these beans, it began working correctly.

How to persuade Jboss-AS to take ejb-jar.xml file into consideration?

Regards, Slawek

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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3949017


___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Seam] - Re: Injection doesn't work during TestNG test

2006-06-02 Thread superfis
Hi. 

Doscouraged @In(jection) problem I prepared simple app dedicated to be focused 
on this problem only. 
After I started my test app within Jboss AS, results terrified me ;) ... I 
can't understand why it doesn't work.

Seam action bean:

@Stateful
  | @Name( showAction )
  | // @Intercept( InterceptionType.ALWAYS ) // added to check if it could help
  | public class ShowActionBean implements ShowAction {
  | 
  |// this doesn't work
  |@In( create = true )
  |@Out
  |private TestAction testAction;
  | 
  |@Begin( join = true )
  |public String go( ) {
  | 
  |  // this solution works
  |  // testBean = (Test) Contexts.getSessionContext( ).get( testBean );
  | 
  |   System.out.println( id= + testBean.getId( ) );
  |   System.out.println( name= + testBean.getName( ) );
  |   return next;
  |}
  | 
  |@Destroy
  |@Remove
  |public void destroy( ) {
  |}
  | 
  | }


Back bean:

@Stateful
  | @Name( testBean )
  | public class TestBean implements Test {
  | 
  |private int id;
  |private String name;
  | 
  |public int getId( ) {
  |   return id;
  |}
  | 
  |public void setId( int id ) {
  |   this.id = id;
  |}
  | 
  |public String getName( ) {
  |   return name;
  |}
  | 
  |public void setName( String name ) {
  |   this.name = name;
  |}
  | 
  |@Destroy
  |@Remove
  |public void destroy( ) {
  |}
  | 
  | }

I've got created jsf site where are 2 text inputs and submit action performing 
showAction.go( ) method. 

When I fill up text inputs on the site and click submit button, I receive 
Caused by: java.lang.NullPointerException in go( ) method for 
System.out.println( id= + testBean.getId( ) ) line.
When I use testBean = (Test) Contexts.getSessionContext( ).get( testBean ), 
everything works correctly and I have received testBean from CONVERSATION 
context. 

How to make @In(jections) working?

Regards, Slawek

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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3948633


___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Seam] - Seam can't see @Remove @Destroy method

2006-05-27 Thread superfis
Hi,

What might be the reason of: 

 [testng] java.lang.IllegalArgumentException: Stateful session bean component 
should have a method marked @Remove @Destroy: wizardStartAction
  |[testng] at 
org.jboss.seam.Component.checkDestroyMethod(Component.java:230)
  |[testng] at org.jboss.seam.Component.init(Component.java:186)
  |[testng] at org.jboss.seam.Component.init(Component.java:151)
  |[testng] at org.jboss.seam.Component.init(Component.java:146)
  |[testng] at org.jboss.seam.Component.init(Component.java:141)
  |[testng] at 
org.jboss.seam.init.Initialization.addComponent(Initialization.java:290)
  |[testng] at 
org.jboss.seam.init.Initialization.addComponents(Initialization.java:252)
  |[testng] at 
org.jboss.seam.init.Initialization.init(Initialization.java:109)
  |[testng] at org.jboss.seam.mock.SeamTest.init(SeamTest.java:321)
  |[testng] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  |[testng] at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  |[testng] at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  |[testng] at java.lang.reflect.Method.invoke(Method.java:585)
  |[testng] at 
org.testng.internal.MethodHelper.invokeMethod(MethodHelper.java:552)
  |[testng] at 
org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:318)
  |[testng] at 
org.testng.internal.Invoker.invokeConfigurations(Invoker.java:152)
  |[testng] at 
org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:88)
  |[testng] at org.testng.TestRunner.privateRun(TestRunner.java:682)
  |[testng] at org.testng.TestRunner.run(TestRunner.java:566)
  |[testng] at org.testng.SuiteRunner.privateRun(SuiteRunner.java:220)
  |[testng] at org.testng.SuiteRunner.run(SuiteRunner.java:146)
  |[testng] at org.testng.TestNG.createAndRunSuiteRunners(TestNG.java:713)
  |[testng] at org.testng.TestNG.runSuitesLocally(TestNG.java:676)
  |[testng] at org.testng.TestNG.run(TestNG.java:444)
  |[testng] at org.testng.TestNG.privateMain(TestNG.java:803)
  |[testng] at org.testng.TestNG.main(TestNG.java:745)


My class:


  | @Stateful
  | @Name( wizardStartAction )
  | @Scope( ScopeType.CONVERSATION )
  | @Conversational(ifNotBegunOutcome = startWizard)
  | //@Interceptors( value = SeamInterceptor.class )
  | public class WizardStartActionBean implements Serializable, 
WizardStartAction {
  | ...
  |   @Destroy
  |@Remove
  |public void destroy( ) {
  |}
  | 

and @Local wizardStartAction interface with this method also.

Seam can't see that I have method marked @Remove @Destroy from the beginning of 
existance of Seam action class. Recently everything was ok with this class 
until latest jars updating to newest ones (from CVS).

How to solve this problem?

Regards, Slawek

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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3947102


---
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnkkid=107521bid=248729dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Seam] - Re: Seam can't see @Remove @Destroy method

2006-05-27 Thread superfis
[EMAIL PROTECTED] wrote : Add the method to the local interface.
It seems to be added correctly. Method exists in local interface all the time 
and recently it was working. 


[EMAIL PROTECTED] wrote : Btw, SFSBs don't need to implement Serializable, 
that is implicit.
Thank you for information.

Regards, Slawek

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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3947116


---
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnkkid=107521bid=248729dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Seam] - Injection doesn't work during TestNG test

2006-05-26 Thread superfis
Hi,

When I put my seam action bean into testng test, I can see that my bean isn't 
being injected. 

Snippet of my seam action bean:

   
  | @Stateful
  | @Name( wizardCityAction )
  | @Conversational( ifNotBegunOutcome = wizardStart )
  | public class WizardCityActionBean implements Serializable, WizardCityAction 
{
  | [EMAIL PROTECTED]( create = true )@Out
  |private WizardBackBeans backBeans;
  | ...
  | 

and part of my test code:


  | ...
  | WizardBackBeans wbb = new WizardBackBeansBean( );
  | wbb.setCityId( 1 );Contexts.getConversationContext( ).set( 
backBeans, wbb );WizardCityAction wca = (WizardCityAction) 
Component.getInstance( wizardCityAction, true );
  | ...
  | 

I tried to configure environment as it has been done in Seam examples. 
Debugging shows that there is backBeans == null in my seam bean.
What's wrong with my code/settings?

Slawek

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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3946809


---
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnkkid=107521bid=248729dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Seam] - Re: 'Error during remote request' since 1.52 Seam revision

2006-04-13 Thread superfis
It seems as if it solved my problem also. Thanks a lot.

Slawek

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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3937104


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Seam] - 'Error during remote request' since 1.52 Seam revision

2006-04-11 Thread superfis
Hello,

 Until latest (1.52) Seam revision appeard, my project using Seam Remoting was 
working correctly. 

Now there is an error:
2006-04-11 10:35:51,718 DEBUG [org.jboss.seam.core.Manager] Storing 
conversation state: 3
2006-04-11 10:35:51,718 ERROR [org.jboss.seam.remoting.ExecutionHandler] Error 
during remote request
java.lang.NullPointerException
at org.jboss.seam.core.Manager.storeConversation(Manager.java:299)
at 
org.jboss.seam.remoting.ExecutionHandler.handle(ExecutionHandler.java:96)
at 
org.jboss.seam.remoting.SeamRemotingServlet.doPost(SeamRemotingServlet.java:54)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at 
org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(ExtensionsFilter.java:122)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at 
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at 
org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:54)
at 
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:174)
at 
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:524)
at 
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
at 
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
at 
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at 
org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
at java.lang.Thread.run(Thread.java:595)

How to solve this problem?

Slawek

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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3936528


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Seam] - Seam remoting + long-running conversation. Is it possible?

2006-04-06 Thread superfis
Hi,

  I tried to entangle @WebRemote method (SFSB) in long-running conversation by 
@Conversational annotation, but it didn't work. I'd been notised that there is 
no long-running conversation for @Conversational bean, and started new 
conversation.

Is it possible to keep remotely invoked methods in long-running conversation?


Slawek 

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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3935351


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Seam] - Re: Seam remoting + long-running conversation. Is it possibl

2006-04-06 Thread superfis
mirko27 wrote : You have to start llong-ronning conversation by @Begin 
annotation.
  | This means that no method of this bean cannot be used unless you have 
started long-running conversation for this bean.

Sorry for not complete explanation. I've got fiew SFSBs with actions in 
long-running conversation. First of these methods has @Begin and conversation 
lasts until remote action invocation (marked by @WebRemote). 

this is my bean:


  | @Stateful
  | @Name( selectSeat )
  | @Conversational( ifNotBegunOutcome = ERR )
  | @Interceptors( SeamInterceptor.class )
  | public class SelectSeatAction implements Serializable, SelectSeat {
  | 
  |private static final long serialVersionUID = 1L;
  | 
  |@PersistenceContext( type = PersistenceContextType.EXTENDED )
  |private EntityManager cinemaDatabase;
  | 
  |private SetSeat selectedSeats = new HashSetSeat( );
  | 
  |@Out( scope = ScopeType.CONVERSATION )
  |Seat seat;
  | 
  | 
  |@Begin( join = true )
  |public String select( String place ) {
  | 
  |   this.seat = (Seat) cinemaDatabase.createQuery( from Seat where row 
|| ',' || number = :place ).setParameter(
  | place, place ).getSingleResult( );
  | 
  |   selectedSeats.add( seat );
  | 
  |   return seat.getState( ).toString( );
  |}
  | 
  |@Destroy
  |@Remove
  |public void destroy( ) {
  | 
  |}
  | }
  | 

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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3935356


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Seam] - Re: Seam remoting + long-running conversation. Is it possibl

2006-04-06 Thread superfis
I've put wrong version, correct code is without @Begin( join = true ) line:


  | @Stateful
  | @Name( selectSeat )
  | @Conversational( ifNotBegunOutcome = ERR )
  | @Interceptors( SeamInterceptor.class )
  | public class SelectSeatAction implements Serializable, SelectSeat {
  | 
  |private static final long serialVersionUID = 1L;
  | 
  |@PersistenceContext( type = PersistenceContextType.EXTENDED )
  |private EntityManager cinemaDatabase;
  | 
  |private SetSeat selectedSeats = new HashSetSeat( );
  | 
  |@Out( scope = ScopeType.CONVERSATION )
  |Seat seat;
  | 
  | 
  |public String select( String place ) {
  | 
  |   this.seat = (Seat) cinemaDatabase.createQuery( from Seat where row 
|| ',' || number = :place ).setParameter(
  | place, place ).getSingleResult( );
  | 
  |   selectedSeats.add( seat );
  | 
  |   return seat.getState( ).toString( );
  |}
  | 
  |@Destroy
  |@Remove
  |public void destroy( ) {
  | 
  |}
  | }
  | 

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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3935357


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Seam] - Re: Seam remoting + long-running conversation. Is it possibl

2006-04-06 Thread superfis
After my short investigation (based on chatroom) I know there is necessity to 
set up conversationId, like:

...
  | SeamRemote.getContext().setConversationId(context.getConversationId());
  | ...

This conversationId comes with response and I can read it from context in 
callback javascript function. It works (I suppose) only if long-running 
conversation starts in remote action (like in chatroom) and first time I can 
read conversationId is right after first remote action invocation. What about 
long-running conversation beginning in different action bean? How to receive 
conversationId value, the remote action should be invoke with?

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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3935428


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Seam] - Re: Seam remoting + long-running conversation. Is it possibl

2006-04-06 Thread superfis
Thank you Gavin very much. It has solved my problem. 

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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3935452


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Seam] - Re: Set iteration error: org.hibernate.collection.Persistent

2006-04-03 Thread superfis
[EMAIL PROTECTED] wrote : You should use a h:dataTable or some custom JSF 
control, or, if you are using facelets, try using ui:repeat.

I've used ui:repeat with code:

table
  | ui:repeat value=#{allSeats} var=row
  | tr
  | ui:repeat value=#{row} var=seat
  | tdspan class=seat 
id=#{seat.place}#{seat.number}/span/td
  | 
  | /ui:repeat
  | /tr
  | /ui:repeat
  | /table
  | 
but it doesn't work I expected. Result looks like that:

table
  | tr
  | tdspan class=seat id=1,11/span/td
  | /tr
  | tr
  | tdspan class=seat id=1,22/span/td
  | /tr
  | ...
  | /table

Why doesn't it work as loop in loop (  tag repeats too often)? I've exchanged 
WEB-INF\lib\jsf-facelets.jar file with existed in Seam examples to have newest 
one and I'm not sure it's enough.

How to overcome it?

cheers,
Slawek


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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3934253


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Seam] - Re: Set iteration error: org.hibernate.collection.Persistent

2006-03-31 Thread superfis
[EMAIL PROTECTED] wrote : It is usually dodgy to try and use JSTL tags like 
c:forEach in JSF. They just don't work very well.

What is suggested to be used insted of JSTL tags? How to solve problem like 
mine, which looks like this:

In my SFSB there is representation of chairs in cinema and each Seat instance 
has row and number values:
...
@DataModel
ListList allSeats; 
...

and I would like to put seats in 2 dimensions on MyFaces site. Mostly natural 
for me is to use c:forEach in c:forEach and navigate in 2 dims but this tag 
doesn't work correctly with JSF.

What's the correct way to do that?

Regards, Slawek

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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3933998


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Seam] - Long Running Conversation with Seam Remoting?

2006-03-30 Thread superfis
Hi,

  I'm trying to use remoting in my Seam project and I based on 
remoting/helloworld example delivered with Seam. 

The question is it is possible to keep @WebRemote function calls as a part of 
long running conversation and it is possible to use injected (outjected) 
objects during remote function performing?

Thank you in advance,
S?awek

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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3933653


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Seam] - Testing with @Test(groups=...) annotation

2006-03-18 Thread superfis
Hello,

  I tried to test Seam action class using testng annotation @Test(groups=all).

Snip of my code:


public class ShowVersionTest extends SeamTest {

@Test(groups = all)
public void testVersion( ) throws Exception {

new Script( ) {

@Override
protected void invokeApplication( ) {
...


It didn't work properly (SeamTest.init() method hasn't been performed before my 
test class). After I'd removed groups parameter, test passed.

Is there any way to keep groups parameter with @Test annotation for Seam tests?

Cheers.
Slawek

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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3931150


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Seam] - Simple Seam app and TestNG problem

2006-03-15 Thread superfis
Hello everyone,

 It's my first post on this forum and I'm comming with question about how to 
configure TestNG to perform tests correctly. I've created almost the same 
folders, resources and libs arrangement as in Seam's examples and created one 
simple Seam statless bean and test for it. 
Every time I start tests I receive:


   [testng] Creating 
C:\Temp\eclipse-workspace\cinema\working-copy\test-output\All.html
   [testng] Creating 
C:\Temp\eclipse-workspace\cinema\working-copy\test-output\testng-failed.xml
   [testng] FAILED: testVersion
   [testng] java.lang.NullPointerException
   [testng] at org.jboss.seam.mock.SeamTest$Script.run(SeamTest.java:159)
   [testng] at 
pl.squap.cinema.seam.ShowVersionTest.testVersion(ShowVersionTest.java:23)
   [testng] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   [testng] at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
   [testng] at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   [testng] at java.lang.reflect.Method.invoke(Method.java:585)
   [testng] at 
org.testng.internal.MethodHelper.invokeMethod(MethodHelper.java:536)
   [testng] at org.testng.internal.Invoker.invokeMethod(Invoker.java:400)
   [testng] at 
org.testng.internal.Invoker.invokeTestMethods(Invoker.java:680)
   [testng] at 
org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:92)
   [testng] at org.testng.TestRunner.privateRun(TestRunner.java:624)
   [testng] at org.testng.TestRunner.run(TestRunner.java:515)
   [testng] at org.testng.SuiteRunner.privateRun(SuiteRunner.java:221)
   [testng] at org.testng.SuiteRunner.run(SuiteRunner.java:147)
   [testng] at org.testng.TestNG.createAndRunSuiteRunners(TestNG.java:693)
   [testng] at org.testng.TestNG.runSuitesLocally(TestNG.java:656)
   [testng] at org.testng.TestNG.run(TestNG.java:424)
   [testng] at org.testng.TestNG.privateMain(TestNG.java:783)
   [testng] at org.testng.TestNG.main(TestNG.java:725)


Is there an obvious mistake I've made or it's not so simple?
I'm beginning with Seam (ejb3 and MC also) thuse it's not so simple for me 
currently.

Thanks,
Slawek

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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3930303


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user