[jboss-user] [Installation, Configuration & DEPLOYMENT] - jboss 4.2.2.GA Hypersonic Data no longer available

2008-04-22 Thread gothmog
Hi, I have just upgraded to 4.2.2 from 4.2.0 and the hypersonic db utility no longer shows my tables? They are there somewhere cos the app works but I can't see them in the utility anymore. It worked fine in 4.2.0. Can anyone help? Thanks in advance Troy View the original post : http://www

[jboss-user] [JBossWS] - Can not find truststore url

2008-04-16 Thread gothmog
Hi, Just got first web service working but I get the following error: 13:35:04,155 ERROR [HTTPClientInvoker] Error creating SSL Socket Factory for client invoker. java.io.IOException: Error initializing socket factory SSL context: Can not find truststore url. The service call still happens, bu

[jboss-user] [JBoss Seam] - content assist for seam tag library in eclipse

2007-12-15 Thread gothmog
Hi, How does one get this to work. I have extracted the s.tld file from the jboss-seam-ui.jar and placed it in the WEB-INF directory however whenever I am in a .xhtml page content assist doesn't recognise the . How do you get this to work? Troy View the original post : http://www.jboss.com/i

[jboss-user] [JBoss Seam] - Structure of Seam project for multi client distribution

2007-12-14 Thread gothmog
Hi, We are developing a base product using seam for about two months so we have a pretty good demo, but we have just got out first customer and we want to be able to structure the project so we can provide customization for the new client as well as maintaining the base product in separate proj

[jboss-user] [JBoss Seam] - Seam PDF documents and conditional content

2007-12-14 Thread gothmog
Hi, How does one do conditional content in seam pdf files. It seems there is no rendered attribute equivalent on all the tags and I couldn't get either tags to work or tags to work. Has anyone done this before? Troy View the original post : http://www.jboss.com/index.html?module=bb&op=vie

