Hi everybody,
is it possible to access a context variable from a servlet like the interceptor
from the booking demo does?
| boolean isLoggedIn = Contexts.getSessionContext().get("loggedIn");
|
And can i get the session from a seam app?
I need this functionality for an upload applet, t
anonymous wrote : PS: If you would have posted the xhtml containing
"Kundenverwaltung" earlier, we could have made a phone call ;). It's really
weird how many guys are talking English to each other here (and often having
problems with it) though they could have it easier... in Thomas Heute's nat
Hey you all,
i solved my problem you were right bfo81. i had to use the conversation scope
for my component and its member ( @Out(scope=ScopeType.CONVERSATION)
| @Stateful
| @Name("clientPersonAction")
| @Scope(ScopeType.CONVERSATION)
| public class ClientPersonEditAction implements Cli
Ok bfo81 lets see:
My Entity Class:
package org.jboss.seam.example.client;
|
| import javax.persistence.Entity;
|
| import org.hibernate.validator.Length;
| import org.hibernate.validator.NotNull;
|
| @Entity
| public class ClientPerson extends Client {
|
| private
hey bfo, when i remove the @Valid field i get curiouse class loader exceptions.
But i think here is a big confusion about the scope of objects (components and
their properties).
I thougt that my property is annotated with scope=ScopeType.PAGE because it
"lives" as long as i (or the user) is on
Couldnt it be a Scope problem with the property?
| @In(required=false)
| @Out(scope=ScopeType.PAGE,required=false)
| @Valid
| private ClientPerson newClientPerson;
|
i have no clue.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3960393
The list component is a stateless session bean.
| @Stateless
| @Name("clientPersonService")
| public class ClientPersonServiceImpl implements ClientPersonService {
|
| @PersistenceContext
| private EntityManager em;
|
| public List getAllClientPerson()
|
Lets take the blog example.
I have my BlogService thats hast the following code:
| @RequestParameter("blogEntryId")
| private String blogEntryId;
|
| @In(required=false)
| @Valid
| private BlogEntry newBlogEntry;
|
| @Factory("newBlogEntry")
hi bfo,
I tried your approach but now i get no changes to my entity.
Steps:
1. I added a new entry
2. i click on the link and get on the edit page
3. i remove a property text that has a hibernate validator
4. i get the validator message
5. i fill in a new value
6. i click on the save button and c
Ok, i will try this.
But: when i have a link in a template and a user doesnt press the save button
is the conversation still open?
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3960351#3960351
Reply to the post :
http://www.jboss.com/index.html?module=bb&o
First thanks for the answer.
But why do i need a conversation for that. it works fine when no validation
fault appears.
And where should i put the @Begin annotation?
I just have my clientPersonService to deliver a simple list:
@Stateless
| @Name("clientPersonService")
| public class Clien
Hi petemuir,
anonymous wrote : make it conversational
what exactly? my "clientPersonAction" component or the newClientPerson member.
the whole form is limited to this one page. why should it be conversational?
I thougt a conversation is something like a sub-session for a whole bunch of
pages an
Hi bfo81m,
thanks for your tipps i am running through the same scope confusing. ;-)
i also tried to make my clientPersonAction component stateful, but the behavior
is the same.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3960273#3960273
Reply to the pos
Hi Gavin, you can checkout the facelet page i posted. i already use the
required="true" attribute.
And the problem is not the check for nullability. The problem is that a new
database entity is created and the exisiting one is not updated when a
validaton fault appears.
View the original
Hi everybody,
i got a strange data manipulation problem.
I have a simple form i use for editing and inserting:
|
|
|
|Vorname:
|
|
|
|
|
|
|
Hi everyone,
i want a page that creates a new object when no id for an object is provided or
retriebes an object fromt the db when a id was passed by a request parameter.
I want to have one form for editing and adding of blogentries and i dont want
to build two forms, one for adding and another
I tried it and it works really well. It should be added to the "Getting
started" Page.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3958342#3958342
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3958342
__
forget the statement, i know that you are working on this.
i am just a little bit frustrated about the complicated deployment for a simple
webapplication. i am not a "certified java ee deployer" ;-)
I just thought there are any links or articles that cover this topic to get
things done.
Vi
Hello everybody,
i really would like to start playing with seam, but the whole configuration
stuff is very frustrating. is there a complete HOWTO for setting up a dynamic
webproject with seam support?
i saw the flash tutorial, but i need a simple standalone dynamic web project
without ant skrip
19 matches
Mail list logo