[jboss-user] [JBoss Tools (users)] - equals() hashcode() generation feature request

2009-05-05 Thread damianharvey
Using the default Eclipse "Generate hashcode() and equals()" from the Source menu gives you these two methods but generated using fields rather than getters. As Hibernate uses Proxy objects and only loads the actual object when a getter is encountered, these generated methods can prove problemat

[jboss-user] [JBoss Seam] - Re: f:converter and maxdigits

2008-01-26 Thread damianharvey
I can't stand Java's implementation of currency formats. What user is ever going to remember to type in the correct currency sign? Better off using the basic format and setting the fractions. Small change to the above; in both methods replace the: NumberFormat nf = NumberFormat.getCurrencyInstan

[jboss-user] [JBoss Seam] - Re: f:converter and maxdigits

2008-01-26 Thread damianharvey
I had a similar problem today but was getting IllegalArgumentExceptions and ClassCastExceptions. For anyone interested below is a basic Float Currency converter. You use it like this: | | import java.text.NumberFormat; | | import javax.faces.component.UIComponent; | import javax.face

[jboss-user] [JBoss Seam] - Re: Problems with @RequestParameter

2008-01-24 Thread damianharvey
It might be helpful to describe what functionality you require. From what you've said so far it sounds like you want to pass in a parameter that is then outjected for another component to use. Is this correct? So this bean is just an intermediary? Cheers, Damian. View the original post :

[jboss-user] [JBoss Seam] - Re: s:link + method parameter

2008-01-24 Thread damianharvey
This has been discussed on this forum a lot. As Pete says in section 31.1.2 of the doc linked to, if you want to use s:link or s:button inside an iterative component then the list that the iterative component uses must be annotated with @DataModel. In your case your "cat" bean will be something

[jboss-user] [JBoss Seam] - Re: Seam with RichFaces

2008-01-23 Thread damianharvey
There's nothing wrong with that approach. To call another bean from inside a bean you can either: a) inject the bean using @In; or b) create it inline using Component.getInstance("mybean") Cheers, Damian View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4122873#

[jboss-user] [JBoss Seam] - Re: JBoss Tools candidate release

2008-01-06 Thread damianharvey
I gave up on Eclipse 3.3.1.1 on the Mac due to prolonged garbage collection. Went back to 3.3.0 which works fine. Sounds like it must have been due to the .ini issue that you mentioned. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4117363#4117363 Reply to

[jboss-user] [JBoss Seam] - Re: Error after migration to the seam 2.0

2008-01-01 Thread damianharvey
Wouldn't it be more sensible to change your entity? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4116241#4116241 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4116241 ___ jbo

[jboss-user] [JBoss Seam] - Re: using setParameterList with the EntityManager query

2008-01-01 Thread damianharvey
You're correct. I use the Hibernate session solely for this purpose too. I haven't tried the components.xml definition of it. I just create it in my codeSession session = (Session)entityManager.getDelegate();Cheers, Damian. View the original post : http://www.jboss.com/index.html?module=bb&op=

[jboss-user] [JBoss Seam] - Re: Oddness - javax.persistence.EntityNotFoundException