[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - between not working on hypersonic db

2007-11-19 Thread gothmog
Hi, Not sure where to post, but... the following ejbsql: | from UploadRecord where date between :start and :endDate | does not work on the hypersonic db, but does work on other dbs like mysql. There is a boundary condition where if the start date in the db is 2007-11-01 00:00:00 then pass

[jboss-user] [JBoss Seam] - Re: conversation ended unexpectantly

2007-11-06 Thread gothmog
I came across that, but it doesn't really make any sense to me | Name of requests queue to avoid send next request before complete other from same event. Can be used to reduce number of requests of frequently events (key press, mouse move etc.) | Are there any examples floating around on

[jboss-user] [JBoss Seam] - Re: identity authenticator method runs twice

2007-11-05 Thread gothmog
I am also getting this problem and can confirm that it has been introduced in 2.0.0.CR2. On a failed login I get two calls to the my own authenticate method and subsequently (because I add a faces message in my authenticate method) I get my two messages plus the standard Login Failed message f

[jboss-user] [JBoss Seam] - Re: conversation ended unexpectantly

2007-11-05 Thread gothmog
ok, I'm using richfaces and simple pojos, no SLSB or SFSB. How does queue work? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4102001#4102001 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4102001 _

[jboss-user] [JBoss Seam] - conversation ended unexpectantly

2007-11-05 Thread gothmog
Hi, If I click randomly around my application especially before ajax requests have completed, I will consistently get the following: | sourceId=null[severity=(WARN 1), summary=(The conversation ended, timed out or was processing another request), detail=(The conversation ended, timed out or

[jboss-user] [JBoss Seam] - Re: pages.xml action method fired on ajax requests - must be

2007-11-05 Thread gothmog
I'm not too keen either, however the only scenario that I'm struggling to solve elegantly is the scenario where you have a page that can be navigated to in a number of ways and before you display that page you need the model to be setup correctly, i.e. you need to query something or change state

[jboss-user] [JBoss Seam] - Re: pages.xml action method fired on ajax requests - must be

2007-11-03 Thread gothmog
I didn't raise a JIRA, how does one do that? I also thought about it a bit more and changed my architecture to suit, however I still think there is a need to detect first time page load and have an option to run code there. It's kinda like .net has this feature where you can detect a 'post back'

[jboss-user] [JBoss Seam] - Seam architcture question - reusability of jsf include eleme

2007-10-19 Thread gothmog
Hi, I'm pondering how Seam solves the problem of decoupling a ui element from its action class so that it can be reused. Lets take an example, suppose I have a datatable that I want to re-use in several places but i want different clickable actions on (unknown at design time) action classes on

[jboss-user] [JBoss Seam] - Re: trouble with getting to work

2007-10-19 Thread gothmog
Here it is :) | @Name("items") | @Scope(ScopeType.CONVERSATION) | public class Items { | | @Logger Log log; | @In EntityManager entityManager; | | private List groups; | | @Create | public void init() { | log.info("init()"); |

[jboss-user] [JBoss Seam] - trouble with getting to work

2007-10-19 Thread gothmog
Hi, I've read the doc and still can't get this Seam feature to work. Essentially I have something simple but I keep getting this: | 15:18:15,305 WARN [lifecycle] EntityManager is closed | java.lang.IllegalStateException: EntityManager is closed | at org.hibernate.ejb.EntityManagerIm

[jboss-user] [JBoss Seam] - Re: @Out-jection fails to work in certain conditions - Bewar

2007-10-19 Thread gothmog
Hi Norman, Yes I can confirm that by simply changing the scope to SESSION and removing the @Begin does make the example work. I also tried the @Out(required=false) Item and changed the page to read the @Out-jected item instead of the action class getter and left the scope as CONVERSATION. I g

[jboss-user] [JBoss Seam] - @Out-jection fails to work in certain conditions - Beware!

2007-10-19 Thread gothmog
Hi, This is an interesting example and I would be grateful if anyone could shed some light on this extremely strange behaviour. It seems that in the following example, if an item is an @Entity Pojo on an action class and the entity manager is @In-jected to the same action class (you don't ha

[jboss-user] [JBoss Seam] - Re: pages.xml action method fired on ajax requests - must be

2007-10-17 Thread gothmog
I have an ugly workaround for this and it goes as follows: On the ajax call I also attach an actionListener which sets a flag on my model that the call is indeed an ajax call. When the page action method runs before rendering, I check this flag and exit straight away if this is set so that the

[jboss-user] [JBoss Seam] - pages.xml action method fired on ajax requests - must be wro

2007-10-17 Thread gothmog
Hi, I have just spent the whole day re-structuring my seam application to make use of the action method on a page element in pages.xml only to find to my dismay that the action method fires not only on redirects to the page (as it should) but also on ajax callbacks. This should not be the case

[jboss-user] [JBoss Seam] - Re: #{s:hasRole} causes authenticate method to re-run

2007-10-14 Thread gothmog
hi Shane, I am using Seam 2.0.0.BETA1 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4095047#4095047 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4095047 ___ jboss-user maili

[jboss-user] [JBoss Seam] - @DataModelSelectionIndex always returns 0

2007-09-02 Thread gothmog
Hi, I have the following class: | @Scope(ScopeType.APPLICATION) | public class EXAccessPoint { | ... | @DataModel | private List currentAlerts; | @DataModelSelectionIndex | private int alertIndex; | ... | public void actionAlert() { | log.info("

[jboss-user] [JBoss Seam] - Re: How to get EntityManager without @In?

2007-08-31 Thread gothmog
Thanks guys for all your help, I learnt a lot on this thread. In the end I just wrote a SLSB using a @PersistenceContext annotation to get my EntityManager then I just did a lookup via JNDI in the housekeeping thread to get it then called a write method on it passing the object requiring the h

[jboss-user] [JBoss Seam] - Re: How to get EntityManager without @In?

2007-08-31 Thread gothmog
Thanks for the suggestions, I tried the beginCall() ... endCall() on the lifecycle and yes that does work, I can get an EntityManager in my thread however back to the original problem, the entity manager has not started a transaction for me, so nothing gets posted to the db and when I flush I ge

[jboss-user] [JBoss Seam] - Re: How to get EntityManager without @In?

2007-08-31 Thread gothmog
I thought about using timers but got discouraged when in the spec it says anonymous wrote : | While timer durations are express in millisecond units, this is because the millisecond is the unit of time granularity used by the API...it is expected that most timed events will correspond to hour

[jboss-user] [JBoss Seam] - Re: How to get EntityManager without @In?

2007-08-31 Thread gothmog
Good idea, I tried it but got | 21:11:46,928 ERROR [STDERR] Exception in thread "Thread-21" | 21:11:46,928 ERROR [STDERR] java.lang.IllegalStateException: No application context active | 21:11:46,928 ERROR [STDERR] at org.jboss.seam.Component.forName(Component.java:1690) | 21:1

[jboss-user] [JBoss Seam] - How to get EntityManager without @In?

2007-08-31 Thread gothmog
Hi, I have a private thread running inside an application scoped component that wakes up every 5 secs and does some housekeeping work. It needs access to an EntityManager. The @In is unreliable the em is always null. So I tried this: | EntityManagerFactory emf = Persistence.createEntityMa

[jboss-user] [JBoss Seam] - Re: @AutoCreate and create = true does not work

2007-08-30 Thread gothmog
Yes, thanks, both cases work :) I do remember reading this now, I guess I was kinda thinking application scope therefore singleton so it slipped my mind. Seam is great, my one comment on it so far would be the exception messages are not helpful and sometimes lead you on a goose chase... But he

[jboss-user] [JBoss Seam] - @In-jection fails on randomly applicaion scoped components w

2007-08-30 Thread gothmog
Hi, I have two seam application scoped components, one holds an internal list which is added to by the other. So.. | @Name("entryGate") | @Scope(ScopeType.APPLICATION) | public class EXAccessPoint { | | @Logger Log log; | @In EntityManager em; | List exs = new ArrayLi

[jboss-user] [JBoss Seam] - @AutoCreate and create = true does not work

2007-08-29 Thread gothmog
Hi, I have two APPLICATION scoped components and one needs to be @In jected with the other, however I get SEVERE: Error Rendering View[/cgsimulateentry.xhtml] | org.jboss.seam.RequiredException: In attribute requires non-null value: entrySimulation.exAP Seam recognizes the components and the

[jboss-user] [JBoss Seam] - Re: Uisng h:dataTable as part of a form

2007-08-29 Thread gothmog
have you got an tag surrounding this? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4079098#4079098 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4079098 ___ jboss-user maili

[jboss-user] [JBoss Seam] - @NotEmpty hibernate validator not working

2007-08-29 Thread gothmog
Hi It seems the @NotEmpty validator is not working forcing me to put a required="true" attribute in my . I noticed that even the seam examples do this also. Problem with this is that it displays an ugly message with the component id in it. j_id50:firstname: Validation Error: Value is requir

[jboss-user] [JBoss Seam] - bypass seam form validation

2007-08-29 Thread gothmog
Hi, How do you by pass the automatic form validation phase in seam? Reason is that on my form I have a Cancel button that I just want to end the seam conversation and redirect back to home. Problem is that when the form has invalid input, the validation kicks in and displays messages when all

[jboss-user] [JBoss Seam] - Re: #{s:hasRole} causes authenticate method to re-run

2007-08-27 Thread gothmog
on playing around I would say this is happening: 1. Page A had a include to a menu.xhtml which uses the #{s:hasRole('abc') and if you look at the source for this it tries to log you in 2. On JSF page processing it must be processing this when in the rendered attribute and then again when the act

[jboss-user] [JBoss Seam] - Re: #{s:hasRole} causes authenticate method to re-run

2007-08-27 Thread gothmog
Further to this, it only happens if the #{identity.hasRole('abc')} EL is in a rendered attribute. You can have it in the page and the authenticate method doesn't get called. Weird. Now I'm thinking it is really a bug Troy View the original post : http://www.jboss.com/index.html?module=bb&op=

[jboss-user] [JBoss Seam] - #{s:hasRole} causes authenticate method to re-run

2007-08-27 Thread gothmog
Hi, I have a simple authenticate method that runs perfectly on Page A underneath my login button and I have a pages.xml redirect to Page B after login. My authenticate method always returns true. Page B uses the #{s:hasRole} EL expression in a menu include using .to determine what menus should

[jboss-user] [Security & JAAS/JBoss] - Re: #{s:hasRole} causes authenticate to re-run

2007-08-27 Thread gothmog
Sorry I posted this in the wrong forum! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4078254#4078254 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4078254 ___ jboss-user mail

[jboss-user] [Security & JAAS/JBoss] - #{s:hasRole} causes authenticate to re-run

2007-08-27 Thread gothmog
Hi, I have a simple authenticate method that runs perfectly on Page A underneath my login button and I have a pages.xml redirect to Page B after login. My authenticate method always returns true. Page B uses the #{s:hasRole} EL expression in a menu include using .to determine what menus should

[jboss-user] [JBoss Seam] - Re: Hypersonic Database Explorer no longer runs up.

2007-08-20 Thread gothmog
Did this ever get resolved? I can confirm it was working for me with seam, now I have some apps deployed with icefaces and it stopped working with the above exception and then undeploying the icefaces apps it now works again. I am running the lastest icefaces (1.6) and jboss 4.2GA View the orig

[jboss-user] [JBoss Seam] - Re: How does one @In(ject) a component from components.xml?

2007-06-30 Thread gothmog
Hey thanks guys, both approaches work. I copied one of the sample projects (contactlist) and I noticed that it has a two component.xml files, one in the META-INF and another in the WEB-INF. Both of these are required otherwise you start getting weird errors like I said in the earlier post. Th

[jboss-user] [JBoss Seam] - How does one @In(ject) a component from components.xml?

2007-06-29 Thread gothmog
Hi, I'm new to this but wouldn't have thought that this should proove to be so difficult. I have a seam component that requires the services of a components.xml object that implements the interface called PaymentService. Now when my seam app is deployed it recognizes the component as the fo

[jboss-user] [JBoss Seam] - Re: jsf iteration and seam scopes

2007-06-20 Thread gothmog
Yep, thanks, really easy when you know!! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4055965#4055965 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4055965 ___ jboss-user ma

[jboss-user] [JBoss Seam] - jsf iteration and seam scopes

2007-06-19 Thread gothmog
Hi, I've looked hard but can't find a simple way to iterate over some html in a jsf page (say using jsf facelets) using a backing object stored in a seam (say) conversation scope. I have custom html so I can't use standard components and I want to avoid the overhead of writing my own component

[jboss-user] [JBoss Seam] - trouble with conversations

2007-06-08 Thread gothmog
Hi, Im new to seam and liking what i see, however I'm having real trouble with conversations. I set my class up to be in conversation scope (this class will feed the UI field info that I want to work with over several pages.) @Name("cardFields") @Scope(ScopeType.CONVERSATION) public class Car