[jboss-user] [JBoss Seam] - 'Entity not mapped' after period of inactivity

2008-01-29 Thread dkane
Hello My Seam application is configured to session length = 60 min. and works within single long-running conversation during the whole session. Like in some examples, User is entity bean and session-scoped Seam component at the same time : @Entity | @Table(name = "Users") | @Name("user"

[jboss-user] [JBoss Seam] - Re: actionListener vs action and redirect

2008-01-17 Thread dkane
Still don't undertsand the following. Under some curcumstances I am getting "property 'someMethod' not found" when trying to bind action of a:commandButton to method. Changing action to actionListener with the same method eliminates the error. How is that possible ? View the original post :

[jboss-user] [JBoss Seam] - Re: SeamFramework.org Alpha Test

2008-01-11 Thread dkane
Unable to register at http://alpha.seamframework.org:/userRegister_d.seam Stays on the same page after clicking "Register", no validation messages are shown. Probably password is too short (4 characters), but I have not been notified explicitly about that. Anti-robot characters picture is

[jboss-user] [JBoss Seam] - Re: Entities are lost in SMPC

2008-01-10 Thread dkane
Reading "Release notes" for 2.0.1CR1 , I don't see JBSEAM-2214 in the list of solved issues. The date of 2.0.1CR1 is 2007.12.12 . JBSEAM-2214 issue was marked as solved in November 2007. Is it actually fixed in 2.0.1CR1 available on downloads page, or nightly builds remains the only option to

[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - ManyToMany, sort by field in mapping table

2007-12-25 Thread dkane
Dear colleagues, I have Termnal and Firmware entities , with Terminal_Firmware table that defines many-to-many relationship. Terminal has a collection of bound Firmwares : @ManyToMany(cascade = {CascadeType.PERSIST}) | @JoinTable( | name="Terminal_Firmware", | [EMAIL PROTECTED](name="t

[jboss-user] [JBoss Seam] - Re: Two browser tabs : basic question

2007-12-24 Thread dkane
Ok, it works in the way you recommend. Thanks. The last question : for ajax request, we can write - no need to specify "param" tag in pages.xml - right ? There is no assignTo in f:param, though.. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4115344#

[jboss-user] [JBoss Seam] - Re: Two browser tabs : basic question

2007-12-21 Thread dkane
damianharvey, thank you for the example. This radically differs from the model I have had in mind about page parameters. I thought that tag takes value FROM #{testBean.id} and makes it available via @RequestParam. In your example, value is being taken from row.id using f:param (that is u

[jboss-user] [JBoss Seam] - Re: Two browser tabs : basic question

2007-12-21 Thread dkane
"[EMAIL PROTECTED]" wrote : You don't need to use @RequestParamater with page parameters. Take a look at seamdiscs to see how they should be used. I see no "param" tags in pages.xml of seamDISKS example (Seam 2.0) . In seamSPACE , I see the following : pages.xml : | | |

[jboss-user] [JBoss Seam] - Re: Two browser tabs : basic question

2007-12-20 Thread dkane
"[EMAIL PROTECTED]" wrote : If you used page parameters you wouldn't have this problem as you would be deleting rows by id rather than position in a list. So I would use page parameters ;) I have solved problem partially with page parameters, but it does not work for ajax request (used exactly

[jboss-user] [JBoss Seam] - Re: Could not create instance of RandomAccessSubList

2007-12-20 Thread dkane
Resolved. Turned out that List.sublist returns non-serializable result. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4114608#4114608 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4114608 ___

[jboss-user] [JBoss Seam] - Re: Two browser tabs : basic question

2007-12-20 Thread dkane
"[EMAIL PROTECTED]" wrote : If you used page parameters you wouldn't have this problem Thank you! Does any Seam examples project illustrate this recommended approach ? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4114598#4114598 Reply to the post : http:

[jboss-user] [JBoss Seam] - Could not create instance of RandomAccessSubList

2007-12-20 Thread dkane
Hello I am getting the following exception after a period of inactivity , when clicking any control in the app. JBoss 4.2.1, Seam 2.0GA Component is session scoped and session is active. Looks like something wrong with serialization, but what ? 13:44:16,750 ERROR [SeamPhaseListener] uncaug

[jboss-user] [JBoss Seam] - Re: Two browser tabs : basic question

2007-12-20 Thread dkane
No one have "delete" controls in data tables :) ? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4114566#4114566 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4114566 ___ jbos

[jboss-user] [JBoss Seam] - Re: Two browser tabs : basic question

2007-12-17 Thread dkane
"damianharvey" wrote : How do you do your delete? Something like this?myList.remove(selectedObject); | | entityManager.remove(selectedObject) | Not quite. First operator myList.remove(selectedObject) is the same. What comes to second : my list of records is actually a collection of entity

[jboss-user] [JBoss Seam] - Two browser tabs : basic question

2007-12-17 Thread dkane
My dataTable is built on DataModel and DataModelSelection. One colunm contains "delete record" link that takes injected DataModelSelection item and removes it from both List and database. After that view is being rerendered. Component is session-scoped. Let's say table contains records A,B,C

[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: native query and

2007-12-11 Thread dkane
"Soon5" wrote : Hy, | | I had some Problems with count(*) in the past. Try to use count(IDColumn) or another not null column. | | Greetings Soon5 Thank you for the idea. Got a workaround by replacing count(*) with : List l = (List) | em.createNativeQuery("SELECT uId FROM U

[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - native query and

2007-12-11 Thread dkane
Dear colleagues, The following code : Integer count = (Integer) | em.createNativeQuery("SELECT count(*) as cnt FROM Users_Terminals ut where "+"tId=" + termId + " and uId=" +userId).getSingleResult(); | throws the following exception , although another native query with single r

[jboss-user] [JBoss Seam] - Re: Entities are lost in SMPC

2007-12-06 Thread dkane
"[EMAIL PROTECTED]" wrote : This should all be fixed now. If anyone has experienced this problem, please try Seam CVS and let me know if there are any other issues with this. I can not use CVS right now, and followed link from Seam Wiki "download nightly builds" : http://hudson.jboss.org/huds

[jboss-user] [JBoss Tools (users)] - How to disable immediate package deployment ?

2007-12-05 Thread dkane
Hello I use "Project archives" to create deployment packages. In JBoss IDE (previous version), I was able to package jar/ear, then I drag-drop it from project explorer to Servers tab and put (deploy) on server. In JBoss Tools, the situation is different. First of all, drag-drop operation do

[jboss-user] [JBoss Seam] - Re: TestNG entityMnager question

2007-12-02 Thread dkane
And, the final result for today :) java.lang.NoSuchMethodError: org.hibernate.cfg.AnnotationConfiguration.getReflectionManager()Lorg/hibernate/annotations/common/reflection/ReflectionManager; | at org.hibernate.ejb.EventListenerConfigurator.configure(EventListenerConfigurator.java:152)

[jboss-user] [JBoss Seam] - Re: TestNG entityMnager question

2007-12-02 Thread dkane
Now getting java.lang.ExceptionInInitializerError | at org.hibernate.cfg.Configuration.reset(Configuration.java:168) | at org.hibernate.cfg.AnnotationConfiguration.reset(AnnotationConfiguration.java:211) | at org.hibernate.cfg.Configuration.(Configuration.java:187) | at o

[jboss-user] [JBoss Seam] - Re: TestNG entityMnager question

2007-12-02 Thread dkane
Solved by adding hibernate-entitymanager.jar to classpath , thanks to guide : http://dewarim.de/wms/error/no_persistence_provider_for_entitymanager It is rather difficut to collect necessary jars for TestNG + Seam, I must say. No documentation found so far. View the original post : http://www

[jboss-user] [JBoss Seam] - Re: TestNG entityMnager question

2007-12-02 Thread dkane
"dkane" wrote : | The only difference in my case is initializing EntityManager in @BeforeClass method to use it in different @Test methods then. Moving that to @Test method does not help, BTW. View the original post : http://www.jboss.com/index.html?module=bb&op=viewt

[jboss-user] [JBoss Seam] - Re: TestNG entityMnager question

2007-12-02 Thread dkane
I need to test Seam component that uses EntityManager. My test is based on "Simplicity and power beyond Java EE" book example : public class HelloWorldTest extends SeamTest | { | | @Test | public void unitTestSayHello() throws Exception | { | Manager manager = new ManagerAction

[jboss-user] [JBoss Seam] - Re: TestNG entityMnager question

2007-12-02 Thread dkane
"[EMAIL PROTECTED]" wrote : Make sure resources is on the test classpath. Yes, they are in Run.. , "Classpath" tab here http://testng.org/pictures/launch.png The same output. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4109633#4109633 Reply to the post

[jboss-user] [JBoss Seam] - TestNG entityMnager question

2007-12-02 Thread dkane
Hello First time using TestNG with Seam components. Test class : | public class SimpleSearchCase extends SeamTest | { | EntityManager em; | | @BeforeClass | public void initEm() throws Exception | { | EntityManagerFactory emf = |Pers

[jboss-user] [JBoss Tools (users)] - Re: Unable to build project in JBoss Tools

2007-11-25 Thread dkane
"[EMAIL PROTECTED]" wrote : JBossIDE does not control how eclipse does these things so there must be something you are doing different. Ok, understood. "[EMAIL PROTECTED]" wrote : How are you actually importing this ? In Workspace : "New".."Other".."Checkout projects from SVN" . Thank you fo

[jboss-user] [JBoss Tools (users)] - Re: Unable to build project in JBoss Tools

2007-11-25 Thread dkane
"[EMAIL PROTECTED]" wrote : so how do you expect the IDE to remember the setup ? I thought "Java Builder" is basic default component for all Java projects. If even it was not added upon import, there should be a possibility to add builder in "Builders" tab. But I see only "JBossIDE Packages buil

[jboss-user] [JBoss Tools (users)] - Re: Unable to build project in JBoss Tools

2007-11-24 Thread dkane
"[EMAIL PROTECTED]" wrote : did you commit the .classpath and .project for the project? No. Our policy is to keep only sources in SVN, not IDE-specific and workstation-specific files. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4107529#4107529 Reply to th

[jboss-user] [JBoss Tools (users)] - Unable to build project in JBoss Tools

2007-11-24 Thread dkane
I have started the project in JBoss IDE 2.0 . This is EAR project. Now installed Eclipse 3.3 with JBoss Tools , Subclipse, and checked out this project from repository. I found how to do packaging in new way, that's ok. The problem is that Eclipse just does not build this project. There are no

[jboss-user] [JBossWS] - Re: JAX-WS from Sessions Bean fails due to missing org/jboss

2007-11-22 Thread dkane
"ejb3workshop" wrote : | A search in the forums and the web makes suggestions to include the jboss-common-clients.jar in the classpath. I tried added this jar to the /server/default/lib folder as well as include it within the EAR / application.xml, of which neiter worked. | "ejb3workshop"

[jboss-user] [JBoss Seam] - Re: Component cross-referencing and transactions

2007-11-20 Thread dkane
"[EMAIL PROTECTED]" wrote : Transaction Not Active points at some earlier problem that has caused the transaction to become invalid. You'll need to look for the root cause of the problem using your debugger/log. Thank you. Doesn't the provided exception trace already point to something that cou

[jboss-user] [JBoss Seam] - Re: Component cross-referencing and transactions

2007-11-20 Thread dkane
Still have not solved this problem. Looking for help. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4106297#4106297 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4106297 ___

[jboss-user] [JBossWS] - Re: jbossWS 2.0.1 and JDK 1.6

2007-11-15 Thread dkane
"[EMAIL PROTECTED]" wrote : In order to run JBossWS on JDK 6 you need to replace the API's that have been included in JDK 6, namely jaxrpc, jaxws, jaxb and saaj. | | Copy the following jars to ${JBOSS_HOME}/lib/endorsed: | | * jboss-jaxrpc.jar | * jboss-saaj.jar | * jaxb

[jboss-user] [JBossWS] - Re: java.lang.ClassCastException on deployment

2007-11-14 Thread dkane
I've found the root cause of my case. Probably this help to others. My web method returns an object. One of it's fields was Timestamp. Once I changed it to Calendar (Soap compatible) Exception dissapeared. Exception trace contained absolutely no hints to that, though. I think this is someth

[jboss-user] [JBossWS] - java.lang.ClassCastException on deployment

2007-11-14 Thread dkane
Dear colleagues, This is my first JBoss web service (but not first EJB3 project), so most likely something is wrong. I follow the instruction http://jbws.dyndns.org/mediawiki/index.php?title=JAX-WS_User_Guide#Plain_old_Java_Object_.28POJO.29 I have a POJO annotated with @WebService @SOAPBin

[jboss-user] [JBoss Seam] - Re: DataModel bug in Seam 2

2007-11-09 Thread dkane
My recent report, probably similar : http://jira.jboss.com/jira/browse/JBSEAM-2214 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4103290#4103290 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4103290 ___

[jboss-user] [JBoss Seam] - Component cross-referencing and transactions

2007-11-09 Thread dkane
Hello . I am getting "Transaction is not active" in the following situation : "ClientList" component is Seam POJO. At the moment of changeClient() action call, selectedClient has non-null value. Another component, "userAdmin" (SFSB) , should reload list of users at this action : @Name("clie

[jboss-user] [JBoss Seam] - Re: Value of context variable is not an instance of the comp

2007-11-08 Thread dkane
I have the same problem. Server restart helps. And, I have no this problem : * on the same server , with another EARs * on another server , with this EAR. What to look at ? TIA View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4102820#4102820 Reply to t

[jboss-user] [JBoss Seam] - Re: Entities are lost in SMPC

2007-11-06 Thread dkane
"przemjaskier" wrote : DKane, | | could you set "fix version" to 2.0.1.GA, it looks like a serious problem. I thought "fix version" attribute should be set by product developers. Is it correct ? View the original post : http://www.jboss.com/index.html?mo

[jboss-user] [JBoss Seam] - Re: Entities are lost in SMPC

2007-11-05 Thread dkane
http://jira.jboss.org/jira/browse/JBSEAM-2214 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4102096#4102096 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4102096 ___ jboss-use

[jboss-user] [JBoss Seam] - Re: actionListener vs action and redirect

2007-11-05 Thread dkane
"[EMAIL PROTECTED]" wrote : Post code to show your problem. Actually I have no problem, application is working. Just want my solutions to be knowledge-based rather than experiment-based. "[EMAIL PROTECTED]" wrote : Both actionListeners should do the same thing What is the reason of supporting

[jboss-user] [JBoss Seam] - Re: pages.xml action method fired on ajax requests - must be

2007-11-03 Thread dkane
"[EMAIL PROTECTED]" wrote : This behaviour is to be expected due to the way a:commandButton works. | | You could perhaps file a feature request in JIRA and we'll see what we can come up with/whether it is a popular feature. Was the JIRA issue raised ? I have the same (?) problem with page

[jboss-user] [JBoss Seam] - actionListener vs action and redirect

2007-11-02 Thread dkane
Dear colleagues, I always used actionListener parameter when bind component method to a:commandLink. It was ok until I needed the event that not only trigger action but also redirect to another page. I added redirect rule to pages.xml and specified action in it. But a:commandLink with actionL

[jboss-user] [JBoss Seam] - Re: Entities are lost in SMPC

2007-10-30 Thread dkane
Let's see what Norman say first. Although case is simple and no tricky coding was used, I am not confident that problem isn't my own fault. My experience in Seam is rather short. I will open an issue, hovewer, if no feedback provided in next few days. View the original post : http://www.jb

[jboss-user] [JBoss Seam] - Re: Entities are lost in SMPC

2007-10-30 Thread dkane
Dear Seam guys, I have no response from norman.richards regarding to the issue. Anyone else interested in reproduction scenario ? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4100138#4100138 Reply to the post : http://www.jboss.com/index.html?module=bb&op

[jboss-user] [JBoss Seam] - Re: Entities are lost in SMPC

2007-10-24 Thread dkane
Were you able to reproduce that using my source code ? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4098281#4098281 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4098281 ___

[jboss-user] [JBoss Seam] - Re: Entities are lost in SMPC

2007-10-19 Thread dkane
"[EMAIL PROTECTED]" wrote : Can you create a reproducible test case? Sent to you by email. Please confirm. Search for trace.ru sender's domain if message went to spam. Thank you. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4096883#4096883 Reply to the p

[jboss-user] [JBoss Seam] - Re: Entities are lost in SMPC

2007-10-18 Thread dkane
Switching from SMPC to @PersistenceContext(type=EXTENDED) solves the problem , without any other changes in code. If I were not sure that conversation is always the same long-running one, the obvious suspection could be getting out of scope. But conversation is ok. Absolutely no idea what migh

[jboss-user] [JBoss Seam] - SMPC:@In EntityManager or @PersistenceContext ?

2007-10-18 Thread dkane
Dear colleagues, I've read a lot about advantages of SMPC in this forum. In documentation, the recommended way to configure and use SMPC is : components.xml : Java code : @In EntityManager bookingDatabase; The best way of learning is examples , and I am looking into Seam 2.0 examples dir

[jboss-user] [JBoss Seam] - Entities are lost in SMPC

2007-10-17 Thread dkane
I don't knos which part of code is relevant, so will explain the situation in words first. There are two pages, accessible from toolbar menu (s:links). pages.xml contains for , i.e. single global conversation should exist during the session. And it does, according URL (cid=1 always) and d

[jboss-user] [JBoss Seam] - Re: Questions about SMPC, conversation and session scopes

2007-10-15 Thread dkane
These are fundamental things but I can't them clear from documentation, indeed. Please throw some light at least to the following. Entity beans are stated to have CONVERSATION scope by default. If managing component is scoped to SESSION, and CONVERSATION-scoped entities are fields of this com

[jboss-user] [JBoss Seam] - Questions about SMPC, conversation and session scopes

2007-10-11 Thread dkane
Dear colleagues, I am implementing SMCP concept in multi-page DBMS application. Each page contains number of DataModels and CRUD operations. Logically, all data (entities) on all my pages should be scoped to session - all data grids and fields should save their state along the whole user's se

[jboss-user] [JBoss Seam] - Re: Standard task : lookup field

2007-10-09 Thread dkane
Thank you very much. Got it working. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4093027#4093027 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4093027 ___ jboss-user mailin

[jboss-user] [JBoss Seam] - Standard task : lookup field

2007-10-09 Thread dkane
Was pretty sure this topic is described in documentation or discussed in forum, but have not found anything so far. Probably, wrong keywords were used.. The form displays editable list of "clients" entities (DataModel + rich:dataTable). Each client has category_id field. "Categories" table

[jboss-user] [JBoss Seam] - Re: Seam deployment problem

2007-09-13 Thread dkane
The same problem but with Seam 1.2.1GA . Tried Project..Clean in Eclipse, no effect. Restarted JBoss, Eclipse, emoved files manually - no way. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4084192#4084192 Reply to the post : http://www.jboss.com/index.html?

[jboss-user] [JBoss Seam] - Two components with the same name and precedence

2007-09-13 Thread dkane
Hello When trying to redeploy one of earlier deployed applications, I am getting this exception : java.lang.IllegalStateException: Two components with the same name and precedence: authenticator | at org.jboss.seam.init.Initialization.addComponentDescriptor(Initialization.java:410) |

[jboss-user] [JBoss Seam] - Re: java.lang.NoClassDefFoundError: org.drools.WorkingMemory

2007-09-06 Thread dkane
The problem is critical, because after this exception application stops to function : button that invokes component method simply does not do that anymore. Please post at least any thoughts if not solutions. Does any library use these "Drools" implicitly ? Seam core, Seam remoting, JBoss EJB3 ?

[jboss-user] [JBoss Seam] - java.lang.NoClassDefFoundError: org.drools.WorkingMemory and

2007-09-06 Thread dkane
Hello After 20 minutes of inactivity (I guess, session is being serialized after that), JBoss throws the following exception to console. The application is quite simple Seam one, containng one session-scoped component. No Drools are used explicitly, no jBPM. The only specific feature is Seam

[jboss-user] [JBoss Seam] - Re: Exception in JBoss console, the root is java.lang.NoClas

2007-09-04 Thread dkane
And, yet another one, coming again from background process (sorry for overflooding the thread with these long stack traces) 15:18:32,890 ERROR [SimpleStatefulCache] problem passivation thread | javax.ejb.EJBException: Could not passivate; failed to save state | at org.jboss.ejb3.cache.s

[jboss-user] [JBoss Seam] - Re: Exception in JBoss console, the root is java.lang.NoClas

2007-09-04 Thread dkane
Forgot to mention the second sort of exception that happens occasionally in console : 14:40:19,468 ERROR [SimpleStatefulCache] problem passivation thread | javax.ejb.EJBException: Could not passivate; failed to save state | at org.jboss.ejb3.cache.simple.StatefulSessionFilePersistenceMa

[jboss-user] [JBoss Seam] - Re: Javascript error using Seam Remoting (JMS subscription)

2007-09-04 Thread dkane
"[EMAIL PROTECTED]" wrote : Is it possible for you to test with the latest CVS version of Seam? I just recently made a change to fix out-of-scope references with Ajax callbacks, which I suspect fixes your error also. Thank you for your reply. I've already discovered that error happens when pag

[jboss-user] [JBoss Seam] - Javascript error using Seam Remoting (JMS subscription)

2007-09-03 Thread dkane
Dear colleagues, Web-page is subscribed to JMS topic. I have configured debug=true for Remoting, and when page is being loaded first time xml envelopes starts to run in pop-up window. So I conclude that JMS subscription itself is ok. But when I click button on this page (form submission), Ja

[jboss-user] [Messaging, JMS & JBossMQ] - onMessage:catching all Throwable but message redelivered

2007-09-03 Thread dkane
Dear colleagues, My onMessage method of MDB calls session bean that performs database operations. Some database errors (constraint violation, etc.) are normal cases and should not cause message redelivery. So I wrapped the whole onMessage code into the try..catch . But even if I catch all Exc

[jboss-user] [JBoss Seam] - Re: Exception in JBoss console, the root is java.lang.NoClas

2007-08-31 Thread dkane
wise_guybg, thank you for your reply. No, my application does not use jbpm. Earlier I have deployed application with jbpm, keeping to all rules, and it worked well. But now I have undeployed it. Exception occurs without any user action , just appears in console in background. View the or

[jboss-user] [JBoss Seam] - Exception in JBoss console, the root is java.lang.NoClassDef

2007-08-31 Thread dkane
Hello After deploying some Seam applications to JBoss on my local PC, occasionally the following exception is being printed to the console (even when no applications are actually used): | 14:26:04,109 ERROR [STDERR] java.lang.reflect.InvocationTargetException | 14:26:04,109 ERROR [STDERR

[jboss-user] [JBoss Seam] - JMS Subscription in Seam component

2007-08-28 Thread dkane
Dear colleagues, I know that Seam Remoting allows to subscribe to JMS topic in Javascript code of the web-page. But for my task, it would be better to subscribe from within the back-end Java class of Seam component. Question 1 : is it good practice at all ? Question 2 : JMS message will af

[jboss-user] [JBoss Seam] - Re: s:link works, h:commandButton doesn't

2007-08-27 Thread dkane
I've solved the problem myself, but still have questions. There was h:selectOneMenu right before h:commandButton in my page. h:selectOneMenu was mapped to the session-scoped Seam component, and dislayed the list of entities with s:convertEntity tag. But this field did not remember the selected

[jboss-user] [JBoss Seam] - s:link works, h:commandButton doesn't

2007-08-23 Thread dkane
Hello. http://www.w3.org/1999/xhtml"; | xmlns:ui="http://java.sun.com/jsf/facelets"; | xmlns:h="http://java.sun.com/jsf/html"; | xmlns:f="http://java.sun.com/jsf/core"; | xmlns:s="http://jboss.com/products/sea

[jboss-user] [Beginners Corner] - Help needed concerning the architecture decision

2007-08-23 Thread dkane
Dear JBoss experts, Our system communicates with some devices via low-level TCP/IP protocol (socket layer). Database and web-presentation parts of this system are implemented as JBoss application. The current version of this system has following structure : 1) Devices connects to socket ser

[jboss-user] [JBoss Seam] - DataModel and controls other than h:dataTable

2007-08-22 Thread dkane
Dera Seam profies , does DataModel / DataModelSelection work with multi-item controls other than h:dataTable ? I need a horizontal set of links based on List of entities. For that, I am using ui:repeat referring to DataModel values. Values are being displayed well. But clicking on particular

[jboss-user] [Remoting] - Is Remoting the right technology for this task ?

2007-08-20 Thread dkane
Dear colleagues, I have standalone multithreaded socket server application for some devices. This socket server application is EJB client for JBoss server. I want to eliminate one communication layer , so that devices can connect directly to appication deployed on JBoss application server.

[jboss-user] [JBoss Seam] - Problem : Javascript-access to fields bound to component pro

2007-07-26 Thread dkane
An overview : h:graphicImage element has dynamic "url" parameter that is the property of Seam component. When image is rerendered (this happens frequently in response to various actions on the same page), I need to execute some additional Javascript code. This code needs to "know" the number

[jboss-user] [JBoss Seam] - Re: Changing Seam component properties via Remoting

2007-07-23 Thread dkane
There is a lot of code, so only key points : Seam Component interface : @Local | public interface MapImageA4J | { | public void setXc(int xc); | public int getXc(); | public void setYc(int yc); | public int getYc(); | public void setWidth(int width); | public int ge

[jboss-user] [JBoss Seam] - Changing Seam component properties via Remoting

2007-07-23 Thread dkane
Hello I have a Java class that is responsible for some graphics in my web-application. I have turned this class into Seam component. Actually this is session-scoped graphic provider for a4j:mediaOutput element (image) . This works well. There is some plain JavaScript code on web-page that c

[jboss-user] [JBoss Seam] - Re: Email does not reach recipient and no debug messages app

2007-07-11 Thread dkane
Got it myself. I put jboss-seam-mail.jar into the ear root instead of putting it into war/WEB_INF/lib. It is weird, however, why no exceptions or debug messages appeared.. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4063082#4063082 Reply to the pos

[jboss-user] [JBoss Seam] - Email does not reach recipient and no debug messages appears

2007-07-11 Thread dkane
Hello In mail-service.xml I only changed debug="false" to "true" , and did not touch server addresses, etc. In components.xml, I added the line : | The first question : does components.xml settings override mail-service.xml settings ? Then, I have a page http://www.w3.org/1999/xht

[jboss-user] [JBoss Seam] - Re: Injection of NULL immediately after outjection

2007-07-05 Thread dkane
I have a working slution now but not sure about it's reliability and performance. So I needed list of records in Shopping cart. Records can be added, removed and checked (in special checkbox column). The problem was that all checkboxes resets after add or remove operation. In fact records of

[jboss-user] [JBoss Seam] - Injection of NULL immediately after outjection

2007-07-05 Thread dkane
Hello I have implemented a checkbox column for table multi-select, like in dvd store example. When list is being updated (e.g.record is being removed), all checkboxes becomes unchecked with no depend on their previous state. I want checked positions to stay checked. XHTML (action and checkb

[jboss-user] [JBoss Seam] - Re: When and where to use jBPM in Seam app ?

2007-06-28 Thread dkane
"[EMAIL PROTECTED]" wrote : In practice, its a total disaster unless you are using something like jBPM, in which case you don't need to even think about it. Sounds reasonable. I probably need more experience in complex business processes to realize that with my skin. Let's assume we are using

[jboss-user] [JBoss Seam] - Re: DataModel and Row Unavailable

2007-06-28 Thread dkane
Recently solved the same problem , thanks to this forum . The situation was like your's : adding rows from one table to another (shopping cart) and then deleting rows from shopping cart. http://www.jboss.com/index.html?module=bb&op=viewtopic&t=111675 ( the initial request is about another prob

[jboss-user] [JBoss Seam] - Re: When and where to use jBPM in Seam app ?

2007-06-27 Thread dkane
Ok. Let's consider the order example again. Order processing in my system may take several days or even weeks. During that process order is handled by 5 different executives and passes through 7 statuses. From business point of view, it is single long running business-process. If I understan

[jboss-user] [JBoss Seam] - When and where to use jBPM in Seam app ?

2007-06-27 Thread dkane
If I understand correctly, jBPM was developed for : 1) Defining navigation and pageflows 2) Providing support for business process context, which is wider than session context. This way componens can be persisted across multiple users/sessions. Also, tasks can be logically assigned to users.

[jboss-user] [JBoss Seam] - Re: NotLoggedInException handling and redirect in pages.xml

2007-06-26 Thread dkane
Any ideas ? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4057664#4057664 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4057664 ___ jboss-user mailing list jboss-user@lists.j

[jboss-user] [JBoss Seam] - Re: JSF messages are localized, Seam messages are not.

2007-06-26 Thread dkane
I could help with Russian translation, but don't use seam-gen. Is it the same messages_en.properties as laying in \seam-gen\resources of Seam installation ? If so, what is the usage of messages starting otherwise than validator. or org.jboss.seam. , e.g. javax.faces.converter. ? View the orig

[jboss-user] [JBoss Seam] - JSF messages are localized, Seam messages are not.

2007-06-26 Thread dkane
Hello When I run booking example on Seam website, it shows "Welcome, username" (after successful login) always in English. At the same time, registration form shows "this field is required" messages localized to my language, other than English. I have build a simple web-application using Bo

[jboss-user] [JBoss Seam] - Re: Registration example again: method binding without compo

2007-06-26 Thread dkane
"[EMAIL PROTECTED]" wrote : #{invalid} and #{required} are variables available inside s:decorate, and are booleans. required evaluates to true if you have set the decorated component required, and invalid evaluates to true if a validation error occurs. Could you please point to documentation w

[jboss-user] [JBoss Seam] - Registration example again: method binding without component

2007-06-25 Thread dkane
Hello Please help me to understand the following code in Registration example : register.xhtml uses RegisterAction component annotated as "register", e.g. : | Verify Password: | | | RegisterAction.java also has method invalid() : | public void invalid() |{ | face

[jboss-user] [JBoss Seam] - Re: javax.el.ELException , unable to localize the error

2007-06-24 Thread dkane
I must say, finally, that petemuir's version was correct : anonymous wrote : ajax4jsf namespace isn't being resolved correctly The problem is solved now, thanks. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4057198#4057198 Reply to the post : http://www.jb

[jboss-user] [JBoss Seam] - URL in address bar

2007-06-22 Thread dkane
Hello When I try booking example online, and put cursor over "Book hotel" link, I see the URL in status bar looking like http://seam.demo.jboss.com/main.seam?actionMethod=hotelBooking.selectHotel&dataModelSelection=hotels%5B0%5D If I click this link, browser address bar displays something like

[jboss-user] [JBoss Seam] - Re: DataModelSelection always returns first row from h:dataT

2007-06-22 Thread dkane
"azalea" wrote : my mistake for EL expression :) | | | | rendered="#{cartList.rowCount > 0}" | | Excellent, thanks ! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4056828#4056828 Reply to the post : http://www.jboss.com/index.html?module=bb&o

[jboss-user] [JBoss Seam] - Re: DataModelSelection always returns first row from h:dataT

2007-06-22 Thread dkane
"ivan.tufegdzic" wrote : Change method in cart in isEmpty without get and in page rendered="#{cart.empty}" | But I think that you should delete that and put rendered="{not empty cartList}" {not empty cartList} works with no exception , thanks again. However, when I add some items and then re

[jboss-user] [JBoss Seam] - Re: DataModelSelection always returns first row from h:dataT

2007-06-22 Thread dkane
ivan.tufegdzic, thank you very much , it solved the problem. But now I am getting "row is unavailable" exception . Notable thing is that exception arises after second of third "remove" operation. First "remove" works well and removes exactly the clicked row. javax.faces.el.EvaluationException

[jboss-user] [JBoss Seam] - DataModelSelection always returns first row from h:dataTable

2007-06-22 Thread dkane
When I click "Remove" in any row of the table, removeSelectedPosition() is always being called for first row(entity). What is wrong ? XHTML : | | Quantity | | | | Item | #{item.part.description} |

[jboss-user] [JBoss Seam] - NotLoggedInException handling and redirect in pages.xml

2007-06-22 Thread dkane
Hello My pages.xml contains the following block : | | You must register to use this function | | Sometimes it works fine, but when I redeploy the application and try to refresh the page that contains component with @Restrict("#{identity.loggedIn}"

[jboss-user] [JBoss Seam] - Re: Method binding with context variable as a parameter - pa

2007-06-20 Thread dkane
20:12:18,375 ERROR [SeamPhaseListener] uncaught exception | javax.faces.el.EvaluationException: Exception while invoking expression #{cart.addPart} | at org.apache.myfaces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:165) | at org.jboss.seam.actionparam.ActionParamBindingHelp

[jboss-user] [JBoss Seam] - Re: Method binding with context variable as a parameter - pa

2007-06-20 Thread dkane
Still one problem, though . When I call a method with single argument (argument is entity bean) everything works well : JSF code Java code public void addPart(PartCMP part) | { | cartOrder.addPosition(part, 1); | } But when I use 2 arguments, I am getting IllegalArgumentExcepti

[jboss-user] [JBoss Seam] - Re: Method binding with context variable as a parameter - pa

2007-06-20 Thread dkane
Thanks a lot Pete, it was the case. Solved. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4056083#4056083 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4056083 ___ jboss-user

[jboss-user] [JBoss Seam] - Method binding with context variable as a parameter - parser

2007-06-20 Thread dkane
Hello In example 1.23 listing of Seam documentation I see the code : | | Name | #{hot.name} | | | Address | #{hot.address} | | | City, State | #{hot.city}, #{hot.state}, #{hot.country} | | |

[jboss-user] [JBoss Seam] - Re: javax.el.ELException , unable to localize the error

2007-06-19 Thread dkane
"ChristopheA" wrote : Is your findPart method declared in the PartSearch interface ? | Yes @Local | public interface PartSearch | { | public int getPageSize(); | public void setPageSize(int pageSize); | | public String getSearchString(); | public void setSearchString

  1   2   >