[jboss-user] [JBoss AOP] - Re: help with poincut for annotation parameter values

2008-12-19 Thread vladimir.kovalyuk
DerMas, thanks for help. I'm afraid what I'm looking for is actually not supported. Dynamic interception won't help 'cause I have to reflect aspectized classes. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4197589#4197589 Reply to the post : http://www.jbo

[jboss-user] [JBoss AOP] - help with poincut for annotation parameter values

2008-12-12 Thread vladimir.kovalyuk
I'd like to add mixins to all the classes annotated with: @Mixins(value={Mixin1.class, Mixin2.class}) public class TargetClass { } My understanding is that I have to define 2 aspects for Mixin1 and Mixin2 classes. But I can't work out pointcuts for them. Could anybody help me? View the origina

[jboss-user] [JBoss Tools (users)] - Re: HMTL Editor, style attribute and Seam

2008-07-31 Thread vladimir.kovalyuk
xhtml - JSF facelets page View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4167988#4167988 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4167988 ___ jboss-user mailing list jboss

[jboss-user] [JBoss Tools (users)] - HMTL Editor, style attribute and Seam

2008-07-31 Thread vladimir.kovalyuk
Ctrl+Space in style="" gives a list of #{} expressions. I'like to see a list of CSS styles and their possible values. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4167984#4167984 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=

[jboss-user] [JBoss Tools (users)] - Horrible formatting in HTML Source Editor

2008-07-31 Thread vladimir.kovalyuk
I have the same problem described in the topic http://www.jboss.com/index.html?module=bb&op=viewtopic&t=100594&postdays=0&postorder=asc&start=10 How can I fix that with newest JBoss Tools? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4167849#4167849 Reply

[jboss-user] [JBoss Seam] - Re: Dynamic Entity Beans

2008-01-31 Thread vladimir.kovalyuk
anonymous wrote : 1.) Does seam support dynamic forms? | I want to generate the form from the database. AFAIK it doesn't. If it did I would have employed them. I saw some applications that provide extensionable entities (look for instance at JIRA - it's possible to configure additional proper

[jboss-user] [JBoss Seam] - Re: FacesContext is null in Identity.initCredentialsFromCook

2008-01-29 Thread vladimir.kovalyuk
"Remember me" hasn't worked for me as of 2.0.1 CR1. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4124299#4124299 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4124299 ___ jb

[jboss-user] [JBoss Seam] - Re: Get feedback from the process of scanning classpath

2008-01-29 Thread vladimir.kovalyuk
Can I make use of it before 2.1 somehow? If negative when 2.1 is issued? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4124284#4124284 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4124284 __

[jboss-user] [JBoss Seam] - Re: SFSB vs. JavaBean

2008-01-28 Thread vladimir.kovalyuk
"vladimir.kovalyuk" wrote : 1. Does JPA persistence context propagation rules work for Seam-managed conversation-scoped Beans? "[EMAIL PROTECTED]" wrote : | No, they are different. JPA persistence context propagation rules are complex. SMPC propgation is simple. You will

[jboss-user] [JBoss Seam] - Get feedback from the process of scanning classpath

2008-01-28 Thread vladimir.kovalyuk
As long as Seam scans classpath in order to build list of components I'm wondering whether it's possible to get involved into the process instead of introducing third one (in addition to EJB and Seam). Ideally I'd like to get feedback for each class. View the original post : http://www.jboss.

[jboss-user] [JBoss Seam] - Re: SFSB vs. JavaBean

2008-01-25 Thread vladimir.kovalyuk
At the time of starting new project I used POJO beans with ease. At some point simple things ceased to work and got to work only after moving toward SFSB. When I employed EntityHome I obtained "stale object" exception. If I understand correctly it happened because persistence context was not pro

[jboss-user] [JBoss Seam] - Cancel application loading in @Startup component

2008-01-24 Thread vladimir.kovalyuk
When application environment/configuration is corrupted the @Startup component should report failure and stop loading application. How to gracefully cancel loading of Seam based application? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4123331#4123331 Reply

