[jboss-user] [JBoss Seam] - Re: invoke a action method everytime a page is accessed FROM

2007-01-12 Thread antispart
Thanks. Your help is always appreciated. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4001029#4001029 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4001029 ___ jboss-user mai

[jboss-user] [JBoss Seam] - Re: invoke a action method everytime a page is accessed FROM

2007-01-12 Thread antispart
petemuir, I tried: action bean: |@RequestParameter | private String bar; | | @Begin(join=true) | public void foo() { | if(bar!=null) | log.debug("set"); | } | xhtml: | | | | pages.xml: | |

[jboss-user] [JBoss Seam] - Re: invoke a action method everytime a page is accessed FROM

2007-01-11 Thread antispart
Thanks petemuir. I have the following code: actionBean | @Begin(join=true) | public void foo() { | if(player!=null) |log.debug("set"); | } | public void setBar(String bar) { | this.bar= bar; | } | public String getBar) { |

[jboss-user] [JBoss Seam] - invoke a action method everytime a page is accessed FROM ano

2007-01-10 Thread antispart
I have a SFSB in conversation scope. But I want to have the option of passing it request parameters. So, for example: | | Now, I need some way of telling the searchActionBean to use the RequestParameter searchPattern instead of another one living in conversation scope (they can

[jboss-user] [JBoss Seam] - Re: Trinidad + Tomahawk + Seam + A4J

2006-12-28 Thread antispart
Just a note that I think this problem is more directly related to Trinidad + A4J than it is to tomahawk. I've read elsewhere that re-ordering the web.xml (to adhere to the spec) may help but that has not resolved this issue. Removing the following from faces-config.xml get's rid of the error, b

[jboss-user] [JBoss Seam] - Trinidad + Tomahawk + Seam + A4J

2006-12-22 Thread antispart
I'm getting these warnings in my server log: 15:44:14,858 ERROR [STDERR] Dec 22, 2006 3:44:14 PM org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl verifyFilterIsInstalled | WARNING: The TrinidadFilter has not been installed. Apache Trinidad requires this filter for proper executi

[jboss-user] [JBoss Seam] - Re: Facelets: Property 'propagation' is not on type: javax.f

2006-12-15 Thread antispart
thanks! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3994262#3994262 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3994262 ___ jboss-user mailing list jboss-user@lists.jboss.

[jboss-user] [JBoss Seam] - Facelets: Property 'propagation' is not on type: javax.faces

2006-12-15 Thread antispart
I get the following error in my server log: 10:29:20,195 ERROR [STDERR] Dec 15, 2006 10:29:20 AM com.sun.facelets.tag.jsf.ComponentRule warnAttr | WARNING: /WEB-INF/tags/nav.xhtml @185,170 propagation="none" Property 'propagation' is not on type: javax.faces.component.html.HtmlCommandLink vie

[jboss-user] [JBoss Seam] - Re: Seam 1.1 GA, at last!

2006-12-15 Thread antispart
Thanks very much! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3994244#3994244 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3994244 ___ jboss-user mailing list jboss-user@li

[jboss-user] [JBoss Seam] - Some FacesMessages are not displayed.

2006-12-14 Thread antispart
I have something like the following: | | try { |return bean.method(); | } catch (Exception e) { | facesMessages.addFromResourceBundle("error"); | log.error("Error", e); | } The problem is I never see this message in the view. Actually, if th

[jboss-user] [JBoss Seam] - Re: Ending multiple nested conversations?

2006-12-06 Thread antispart
Done, thanks: http://jira.jboss.com/jira/browse/JBSEAM-566 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3991736#3991736 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3991736

[jboss-user] [JBoss Seam] - Re: Ending multiple nested conversations?

2006-12-06 Thread antispart
It looks like this may be what I want (?) if (...) { | Conversation.instance().end(); | Conversation.instance().leave(); | } View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3991727#3991727 Reply to the post : http://www.jboss.com/index.html?modul

[jboss-user] [JBoss Seam] - Ending multiple nested conversations?

2006-12-06 Thread antispart
I'd like a call to endNested1() to kill all 3 nested conversations if the if() statement evaluates to true for all 3 methods. What I find is happening though is that only the most nested (deepest) conversation gets killed even though Conversation.instance().end(); is being called 3 times. Is t

[jboss-user] [JBoss Seam] - Re: Begin conversation on null return (not currently possibl

2006-12-06 Thread antispart
Thanks. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3991692#3991692 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3991692 ___ jboss-user mailing list jboss-user@lists.jboss.

[jboss-user] [JBoss Seam] - Begin conversation on null return (not currently possible -

2006-12-06 Thread antispart
Currently, If I have a method: @Begin | public String startConversation() { | return null; | } When this method is called a conversation is not started. If I change the method to return non-null: @Begin | public String startConversation() { | return "thispage"; | } Then it

[jboss-user] [JBoss Seam] - Ajax4JSF vs IceFaces

2006-12-01 Thread antispart
I'm curious if Seam will be moving away from A4J towards Icefaces. I don't mean to state that support for the two is mutually exclusive - which it's not (to my knowledge). I ask only because I noticed the latest booking example was ported to Icefaces. There is some overlap between the two in t

[jboss-user] [JBoss Seam] - ScopeType.EVENT versus getter method actionBean.getProperty(

2006-11-30 Thread antispart
Am I correct in my understanding that the following two are effectively the same? the property is outjected into event scope so it's called several times during the JSF request processing lifecyle, and so is the the actionBean.getProperty() method - and both have the same lifetimes? ActionBean.

[jboss-user] [JBoss Seam] - Re: JSF 1.2 reference implentation

2006-11-30 Thread antispart
Been using seam with JSF RI 1.2 for a month or so with no real problems. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3990156#3990156 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3990156 __

[jboss-user] [JBoss Seam] - Extended EL and JSTL c:forEach. Plus, setting a component's

2006-11-30 Thread antispart
I'm trying to iterate over a list and pass the index from each item in that list to an actionlistener method. I've tried two methods - ui:repeat and c:forEach, but both approaches have drawbacks. Note, I also need to have an html "id" attribute assigned to each (a4j:commandLink) dynamically -

[jboss-user] [JBoss Seam] - Re: and JavaScript

2006-11-30 Thread antispart
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3990138#3990138 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3990138 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman

[jboss-user] [JBoss Seam] - Re: Problem with Icefaces sample

2006-11-27 Thread antispart
You could try moving facelets.jar to Jboss': \deploy\jbossweb-tomcat55.sar\jsf-libs and see if that helps. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3988983#3988983 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=39

[jboss-user] [JBoss Seam] - Re: How to queue a FacesMessage from @Unwrap

2006-11-22 Thread antispart
Posted too soon, it seems this works now. Please disregard the previous post. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3987967#3987967 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3987967 _

[jboss-user] [JBoss Seam] - How to queue a FacesMessage from @Unwrap

2006-11-22 Thread antispart
I have a method annotated with @Unwrap that needs to add a FacesMessage error under certain circumstances. I've found that I can only add a FacesMessage from an action (listener) method and not from @Unwrap method. Is there a workaround for this or is this not the expected behavior? @Unwrap

[jboss-user] [JBoss Seam] - Re: How to impliment a Paged + Sorted DataTable (session) wi

2006-11-17 Thread antispart
I found something that works for me. I'm including it here in case it might help someone else (or perhaps someone could suggest a better solution): | @Stateful | @Name("testAction") | @Scope(ScopeType.CONVERSATION) | public class TestActionBean implements TestActionLocal { | @Logge

[jboss-user] [JBoss Seam] - Re: How to impliment a Paged + Sorted DataTable (session) wi

2006-11-16 Thread antispart
"[EMAIL PROTECTED]" wrote : If you took the scope off of the factory itself and outjected the datamodel into page scope, then when the list changed in sort() the results would show up. If you wanted it outjected on every access to the page (not just ones that call sort) then use a page action.

[jboss-user] [JBoss Seam] - Re: How to impliment a Paged + Sorted DataTable (session) wi

2006-11-16 Thread antispart
"[EMAIL PROTECTED]" wrote : Maybe you could try a page action to refresh the data? Well, this would actually work great. Is there a way to refresh a Page scoped list in an action method? | private List list; | | @Factory(value="list", scope=ScopeType.PAGE) | public List getlist() {

[jboss-user] [JBoss Seam] - Re: How to impliment a Paged + Sorted DataTable (session) wi

2006-11-16 Thread antispart
"petemuir" wrote : I suspect this was because although the context variable was being refereshed, the java variable in your SFSB wasn't null, so the @Factory wasn't being called. Did you have an @Out, or did you use @Factory("list", scope=ScopeType.EVENT)? You're right. I switched to using @Fa

[jboss-user] [JBoss Seam] - Re: How to impliment a Paged + Sorted DataTable (session) wi

2006-11-15 Thread antispart
petemuir, thanks for the suggestion. You're right that #2 is the way to go, but I've tried that and got this exception: java.lang.IllegalArgumentException: @DataModel scope must be ScopeType.UNSPECIFIED or ScopeType.PAGE: If I could @DataModel(scope=ScopeType.EVENT) and If that means that this

[jboss-user] [JBoss Seam] - Re: How to impliment a Paged + Sorted DataTable (session) wi

2006-11-15 Thread antispart
Well, my temporary solution is that instead of outjecting a @DataModel I just set the value of the DataTable to a method that always refreshs the list. view: ... SFSB: private List sessions; public String find() { query(); return null; } public List g

[jboss-user] [JBoss Seam] - How to impliment a Paged + Sorted DataTable (session) withou

2006-11-15 Thread antispart
I have what must be a fairly typical usecase. 1. User starts at search / list page. 2. Selects an object from list and modifies it 3. Returns to search / list page. Now, I can get this to work with something similar to the Booking example. SFSB @DataModel private List sessions; @F

[jboss-user] [JBoss Seam] - Re: Exception when using @EJB (or JNDI to inject a session b

2006-11-14 Thread antispart
Works now, thanks very much! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3985798#3985798 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3985798 ___ jboss-user mailing list jb

[jboss-user] [JBoss Seam] - Re: Ajax4jsf does no work

2006-11-13 Thread antispart
Found the cause: http://jira.jboss.com/jira/browse/JBSEAM-498 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3985639#3985639 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3985639

[jboss-user] [JBoss Seam] - Re: Exception with Booking Example + JSF RI

2006-11-13 Thread antispart
Solved that one by adding jboss-seam.jar to the .war (packaging the example as as a seperate .war and .jar instead of an .ear). Anyway, I now get the following (note, all i changed was subbing out myfaces for the jsf ri): 14:33:21,853 INFO [Scanner] scanning: /C:/jboss-4.0.5.GA/server/defaul

[jboss-user] [JBoss Seam] - Exception with Booking Example + JSF RI

2006-11-13 Thread antispart
I'm trying to reproduce a problem I'm experiencing with Ajax4JSF and Seam so I've started by trying to convert the Booking example to the JSF RI 1.2.03. web.xml -- I switched from: org.apache.myfaces.webapp.StartupServletContextListener to: com.sun.faces.config.ConfigureListener Then i switched

[jboss-user] [JBoss Seam] - Re: Ajax4jsf does no work

2006-11-13 Thread antispart
I'm having a similar issue. only reRenders if I set ajaxRendered="true" Just tried a seam example from CVS and it looks to work so I'm a little lost for a reason for my app not working. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3985530#3985530 Reply to

[jboss-user] [JBoss Seam] - Re: Seam 1.1 beta 2

2006-11-10 Thread antispart
Thanks Gavin, much appreciated! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3985067#3985067 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3985067 ___ jboss-user mailing list

[jboss-user] [JBoss Seam] - Seam Examples and Ajax

2006-11-10 Thread antispart
I noticed that the booking example isnt actually using ajax to rerender only a portion of the view - the whole view is being rerendered. The HotelSearchingAction session bean has public String find() { page = 0; queryHotels(); return "main"; } I believe that the re

[jboss-user] [JBoss Seam] - Re: Exception when using @EJB (or JNDI to inject a session b

2006-11-08 Thread antispart
http://jira.jboss.com/jira/browse/JBSEAM-481 Thanks Gavin. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3984349#3984349 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3984349 ___

[jboss-user] [JBoss Seam] - Re: Exception when using @EJB (or JNDI to inject a session b

2006-11-08 Thread antispart
Will do, thanks. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3984345#3984345 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3984345 ___ jboss-user mailing list jboss-user@lis

[jboss-user] [JBoss Seam] - Re: Exception when using @EJB (or JNDI to inject a session b

2006-11-08 Thread antispart
Gavin, It's the proper object: [EMAIL PROTECTED] The line that looks interesting in the trace is: Caused by: java.lang.IllegalArgumentException: Could not set field value by reflection: PlayerActionBean.selectedPlayerPlay on: com.example.SomeBean with value: class com.example.model.PlayerPlay

[jboss-user] [JBoss Seam] - Re: Exception when using @EJB (or JNDI to inject a session b

2006-11-08 Thread antispart
I forgot to mention. Everything works as expected if I either: A) Get rid of every @In annotation and keep the @EJB; or B) get rid of the @EJB injected session bean and keep the @In annotated properties. But, it doesn't work if I have both (and I need access to both - and i get the same error

[jboss-user] [JBoss Seam] - Exception when using @EJB (or JNDI to inject a session bean)

2006-11-08 Thread antispart
I'm in the process of porting (well, re-creating really) a web app with Seam. It's been working great except that I get an Exception when using @EJB to inject another session bean. Until now, all my session beans had worked independantly of each other so I hadn't noticed this. I have a sessio

[jboss-user] [JBoss Seam] - Re: How to change locale from a Session Bean?

2006-11-07 Thread antispart
Thanks, that worked perfectly - and much more clean. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3983823#3983823 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3983823 ___ jb

[jboss-user] [JBoss Seam] - How to change locale from a Session Bean?

2006-11-07 Thread antispart
Instead of using the SelectItems method as described in the examples I'd like to have images that represent each country (flags) that when clicked will change the locale. This changes the locale but not the message bundle that is used. So, dates and times are formated properly but the message.p

[jboss-user] [JBoss Seam] - Re: Booking Example EL #{hotelBooking.selectHotel(hot)} not

2006-11-02 Thread antispart
Gavin, JSF RI 1.2.03 Facelets 1.1.11 JBoss AS 4.0.5 JBoss Seam-1.1.0.BETA1 Also, I noticed that the bookings example has: but, the HotelSearching interface only has: public String find(); but wouldn't the actionListener call find with an ActionEvent argument as well, and therefore need th

[jboss-user] [JBoss Seam] - Re: Booking Example EL #{hotelBooking.selectHotel(hot)} not

2006-11-01 Thread antispart
Thanks Gavin, that solved both issues. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3982468#3982468 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3982468 ___ jboss-user maili

[jboss-user] [JBoss Seam] - Re: Booking Example EL #{hotelBooking.selectHotel(hot)} not

2006-11-01 Thread antispart
"monkeyden" wrote : This sounds a lot like the valueChangeListener problem I had the other day. It was trying to call a no-arg method, instead of creating the ValueChangeEvent and then calling the method. I built Seam from CVS at Gavin's suggestion and all better. May or may not work for you.

[jboss-user] [JBoss Seam] - Re: Booking Example EL #{hotelBooking.selectHotel(hot)} not

2006-11-01 Thread antispart
What I mean, is I have something similar and I get a 'no method found' error because it's looking for find(ActionEvent) instead of find(). Which, given what you mentioned earlier, sounds like there's something wrong on my end. Just not sure what that is... View the original post : http://www.j

[jboss-user] [JBoss Seam] - Re: Booking Example EL #{hotelBooking.selectHotel(hot)} not

2006-11-01 Thread antispart
"petemuir" wrote : I think Gavin made it possible to call actionListeners with no parameters Hmm, so it sounds like I'm missing something or mis-configured then. Any ideas what that could be? Everything else seems to be working (remoting, bijection,etc). View the original post : http://www.j

[jboss-user] [JBoss Seam] - Booking Example EL #{hotelBooking.selectHotel(hot)} not work

2006-11-01 Thread antispart
Hi, I tried following the hotel booking example (nightly) to create a table with paging. I get an facelets EL evaluation error with the following though: The example source has: The error is: com.sun.facelets.tag.TagAttributeException: /players/list.xhtml @61,84 action="#{visitManager.select