2007-12-30 Thread damianharvey
I've just run into this problem again and am posting back here so I don't forget again. When trying to delete an entity that has existing relationships (eg. OneToMany) you have to ensure that you clear the collection before removing the object. eg:public void deleteGroup(Group group) { |

[jboss-user] [JBoss Seam] - Re: clickable lists problem...

2007-12-28 Thread damianharvey
Well the Seam way would be to use @Restrict annotations on your methods and specify some security rules in your security.drl. Check the docs. Cheers, Damian. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4115869#4115869 Reply to the post : http://www.jbos

[jboss-user] [JBoss Seam] - Re: h:selectOneMenu and Ajax4jsf problem

2007-12-27 Thread damianharvey
Try setting the scope of the Bean to @Scope(SESSION). It's likely that the Bean isn't hanging around longer than the request and that is what is causing the null. Cheers, Damian. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4115753#4115753 Reply to the po

[jboss-user] [JBoss Seam] - Re: Two browser tabs : basic question

2007-12-22 Thread damianharvey
As it says in the seam reference:The declaration is bidirectional View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4115174#4115174 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4115174

[jboss-user] [JBoss Seam] - Re: Two browser tabs : basic question

2007-12-21 Thread damianharvey
I don't think that there's anything *wrong* with @RequestParameter, but it isn't optional so your Bean containing it must always be passed it. Using just page params is just as easy. You would do something like this: test.xhtml: | | | | #{row.id}

[jboss-user] [JBoss Seam] - Re: [Seam] problem with ant explode

2007-12-21 Thread damianharvey
Do you have any compilation errors? Can you run any of the other ant tasks? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4114952#4114952 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4114952 __

[jboss-user] [JBoss Seam] - Re: Two browser tabs : basic question

2007-12-20 Thread damianharvey
I originally removed the IDs as I didn't want the user hacking around trying to find someone else's data. It's the usual use-case I suppose and certainly something that I do whenever I see IDs in the query string. I can check the authorisation of the user in the find() or similar but the @DataMo

[jboss-user] [JBoss Seam] - Re: Two browser tabs : basic question

2007-12-20 Thread damianharvey
Oh dear. So all my hard work removing IDs from my application is wasted? Exposing IDs in my app is a bit of an issue. Do you know if it is just @DataModelSelection that is the problem or @DataModel in general? Ie. if I use this:http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4114590#411

[jboss-user] [JBoss Seam] - Re: SelectItems and cache

2007-12-20 Thread damianharvey
"[EMAIL PROTECTED]" wrote : It does? I can't see one... | | There is no support for caching created s:selectItems lists. If you want it, file a feature request. Following a recent conversation with Gavin I figured out how to make it work nicely. I just saw it in the code completion on an s:s

[jboss-user] [JBoss Seam] - Re: A customer JSF tag to display Graphics2D in Seam PDF out

2007-12-19 Thread damianharvey
My mistake, I thought you were referring to the built in pdf chart tags. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4114270#4114270 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4114270

[jboss-user] [JBoss Seam] - Re: A customer JSF tag to display Graphics2D in Seam PDF out

2007-12-19 Thread damianharvey
Pretty cool. However, you can currently include jFreecharts into your pdf using the existing tag eg: | Where you encode your chart as an image and store as a byte array: | private byte[] myChartImage; | | myChartImage = ChartUtilities.encodeAsPNG(myChart.createBufferedImage(300, 200)

[jboss-user] [JBoss Seam] - Re: Seam in Real World: Made with Seam

2007-12-19 Thread damianharvey
Classic. There's even a p0rn site running Seam. Pass that onto your sales guys for sure. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4114133#4114133 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4114133

[jboss-user] [JBoss Seam] - Re: JBPM and seam

2007-12-19 Thread damianharvey
That's been the dream of the larger BPM community for like a decade. Not even close IMO. This isn't a criticism of Seam or jBPM in any way. You won't get close no matter what framework you use and regardless of what some slick salesman tries to tell you. Worth a read:http://www.infoq.com/articl

[jboss-user] [JBoss Seam] - Re: a4j:include and seam navigation

2007-12-17 Thread damianharvey
Had a go with these today. The trick (as mentioned in the JIRA) is to use render rather than redirect in the pages.xml. Also worth noting is to define the page rule for the included pages not on the page doing the including. Maybe obvious to most, but I was puzzled for a while as it's the opposi

[jboss-user] [JBoss Seam] - Re: Two browser tabs : basic question

2007-12-17 Thread damianharvey
I tried to recreate your issue but if I attempt this, Hibernate throws a anonymous wrote : org.hibernate.StaleStateException : Batch update returned unexpected row count from update [0]; actual row count: 0; expected: 1 I'm glad you raised this though as I'll make sure I handle this error. Not su

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

2007-12-16 Thread damianharvey
p:text has a rendered attribute. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4113221#4113221 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4113221 ___ jboss-user mailing lis

[jboss-user] [JBoss Seam] - Re: Chained select boxes

2007-12-14 Thread damianharvey
It's friday, my pub lunch is settling nicely and I'm feeling verbose, so here's a very basic example (probably some syntax errors but you get the drift): | @Name("citySelectionBean") | @Scope(ScopeType.CONVERSATION) // < This is important. You could also use SESSION or a stateful bean

[jboss-user] [JBoss Seam] - Re: ReRender does not update the Form drop down values

2007-12-14 Thread damianharvey
Many potential problems and an equal number of solutions. Post more of your code. Cheers, Damian. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4112967#4112967 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4112967 _

[jboss-user] [JBoss Seam] - Re: Trouble W/ NullPointerException

2007-12-14 Thread damianharvey
Well not knowing your components.xml, I'd hazard a guess that maybe you should check that your entityManager is null? Put in a log line checking something like 'em==null' (or run it through a debugger). And why not use @In | EntityManager entityManager;rather than PersistenceContext? You defin

[jboss-user] [JBoss Seam] - Re: @DataModel s:link h:commandButton h:dataTable

2007-12-13 Thread damianharvey
No worries. I think that the '/' in your Wiki title is the problem there. Cheers, Damian. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4112578#4112578 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4112578 ___

[jboss-user] [JBoss Seam] - Re: @DataModel s:link h:commandButton h:dataTable

2007-12-13 Thread damianharvey
The people on this forum really are very friendly and extremely helpful. It just needs a reciprocal amount of effort - which starting a Wiki page would be a good example of. Maybe start with something like "Understanding Seam DataModels" and use this thread as a basis? Regarding your question t

[jboss-user] [JBoss Seam] - SelectItems and cache

2007-12-12 Thread damianharvey
Just noticed that selectItems now has a cache attribute. I assume that this was from http://jira.jboss.com/jira/browse/JBSEAM-2185. How should this be used? Do you just specify a cache key eg cache="mylist" and if you have caching enabled the list is cached? Cheers, Damian. View the original

[jboss-user] [JBoss Seam] - Re: pdf redirects to blank page

2007-12-12 Thread damianharvey
Put a hidden iframe on your page and target your PDF link to open in there. Works for me. You may have to do some browser detection as well to get cross browser coolness. Cheers, Damian. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4112190#4112190 Reply t

[jboss-user] [JBoss Seam] - Re: Redirect and GET parameters

2007-12-12 Thread damianharvey
Have a read of the documentation around page parameters eg. in your page.xml Cheers, Damian. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4112187#4112187 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4112187 ___

[jboss-user] [JBoss Seam] - Re: Oddness - javax.persistence.EntityNotFoundException

2007-12-11 Thread damianharvey
That was a while ago and that code is now working. If you post your page and Bean I will see if I can help. Cheers, Damian. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4111897#4111897 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posti

[jboss-user] [JBoss Seam] - Re: Unable to bootstrap testNG...

2007-12-10 Thread damianharvey
I've just experienced the same (or similar) problem. FAILED CONFIGURATION: @BeforeClass init | java.lang.NoSuchFieldError: mainDeployer | at org.jboss.seam.mock.embedded.BootstrapWrapper.createDeploymentGroup(BootstrapWrapper.java:28) | at org.jboss.embedded.Bootstrap.deployResource

[jboss-user] [JBoss Seam] - Re: Recommendation: Filter, Servlet or tag

2007-12-10 Thread damianharvey
The servlet approach is easy. This 5 part tutorial is very good http://linuxbeans.blogspot.com/2007/10/image-handling-in-seam-apps-part-i-db.html Cheers, Damian. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4111537#4111537 Reply to the post : http://www.j

[jboss-user] [JBoss Seam] - Re: Application URL

2007-12-08 Thread damianharvey
ServletRequest request = (ServletRequest) FacesContext.getCurrentInstance() | .getExternalContext().getRequest(); | | String url = new StringBuffer(request.getScheme()) | .append("://").append(request.getServerName()) | .append(":") | .append(request.getServerPort()

[jboss-user] [JBoss Seam] - Re: Date formatting in EL expression

2007-12-06 Thread damianharvey
Have you looked at s:convertDateTime? Cheers, Damian. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4110852#4110852 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4110852 ___

[jboss-user] [JBoss Seam] - Re: Asynchronous method triggered multiple times.

2007-12-06 Thread damianharvey
Are you using the hot deploy? I get the same thing happening with my Quartz events. The hot deploy effectively doesn't deregister the old event and also adds a new event. Do you find that doing a full undeploy/reploy makes the event fire only once? Cheers, Damian. View the original post : h

[jboss-user] [JBoss Seam] - Re: Ajax, conversation and multiple requests..

2007-12-04 Thread damianharvey
This is a known issue and is easily avoided. Increase the value of your concurrent-request-timeout in your components.xml to a value that is suitable for your application. I've got mine set to 1 meaning that I want all methods completed within 10 seconds. If a method doesn't complete within

[jboss-user] [JBoss Seam] - Re: A conceptional question about Seam conversation

2007-12-04 Thread damianharvey
Assuming that you're 3rd pages *.page.xml doesn't have a (or a conversation started in any other way) then you can specify a no-conversation-view-id. That should redirect your attempt to directly access the 3rd page. Cheers, Damian. View the original post : http://www.jboss.com/index.html?m

[jboss-user] [JBoss Seam] - Re: Benching my appli. Remove Hibernate's STDOUT

2007-12-04 Thread damianharvey
In your persistence.xml (or hibernate.cfg.xml) set this property to false Also look in the Seam Wiki for the performance tips thread. Cheers, Damian View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4110092#4110092 Reply to the post : http://www.jboss.com/in

[jboss-user] [JBoss Seam] - Re: Security Design Question

2007-11-30 Thread damianharvey
Set up a navigation rule that directs the user to your reactivation page from login (eg. based on some status): | | | | | | | | | You would set the status in the authenticato

[jboss-user] [JBoss Seam] - Re: AJAX Calls give

2007-11-28 Thread damianharvey
Try making payrollExport conversation scoped eg @Name("payrollExport") | @Scope(ScopeType.CONVERSATION)and then ensuring that you start a conversation via pages.xml (or similar) Cheers, Damian. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4108613#4108613

[jboss-user] [JBoss Seam] - Re: Observer issues - multiple calls + async

2007-11-28 Thread damianharvey
More interesting behviour around Issue #1. If you do multiple hot deploys you can end up with an error (which looks suspiciously like the error when you do the Async)Caused by: java.lang.IllegalArgumentException: method not found: sayHelloBack for component: testObserver | at org.jboss.sea

[jboss-user] [JBoss Seam] - Re: clickable dataTable: DataModelSelection or method parame

2007-11-28 Thread damianharvey
Two points that have got me recently around using the Extended EL for tables with navigation links: 1. Your list still needs to be annotated with @DataModel for the extended EL to pass the object. Otherwise it will be null. 2. In your pages.xml your navigation rule must have the from-action the

[jboss-user] [JBoss Seam] - Re: Calling a seam component from URL

2007-11-28 Thread damianharvey
That will allow you to roll your own servlet to interact with the component. Alternatively you could look at the WebServices section in the Seam docs (eg. @WebService and @WebMethod) Cheers, Damian. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4108355#4108

[jboss-user] [JBoss Seam] - Re: How to access h:datatable row data during its iteration

2007-11-28 Thread damianharvey
Have you tried calculating the value in your Bean and using the ? Cheers, Damian. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4108351#4108351 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4108351 ___

[jboss-user] [JBoss Seam] - Re: JBoss EL date formatting

2007-11-27 Thread damianharvey
Don't think that you can. It's a Map so doesn't have that ability. It shouldn't be too difficult to write your own MessageFormat type component though. Cheers, Damian. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4108127#4108127 Reply to the post : http:/

[jboss-user] [JBoss Seam] - Re: JBoss EL date formatting

2007-11-27 Thread damianharvey
There are a plethora of options open to you here. 1. If the messages.properties message is just 'My date is'. Then you just print out your date eg:#{messages['message']} 2. If the messages.properties message is 'My Date is {0}' then you could create the message in your Bean using MessageFormat

[jboss-user] [JBoss Seam] - Re: messages in a java class

2007-11-27 Thread damianharvey
@In Map messages; View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4108086#4108086 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4108086 ___ jboss-user mailing list jboss-user@li

[jboss-user] [JBoss Seam] - Re: Defining Specific Tables to generate entities from

2007-11-26 Thread damianharvey
I think that you're after reveng.xml - check out the Hibernate tools docs. Cheers, Damian View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4107899#4107899 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4107899 ___

[jboss-user] [JBoss Seam] - Re: How to get value of associated table

2007-11-26 Thread damianharvey
The LazyInitializationException is a big clue. Have a look around the hibernate documentation and especially as regards FetchType. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4107790#4107790 Reply to the post : http://www.jboss.com/index.html?module=bb&op=

[jboss-user] [JBoss Seam] - Re: ajax and EntityHome (Conversation) bug?!

2007-11-24 Thread damianharvey
You are trying to reRender the modal but you need to reRender a panel inside the modal instead. Cheers, Damian. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4107493#4107493 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=repl

[jboss-user] [JBoss Seam] - Re: Change messages (created, updated, deleted)

2007-11-22 Thread damianharvey
I assume that you're using a class that extends EntityHome. In your persist/update/remove methods you can specify the message eg:super.setCreatedMessage("hello") or look at injecting the message bundle and using that:eg | @In private Map messages; | ... | @Override | public String persist

[jboss-user] [JBoss Seam] - Re: Observer issues - multiple calls + async

2007-11-22 Thread damianharvey
Issue #1 also seems to apply to Quartz jobs - ie. if I do a few hot deploys before a Quartz job is scheduled then it will run a number of times consecutively. Cheers, Damian. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4107079#4107079 Reply to the post :

[jboss-user] [JBoss Seam] - Re: Problems with double clicks on command link

2007-11-22 Thread damianharvey
You are probably getting concurrent request timeouts - your first click is processing and the second click times out. Try increasing the value of concurrent-request-timeout in your components.xml. Mine is set to 1. Cheers, Damian. View the original post : http://www.jboss.com/index.html?m

[jboss-user] [JBoss Seam] - Re: why does seam create two instances of my components?

2007-11-22 Thread damianharvey
Only that it is usual and part of the framework. Cheers, Damian. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4107032#4107032 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4107032

[jboss-user] [JBoss Seam] - Re: Observer issues - multiple calls + async

2007-11-21 Thread damianharvey
Thanks Pete. I'll give raiseAsynchronousEvent a whirl. 1. http://jira.jboss.org/jira/browse/JBSEAM-2281 2. http://jira.jboss.org/jira/browse/JBSEAM-2280 Cheers, Damian. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4106702#4106702 Reply to the post : http

[jboss-user] [JBoss Seam] - Re: Idle Page Alert

2007-11-21 Thread damianharvey
just use something like | Cheers, Damian. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4106641#4106641 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4106641 ___ jboss-us

[jboss-user] [JBoss Seam] - Observer issues - multiple calls + async

2007-11-20 Thread damianharvey
I've just implemented the Manager Component pattern as outlined in the docs using @Unwrap and @Observer and it's working a treat. Two small issues with it though: 1. When using incremental hot deploy (ie. WEB-INF/dev) the Event is fired as many times as it's been since you last did a full depl

[jboss-user] [JBoss Seam] - Re: Restting a form inside a modalPanel

2007-11-20 Thread damianharvey
You're on the right path, however in the latest version of richfaces you can't just reRender the modal you have to reRender something in it. Your best bet is to have something like an or in the modal and reRender that. Cheers, Damian. View the original post : http://www.jboss.com/index.htm

[jboss-user] [JBoss Seam] - Re: @Factory is not working

2007-11-20 Thread damianharvey
Yep. Or change your page to : | Cheers, Damian. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4106442#4106442 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4106442 ___ jbo

[jboss-user] [JBoss Seam] - Re: How to integrate Ext with Seam using JSON

2007-11-20 Thread damianharvey
@Xinhua, that's an interesting way of doing it and feels more Seam-like than using a Servlet. Have you had any problems with xhtml and the ajax4jsf filters interfering with ExtJS? One advantage of the servlet approach is that the page loads with the grid/tree and then the call is made to the b

[jboss-user] [JBoss Seam] - Re: @Factory is not working

2007-11-20 Thread damianharvey
@Factory doesn't guarantee that the method is called first. Maybe you are thinking of @Create? @Factory will be called when you call it from a page (or wherever) and Seam will place the value into the context variable so that it isn't called again for the life of the context. Cheers, Damian

[jboss-user] [JBoss Seam] - Re: How to integrate Ext with Seam using JSON

2007-11-20 Thread damianharvey
I had a play with the tree column component and used the json.org classes (which I jar'd up) and pumped the JSON out with a servlet using Beans that had a toJSONObject() method. I tried using XStream and Jettison but the JSON produced was not valid for Ext. It all worked when the page extension

[jboss-user] [JBoss Seam] - Re: PDF - is there a way?

2007-11-19 Thread damianharvey
If your Bean is CONVERSATION scoped does your pdf xhtml page join that conversation? (eg. ) Cheers, Damian. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4105998#4105998 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=

[jboss-user] [JBoss Seam] - Re: Complex PDF generation and architecture question

2007-11-19 Thread damianharvey
If you don't have Adobe Acrobat you can create a PDF with whatever tool (eg Word [worstcase]) and then add the acrofields with iText itself to create a template. You can do anything with the stamping/overlay. It's very flexible. I'm adding a table and also a rotated watermark. @kukeltje: you

[jboss-user] [JBoss Seam] - Re: Complex PDF generation and architecture question

2007-11-17 Thread damianharvey
I've moved away from the tags for complex PDFs and started using existing PDFs as templates and then writing data into them (acrofields) and over them (using getOverContent) and then PdfStamping them as new PDFs. You end up with something that looks very good while not having to write that much

[jboss-user] [JBoss Seam] - Re: fileUpload doesn't support ajax submit?

2007-11-16 Thread damianharvey
I'm pretty sure that you won't be able to do this with ajax4jsf as it is now. No ajax component will be able to perform a direct file upload as javascript doesn't have access to the file system. I could be wrong on this as there is a plethora of ajax upload widgets around the web, however these

[jboss-user] [JBoss Seam] - Re: Error using Eclipse Hibernate Tools for JPA after greati

2007-11-16 Thread damianharvey
With a new Seam Gen project you have to run the 'buildtest' ant task that will create a persistence.xml in the 'test-build' directory. Hibernate tools will work from that. Maybe this should be added to the Seam docs? Cheers, Damian. View the original post : http://www.jboss.com/index.html?mo

[jboss-user] [JBoss Seam] - Re: Don't use long conversation components with Ajax4JSF:sup

2007-11-16 Thread damianharvey
I haven't seen any of the issues from that JIRA since I increased by concurrent-request-timeout. Cheers, Damian. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4105351#4105351 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=rep

[jboss-user] [JBoss Seam] - Re: exception invoking: compileRuleBase

2007-11-13 Thread damianharvey
Do you have a larger stack trace that you can post? You may have compilation errors in your rules. Cheers, Damian. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4104254#4104254 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=r

[jboss-user] [JBoss Seam] - Re: Using Ajax4JSF reRender inside a loop (ui:repeat or a4j:

2007-11-13 Thread damianharvey
if you are re-rendering from inside the loop (like you are) then you shouldn't need to do anything: | | | | | | | | | | Note that the id is 'dayTimePanel'. When JSF renders this it will assign incrementing IDs (something like j_xx:

[jboss-user] [JBoss Seam] - Re: how to 'stay in conversation' with rich suggestionbox?

2007-11-13 Thread damianharvey
Do you have you thirdPartyHelper in the Conversation scope (or Session). eg: | @Name("thirdPartyHelper") | @Scope(ScopeType.CONVERSATION) If so then it could be that your suggestion action is taking too long and the conversation is reset due to the concurrent-request-timeout. If you think tha

[jboss-user] [JBoss Seam] - Re: custom xhtml location

2007-11-13 Thread damianharvey
You can always include pages from outside 'view' with eg: Cheers, Damian. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4104014#4104014 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4104014 __

[jboss-user] [JBoss Seam] - Re: Using Ajax4JSF reRender inside a loop (ui:repeat or a4j:

2007-11-13 Thread damianharvey
Just put in a fixed id and JSF will generate a unique id. Ajax4jsf should respect it too. Try checking the generated ids with firebug (or page source). View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4104001#4104001 Reply to the post : http://www.jboss.com/ind

[jboss-user] [JBoss Seam] - Re: converting time for selectOneMenu displaying time only

2007-11-12 Thread damianharvey
Nor do I. I'm assuming that Hibernate is using this based on the TemporalType.TIME. I've asked this question on the Hibernate forums as well, but no answer there yet. Cheers, Damian. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4103654#4103654 Reply to t

[jboss-user] [JBoss Seam] - Re: Objects created from link with page params

2007-11-09 Thread damianharvey
Cheers for the tip. I'll give it a go as well. Is there any reason why @RequestParameter doesn't have a 'required' parameter as well? Cheers, Damian. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4103185#4103185 Reply to the post : http://www.jboss.com/i

[jboss-user] [JBoss Seam] - Re: Switching instance of backing bean of JSF page with Seam

2007-11-08 Thread damianharvey
Have you tried outjecting both copies into the Conversation context and then just referencing them in the Bean backing the next page? eg: | @Out(ScopeType.CONVERSATION) | Bean oldBean; | | @Out(ScopeType.CONVERSATION) | Bean newBean; Cheers, Damian. View the original post : http://w

[jboss-user] [JBoss Seam] - Re: selectOneMenu, selectItems, convertEntity and null value

2007-11-08 Thread damianharvey
I've just tested this in my app and it does get set back to NULL in the database. Post some of your code. Cheers, Damian. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4102865#4102865 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting

[jboss-user] [JBoss Seam] - Re: problem with selectOneMenu in seam 2.0.0.GA

2007-11-08 Thread damianharvey
Posting your code always helps! Cheers, Damian. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4102858#4102858 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4102858 ___ jboss

[jboss-user] [JBoss Seam] - Re: selectOneMenu, selectItems, convertEntity and null value

2007-11-07 Thread damianharvey
If you have the noSelection present and nothing is selected the value should be null. Have you tested it? What value are you getting? Cheers, Damian. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4102650#4102650 Reply to the post : http://www.jboss.com/ind

[jboss-user] [JBoss Seam] - Re: Get request parameters from current page

2007-11-07 Thread damianharvey
@RequestParameter doesn't have a 'required' attribute. Cheers, Damian. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4102437#4102437 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4102437 __

[jboss-user] [JBoss Seam] - converting time for selectOneMenu displaying time only

2007-11-07 Thread damianharvey
I have an entity with a field 'openTime' that is a MySQL TIME datatype. Hibernate has converted this into an entity field as such: @Temporal(TemporalType.TIME) | @Column(name = "OPEN_TIME", length = 0) | public Date getOpenTime() { | return this.openTime; | }

[jboss-user] [JBoss Seam] - Re: Get request parameters from current page

2007-11-06 Thread damianharvey
Meant to include that. Mind you the problem I've had with @RequestParameter is that you can't use the same Bean without providing it - ie. if it's not set then you get an error. How have you overcome this? Cheers, Damian. View the original post : http://www.jboss.com/index.html?module=bb&op=

[jboss-user] [JBoss Seam] - Re: Is TestNG more convenient then JUnit?

2007-11-06 Thread damianharvey
Have you tried right-clicking on the Test in Eclipse and going 'Run As -> TestNG Test'? Cheers, Damian. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4102195#4102195 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4102

[jboss-user] [JBoss Seam] - Re: Get request parameters from current page

2007-11-06 Thread damianharvey
Have a look at injecting the FacesContext and the request parameter related methods on the externalContext: | @In FacesContext facesContext; | | private void hello() { | Map parameters = facesContext.getExternalContext().getRequestParameterMap(); | //or get the request itself

[jboss-user] [JBoss Seam] - Re: Queries with optional arguments

2007-11-06 Thread damianharvey
I haven't looked into the delegate/criteria stuff but my lazy-man's way of doing this is: | List customers = entityManager.createQuery("select c from Customer as c "+ | " where c.customerId >= :minCustomerId"+ | " and c.customerId <= :maxCustomerId") | .setParameter("minCustom

[jboss-user] [JBoss Seam] - Re: Seam Logo

2007-11-05 Thread damianharvey
Looks like bacteria dividing. Could be the basis of a catchy slogan: "Seam: spreads like salmonella!" View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4101810#4101810 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4101810 _

[jboss-user] [JBoss Seam] - Re: getting ManagedBean out of Conversation

2007-11-05 Thread damianharvey
Are you trying to access a different Bean than what you have called the method on? ie. your s:button called BeanA and you want to access properties of BeanB. If so, then assuming BeanB has been outjected into the Conversation scope, you just need to inject BeanB into your BeanA. eg in BeanA.java

[jboss-user] [JBoss Seam] - Re: GWT-Ext or Ext JS with Seam apps?

2007-11-05 Thread damianharvey
I spent some time on the weekend looking at Ext integration with Seam using JSON. I'd love to see your Seam Remoting approach. Are you able to post any code? Thanks, Damian. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4101697#4101697 Reply to the post :

[jboss-user] [JBoss Seam] - Re: GWT-Ext or Ext JS with Seam apps?

2007-11-01 Thread damianharvey
The JSF/Ext project is called Lilya http://sharesource.org/project/lilya/. I have...not (must avoid quotes...) used it so can...not comment. When they get quotes working again people reading this thread will think that I...am a nutter. Sigh. Cheers, Damian. View the original post : http://ww

[jboss-user] [JBoss Seam] - quotes causing 404

2007-11-01 Thread damianharvey
Anyone else noticed that quotes are causing 404 errors in this forum? Try previewing or submitting a post with any double or single quotes. Or is this just everyone at my location? Cheers, Damian. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4100960#41009

[jboss-user] [JBoss Seam] - Re: entityManager goes null on form submit?

2007-11-01 Thread damianharvey
Like Wesley, Im trying out the Flying Saucer renderer to generate PDFs but am hitting the same issue. The PDF is generated but my entityManager is now null. Also it looks like FS takes over rendering of the application somehow. I see logging like this for every page component : | 15:38:55,44

[jboss-user] [JBoss Seam] - Re: Using EL in backend Java code?

2007-11-01 Thread damianharvey
This is an easy option: @In(value=#{identity.username}) | String username; (had to remove double quotes as phpBB was choking on them for some reason) Cheers, Damian. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4100956#4100956 Reply to the post : http:/

[jboss-user] [JBoss Seam] - Re: Performence of Seam 2.0 app

2007-10-31 Thread damianharvey
Stephan, I'm facing a similar/same problem. Can you please show some of your code, particularly around how you are using the local variables. Thanks, Damian. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4100751#4100751 Reply to the post : http://www.jbo

[jboss-user] [JBoss Seam] - h:selectOneMenu performance - any suggestions?

2007-10-31 Thread damianharvey
I've got a drop down with a list of all Countries (246). This is taking too long to render on my page (roughly 4 seconds). I've tried 4 different options: 1. Using s:selectItems and s:convertEntity 2. Using f:selectItems populated at login (session scoped) 3. Using a static list of f:selectItem(s

[jboss-user] [JBoss Seam] - Re: Seam messages and containsKey

2007-10-31 Thread damianharvey
No worries. [ur]http://jira.jboss.org/jira/browse/JBSEAM-2192[/url] View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4100627#4100627 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4100627 _

[jboss-user] [JBoss Seam] - Seam messages and containsKey

2007-10-31 Thread damianharvey
I had a bit of a performance problem with some pages that I have tracked back to my use of '.containsKey()' on the Seam messages Abstract Map. eg: | @In | Map messages; //This is the Seam messages bundle | | public void aMethod() { |if(messages.containsKey("key.mykey")) { |

  1   2   3   4   >