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
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
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
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
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 :
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
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
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
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
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
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
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.
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
Seam 1.2.1.GA
public class Conversation implements Serializable
| ..
|public void beginNested()
|{
| if ( Manager.instance().isLongRunningConversation() )
| {
| Manager.instance().beginNestedConversation(
Seam.getComponentName(Conversation.class) );
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 :
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 :
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;
|
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
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
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
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
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
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
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
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
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 :
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
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
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
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 :
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 :
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}/
|
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
public class Pageflow implements Serializable {
| ...
|public static Pageflow instance()
|{
| ...
| return (Pageflow) Component.getInstance(Pageflow.class,
ScopeType.CONVERSATION, true);
|}
| ...
|
public class Component {
| ...
|public static Object
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
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 :
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
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() {
|
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 :
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 :
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
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 :
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
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
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
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
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 :
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
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
___
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
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
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
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 :
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 :
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
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 :
56 matches
Mail list logo