[jboss-user] [JBoss Seam] - Converter behavior PROBLEM

2007-09-12 Thread urosmil
Hi, I'm having problem with jsf converter behavior. This is converter code: public class OfferPriceConvertor implements Converter{ | | public Object getAsObject(FacesContext arg0, UIComponent arg1, String string) { | BigDecimal price = null; | try { |

[jboss-user] [JBoss Seam] - Re: Converter behavior PROBLEM

2007-09-12 Thread urosmil
Hi Stephen, as validation are you referring to explicitly added jsf validation, because I don't use that? This is html code: h:inputText id=price value=#{offerBean.offer.price} converter=offerPriceConvertor class=inputText/h:inputText I think is important to add that set-er for

[jboss-user] [JBoss Seam] - Re: Converter behavior PROBLEM

2007-09-12 Thread urosmil
Hi, it was validation error. I got price: Conversion error occurred. from h:messages. BUT why is validation happening? I even changed getAsObject method body to: public Object getAsObject(FacesContext arg0, UIComponent arg1, String string) { | return new BigDecimal(0); | }

[jboss-user] [JBoss Seam] - Re: Converter behavior PROBLEM

2007-09-12 Thread urosmil
Hi Stephen, this is offer without irrelevant information: | public class Offer implements Serializable, Cloneable { | | private BigDecimal price; | | public BigDecimal getPrice() { | return price; | } | | public void setPrice(BigDecimal price) {

[jboss-user] [JBoss Seam] - Re: Seam Remoting - ajax request after session expires

2007-08-21 Thread urosmil
Hi, I am back with my solution for this issue. This is what I did to solve problem (I hope this can help someone): SERVER SIDE: 1) Create Filter: | public class SeamRemotingSessionValidationFilter implements Filter { | | public void init(FilterConfig filterConfig) throws

[jboss-user] [JBoss Seam] - Re: Seam Remoting - ajax request after session expires

2007-08-07 Thread urosmil
Hi Pete, but isn't this feature that's missing (or bug)? I wouldn't post this in JIRA if you think this doesn't belongs there! Thanks, Uros! View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4071563#4071563 Reply to the post :

[jboss-user] [JBoss Seam] - Re: Seam Remoting - ajax request after session expires

2007-08-06 Thread urosmil
Hi. Me again. Is it possible that Seam engineers overlooked this real life situation? Do you have some recommendation? Would this be fixed in Seam 2.0? I really enjoy working with Seam so I hope you would understand this as my attempt to help. Thanks, Uros! View the original post :

[jboss-user] [JBoss Seam] - Seam Remoting - ajax request after session expires

2007-08-03 Thread urosmil
Hi, after session expires I can access bean with Seam Remoting (as I understand new bean is created). Problem is that other necessary beans are not there. I would like to redirect page from which ajax request is sent if session is expired. What is preferred way with Seam to handle this? I am

[jboss-user] [JBoss Seam] - Re: Seam Remoting - ajax request after session expires

2007-08-03 Thread urosmil
Just to add: I am using Seam 1.2.1 GA. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4070684#4070684 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4070684 ___ jboss-user mailing

[jboss-user] [JBoss Seam] - Re: replacement for ifNotBegunOutcome in @Conversational

2007-06-22 Thread urosmil
Hi azalea, now I have to add page conversation-required=true no-conversation-view-id=/somewhere.xhtml for all 10 pages in wizard. Is there some way to make this shorter (like no-conversation-view-id=/offer*.xhtml )? Thanks, Uros! View the original post :

[jboss-user] [JBoss Seam] - Re: replacement for ifNotBegunOutcome in @Conversational

2007-06-22 Thread urosmil
Hi azalea, CORRECTION: Instead of no-conversation-view-id=/offer*.xhtml there should be view-id=/offer*.xhtml? page view-id=/offer*.xhtml | conversation-required=true | no-conversation-view-id=/somepage.xhtml | /page Thanks, Uros! View the original post :

[jboss-user] [JBoss Seam] - Re: replacement for ifNotBegunOutcome in @Conversational

2007-06-22 Thread urosmil
Hi azalea, it doesn't work. There are to problems: 1) redirection doesn't happen 2) Exception occurs: WARNING: Exception Processing ErrorPage[errorCode=404, location=/startpage.jsf] | ClientAbortException: java.net.SocketException: Software caused connection abort: socket write error |

[jboss-user] [JBoss Seam] - replacement for ifNotBegunOutcome in @Conversational

2007-06-21 Thread urosmil
Hi, what should I use to achieve same functionality as with @Conversational(ifNotBegunOutcome=error) because this is deprecated in 1.2.1GA? Thanks, Uros! View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4056546#4056546 Reply to the post :

[jboss-user] [JBoss Seam] - Re: replacement for ifNotBegunOutcome in @Conversational

2007-06-21 Thread urosmil
Hi Gavin, but how to redirect to error page? Thanks, Uros! View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4056555#4056555 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4056555

[jboss-user] [JBoss Seam] - Conversation - setting and getting

2007-06-19 Thread urosmil
Hi, I have 2 questions: 1) is it possible to set conversation scope in faces-config.xml; in the same way as for session scope: managed-bean-scopesession/managed-bean-scope 2) how go get conversation scoped bean through java code, as it's possible for session scoped bean: MyBean myBean =

