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 probl
>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 contex
Your box chicochen on hotmail.com doesn't accept my message.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4094142#4094142
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4094142
_
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 Netscap
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 .
|
| buyWorkingMemory
|
|
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 :
http://www.jboss.com/index
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 po
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 on
|
|
|
If I start pageflow in this way, why am I forced to begin my pageflow from the
instead of ?
This code worked in Seam 1.2.1 and start complaining since Seam2.
java.lang.IllegalStateException: pageflow is not currently at a or
node (note that pageflows that begin during
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 Java2Dreso
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 the
>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
convers
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. Ga
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 work
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 :
http://www.jboss.com/index.html?module=bb&op=viewtop
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=bb&op=viewtopic&p=4057265#4057265
Reply to the post :
http://www.jboss.com
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=bb&op=viewtopic&p=4040105#4040105
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=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 afte
Is there a consistent way to control FlushMode?
I have tried this, but it does not do what i expected.
persistence.xml
... ...
Yes. There is the annotation attribute @Begin(flushMode=MANUAL), but not always
you can use an annotations. For instance, if you start a conversation through
there i
Why not to use pageflows for this. It is convenient and works smoothly for me.
Pageflow
.
|
| qqq
|
|
|
|
|
|
|
|
| buyWorkingMemory
|
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 TOrdT
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, bu
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=bb&op=viewtopic&p=4017500#4017500
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=po
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
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
| http://maven.apach
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=bb&op=viewtopic&p=3986779#3986779
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode
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=bb&op=viewtopic&p=3978980#3978980
Reply to the post :
http://www.jboss.com/index.html?m
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=bb&op=viewtopic&p=3978832#3978832
Reply to the post :
http://www.jboss.com/index.html?mod
There are two approaches.
First, if you use Page Flows, then you can make decision node where you decide
what is next.
.
|
|
|
|
|
|
|
|
|
|
|
|
| .
Second, you can end your conversation explicitly from
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 getI
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 ch
It is hot topic on faselets forum. Specially almost always you should use rendered attribute.
.
Why doesn't my c:if / ui:repeat / ui:include work properly?
You're probably using a bad combination of build-time and render-time tags. For
example, c:if is a build-time tag, so any EL expres
I guess you forgot to declare getter getModel()
in your CompanySearch interface.
public abstract Map getModel();
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3973567#3973567
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply
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() {
| if
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 :
http
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
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 :
htt
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=bb&op=viewtopic&p=3970921#3970921
Reply to the post :
http://www.jboss.com/index.html?mod
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 rul
It is from Tomahawk samples.
|
|
|
|
|
|
|
|
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
kill
Ops. I did not notice that was said already.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3960655#3960655
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3960655
___
jboss-user
Remove @Valid annotation. 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 :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3960654
Thanks for your efforts in developing best practices. I think it is important
to polish it.
1. (small one) In cancel action you should specify immediate="true". If
not you will not be able to cancel without posting data back. For instance, you
do not need validation if you want to cancel
And also, when you bind properties, it has to be @stateful.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3960249#3960249
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=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
evalu
You are digging in the wrong direction. Try to design your application in
different way. You are trying to couple presentation and business. I assure you
that you do not really need this.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3959507#3959507
Reply to
anonymous wrote : there's the @LoggedIn interceptor, but that seems to me to
just stop the submission of a page if the user isn't logged in
No. @LoggedIn prevents execution of any method on your bean through JSF and
redirects you to login page, if you are not logged in.
Just clean up your force
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 n
When you change your java code and save it. Eclipse will copy *.class to the
directory that is observed by jBoss server. And server tries to catch your new
*.class. Of course, if you change method signature or class definition server
fails to deploy new one. And continue to work with the old cop
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 :
http://www.jboss.com/index.html?module=bb&op=vi
I use this solution:
http://jira.jboss.com/jira/browse/JBSEAM-183
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3959053#3959053
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3959053
_
In many cases validation depends not only from a value of a single control. It
depends from context. From other properties of the bean. And as I understand,
JSF like validation does not support this cases.
I tried to use Validator for a bean and ( @IfInvalid/@Valid ). I got the
problem that wa
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 :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3958873#
Just make getter:
getAsString();
and use it
#{backingBean.asString}
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3958396#3958396
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=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=bb&op=viewtopic&p=3957255#3957255
Reply to the post :
http://www.jboss.co
62 matches
Mail list logo