[jboss-user] [Installation, Configuration DEPLOYMENT] - HowDoIConfigureAnMDBToTalkToARemoteQueue

2009-03-20 Thread tonylmai
I am trying to port my application from JBoss 4.2.1 to 5.0.Beta1. I am running into a problem with configuration for an MDB to access a remote queue. I had my MDB configured in JBoss 4.2.1 using the example from a great blog on JBoss' wiki HowDoIConfigureAnMDBToTalkToARemoteQueue

[jboss-user] [JBoss Seam] - Re: Legacy code: Integrating with existing servlet

2008-02-08 Thread tonylmai
I have put the specific prefix but I still can't get it to work. web:context-filter url-pattern=http://localhost:8080/trading/getchart/; / | My servlet is as followed: public class GetChart extends HttpServlet { | private static final long serialVersionUID = -6087384050664740696L;

[jboss-user] [JBoss Seam] - Re: Legacy code: Integrating with existing servlet

2008-02-08 Thread tonylmai
You were right on with the URL there Dustin. With that fix, the app is up and running now. Thank you for your advice. -Tony View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4127984#4127984 Reply to the post :

[jboss-user] [JBoss Seam] - Limiting maximum instance of SFSB?

2008-02-08 Thread tonylmai
Hello, One of my component in Seam is used frequently by all logged in users. It is implemented as stateful session bean. Q: How do I specify the min and max instances of this bean allowed in the pool as well as the passivated time? Thanks, -Tony View the original post :

[jboss-user] [EJB/JBoss] - How to specify maximum instances allowed for a SFSB

2008-02-08 Thread tonylmai
Hello, I am looking for an example or parameter on how to specify the min and max instances of SFSB allowed in a container. So far, I only found snippet of configuration like this: MinimumSize10/MinimumSize | MaximumSize100/MaximumSize |

[jboss-user] [JBoss Seam] - Re: Obtaining user's host information

2008-02-05 Thread tonylmai
That worked. Thanks. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4126766#4126766 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4126766 ___ jboss-user mailing list

[jboss-user] [JBoss Seam] - Obtaining user's host information

2008-02-04 Thread tonylmai
Hello, Is there a way I can retrieve user's host information (i.e. IP address, browser's version, etc...) before or after the authentication? Thanks -Tony View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4126409#4126409 Reply to the post :

[jboss-user] [JBoss Seam] - Re: Supporting multiple message bundle?

2008-01-29 Thread tonylmai
Uggg, Sorry folks. I failed to modify the build.xml file to deploy the new bundle file. The whole time the message was right in front of me saying that it could not find the resource bundle. Should have taken it exactly the way it said. Duh. Thanks -Tony View the original post :

[jboss-user] [JBoss Seam] - Supporting multiple message bundle?

2008-01-29 Thread tonylmai
Hi, Is it possible to have multiple message bundles within a Seam app? I would like to isolate licensee's information on a different resource file. I've tried the following and it failed: message-bundlemessages/message-bundle | resource-bundle |

[jboss-user] [JBoss Seam] - Re: Supporting multiple message bundle?

