[jboss-user] [JBoss Seam] - Re: Nested Conversations (tricky interceptor)

2007-10-23 Thread denis-karpov
anonymous wrote : Entities references in conversational components are moved from the object to the conversation at the end of a request and are repopulated in the object at the beginning of the next request. As I understand not a request, but method invocation. I can tell you where is the

[jboss-user] [JBoss Seam] - Nested Conversations (tricky interceptor)

2007-10-22 Thread denis-karpov
From the first look my question seems to be trivial, but it is not. How to return some information form the nested conversation to the parent conversation? In docs there is line:anonymous wrote : A nested conversation has its own conversation context, and also has read-only access to the

[jboss-user] [JBoss Seam] - Re: HTML source codes has some characters like

2007-10-11 Thread denis-karpov
It is always the problem for non-english speaking people. In this case problem is in JSF RI. We have patch it for us just yesterday. com/sun/faces/util/HtmlUtils.java /** | * Writes a character as a decimal escape. Hex escapes are smaller than | * the decimal version, but

[jboss-user] [JBoss Seam] - Re: HTML source codes has some characters like

2007-10-11 Thread denis-karpov
Your box chicochen on hotmail.com doesn't accept my message. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4094142#4094142 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4094142

[jboss-user] [JBoss Seam] - Re: Discussion: FlushModeType.NONE ?

2007-09-27 Thread denis-karpov
FlushModeType.MANUAL does not help in every case. I have tired to struggle with flushing. The only sure way now is to evict objects from persistent context. Session session = (Session) getEntityManager().getDelegate(); | session.evict(obj); View the original post :

[jboss-user] [JBoss Seam] - Re: Discussion: FlushModeType.NONE ?

2007-09-27 Thread denis-karpov
Sorry that I didn't confirm my words. Right now I do not have sample. As I remember when I go through a decision with drools. Even in invalid case, when I simply return to the edit page, flushing occurs any way . decision name=validate | handler

[jboss-user] [JBoss Seam] - Re: Seam2, Pageflow, start-state

2007-08-30 Thread denis-karpov
Hmm... I use Netbeans and keep jboss-seam.jar where the doctor said :-) in the root of the ear. I guess, it is incidental superfluous restriction. In this case it can be considered as a bug. But it may have a deep reason. It's interesting to see a father's comments. Denis View the original

[jboss-user] [JBoss Seam] - Re: JSF performance tips in Seam applications

2007-08-29 Thread denis-karpov
About double requests I used for a long time the solution that I have proposed to Gavin http://jira.jboss.org/jira/browse/JBSEAM-183 Gavin by some reasons did not accept it in to Seam. I did not catch exactly why. As I understand it concerns clustering. I do not know about clustering, but

[jboss-user] [JBoss Seam] - Nightly build (23.08.07) problem with samples

2007-08-24 Thread denis-karpov
Can someone help me? I decide to try Seam 2.0 and took the nightly build (23.08.07) And I had problems with migration. Then I tried the famous booking sample. And it does not work for me. I have checked, ajax4jsf-1.1.1.jar is inside jboss-seam-booking.jar/WEB-INF/lib. Why it can't find

[jboss-user] [JBoss Seam] - Re: Passing data between nested conversations

2007-08-09 Thread denis-karpov
From the nested conversation you have access to the parent conversation scope. You can't add or remove from the parent scope, but you can get a reference to an any object and you can change the state of this object. Next thing you can do. You can pass parameters when you start nested

[jboss-user] [JBoss Seam] - Re: Passing data between nested conversations

2007-08-09 Thread denis-karpov
anonymous wrote : the question is how to add this object to the parent scope? It is the bad practice, to try to do this. Even if you hack this, Gavin will probably close this door in the next release ;-) Why not to make a special container that hold the shared state? And put this container to

[jboss-user] [JBoss Seam] - Re: How bad is unused conversations?

2007-07-25 Thread denis-karpov
Yes it is very important question. now we have: begin - marks current not long running conversation to be long running. end - marks current long running conversation to be not long running. join - join existing conversation (now it fails if there is no long running conversation, as I remember.

[jboss-user] [JBoss Seam] - Re: s:validate in custom facelets tag

2007-07-24 Thread denis-karpov
I have seen in JIRA http://jira.jboss.org/jira/browse/JBSEAM-313 that this issue was closed. But last comment is: anonymous wrote : Gavin King [18/Sep/06 07:29 PM] | AFAIK, there is nothing I can do in Seam to fix this. It is a limit of facelets. Was it issue fixed or just given up? If it

[jboss-user] [JBoss Seam] - Re: conversations join/nest

2007-07-13 Thread denis-karpov
Seam 1.2.1.GA public class Conversation implements Serializable | .. |public void beginNested() |{ | if ( Manager.instance().isLongRunningConversation() ) | { | Manager.instance().beginNestedConversation( Seam.getComponentName(Conversation.class) );

[jboss-user] [JBoss Seam] - Re: EntityHome usage recommended?

2007-07-11 Thread denis-karpov
What ever you do, you will need some functionality in your application that is already in EntityHome. At least, I suggest you to examine sources of it and catch the ideas and approaches . Then you can try to reuse it. View the original post :

[jboss-user] [JBoss Seam] - Re: UnitTesting and jBPM pageflow

2007-06-25 Thread denis-karpov
I think there is bug in testing(mock) environment (propagation of conversations with pageflow does not work) http://jira.jboss.org/jira/browse/JBSEAM-1000 View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4057265#4057265 Reply to the post :

[jboss-user] [JBoss Seam] - Re: Transaction Demarcation

2007-04-28 Thread denis-karpov
What do you need is user transactions. | import javax.ejb.TransactionManagement; | import javax.ejb.TransactionManagementType; | | | @TransactionManagement(TransactionManagementType.BEAN) | public class Q... | @In | private EntityManager entityManager; |

[jboss-user] [JBoss Seam] - Re: Navigation conceptual question

2007-04-27 Thread denis-karpov
Yes, I agree. It is very common situation. I also use nested conversations for this. You should end your nested conversation by java code. //@End | public String cancel() { | Conversation.instance().endAndRedirect(true); | return null; | } | or

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

2007-04-24 Thread denis-karpov
http://www.w3schools.com/tags/ref_entities.asp nbsp ; #160 ; View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4040105#4040105 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4040105

[jboss-user] [JBoss Seam] - Re: 2 questions about Seam

2007-03-30 Thread denis-karpov
Second question @Out @In works with contexts. @Out private String hotel; The @Out annotation declares that an attribute value is outjected to a context variable after method invocations. In this case, the context variable named hotel will be set to the value of the hotel instance variable

[jboss-user] [JBoss Seam] - How to disable Auto Flushing ?

2007-03-20 Thread denis-karpov
Is there a consistent way to control FlushMode? I have tried this, but it does not do what i expected. persistence.xml ... property name=hibernate.transaction.flush_before_completion value=false/ ... Yes. There is the annotation attribute @Begin(flushMode=MANUAL), but not always you can use

[jboss-user] [JBoss Seam] - Re: Overriding EntityHome.persist problems

2007-03-14 Thread denis-karpov
Why not to use pageflows for this. It is convenient and works smoothly for me. Pageflow . | page name=edit view-id=/exchange/buy.xhtml | descriptionqqq/description | redirect/ | transition name=save to=validate/ | transition

[jboss-user] [JBoss Seam] - Re: Testing Pageflow with SeamTest

2007-03-01 Thread denis-karpov
I think there is bug in testing environment (propagation of conversations with pageflow does not work) In this test there is 2 requests. In the first I start conversation and pageflow In the second conversation is lost. If I do not start pageflow then conversation propagates. public class

[jboss-user] [JBoss Seam] - Testing Pageflow with SeamTest

2007-02-27 Thread denis-karpov
Is it possible to test Pageflow conversations with the mock environment ? Is there a special technique or a sample how to do this? P.S. I have found that Seam's testing environment is an extremely useful and elegant. It increases productivity in many times. Now i stuck in testing pageflows, but

[jboss-user] [JBoss Seam] - Re: MockApplication in SeamTest not easily overridable

2007-02-16 Thread denis-karpov
Seam uses facelets to work with JSF. There is no JSP at all. Facelets now controls creation and manipulation of JSF component tree. And as I understand you cannot control the JSF component tree the way that was suggested in the article, if you work with facelets. But do not worry. Facelets has

[jboss-user] [JBoss Seam] - Re: TestNg problem with my seam application

2007-02-16 Thread denis-karpov
SeamTest has a lot of special helper methods. Because it is mock environment. Try getInstance instead of Component.getInstance View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4017500#4017500 Reply to the post :

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

2006-12-20 Thread denis-karpov
I am extremely happy to see a serious interest in the maven2 integration. I am also confident that Gavin will love this ;-) I am not sure that it is something new for you people. May be it will be helpful. This is the POM I have used for building SEAM 1.1.1.BETA2 POM.XML ?xml version=1.0

[jboss-user] [JBoss Seam] - Re: What do you guys think of this idea?

2006-11-17 Thread denis-karpov
also like to keep different things in different places, but let us be wise with this. Denis Karpov View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3986779#3986779 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3986779

[jboss-user] [JBoss Seam] - hibernate-ALL.jar

2006-11-08 Thread denis-karpov
projects. (Also there is no information about versions) 2. Integration with Maven2. (... May be someone can add something ...) Would you at least give information about versions of Hibernate jars. (in 1.0.1.GA and current CVS) With respect, Denis Karpov. View the original post : http

[jboss-user] [JBoss Seam] - Re: Binding Dropdown To Database Table Using Seam..

2006-10-18 Thread denis-karpov
Look at http://wiki.jboss.org/wiki/Wiki.jsp?page=SelectItems I use this pattern. It is quite plain and it correctly works with empty elements. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3978980#3978980 Reply to the post :

[jboss-user] [JBoss Seam] - Re: Javascript + Java

2006-10-17 Thread denis-karpov
Try rendered attribute instead of c:if Some explanation: http://wiki.java.net/bin/view/Projects/FaceletsFAQ#Why_doesn_t_my_c_if_ui_repeat_ui View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3978832#3978832 Reply to the post :

[jboss-user] [JBoss Seam] - Re: one method ending conversation or not

2006-10-13 Thread denis-karpov
There are two approaches. First, if you use Page Flows, then you can make decision node where you decide what is next. . | page name=yourPage view-id=/qqq/eee.xhtml | redirect/ | transition name= to=check | action expression=#{yourController.doSomething}/ |

[jboss-user] [JBoss Seam] - Re: Problems using JSF Converters in Seam app

2006-10-04 Thread denis-karpov
As I see, it has to be like this: public class AppUser implements Serializable { | ... |private FullName name; |public FullName getName() |{ | return name; |} |public void setName(FullName name) |{ | this.name = name; |} | ... | then

[jboss-user] [JBoss Seam] - Problem with conversation stack(nested Pageflows blocker)

2006-10-03 Thread denis-karpov
public class Pageflow implements Serializable { | ... |public static Pageflow instance() |{ | ... | return (Pageflow) Component.getInstance(Pageflow.class, ScopeType.CONVERSATION, true); |} | ... | public class Component { | ... |public static Object

[jboss-user] [JBoss Seam] - Re: Drop Down Menu Using Seam and Facelets

2006-09-25 Thread denis-karpov
Do not call fillMaps(); in a getter. I think it will solve all of your problems. Good place to call it in the factory method or like that. Then, I think you misunderstand this line model.put((Empty),-1); // Add EMPTY element if needed It is EMPTY element. It is needed to

[jboss-user] [JBoss Seam] - Re: Drop Down Menu Using Seam and Facelets

2006-09-22 Thread denis-karpov
I guess you forgot to declare getter getModel() in your CompanySearch interface. public abstract MapString,Object getModel(); View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3973567#3973567 Reply to the post :

[jboss-user] [JBoss Seam] - Re: JSTL tags ignored

2006-09-22 Thread denis-karpov
It is hot topic on faselets forum. Specially c:if? case. Your mistake is you are trying to use build-time tag as render-time. For instance, instead of c:if almost always you should use rendered attribute. . Why doesn't my c:if / ui:repeat / ui:include work properly? You're probably

[jboss-user] [JBoss Seam] - Re: Multiple roles and accessing the DataModel

2006-09-15 Thread denis-karpov
In this case you can use: yourBean.getYourModel.getRowData(); | yourBean.getYourModel.getRowIndex(); | But you should not create DataModel each time in a getter. I use it something like this: private DataModel dm = null; | | public DataModel getDetails() { |

[jboss-user] [JBoss Seam] - Re: Multiple roles and accessing the DataModel

2006-09-14 Thread denis-karpov
You should use it like this #{list}, because when you use @DataModel Seam outjected wrapper into the current context with name of the property (list in your case) Another way you should wrap it by yourself, only then you can use it the way #{YourBean.YourModel} View the original post :

[jboss-user] [JBoss Seam] - Re: Hibernate Validation issue

2006-09-13 Thread denis-karpov
Unfortunaly we can not use hibernate validation, because it raises exception, as you already experienced. s:validate or s:validateAll works, BUT with restriction. It does not work with facelets templating. For me facelets templating is very important to sacrifice. View the original post :

[jboss-user] [JBoss Seam] - Re: Hibernate Validation issue

2006-09-13 Thread denis-karpov
Yes. I mean exactly this. But this situation can arise not only in the ?source tag case?. anonymous wrote : I work around it by specifying the entity.property as a string as well as a value binding for my source tags Hmm. Interesting. Is it works??? I have tried your way, but no success. What

[jboss-user] [JBoss Seam] - Re: Drop Down Menu Using Seam and Facelets

2006-09-12 Thread denis-karpov
http://wiki.jboss.org/wiki/Wiki.jsp?page=SelectItems Just added. This one is interesting that it is direct usage without custom annotations. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3970921#3970921 Reply to the post :

[jboss-user] [JBoss Seam] - Re: Problem: Custom validate methods in EJBs crash

2006-09-08 Thread denis-karpov
1. For simple validation (just value) we can still use JSF validation. 2. For complex validation I use drools (jBoss Rules). It nicely integrated with Seam Page Flow (see seam samples). You can express your validation in rule set. IMHO it looks like quite elegantly. You can define as complex

[jboss-user] [JBoss Seam] - Re: Tomahawk datascroller loose conversationId

2006-08-30 Thread denis-karpov
It is from Tomahawk samples. | t:commandSortHeader columnName=#{columnHeader.label} arrow=false immediate=false | f:facet name=ascending | t:graphicImage value=images/ascending-arrow.gif rendered=true

[jboss-user] [JBoss Seam] - Re: Resume Pageflow after Conversation Timeout

2006-08-10 Thread denis-karpov
anonymous wrote : However, shouldn't the data from previous steps be saved in the database I think if you need to persist state into database you should consider to use jBPM. Although page flows use the same engine, page flows save its state only in conversation context. View the original post

[jboss-user] [JBoss Seam] - Keeping App in a healthy state (exception handling)

2006-07-28 Thread denis-karpov
I am wondering about exception processing in seam/jsf.. I am totally lost. I can not find a way how to correctly process exceptions that occur in the code that I do not control (like interceptors). Because after such exceptions application is found in a bad state, almost unrecoverable. Only

[jboss-user] [JBoss Seam] - Re: Hibernate Validation / Page Scope -- allways new entity

2006-07-25 Thread denis-karpov
Remove @Valid annotation. s:validateAll does not require this. Pure hibernate @Valid throws exception on invalid cases, that is not caught by the Seam. That is why you will always get an exception page on invalid data. View the original post :

[jboss-user] [JBoss Seam] - Re: Hibernate Validation / Page Scope -- allways new entity

2006-07-25 Thread denis-karpov
Ops. I did not notice that was said already. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3960655#3960655 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3960655 ___ jboss-user

[jboss-user] [JBoss Seam] - Re: Seam Application Deployment

2006-07-24 Thread denis-karpov
And also, when you bind properties, it has to be @stateful. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3960249#3960249 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3960249 ___

[jboss-user] [JBoss Seam] - Re: Inject EL Results

2006-07-21 Thread denis-karpov
anonymous wrote : The backing bean is part of the view No it is not. View connected to the beans by binding expressions. View does not hold references to the beans. In render time, when it is needed to put value in html output it just evaluates binding expression. And then in post time, it

[jboss-user] [JBoss Seam] - Re: @IfInvalid throws unhandled exception

2006-07-20 Thread denis-karpov
Yes. It is great idea to perform validation before actual assignment. I have examined sources. But I still can not catch one thing. -Look. Simple case. I have two inputs for two numbers and I want that one be greater than another. -Or if one value greater than 18 then another value must be not

[jboss-user] [JBoss Seam] - Re: Concurrent access to stateful beans

2006-07-19 Thread denis-karpov
I use this solution: http://jira.jboss.com/jira/browse/JBSEAM-183 View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3959053#3959053 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3959053

[jboss-user] [JBoss Seam] - Re: Eclipse - Dynamic Web Project

2006-07-19 Thread denis-karpov
I just want to add some ideas about running and debugging seam application (any jBoss application) in Eclipse environment without tedious constant redeployment. http://wiki.jboss.org/wiki/Wiki.jsp?page=EclipseSeamAutoDeploy View the original post :

[jboss-user] [JBoss Seam] - Debugging Seam application in Eclipse without tedious redepl

2006-07-18 Thread denis-karpov
Some notes about running and debugging seam application (any jBoss application) in Eclipse environment without tedious constant redeployment. http://wiki.jboss.org/wiki/Wiki.jsp?page=EclipseSeamAutoDeploy View the original post :

[jboss-user] [JBoss Seam] - Re: Accessing methods inside the view

2006-07-17 Thread denis-karpov
Just make getter: getAsString(); and use it #{backingBean.asString} View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3958396#3958396 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3958396

[jboss-user] [JBoss Seam] - Re: remove beans from seam contexts

2006-07-12 Thread denis-karpov
I think the better do like this: Contexts.removeFromAllContexts(name); or Contexts.getSessionContext().remove(name); because set does not remove variable. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3957255#3957255 Reply to the post :