[jboss-user] [JBoss Seam] - Re: Conversation - setting and getting

2007-06-19 Thread urosmil
Hi petemuir, both Contexts.lookupInStatefulContexts(myBean) and Contexts.getConversationContext().get(myBean) return null when I try to get conversation bean in session scoped bean. I open pop-up window from conversation bean (offerBean). That pop-up use other session scoped bean

[jboss-user] [JBoss Seam] - Re: Conversation - setting and getting

2007-06-19 Thread urosmil
Hi petemuir, pop-up is not in conversation. I don't it should be inside conversation. Pop-up use other session scoped bean. Am I making mistake in use? In what situations is possible to access conversation scoped bean? Thanks, Uros! View the original post :

[jboss-user] [JBoss Seam] - Re: Conversation - setting and getting

2007-06-19 Thread urosmil
Hi, I will explain my problem hopping someone can help: From page which is in conversation I open pop-up window with url: offer.jsf?lang=enid=173type=offerId. Page offer.jsf use session (doesn't need to be session; can be request to) scoped bean offerPreviewBean. In offerPreviewBean bean I

[jboss-user] [JBoss Seam] - Re: Conversation - setting and getting

2007-06-19 Thread urosmil
Hi petemuir, this is link: offer.jsf?lang=enid=173type=offerId this is pages.xml part: page view-id=/offer.xhtml | param name=lang value=#{offerPreviewBean.lang}/ | param name=id value=#{offerPreviewBean.id} |converterId=javax.faces.Integer/ |

[jboss-user] [JBoss Seam] - actionListener=#{hotelBooking.bookHotel(hotel)}

2007-06-15 Thread urosmil
Hi, is it possible to have EL enhancements for actionListener (actionListener=#{hotelBooking.bookHotel(hotel)})? Thanks, Uros! View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4054770#4054770 Reply to the post :

[jboss-user] [JBoss Seam] - Re: actionListener=

2007-06-15 Thread urosmil
Hi Gavin, can you give me a link to documentation that explains use (in 1.3)? Also does this way I lose ActionEvent parameter? Thanks, Uros! View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4054855#4054855 Reply to the post :

[jboss-user] [JBoss Seam] - Unwanted conversationId

2007-06-14 Thread urosmil
Hi, how to remove conversationId in URL from pages where I don't want it? Now it's on every page. Thanks, Uros! View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4054442#4054442 Reply to the post :

[jboss-user] [JBoss Seam] - Re: Unwanted conversationId

2007-06-14 Thread urosmil
Hi Gavin, are you saying that with h:commandLink i can't remove it? We are trying to add seam in existing application with 30+ pages and 150+ h:commandLink-s. We definitely don't want to change them all. Is there some workaround? Thanks, Uros! View the original post :

[jboss-user] [JBoss Seam] - Re: Unwanted conversationId

2007-06-14 Thread urosmil
Hi Gavin, that is exactly what we do. So if we remove conversationId would disappear, right? Thanks, Uros! View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4054460#4054460 Reply to the post :

[jboss-user] [JBoss Seam] - Re: Unwanted conversationId

2007-06-14 Thread urosmil
Hi Gavin, corection: So if we remove redirect/ conversationId would disappear, right? redirect was disappear previously! Thanks, Uros! View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4054463#4054463 Reply to the post :

[jboss-user] [JBoss Seam] - Just Seam - no ORM

2007-06-13 Thread urosmil
Hi, I want to add Seam to our application which has UI implemented in JSF-RI-1.1 + Facelets. - Plan is to use Seam capabilities only in UI in 1st step and in 2nd to connect it with ORM layer (implemented throw Hibernate 3). - We deploy app on Tomcat 5.5. I have created test project fot

[jboss-user] [JBoss Seam] - Re: Just Seam - no ORM

2007-06-13 Thread urosmil
Hi fers, I don't use maven (no experience with it). Is it possible to find created example somewhere? Thanks, Uros. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4053900#4053900 Reply to the post :

[jboss-user] [JBoss Seam] - Re: Just Seam - no ORM

2007-06-13 Thread urosmil
Hi fers, I followed instruction on site and created project. It was actually very simple - just download maven and execute command - that's all. Thanks, Uros. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4053915#4053915 Reply to the post :

[jboss-user] [JBoss Seam] - required jars config

2007-06-05 Thread urosmil
Hi, I am trying to start app with seam on tomcat 5.5. I have spend whole day and I can't. Questions: 1) What are required jars (all of them) for seam to work on tomcat 5.5 with JSF RI 1.1 and Facelets BUT WITHOUT EJB3 - JUST JPA + HIBERNATE? 2) Also how should web.xml and faces-config.xml