2008-01-29 Thread tonylmai
Still not working for me. :( I have tried all of the followings: In my pages.xml: anonymous wrote : page view-id=/login.xhtml bundle=brokerage / As well as in my login.xhtml anonymous wrote : ui:composition xmlns=http://www.w3.org/1999/xhtml; |

[jboss-user] [JBoss Seam] - Re: Supporting multiple message bundle?

2008-01-29 Thread tonylmai
Thanks Chris. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4124637#4124637 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4124637 ___ jboss-user mailing list

[jboss-user] [JBoss Seam] - Legacy code: Integrating with existing servlet

2008-01-20 Thread tonylmai
Hi all, We have a chart library that we use to serve images for our application. To integrate with our Seam app, we wrote a simple servlet that invokes the library and return a URL of the created image. The library requires a datasource and user ID so I use dependency injection. However,

[jboss-user] [JBoss Seam] - Re: Legacy code: Integrating with existing servlet

2008-01-20 Thread tonylmai
I only enabled the servlet filter suggested in the document. anonymous wrote : web:context-filter url-pattern=* / I must be missing something. The document mentioned that I need to pass along the conversationId but I am sure how to do that. Any suggestion? Thanks View the original post :

[jboss-user] [JBoss Seam] - Re: Legacy code: Integrating with existing servlet

2008-01-20 Thread tonylmai
Component.getInstance(component Name) threw the following exceptions: anonymous wrote : java.lang.IllegalStateException: No application context active :( View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4121712#4121712 Reply to the post :

[jboss-user] [JBoss Seam] - Re: Legacy code: Integrating with existing servlet

2008-01-20 Thread tonylmai
BTW, cid is on the URL. Is that sufficient for the servlet filter or I need to do something more? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4121710#4121710 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4121710

[jboss-user] [JBoss Seam] - SocketClientInvoker disconnecting...

2008-01-18 Thread tonylmai
Hello, I have two Seam applications. One I was able to deploy on our Linux server without any problem. The other, I kept running on this error everytime: anonymous wrote : 2008-01-19 05:34:13,120 DEBUG [org.jboss.remoting.transport.socket.MicroSocketClientInvoker] SocketClientInvoker[144426c,

[jboss-user] [JBoss Seam] - Re: SocketClientInvoker disconnecting...

2008-01-18 Thread tonylmai
My apology. We changed the URI when we deployed the applications and I failed to update my bookmarks. Everything is working properly except when someone enters an invalid URL (like me :)) How do one capture such errors (invalid URLs) in JBoss anyway? -Tony View the original post :

[jboss-user] [JBoss Seam] - identifier 'authenticator' resolved to null

2007-12-18 Thread tonylmai
Hello all, I am trying to migrate my apps to Seam 2.0GA. Somehow, I am running into an exception where Seam could not look up my authenticator. So I created a new project with plain pages. I run into the same problem. Please help! Here is the exception in the log anonymous wrote :

[jboss-user] [JBoss Seam] - Re: identifier 'authenticator' resolved to null

2007-12-18 Thread tonylmai
Never mind folks. My bad in the build.xml. It did not copy over the classes in the model and action directories. Sorry about that. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4114016#4114016 Reply to the post :

[jboss-user] [JBoss Seam] - [STDERR] com.sun.facelets.compiler.TagLibraryConfig loadImpl

2007-10-26 Thread tonylmai
Hello all, I've just upgraded to Seam 2.0.0.CR3 and RichFaces 3.1.2. One of the page in the application no longer loads. I noticed the following errors in my log when I first load the application. anonymous wrote : 09:36:49,265 ERROR [STDERR] Oct 26, 2007 9:36:49 AM

[jboss-user] [JBoss Seam] - Can't run seam setup with Seam 2.0.0.CR2

2007-10-15 Thread tonylmai
Hi, I am trying to upgrade to Seam 2 CR2. When I tried to run the seam setup ant file, I got the following error: anonymous wrote : | D:\JBoss\jboss-seam-2.0.0.CR2seam setup | Buildfile: D:\JBoss\jboss-seam-2.0.0.CR2\seam-gen\build.xml | | init: | [artifact:dependencies]

[jboss-user] [JBoss Seam] - Intercommunication between Seam's applications?

2007-10-11 Thread tonylmai
Hi all, I have a BackOffice application that contains multiple modules (i.e. Customer Support, Reporting, etc...) The requirements are called for a single sign-on (to the BackOffice app) and from the home page, users may navigate to different modules based on their permissions. The

[jboss-user] [JBoss Seam] - Re: Intercommunication between Seam's applications?

2007-10-11 Thread tonylmai
Preference I guess. My thinking is that since each module may have a life of its own, it would be easier to develop and maintain the modules separately. I am not ruling out the option of one big project. I just don't like big project. :-) View the original post :

[jboss-user] [JBoss Seam] - FacesMessage enqueued, but not displayed.

2007-09-07 Thread tonylmai
Hello, I have a simple login page and an Authenticator all based on code generated with Seam-gen. They used to work. And now I don't know which code I modified that resulted me with this problem. When the Authenticator caught an AuthenticationException, it would write to FacesMessage like the

[jboss-user] [JBoss Seam] - Invoking a Seam component method from pages.xml?

2007-09-06 Thread tonylmai
Hello, I have a few pages where the contents are fetched from a database. I would like to have these contents refreshed when the user return to these pages (within a session). I have a .refresh() method on Seam components that is used as the backing bean for these pages. I also have a

[jboss-user] [JBoss Seam] - Re: Invoking a Seam component method from pages.xml?

2007-09-06 Thread tonylmai
That worked. Thanks. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4081833#4081833 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4081833 ___ jboss-user mailing list

[jboss-user] [JBoss Seam] - Usage of TimeZone in Seam 2.0

2007-09-06 Thread tonylmai
I am migrating my apps from Seam 1.2.1GA to Seam 2.0 (last night build) and am running into a few exception. This particular one is about the new class org.jboss.seam.international.TimeZone. In my code, I did the following in a component that has th @Startup declaration. @Startup | public

[jboss-user] [JBoss Seam] - Re: General Performance concerns on presentation and busines

2007-09-06 Thread tonylmai
Seam may be promoting the unification of presentation and business layer into a single environment but does not limit us to this model. For some application, it may not a bad idea to unify these layers for simplicity sake. I use a service locator and a facade with RPC to communicate with the my

[jboss-user] [JBoss Seam] - Seam 2.0: Do we still need phase-listener in faces-config.xm

2007-09-06 Thread tonylmai
Hello, I've noticed the new faces-config.xml generated by seam-gen for 2.0 no longer put the following in the faces-config.xml lifecycle | phase-listenerorg.jboss.seam.jsf.TransactionalSeamPhaseListener/phase-listener |/lifecycle Is that no longer needed? Thanks -tony View the

[jboss-user] [JBoss Seam] - Seam 2.0: java.lang.OutOfMemoryError: PermGen space

2007-09-06 Thread tonylmai
Hello all, I have just completed porting my applications from Seam 1.2.1GA to Seam 2.0 (yesterday build). I had experienced PermGen memory space problem and hoped that it would go away with Seam 2.0. I now could not navigate around more than half a dozen pages before running into

[jboss-user] [JBoss Seam] - Re: Seam 2.0: Do we still need phase-listener in faces-confi

2007-09-06 Thread tonylmai
My bad. I went straight to and started reading the Seam Reference doc. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4081903#4081903 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4081903

[jboss-user] [JBoss Seam] - Re: Calling Seam's component from MDB thew java.lang.Illegal

2007-08-28 Thread tonylmai
Here is the stack trace: anonymous wrote : | java.lang.IllegalStateException: Do not start long-running conversations in direct calls to EJBs | at org.jboss.seam.contexts.Lifecycle.endCall(Lifecycle.java:75) | at

[jboss-user] [JBoss Seam] - Re: Calling Seam's component from MDB thew java.lang.Illegal

2007-08-28 Thread tonylmai
I removed the @TransactionAttribute(TransactionAttributeType.NOT_SUPPORTED) from the Seam's component and the error went away. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4078935#4078935 Reply to the post :

[jboss-user] [JBoss Seam] - Calling Seam's component from MDB thew java.lang.IllegalStat

2007-08-27 Thread tonylmai
Hello all, I am trying to call a Seam's component from a MDB and I ran into the following exceptions. Can someone tells me what it means and perhaps what could be done? Thanks -tony anonymous wrote : | java.lang.IllegalStateException: Do not start long-running conversations in direct calls

[jboss-user] [JBoss Seam] - Re: Calling Seam's component from MDB thew java.lang.Illegal

2007-08-27 Thread tonylmai
Hi Pete, Here is my Seam's component: @Scope(ScopeType.APPLICATION) | @Name(wcTickerPlant) | @Startup | @Restrict(#{identity.loggedIn}) | public class TickerPlant { | private MapString, Quote quotesMap = new ConcurrentHashMapString, Quote(); | ... | | @Create |

[jboss-user] [JBoss Seam] - Re: How to use EntityManager for SELECT COUNT(1)?

2007-08-16 Thread tonylmai
Thanks for all your help. You guys are the greatest. :-) View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4074989#4074989 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4074989 ___

[jboss-user] [JBoss Seam] - Re: Mixing JSP and Facelets in Seam?

2007-08-16 Thread tonylmai
Thanks guys. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4074994#4074994 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4074994 ___ jboss-user mailing list

[jboss-user] [JBoss Seam] - How to use declare/use namespace locally?

2007-08-15 Thread tonylmai
Hello, I am trying to use ILOG JViews Chart with Seam 1.2.1. I am running into prefix not bound to a namespace problem. anonymous wrote : XML Parsing Error: prefix not bound to a namespace | jvcf:chartView style=width:500 px; height:300 px;/jvcf:chartView where jvcf is defined

[jboss-user] [JBoss Seam] - How to use EntityManager for SELECT COUNT(1)?

2007-08-15 Thread tonylmai
First I'd like to apologize for posting a persistence question on this board. I've tried other boards but no one's home. I am desperate :-( I would like to perform a SELECT COUNT(1) FROM a table TableA but can't seem to get the SQL statement to work with EntityManager. The following code always

[jboss-user] [JBoss Seam] - Mixing JSP and Facelets in Seam?

2007-08-15 Thread tonylmai
Is it possible? One of the library I'd like to use (ILOG JViews) does not support Facelets. They do support JSF however. Is it possible to have one JSP page within Facelets pages? Thanks -tony View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4074655#4074655

[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - How to use EntityManager for SELECT COUNT(1)?

2007-08-14 Thread tonylmai
Hello, Would someone help me on how to perform a select count(1) from TableA? I have the following code but that it does not seem to work. int rowCnt= (Integer) em.createQuery(SELECT count(1) FROM TableA).getSingleResult(); I am using JBoss 4.2.1GA. Much appreciated. -tony View the

[jboss-user] [JBoss Seam] - Help with passing data back to the backing bean using Seam's

2007-08-02 Thread tonylmai
Hello all, Can someone help me to look through this piece of code in which I can't seem to pass a data back to the backing bean using Seam's EL. Perhaps the error is in my data model for the DataModelSelection. I have a page that display quotes that belong to an account which belongs to a

[jboss-user] [JBoss Seam] - pages.xml navigation rules?

2007-08-02 Thread tonylmai
Hi, I have the following method declared in one of the backing bean: @Name(wcQuotesMgr) | public class QuotesManagerBean implements QuotesManager { | public String viewNews(Quote quote) { | return success; | } | ... | } | ... How would I tell the pages.xml to

[jboss-user] [JBoss Seam] - Is MyFaces tomahawk lib compatible with Seam 1.2.1/RichFaces

2007-08-01 Thread tonylmai
Hello all, I have a need to use t:column from MyFaces tomahawk lib. Does anyone have a problem using MyFaces' tomahawk lib with Seam 1.2.1 with RichFaces 3.0.1 and AJAX4JSF 1.1.1? Thanks -tony View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4069802#4069802

[jboss-user] [EJB/JBoss] - Re: org.jnp.interfaces.NamingContext throwing java.lang.NoSu

2007-07-25 Thread tonylmai
I am upgrading from JBoss 4.0.5GA to 4.2.1.GA. I am also using Seam 1.2.1GA. The server came up fine. It's the client that I am trying to bring up that threw this exception. My client references all the jar files reside in the jboss-4.2.1.GA\client directory. Perhaps these jars conflict with

[jboss-user] [EJB/JBoss] - Re: org.jnp.interfaces.NamingContext throwing java.lang.NoSu

2007-07-25 Thread tonylmai
I still run into the same exception when my client referenced only jbossall-client.jar. Help please. Thanks -tony View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4067507#4067507 Reply to the post :

[jboss-user] [EJB/JBoss] - Re: org.jnp.interfaces.NamingContext throwing java.lang.NoSu

2007-07-25 Thread tonylmai
I think someone else also had this problem. http://www.jboss.com/index.html?module=bbop=viewtopicp=4049229#4049229 View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4067512#4067512 Reply to the post :

[jboss-user] [JBoss Seam] - Is org.jboss.logging.Logger in JBoss 4.2.1 compatible with S

2007-07-25 Thread tonylmai
Hello all, I am running into weird logger incompatible version after upgrading my JBoss AS to JBoss 4.2.1GA (from 4.0.5GA). I am still using Seam 1.2.1GA. No change in my code. Yet my client is now complaining that it could not perform a Context.lookup(). It threw an exception at: anonymous

[jboss-user] [EJB/JBoss] - Re: HELP: Logger incompatatible version for client with 4.2.

2007-07-25 Thread tonylmai
BTW, the exception is as followed: anonymous wrote : java.lang.NoSuchFieldError: TRACE And the stacktrace where the exception occurred: anonymous wrote : Log4jLoggerPlugin.isTraceEnabled() line: 85 | Logger.isTraceEnabled() line: 122 | NamingContext.lookup(Name) line: 622 |

[jboss-user] [JBoss Seam] - Re: How to setup Seam 1.2.1 with JBoss 4.2.1?

2007-07-25 Thread tonylmai
I did not encounter any problem with Seam's app running in JBoss 4.2.1GA. I do have problem using external (EJB3) client connecting to JBoss AS 4.2.1 server however. Otherwise, my webpages are served correctly. View the original post :

[jboss-user] [EJB 3.0] - HELP: Logger incompatatible version for client with 4.2.1GA

2007-07-25 Thread tonylmai
Does anyone know what JBoss jar to use for a client to connect to JBoss AS 4.2.1. I am having incompatible version problem with Logger. It's frustrating since this is such a prerequisite for using JBoss AS and the jars in the client directory is not working out as expected. Please help.

[jboss-user] [EJB/JBoss] - HELP: Logger incompatatible version for client with 4.2.1GA

2007-07-25 Thread tonylmai
Does anyone know what JBoss jar to use for a client to connect to JBoss AS 4.2.1. I am having incompatible version problem with Logger. It's frustrating since this is such a prerequisite for using JBoss AS and the jars in the client directory is not working out as expected. Please help.

[jboss-user] [JBoss Seam] - Re: Is org.jboss.logging.Logger in JBoss 4.2.1 compatible wi

2007-07-25 Thread tonylmai
I am using Seam 1.2.1GA anonymous wrote : 12:29:06,046 INFO [ServletContextListener] Welcome to Seam 1.2.1 | I dropped in the latest log4j.jar from JBoss 4.2.1GA build in front of the client's classpath. Made no differences. I am starting to doubt if it's Seam at all since I have Seam's

[jboss-user] [EJB 3.0] - Re: logger problem with jboss 4.2

2007-07-25 Thread tonylmai
Did you get this problem resolve? I too run into this problem and don't know how to solve it. Let me know if you have a fix for it. Thanks View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4067553#4067553 Reply to the post :

[jboss-user] [JBoss Seam] - How to setup Seam 1.2.1 with JBoss 4.2.1?

2007-07-24 Thread tonylmai
Hello all, I've just upgraded JBoss to 4.2.1. How do I get configure Seam 1.2.1GA to work with JBoss 4.2.1? I remember reading some postings about not needing to run jems installer. Can someone help? Thanks View the original post :

[jboss-user] [JBoss Seam] - Re: How to setup Seam 1.2.1 with JBoss 4.2.1?

2007-07-24 Thread tonylmai
Search Engine on JBoss does not search Seam's forums properly. Aka I could not search for a posting I read a while back regarding setting up Seam with JBoss 4.2. I tried to go back reading pages after pages on Seam's forum. I gave up after reaching July 14. :( So much time wasted on this

[jboss-user] [JBoss Seam] - Re: How to setup Seam 1.2.1 with JBoss 4.2.1?

2007-07-24 Thread tonylmai
I am not there yet. I still have to upgrade all the libs in my projects. Will let you know when I find out. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4067259#4067259 Reply to the post :

[jboss-user] [EJB/JBoss] - JUnit exception thrown when doing a context.lookup

2007-07-24 Thread tonylmai
Hello all, I've just upgrade my JBoss to 4.2.1GA and am running into a weird exception. When I am doing a Context.lookup(name) I ran into the a java.lang.reflect.InvocationTargetException exception (within Eclipse): anonymous wrote :(java.lang.NoSuchFieldError)

[jboss-user] [EJB/JBoss] - org.jnp.interfaces.NamingContext throwing java.lang.NoSuchFi

2007-07-24 Thread tonylmai
Hello all, I am using JBoss 4.2.1GA. When I tried to perform a Context.lookup(), I ran into a java.lang.NoSuchFieldError: TRACE exception in the following line: org.jnp.interfaces.NamingContext:622 | boolean trace = log.isTraceEnabled(); where log is of type

[jboss-user] [EJB/JBoss] - Re: JUnit exception thrown when doing a context.lookup

2007-07-24 Thread tonylmai
I traced it down to a NamingContext within JBoss using the wrong Logger. I am posting a new posting for this question. Thanks -tony View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4067285#4067285 Reply to the post :

[jboss-user] [JBoss Seam] - Re: How to invoke a Seam component with h:selectBooleanCheck

2007-07-13 Thread tonylmai
That works. Thanks View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4064101#4064101 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4064101 ___ jboss-user mailing list

[jboss-user] [JBoss Seam] - How to invoke a Seam component with h:selectBooleanCheckbox

2007-07-12 Thread tonylmai
Hello all, Is there a way for me to invoke a Seam's component method (Stateful EJB) when user clicks on a check box (perhaps modeled as h:selectBooleanCheckbox)? Thanks -tony View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4063791#4063791 Reply to the post :

[jboss-user] [JBoss Seam] - Strange symptom with rich:dataTable used with @DataModelSele

2007-06-19 Thread tonylmai
Hello all, I've been using rich:dataTable together with Seam's @DataModelSelection for several pages in my app without any problem. However, one of the pages I have displayed weird symptom where regardless of which row I clicked on, the @DataModelSelection would always default to the last row

[jboss-user] [JBoss Seam] - h:messages for Authenticator

2007-06-12 Thread tonylmai
Hello all, I am trying to display a customized error message should the authenticate method failed to authenticate a user. I.e. @Name(authenticator) | public class Authenticator { | @In | private FacesMessages facesMessages; | ... | public boolean authenticate() { |

[jboss-user] [JBoss Seam] - Re: h:messages for Authenticator

2007-06-12 Thread tonylmai
You're right. However, after I've added a panel with id for the message, it's still not displayed. a4j:outputPanel id=loginPanel | h:panelGrid rendered=#{! empty facesContext.maximumSeverity} | h:messages for=loginPanel styleClass=message / |

[jboss-user] [JBoss Seam] - Forced login?

2007-06-11 Thread tonylmai
I would like users to login before they may view any pages on my application. I tried the following config in the pages.xml: page view-id=* login-required=true/ Yet I was able to type the URL directly on the web browser and got to any pages I wanted. What should I have done differently?

[jboss-user] [JBoss Seam] - Re: Forced login?

2007-06-11 Thread tonylmai
OK I found an overlapped rule. Once I removed it, I now faced the following server redirecting problem: anonymous wrote : The page isn't redirecting properly | Firefox has detected that the server is redirecting the request for this address in a way that will never complete. | | *

[jboss-user] [JBoss Seam] - Re: Forced login?

2007-06-11 Thread tonylmai
My bad. I thought we could use wild card for login requirements. Once I specified individual pages (quite tedious) , they seemed to work fine. Thanks View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4053305#4053305 Reply to the post :

[jboss-user] [EJB 3.0] - How to kick off a task as soon as the EJB app is up and runn

2007-06-01 Thread tonylmai
Hi all, When my EJB app is up, I would like it kick off a recovery task immediately and not waiting for the first business method to be invoked. Is there such a method or annotation that I could use to do such thing? My understanding is that @PostConstruct will be invoked when the (SLSB) bean

[jboss-user] [EJB 3.0] - Re: How to kick off a task as soon as the EJB app is up and

2007-06-01 Thread tonylmai
BTW, I am using EJB 3 with JBoss 4.0.5GA. Thanks View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4050602#4050602 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4050602 ___

[jboss-user] [JBoss Seam] - Re: How to build Seam from CVS snapshot?

2007-05-25 Thread tonylmai
Thanks View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4048765#4048765 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4048765 ___ jboss-user mailing list jboss-user@lists.jboss.org

[jboss-user] [EJB 3.0] - Re: Passing array of enum to SELECT * WHERE clause

2007-05-23 Thread tonylmai
I am using EJB3 with JBoss 4.0.5GA. You save my day jefec. Thanks. And I thought this board was dead. ;) View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4048002#4048002 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4048002

[jboss-user] [JBoss Seam] - How to build Seam from CVS snapshot?

2007-05-23 Thread tonylmai
Hi all, I am learning Seam (admittedly quite slowly :0) ) but I think I am at a point where I want to build from the latest snapshot. Can someone show me how to build Seam + RichFaces from the CVS (including how to get the source)? Could not find the link from Jboss.com site. Thanks View the

[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Passing array of enum to SELECT * WHERE clause

2007-05-22 Thread tonylmai
Hello, I am trying to pass an array of enum to EJB EL as followed: em.createQuery(FROM OrderInfo o WHERE o.ordStatus IN (:ordStatus)) | .setParameter(ordStatus, ordStatsStr) Note that o.ordStatus is of type enum OrderStatus. I've tried to set ordStatus as String (i.e.

[jboss-user] [EJB 3.0] - Passing array of enum to SELECT * WHERE clause

2007-05-22 Thread tonylmai
Hello, I am trying to pass an array of enum to EJB QL as followed: em.createQuery(FROM OrderInfo o WHERE o.ordStatus IN (:ordStatus)) | .setParameter(ordStatus, ordStatsStr) Note that o.ordStatus is of type enum OrderStatus. I've tried to set ordStatus as String (i.e.

[jboss-user] [JBoss Seam] - Supressing the welcoming message: Welcome, #(identity.usern

2007-05-21 Thread tonylmai
I do not want this message to be displayed on my h:message after login. Does anyone know how to suppress it or remove it totally? I do want to keep the h:message, however. thanks -tony View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4047409#4047409 Reply to

[jboss-user] [JBoss Seam] - Attribute immediate and renderResponse in Seam

2007-05-18 Thread tonylmai
Hello, I have an entry form that has s:validateAll. One of the button is to clear the entry form. However, upon invoking the clearEntry button, the validator would complain about the invalid input on the fields. I tried to use attribute immediate=true on all the to-be-validated fields as well

[jboss-user] [JBoss Seam] - What is com.sun.facelets.FaceletException: EL Expression Unb

2007-05-16 Thread tonylmai
Hello, I encountered an encrypted exception that I do not understand. My app threw an exception as followed: anonymous wrote : com.sun.facelets.FaceletException: EL Expression Unbalanced: ... #{srchMgr.searchedQuote.dayChangePerc) | at

[jboss-user] [JBoss Seam] - s:convertEnum usage

2007-05-16 Thread tonylmai
Hello, Does anyone know the syntax of s:convertEnum? I'd like to use it but kept having syntax error. Thanks. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4046375#4046375 Reply to the post :

[jboss-user] [JBoss Seam] - Seam can't parse pages.xml without JBoss.com?

2007-05-15 Thread tonylmai
Could not bring up my application this morning. Seam complaint it could not parse pages.xml in the first row, third column. !DOCTYPE pages PUBLIC | -//JBoss/Seam Pages Configuration DTD 1.2//EN | http://jboss.com/products/seam/pages-1.2.dtd; | Coincidently, I was not

[jboss-user] [JBoss Seam] - Re: Seam can't parse pages.xml without JBoss.com?

2007-05-15 Thread tonylmai
I am using 1.2.1GA View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4045885#4045885 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4045885 ___ jboss-user mailing list

[jboss-user] [JBoss Seam] - RichFaces + Seam?

2007-05-15 Thread tonylmai
Does anyone else have problem using RichFaces' Data Table Scroller within Seam 1.2.1GA and richfaces-3.0.1-SNAPSHOT.jar? I am running into behavior such as DataModel being blanked out, DataModelSelection was not set, etc... while moving around the data table using the scroller. These problem

[jboss-user] [JBoss Seam] - Re: RichFaces + Seam?

2007-05-15 Thread tonylmai
Will try it out. Thanks View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4045926#4045926 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4045926 ___ jboss-user mailing list

[jboss-user] [JBoss Seam] - Re: Seam can't parse pages.xml without JBoss.com?

2007-05-15 Thread tonylmai
I downloaded the pages-1.2.dtd and put it under jboss's bin directory. When Seam loaded my app, it still complained that it could not read the pages.xml. This time, the error was different. anonymous wrote : 16:49:46,890 ERROR [[/tradedesk]] Exception sending context initialized event to

[jboss-user] [JBoss Seam] - Invoking a (refresh) method when user select a RichFaces' ta

2007-05-15 Thread tonylmai
Hello, I have a DataModel that I would like to have it refreshed before it is rendered on a RichFaces's tabPanel. How do I invoke a (Seam's component) refresh method when the tab is switched to (when user selects it)? Thanks. -tony View the original post :

[jboss-user] [JBoss Seam] - s:link's unexpected behavior of when used with Richfaces's t

2007-05-14 Thread tonylmai
Hello, When used together with Richfaces's tabPanel, s:link would render the page not keeping the current tab within the Richfaces's tabPanel. It kept returning to the first tab. Is there a way around this problem? FYI, h:commandButton keeps the current tab intact. Thanks View the original

[jboss-user] [JBoss Seam] - checkbox in Seam

2007-05-14 Thread tonylmai
Hello, I am looking for a JSF implementation of checkbox (similar to Yahoo mailbox) that is compatible with Seam. Does anyone know of one? Thanks View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4045663#4045663 Reply to the post :

[jboss-user] [JBoss Seam] - Re: Raising an event in Seam without violating EJB's concurr

2007-05-13 Thread tonylmai
Not exactly in the same bean but perhaps the same thread that the started by the very same SLSB that wanted to listen to the event. Here is the details: I have an OrderManagerBean (SFSB) that contains orders from the top of a queue (collection) managed by a (application scope) bean which

[jboss-user] [JBoss Seam] - Re: Seam EL Exception: Argument type mismatch

2007-05-11 Thread tonylmai
Will do. Thanks View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4045150#4045150 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4045150 ___ jboss-user mailing list

[jboss-user] [JBoss Seam] - Raising an event in Seam without violating EJB's concurrent

2007-05-11 Thread tonylmai
Hello, I am trying to raise an event inside an action which is modeled as a stateful session bean. This resulted in violation for concurrent call in EJB. anonymous wrote : 16:40:41,859 ERROR [SeamPhaseListener] uncaught exception | javax.faces.el.EvaluationException:

[jboss-user] [JBoss Seam] - Requirements for using @Startup annotation?

2007-05-10 Thread tonylmai
Hello, I have an application facade with an application scope that I'd like to be instantiated when Seam context begins. It seems to fit the criteria for using the @Startup annotation. Yet, Seam complained The annotation @Startup is disallowed for this location. Here is my code: @Stateless

[jboss-user] [JBoss Seam] - Seam's Events model

2007-05-10 Thread tonylmai
Hello, I am trying to understand if I could use Seam's Events model to force reload a page a user is viewing. In the manual, the code was written as: @Name(helloListener) | public class HelloListener { | @Observer(hello) | public void sayHelloBack() { |

[jboss-user] [JBoss Seam] - Re: Requirements for using @Startup annotation?

2007-05-10 Thread tonylmai
Hi Devon, I am under the assumption that @Create is called when the component is first referenced by a client (aka the component will not be instantiated until first usage). What I'd like to do is to initiate the connection as soon as the application is brought online. Am I wrong? Thanks

[jboss-user] [JBoss Seam] - Re: Requirements for using @Startup annotation?

2007-05-10 Thread tonylmai
Got it. Thanks Devon. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4044752#4044752 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4044752 ___ jboss-user mailing list

[jboss-user] [JBoss Seam] - Re: Requirements for using @Startup annotation?

2007-05-10 Thread tonylmai
What the syntax for specifying a dependency on Seam's Logger for my component with a @Startup annotation? I tried @Startup(depends={org.jboss.seam.log.Log}) but that did not work. The logger specified as @In private Log logger is still null. Any idea? Thanks View the original post :

[jboss-user] [JBoss Seam] - How to decrypt this (Seam's exception) error message?

2007-05-10 Thread tonylmai
Hello, I am new in writing JSF. I have no doubt that my pages are full of bugs. How do I go about debugging the pages to figure out what error Seam is referring to? For example, Seam threw the following exception in the log: anonymous wrote : 12:04:44,734 ERROR [STDERR] May 10, 2007 12:04:44 PM

[jboss-user] [JBoss Seam] - Re: Requirements for using @Startup annotation?

2007-05-10 Thread tonylmai
anonymous wrote : What exception do you get? No exception. Just that my injection for Seam's Log did not work. @In | private Log logger I got logger == null in my member method. This was with and without (create = true). I have no problem with this kind of injection in other components.

[jboss-user] [JBoss Seam] - Re: Requirements for using @Startup annotation?

2007-05-10 Thread tonylmai
Ooppps Sorry, mistyped. It was: @Logger | Log logger This was what I had and it was null. Thanks View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4044843#4044843 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4044843

[jboss-user] [JBoss Seam] - @Factory usage

2007-05-10 Thread tonylmai
Hello, Borrowed the concept from example message, I implemented the following Seam component: @Stateful | @Scope(ScopeType.SESSION) | @Name(orderMgr) | public class PendingOrdersManagerBean implements PendingOrdersManager, Serializable { | private static final long serialVersionUID

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

2007-05-10 Thread tonylmai
I forgot to mention that the client accesses this component as followed: h:dataTable value=#{orderMgr.workingOrders} var=ord rendered=#{orderMgr.workingOrders != null and orderMgr.workingOrders.rowCount0} | This table was not rendered as you could imagine if the '@Factory method was not

  1   2   >