[jboss-user] [JBoss Seam] - Re: Seam eats exceptions

2008-01-15 Thread vladimir.kovalyuk
Interesting ... In fact setting breakpoint on RemoveInterceptor helps to figure out the root cause. How to figure out who eats the exception (using Eclipse debugger for instance)? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4120169#4120169 Reply to the pos

[jboss-user] [JBoss Seam] - Re: FacesExpressions.isFacesContextActive()

2008-01-14 Thread vladimir.kovalyuk
Ok, another side: isFacesContextActive() returns false when handling JSF request (and active Faces context exists). Given source code is an excerpt from Seam 2.0.1 CR1 build. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4119927#4119927 Reply to the post :

[jboss-user] [JBoss Seam] - FacesExpressions.isFacesContextActive()

2008-01-14 Thread vladimir.kovalyuk
| public class FacesExpressions extends Expressions | { | |protected boolean isFacesContextActive() |{ | return FacesContext.getCurrentInstance()==null; |} | The result is true when there is no active faces context. Is it ok? View the original post : htt

[jboss-user] [JBoss Seam] - Re: How to return to a previous page without conversations

2007-12-05 Thread vladimir.kovalyuk
Christian, did Seam Team have a chance to implement entry/exit points? I'm looking for the common soluiton where "Close" button returns user to the previous page regardless whether it was long running transaciton or not. View the original post : http://www.jboss.com/index.html?module=bb&op=vi

[jboss-user] [JBoss Seam] - Re: JBoss EL performance vs Sun EL

2007-09-24 Thread vladimir.kovalyuk
A hundred of interceptors are involved into the EL expression evaluation for each "enterprise_bean.property" construction. I believe you need to "outject" your data into "request scope" before profiling in order not to mix EL and interceptors contribution into the result. View the original post

[jboss-user] [JBoss Seam] - Re: is it possible to complete JBPM task and update entity a

2007-08-26 Thread vladimir.kovalyuk
Pete, I fixed it by implementing my own version of org.jbpm.persistence.db.DbPersistenceServiceFactory and properly configuring jbpm.xfg.xml. In my case jBPM persistence is configured to use EntityManagerFactory, I use sessionFactoryJndiName property to point to it. Original DbPersistenceServic

[jboss-user] [JBoss jBPM] - Re: Is jBPM Persistence supposed to be EJB componenet somewh

2007-08-26 Thread vladimir.kovalyuk
I mean EJB3. Currently it's not easy to even make it work with Hibernate EntityManagerFactory. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4078106#4078106 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4078106 __

[jboss-user] [JBoss jBPM] - Is jBPM Persistence supposed to be EJB componenet somewhen?

2007-08-26 Thread vladimir.kovalyuk
Is jBPM Persistence supposed to be EJB componenet somewhen? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4078105#4078105 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4078105 ___

[jboss-user] [JBoss jBPM] - Re: Custom TaskInstance as EJB3 entity, how to?

2007-08-23 Thread vladimir.kovalyuk
It seems that Hibernate does not allow to derive custom TaskInstance as EJB3 entity. And jBPM queries its own TaskIntanceS, so we have to derive from TaskInstance. My guess is I won't succeed with that. Nevertheless how to get my custom TaskInstance beeing EJB3 entity or referencing another EJB

[jboss-user] [JBoss jBPM] - Custom TaskInstance as EJB3 entity, how to?

2007-08-23 Thread vladimir.kovalyuk
I'd like to extend TaskInstance. In particular customised task instance has to keep references to other EJB3 entities (to be used in queries for instance). How it could be implemented/configured? P.S. I use Hibernate as JPA implementation View the original post : http://www.jboss.com/index.htm

[jboss-user] [JBoss Seam] - HTTPS redirection

2007-08-17 Thread vladimir.kovalyuk
My login.page.xml looks like | | http://jboss.com/products/seam/pages"; | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; | xsi:schemaLocation="http://jboss.com/products/seam/pages http://jboss.com/products/seam/pages-2.0.xsd"; | scheme="https"> | ... | | w

[jboss-user] [JBoss Seam] - Capability of inserting permissions into working memory want

2007-08-17 Thread vladimir.kovalyuk
I'd like to something like the following: | class Authenticator { | boolean authenticate() { | User user = em.createQuery(...); | ... | Identity.instance().addRole(string); | for(UserRole role:user.getRoles()) | for(String permission:role.getPermissions())

[jboss-user] [JBoss Seam] - Re: Seam/hibernate search

2007-08-16 Thread vladimir.kovalyuk
Milli please check out dvdstore example that is shipped with seam 2.0beta1. I remember seeing that it was configured in persistence.xml. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4074968#4074968 Reply to the post : http://www.jboss.com/index.html?module=

[jboss-user] [JBoss Seam] - is it possible to complete JBPM task and update entity as an

2007-08-09 Thread vladimir.kovalyuk
is it possible to start a JBPM process and update entity as an atomic operation? SFSB creates a process and saves its id as a property of an entity. I see changes in jbpm tables when entity hasn't been changed yet. How can I make jbpm use transactions while seam says: jBPM transaction management

[jboss-user] [JBoss Seam] - Re: entity's lifecycle and jBPM

2007-08-08 Thread vladimir.kovalyuk
My understanding is different. For instance once the author of a document completed with draft it might ask somebody to review the document. And the process of reviewing would be a normal business process. As the result of reviewing the document could be promoted to the next state. But, when it

[jboss-user] [JBoss Seam] - entity's lifecycle and jBPM

2007-08-08 Thread vladimir.kovalyuk
The question is "Can Seam+jBPM help with implementing entity's lifecycle?" Let's consider Document as an example of entity that has lifecycle. The states are as follows: Draft, Pending Verification, Pending Approval, Archived. >From my perspective lifecycle is a graph with states and actions (tra

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

2007-08-08 Thread vladimir.kovalyuk
Dkane, probably Lifecycle would meet your requirements. >From my perspective Lifecycle can be defined by jPDL. But I still in research >how Seam contexts could help. I'm going to create a new topic. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4072105#4072

[jboss-user] [JBoss Seam] - Re: Complex validation

2007-02-09 Thread vladimir.kovalyuk
It seems that simple validation (related to entity itself) is completely covered by Seam, except custom hibernate validators. AFAIK hibernate validator is supposed to work without hibernate itself, for instance it should work with Kodo. Complex validation (how entity correlates to the other enti

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

2007-02-09 Thread vladimir.kovalyuk
Does Icefaces 1.5.3 support Seam debug page and request parameters? I remember exceptions. It's great news that two teams have intentions to make two technologies working well together. Is it a time to inspect Icefaces compatibility with Seam once again? Or we should wait for a while? View the

[jboss-user] [JBoss Seam] - Complex validation

2007-02-09 Thread vladimir.kovalyuk
May I propose some extensions for registration functionality for the Booking example? 1. Implement Hibernate custom validator for checking password and re-entered password equality. Actually reference manual refers Hibernate custom validators, but there is no example. 2. Perform custom val

[jboss-user] [JBoss Seam] - Re: Seam and granularity

2007-02-07 Thread vladimir.kovalyuk
Christian, the problem is in the fact that Seam provides me with a lot of possibilities of designing JSF<->EJB interchanging. Now I have to try out several approaches on my own and work out my best practices. And someone have to do the same on his/her own. I don't know whether Seam book have a c

[jboss-user] [JBoss Seam] - Re: Seam and granularity

2007-02-07 Thread vladimir.kovalyuk
A little bit more ... http://jcp.org/en/jsr/detail?id=299 anonymous wrote : | ...JBoss has submitted JSR 299 - Web Beans to the JCP for review. "The goal of this work is to enable EJB 3.0 components to be used as JSF managed beans, unifying the two component models and enabling a considerable

[jboss-user] [JBoss Seam] - Re: Seam + EJB3 performance

2007-01-30 Thread vladimir.kovalyuk
If DB issues are considered to be so serious why not to make one more seam with db4o? http://www.db4o.com Christian, I feel a little bit confused. The log contains single SQL statement that is not related to the tree, due to the fact that tree model is kept in SFSB (visible nodes only). Aaaah!

[jboss-user] [JBoss Seam] - Re: Seam + EJB3 performance

2007-01-30 Thread vladimir.kovalyuk
Christian, I'm not guessing. Here is my persistence.xml: | | | org.hibernate.ejb.HibernatePersistence | java:/codenameDatasource | | | | | | | | There is single SQL statement in the log th

[jboss-user] [JBoss Seam] - Re: Seam + EJB3 performance

2007-01-30 Thread vladimir.kovalyuk
Christian, thanks a lot for hints. It's interesting topic. Being impressed by long SQL statements generated by Hibernate and understanding that most of them are not required I decided that I need to try an idea of SFSB as backing bean. I annotated all the relations among entities as fetch=lazy. S

[jboss-user] [JBoss Seam] - Re: Seam + EJB3 performance

2007-01-29 Thread vladimir.kovalyuk
It seems that I do. There are menu with pop-up sub-menus on the top, tree with context menus on the left panel, and list of contents on the right panel. You can see that sort of design in Windows Explorer for instance. Usually the page is rendered (starting from second attempt) immediately, I mea

[jboss-user] [JBoss Seam] - Re: Confused about Seam/JSF/Facelets Tools - Seeking some Gu

2007-01-29 Thread vladimir.kovalyuk
Although I didn't find anything about Seam in JIRA JBIDE I hope eventually JBOSS IDE will be shipped with Seam plugins. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4008093#4008093 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mod

[jboss-user] [JBoss Seam] - Re: Seam + EJB3 performance

2007-01-29 Thread vladimir.kovalyuk
To be honest the latter. If I were able to perform true performance tests I'd provided you with figures. I thought you already have them. I just wanted to draw attention to the fact that contents of callstack between caller and callee is a very long journey and must cost a lot, even not taking in

[jboss-user] [JBoss Seam] - Re: Does Seam File Upload Component support very large files

2007-01-29 Thread vladimir.kovalyuk
Gaving, just to make sure, I understand that the next release of upload component will be capable of streaming the file to disk at the time when it is receiving bytes from the client side? And it will consume memory only by the size of intermediate buffer? View the original post : http://www.

[jboss-user] [JBoss Seam] - Re: Seam + EJB3 performance

2007-01-29 Thread vladimir.kovalyuk
And I don't find it convenient when I need to scroll a hundred lines in stack trace or Threads Window in order to find out what is the caller of my method. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4007975#4007975 Reply to the post : http://www.jboss.co

[jboss-user] [JBoss Seam] - Seam + EJB3 performance

2007-01-29 Thread vladimir.kovalyuk
I'm concerned about impressive stack traces. Considering SFSB as backing beans for JSF we need to take into account a lot of interceptors introduced by EJB3 (JBOSS implementation) and Seam. So I'd like to raise question about possible optimization on that matter. I believe that hundred calls cost

[jboss-user] [JBoss Seam] - Does Seam File Upload Component support very large files?

2007-01-29 Thread vladimir.kovalyuk
As far as I understand the content of file is part of POST request. So I'm wandering whether it possible to upload very large files. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4007926#4007926 Reply to the post : http://www.jboss.com/index.html?module=bb&op

[jboss-user] [JBoss Seam] - Re: Can use Set<> for @OneToMany property

2007-01-24 Thread vladimir.kovalyuk
I would cool if JSF supported java.lang.Iterable as well. (It's importance can't be estimated without C#'s "yield return" statement though) Anyway custom DataModels for those interfaces are welcome in Seam. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4005983

[jboss-user] [JBoss Seam] - Error in SeamSecurityFilter

2007-01-24 Thread vladimir.kovalyuk
I realized that when user is accessing a page when it is not logged in, the first thing that is happening is JSF lifecycle due to the error in SeamSecurityFilter: | if (!checkSecurityConstraints(hRequest.getServletPath(), hRequest.getMethod(), ident)) | hResponse.sendRedirect(Str

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

2007-01-19 Thread vladimir.kovalyuk
Is is possible to start a new conversation with @Begin and leave the current one untouched? As result there will be two sibling conversations. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4003849#4003849 Reply to the post : http://www.jboss.com/index.html?

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

2007-01-19 Thread vladimir.kovalyuk
Bad news :( I don't want to rewrite UiValidateAll, but it seems that it is the only way. I haven't realized yet how to build the expression. Probably I will need to access to private field "orig" in some class. It keeps the original expression. It won't be difficult to traverse all the ASF class

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

2007-01-19 Thread vladimir.kovalyuk
I fixed some lines in that class got NPE. I realized that validate() takes script component tag parameters instead of evaluated expression. I debugged a lot JSF RI 1.2 and EL and realized that EL defers evaluation. Thus by calling valueBinding.getExpressionString() in ModelValidator.validate() S

[jboss-user] [JBoss Seam] - and "Advanced Facelets Programming". Is it a

2007-01-19 Thread vladimir.kovalyuk
I was impressed by http://www-128.ibm.com/developerworks/web/library/j-facelets2.html I tried to implement similar approach but I got StringOutOfRangeException. That was the first problem with Validators class. It is in the following string: String modelExpression = propertyExpression.substring(0

[jboss-user] [JBoss Seam] - Re: Invitation to try new Seam authentication features

2007-01-18 Thread vladimir.kovalyuk
I've tried it out. It works. But it requires some effort for working out an approach of returning the user to the requested page after he successfully logged in. Is it planned for seamspace example? Shane, I'm looking forward for that release. Especially for authorization based on Rules. View

[jboss-user] [JBoss Seam] - Seam always installs processdefinitions listed in core:jbpm

2007-01-16 Thread vladimir.kovalyuk
I realized that jbpm_processdefinition table grows every start of application. New versions of processes are installed. Is it ok for non-in-memory databases? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4002420#4002420 Reply to the post : http://www.jbos

[jboss-user] [JBoss Seam] - How to: return to the page when user was prior to start conv

2007-01-16 Thread vladimir.kovalyuk
Consider the following scenario: There is an entity in the system, say Document. It can be displayed on the front page of the application (non-conversational state). It can be displayed as an attachment in the pageflow related to the assigned task (conversational state). In both states user is a

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

2007-01-16 Thread vladimir.kovalyuk
I forgot to say that there is no any file corresponding to the fake page in pages.xhtml. What I don't like in that design that I don't read from pages.xml that Seam will redirect me to the real page after invoking page action. All the implicit logic is a field where bugs are coming from. View

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

2007-01-16 Thread vladimir.kovalyuk
I tried the following scenario: Page /object_details.xhtml is designed to show details of my particular object. I tuned pages.xml to map request parameters (such as objejctId) to properties of my SFSB backing the page. And my custom page action was marked as @Begin. I realized that in spite wheth

[jboss-user] [JBoss Seam] - Re: Seam Security: authentication and authorization example

2007-01-16 Thread vladimir.kovalyuk
While debugging the configuration from the documentation | | | Secure Page | /secure/*.seam | | | admin | | | I realized that the problem is in SecurityConstraint.matchPattern(String path, String pattern) I replaced /secure/*.seam with

[jboss-user] [JBoss Seam] - Seam Security: authentication and authorization example want

2007-01-15 Thread vladimir.kovalyuk
I downloaded the latest Seam Build and tried to incorporate Seam Security as it's explained in Chapter 21. I didn't manage to make security filter work. Probably a simple example would help. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4001928#4001928 Reply