[jboss-user] [JBoss Seam] - Re: old RichFaces bug: MethodNotFoundException back?

2008-02-01 Thread beligum
I found the fix for this: add jboss-web.xml to the web context with a seperate classloader: | | | seam.jboss.org:loader= | java2ParentDelegation=false | | | and add the richfaces-impl.jar to the ejb context (richfaces-api.jar and richfaces-ui.jar go

[jboss-user] [JBossWS] - Re: strange: NoClassDefFoundError: org/jboss/wsf/spi/invocat

2008-01-29 Thread beligum
Jip, the ant deploy script of jbossws does that for me. The jar is there, but still a classnotfoundexception... View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4124484#4124484 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p

[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Using different databases without

2008-01-29 Thread beligum
Hi all, I've got a simple configuration-question: Is it possible to use 2 databases in my project, without specifying which class is mapped to which database (using and in persistence.xml), but instead, depending totally on the catalog="mydb" property of the @Table entity annotation? thx.

[jboss-user] [JBossWS] - strange: NoClassDefFoundError: org/jboss/wsf/spi/invocation/

2008-01-28 Thread beligum
Hi all, Please help me with this one: I've been trying to solve it all night. I "patched" a fresh installed EAP-server (AS 4.2.0) (jboss developer studio) with jbossws 2.0.0 and am trying to deploy a webservices-enabled EAR. All goes well, until I get this error: | 03:51:26,409 ERROR [MainDe

[jboss-user] [JBoss Seam] - Re: old RichFaces bug: MethodNotFoundException back?

2008-01-28 Thread beligum
Did some more work on this: When (in the bean), I use this function: | public Boolean adviseFileSystemTreeNodeOpened(UITree tree) | { | Inode inode = ((FileSystemTreeNode)tree.getRowData()).getInode(); | if (this.getSelectedSpaceMember()!=null) { |return inode.hasAs

[jboss-user] [JBoss Tools (users)] - Re: visualisation of #{messages['word']}

2008-01-16 Thread beligum
Oh great, that will be so cool. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4120349#4120349 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4120349 ___ jboss-user mailing list

[jboss-user] [JBoss Tools (users)] - visualisation of #{messages['word']}

2008-01-16 Thread beligum
Hi all, I just bought Jboss Developer Studio and I'm exploring it right now. Seems cool (too bad you have to go with the WTP-approach for full support, though) so far, but I wonder; Is there a way to visualize the #{messages['word']} i18n EL expressions with their content and default locale? Wo

[jboss-user] [JBoss Seam] - Re: bug in Seam + JbossWS

2007-12-18 Thread beligum
Sorry Jay, no I don't. I've been using seam since the beginning, and my build.xml doesn't even look like the one, provided with the examples. Perhaps, I should refactor it accordingly. Btw, I tried it out with the seambay example, and it works perfect, so I didn't get it from there... b. View

[jboss-user] [JBoss Seam] - Re: bug in Seam + JbossWS

2007-12-17 Thread beligum
Whow, Jay, thanks for this. I really should have thought if this myself, sorry for that. My drl file was in the war/classes folder (don't really know why, I may have followed an example case). After moving it to the root ear dir, both approaches work. Again, thanks. bram View the original post

[jboss-user] [JBoss Seam] - old RichFaces bug: MethodNotFoundException back?

2007-12-17 Thread beligum
Hi all, When I use "adviseNodeOpened" in a rich:tree component, I end up with a javax.faces.el.MethodNotFoundException: /app/tumbolia/panels/main/space/showSpace.xhtml @198,65 adviseNodeOpened="#{fileSystemManager.adviseFileSystemTreeNodeOpened}": Method not found: FileSystemManagerImpl:3j011

[jboss-user] [JBoss Seam] - bug in Seam + JbossWS

2007-12-17 Thread beligum
Hi all, I wanted to check this before submitting it to JIRA: (cross-posted to JbossWS, but got no reply: http://www.jboss.com/index.html?module=bb&op=viewtopic&t=125662) I don't really know where to post this, but I guess it's more WS-related than it is Seam-related. Here's the issue: When I s

[jboss-user] [JBossWS] - return type polymorphism issue, please help

2007-12-13 Thread beligum
Hi all, I guess this should be easy for some of you experts, so I hope to get an answer here, after searching for this bug for a couple of hours now. Here's the situation: | @XmlJavaTypeAdapter(AbstractInodeImpl.Adapter.class) | public interface Inode extends Serializable, Comparable, Clone

[jboss-user] [JBossWS] - webservice login and initialization is Seam

2007-12-11 Thread beligum
Hi all, I don't really know where to post this, but I guess it's more WS-related than it is Seam-related. Here's the issue: When I start an (ear) application, and nobody went to the website, before a remote login()-webserviceservice is contacted (which uses the seam Identity component to login

[jboss-user] [JBoss Seam] - Re: seambay example always throws NotLoggedInException

2007-12-11 Thread beligum
Thanks for the reply, Shane. After a search-marathon, I came up with how to do this: | ((BindingProvider)auctionService).getRequestContext().put(BindingProvider.SESSION_MAINTAIN_PROPERTY, true); | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4111920

[jboss-user] [JBoss Seam] - seambay example always throws NotLoggedInException

2007-12-10 Thread beligum
Hi, I've been trying to access the seambay example from a small client-webservice. (note: the stub-code was generated with wsimport without any trouble) Here's my code: | public class AuctionTester | { | AuctionService auctionService; | | public AuctionTester() | {

[jboss-user] [JBoss Seam] - Re: Seam Email - IllegalStateException: No Factories configu

2007-12-09 Thread beligum
Hi Pete, As this may be true, I'm still having troubles with UseJBossWebLoader=false and JSF, eg when using RichFaces' Tree and adviseNodeOpened, throwing this exception: | 06:11:09,568 ERROR [STDERR] Dec 10, 2007 6:11:09 AM com.sun.facelets.FaceletViewHandler handleRenderException | SEVE

[jboss-user] [JBoss Seam] - send mails on session destroy

2007-12-05 Thread beligum
Hi all, I'm trying to send some queued mails when the session end (sort of an auto-send outbox pattern). I've tried a lot of options, but I always encounter problems. What I have: A stateless bean (tried it with a javabean too) emailManager that sends the messages (javabean that contains a Ren

[jboss-user] [EJB 3.0] - @PreDestroy and injected JavaBeans

2007-11-29 Thread beligum
Hi all, I'm trying to do the following: | @Stateful | @Scope(SESSION) | @Name("outboxManager") | public class OutboxManagerImpl extends AbstractManagerImpl implements OutboxManager, Serializable | { | private Map> queuedMessages; | | @In(create=true) | private

[jboss-user] [JBoss Seam] - Re: odd pages.xml behavior

2007-11-24 Thread beligum
Great, thanks, didn't know that. Works like a charm. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4107530#4107530 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4107530 ___ jb

[jboss-user] [JBoss Seam] - odd pages.xml behavior

2007-11-21 Thread beligum
Hi guys, Any idea why this gives a 404 ? | | | | | | | The registerBegin.xhtml is 'virtual', but the /register.xhtml exists, still, I get a 404... b. View the original post : http://www.jboss.com/index.

[jboss-user] [JBoss Seam] - Re: deep long-lasting serialization error, please help

2007-11-17 Thread beligum
I didn't before, but I do have it set to transient now. The point is: it took me quite a while to realize that the InputStream wasn't serializable. Perhaps a little warning in the docs, near s:uploadFile, could help others with the same problem, since it's common use, I guess. View the original

[jboss-user] [JBoss Seam] - Re: deep long-lasting serialization error, please help

2007-11-16 Thread beligum
hmmm, this didn't seem to have anything to do with it. I added jaxen jar file, but the error persisted. (I guess this one is already included in the seam/jboss libs, no?). As I mentioned before, the error occurred after a file was uploaded, and not processed. Adding this to my stateful session b

[jboss-user] [JBoss Seam] - Re: deep long-lasting serialization error, please help

2007-11-16 Thread beligum
Thanks for your answer peter, I will try that. One remark though: For all I found out, this seems to happen when a conversation runs out of scope, after a file was uploaded (and hasn't been processed yet). Is it possible that the serializer crashes on the 'stale' uploaded file(pointer)? And how

[jboss-user] [JBoss Seam] - Re: List re-initialization after nested conversation

2007-10-10 Thread beligum
Just a thought: could it be that the list isn't passivated in session scope? Had some problems with passivating lists in the past... View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4093388#4093388 Reply to the post : http://www.jboss.com/index.html?module=bb&op

[jboss-user] [JBoss Seam] - Re: List re-initialization after nested conversation

2007-10-09 Thread beligum
oh great, I totally lost track of this post! Nice to hear it's resolved (created a workaround instead of solving it). thx View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4092921#4092921 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&m

[jboss-user] [JBoss Seam] - Re: List re-initialization after nested conversation

2007-09-27 Thread beligum
Hi Jacob, (not at home right now, don't have the code at hand, but coming up) that's exactly what I'm doing, except for the | @Begin(nested=true) | public void withinNestedConversation() { | myList = new ArrayList(); | myList.add(somethingElse); | } | I don't really touch myL

[jboss-user] [JBoss Seam] - List re-initialization after nested conversation

2007-09-27 Thread beligum
Hi all, I have a List-object, containing a couple of entity-beans in a stateful session bean, in a conversation context. When I start a nested conversation, alter one of these entity-beans, and come back with end-conversation, the List-object is not correctly set back, but contains null-values

[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: bidirectional OneToMany throws LazyInitializationExcepti

2007-06-27 Thread beligum
Hi, thanks for this. It didn't help me along, but got me jumpstarted to solve the (rather complex) issue. For follow-up reasons, check this: http://forum.hibernate.org/viewtopic.php?t=961213 and http://jroller.com/page/eyallupu?entry=getting_a_wrongclassexception_when_mapping The @Where solutio

[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - bidirectional OneToMany throws LazyInitializationException

2007-06-22 Thread beligum
Hi all, I've a specific problem with my EJB3 Hibernate code (using Seam, but I don't think this has anything to do with it). This is my case: I have a superclass entity bean: DefaultAccessControlList | @Entity | @Table(name="access_control_list") | @Inheritance(strategy=InheritanceType

[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: the never ending flow of optimistic locking questions

2007-06-20 Thread beligum
Hi Fernando, thanks for your response. Please let me recapitulate to check if I understand everything correctly. So I have a JSF form with a submit-button, linked to the POJO action method. This action has an (TransactionAttributeType.REQUIRES_NEW) annotation, so it will start a new transaction.

[jboss-user] [JBoss Seam] - the never ending flow of optimistic locking questions

2007-06-19 Thread beligum
Hi all, This question must be getting boresome to some of you experts here, but please help an intermediate developer along with some answers to a few simple questions regarding the subject. I use the @Version annotation in my EJB3 entity bean (Seam, JTA), and, while a user edits the bean-conte

[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - the never ending flow of optimistic locking questions

2007-06-19 Thread beligum
Hi all, This question must be getting boresome to some of you experts here, but please help an intermediate developer along with some answers to a few simple questions regarding the subject. I use the @Version annotation in my EJB3 entity bean (Seam, JTA), and, while a user edits the bean-conte

[jboss-user] [JBoss Seam] - Re: My list of questions: Seam validation, transactions and

2007-06-10 Thread beligum
While I'm at it, there's another thing that confuses me. If I login, I select a space (that I'm member of), and a LR conversation is started that keeps track of my do's and don'ts in that space. However, if I'm an admin of that space, I can click the "edit" button that takes me to the page wher

[jboss-user] [JBoss Seam] - Re: My list of questions: Seam validation, transactions and

2007-06-10 Thread beligum
omg, I think I found the problem... For clarity, I omitted this section in the second form-entry: | | #{messages['noMembersPresent']} | | so the second entry actually is: | | | company | | | | |

[jboss-user] [JBoss Seam] - Re: My list of questions: Seam validation, transactions and

2007-06-10 Thread beligum
Hi Gavin, here's my code without the templates: | | | | name | | | | | | company | | | |

[jboss-user] [JBoss Seam] - Re: My list of questions: Seam validation, transactions and

2007-06-10 Thread beligum
I'm getting strange behaviour, and my guess is it's caused because of my misunderstanding of conversations (yes, I've read through the entire manual and many other docs too :-). I'll try to explain my 'workflow' in my own words, maybe I'm thinking wrong. I log in (almost default authenticator)

[jboss-user] [JBoss Seam] - Re: My list of questions: Seam validation, transactions and

2007-06-10 Thread beligum
I tried to extract the functionality from my app and created a simple example out of it, just like Peter suggested. Seems like all is well there. Validation occurs, and transaction rollback happens when an exception is thrown or the @Rollback is triggered. Apparently, I'm doing something wrong el

[jboss-user] [JBoss Seam] - Re: My list of questions: Seam validation, transactions and

2007-06-10 Thread beligum
Hi again. I've done some debugging and found interesting results. In my update-form, I have these input-controls (they're templated, but you get the point) | | | | | | | | | | | | | | | |

[jboss-user] [JBoss Seam] - Re: My list of questions: Seam validation, transactions and

2007-06-10 Thread beligum
Thanks for your replies guys, you cleared out some confusing matter to me. The quality of the community-helpdesk around Seam is most certainly one of the reasons it's adoption-rate is elevating so quickly. I'll try to share my findings with other people, once I've catched up with some deeper stuf

[jboss-user] [JBoss Seam] - Re: My list of questions: Seam validation, transactions and

2007-06-09 Thread beligum
Hi guys, thanks for the replies, this is great stuff. Any chance anyone wants to explain what happens if a RuntimeException is thrown in my update() method? This is the only major conceptual hurdle I'm still struggling with. My common sense tells me, when that method 'fails', the update model v

[jboss-user] [JBoss Seam] - My list of questions: Seam validation, transactions and exte

2007-06-09 Thread beligum
Hi all, I know this is a much-asked topic/question, but it would be cool if someone takes the time to explain a thing or two to me. Don't think I'm lazy; I've been reading up on this all day, I just need some clarification ;-) I also hope this is the right forum to ask, since it's pretty much s

[jboss-user] [JBoss Seam] - Re: Simple question from an not-noob developer

2007-06-09 Thread beligum
This worked, thanks Gavin. But is there no possibility to do the redirect from the page if the variable is empty? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4052832#4052832 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=repl

[jboss-user] [JBoss Seam] - Re: Simple question from an not-noob developer

2007-06-09 Thread beligum
Yeah, I thought that too, but it doesn't work at all, same exception. I moved everything (including security) to a page-action, but it's a shame, because, if you ask me, it doesn't belong there. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4052790#4052790 Re

[jboss-user] [JBoss Seam] - Simple question from an not-noob developer

2007-06-08 Thread beligum
Hi all, Quick question I've been stuggling with for a day now: I have a page that uses an outjected variable/bean. That variable is set by an action bean after selection from a list. However, when a user accesses the target page directly, without going through the selection page, that variable w

[jboss-user] [EJB 3.0] - My own EntityManager, how to do it?

2007-05-17 Thread beligum
Hi all, I'd like to use my own class that implements javax.persistence.EntityManager, as a wrapper around the PersistenceContext (to do additional operations on entity beans that contain other EB). Is there a way to do this in a clean way, configuration-wise? View the original post : http://ww

[jboss-user] [JBoss Seam] - a4j validation tutorial example bug

2007-05-09 Thread beligum
Hi all, I have some problems with the a4j validation, suggested in the seam tutorial: | | Country: | | | | | If I use this piece of code in my app, and I use a to submit the form, when I press enter while in the inputbox, the application cr

[jboss-user] [JBoss Seam] - Re: s:selectDate ajaxRender

2007-04-09 Thread beligum
Posted on jira: http://jira.jboss.com/jira/browse/JBSEAM-1156 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4035705#4035705 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4035705 _

[jboss-user] [JBoss Seam] - Re: s:selectDate ajaxRender

2007-04-09 Thread beligum
Same problem here... View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4035703#4035703 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4035703 ___ jboss-user mailing list jboss-user

[jboss-user] [JBoss Seam] - Re: Expression Language in Java; simple, but impossible?

2007-04-06 Thread beligum
Answer to my own question for future reference: String str = (String)Expressions.instance().createValueBinding("#{yourElString}").getValue(); View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4035296#4035296 Reply to the post : http://www.jboss.com/index.html?m

[jboss-user] [JBoss Seam] - Expression Language in Java; simple, but impossible?

2007-04-06 Thread beligum
Hi all, I've been searching for a solution to this simple issue for over an hour now: How do I dynamically interpret an EL-string in Java-code? I found this: | FacesContext context=FacesContext.getCurrentInstance(); | ValueExpression vex=context.getApplication().getExpressionFactory().creat

[jboss-user] [JBoss Seam] - Hibernate annotations and Lucene

2007-03-01 Thread beligum
Hi all, I'm trying to integrate Lucene into Seam (planning to write a wiki-item on this topic). It seems like it's possible, but there are some versioning-issues with the Hibernate packages. The hibernate-annotations.jar package contains the org.hibernate.search package, but it's not in the ejb

[jboss-user] [JBoss Seam] - page.xml and restrict

2007-02-14 Thread beligum
Hi all, I'm trying to secure my application file-tree with pages.xml. My content (to be secured) resides in /main/*, but I'd like to 'flag' some files in this tree as publicly accessible, without removing them from /main/* Currently, this is my pages.xml : | | #{identity.loggedIn} |

[jboss-user] [JBoss Seam] - Re: File upload tutorial not valid anymore?

2007-01-19 Thread beligum
I found a solution. Use this tutorial: http://wiki.jboss.org/wiki/Wiki.jsp?page=Alternative_FileUpload, especially the parts regarding the MANIFEST.MF, and you'll be fine. At least, I was... b. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4003832#4003832 R

[jboss-user] [JBoss Seam] - File upload tutorial not valid anymore?

2007-01-19 Thread beligum
Hi all, I followed the tutorial on http://wiki.jboss.org/wiki/Wiki.jsp?page=SeamFileUpload (also read the ONJava article), and tried to implement it myself, using: jboss-4.0.5.GA jboss-seam-1.1.0.GA tomahawk-1.1.3 commons-fileupload-1.1.1 commons-io-1.2 (that's it, right?) Everything went well,

[jboss-user] [JBoss Seam] - Re: Straightforward ejb3 mapping problem

2007-01-18 Thread beligum
I've had a chat a few minutes ago and here's the answer: (from http://www.hibernate.org/hib_docs/annotations/reference/en/html_single/#d0e161) anonymous wrote : Depending on whether you annotate fields or methods, the access type used by Hibernate will be field or property. The EJB3 spec require

[jboss-user] [JBoss Seam] - Straightforward ejb3 mapping problem

2007-01-18 Thread beligum
Hi all, I've got a simple, but annoying mapping-problem: My (MySQL) DB-table has a column named compositeId of type INTEGER. I'd like to generate that value in my Entity bean, using the getter method : public Integer getCompositeId(); Somehow, my getter isn't called when I'm persisting the bea

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

2007-01-16 Thread beligum
done: http://jira.jboss.com/jira/browse/JBSEAM-661 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4002227#4002227 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4002227 ___ jbos

[jboss-user] [JBoss Seam] - BUG

2007-01-16 Thread beligum
Hi all, I think I found a bug in the way s:selectDate is implemented, when acessed from facelets. I use this in a facelet-template: | | | | | | | | And the template is instantiated as follows: | | | | | | | The "dynamic" ${i

[jboss-user] [JBoss Seam] - Seam view-id alias or redirect

2007-01-11 Thread beligum
Hi all, I'd like to abstract the opening view-id (/chooseAction.xhtml) to /main.xhtml . Is there a way to alias chooseAction.xhtml to main.xhtml or to redirect from main.xhtml to chooseAction.xhtml ? thank you ! bram View the original post : http://www.jboss.com/index.html?module=bb&op=viewto

[jboss-user] [JBoss Seam] - Quick entity question

2007-01-08 Thread beligum
Hi all, Quick question; isn't it possible to inject a persistence-context in an entity-bean? | @Entity | @Name("loginEntity") | public class LoginEntity | { | @In | @Transient | private EntityManager em; | } | thanks, b. View the original post : http://www.jbos

[jboss-user] [Security & JAAS/JBoss] - The Big JBoss Authentication Question

2007-01-04 Thread beligum
Hi all, I've been reading the http://wiki.jboss.org/wiki/Wiki.jsp?page=SeamAuthenticationGuide, which is really great but needs to be updated to the new API, apparently. I don't know if I should be the one doing this, but the new API for the AuthenticatorAction class method is: | public cla

[jboss-user] [JBoss Seam] - Re: Seam injection fails

2007-01-04 Thread beligum
Stupid me. You need to inject the interface-type instead of the implementation type: @In(create=true) private IRegisterAjax registerAjax; View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3997917#3997917 Reply to the post : http://www.jboss.com/index.html?module

[jboss-user] [JBoss Seam] - Seam injection fails

2007-01-04 Thread beligum
Hi all, Can someone tell me what I'm doing wrong here? I'm trying to inject the stateless RegisterAjaxAction class in my stateful RegisterAction class. Here's the code: | @Stateful | @Scope(CONVERSATION) | @Name("register") | public class RegisterAction implements IRegister | { |

[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Object persistence/rollback misconception

2007-01-02 Thread beligum
Hello everyone. (Perhaps I should start with a little NY-wish, well, this be it) I'm trying to wrap my thoughts around the entire ORM concept of JBoss (Hibernate+Seam in particular) and find it a little confusing, since my whole DB-background has been purely relational. I'd truly appreciate it i

[jboss-user] [JBoss Seam] - Transaction rollback doesn't work

2006-12-29 Thread beligum
Hello, I've got major problems with my transaction-rollback implementation, and I'm reading manuals for over two days now (I really like http://svn.nuxeo.org/nuxeo/ECMPlatform/NXCore/trunk/doc/Transactions.txt ), and I'm getting frustrated. The problem is fairly easy; I'm implemention a user-r