[jboss-user] [JBoss Seam] - Re: Validate fileUpload

2007-09-27 Thread mustaghattack
I've submitted a patch for UIFileUpload. http://jira.jboss.com/jira/browse/JBSEAM-1981 With this patch you can use the hibernate validator framework. For example I've done an Image annotation which check if a byte[] can be read by ImageIO. | @ValidatorClass(ImageValidator.class) |

[jboss-user] [JBoss Seam] - Re: Validate fileUpload

2007-09-26 Thread mustaghattack
Hello, fileUpload is a EditableValueHolder true and validate all attach a modelvalidator to it. But the file upload occur during the update model phase so the data is not validated. Cheers, Bruno View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4088925#4088925

[jboss-user] [JBoss Seam] - Re: Further extending an EntityHome

2007-09-25 Thread mustaghattack
Hi, about the EntityHome class I think it would be better to just pass the entity class as a parameter for the constructor, or at least to have a parameterized constructor. I've done a quick performance test to see the reflection overhead : with a Sun 1.6 JVM it's 30. | package test.java;

[jboss-user] [JBoss Seam] - login when already logged in with Seam 2

2007-09-25 Thread mustaghattack
I just moved to Seam 2 and I found this little change in the Identity class. Prior to 2.0 we had : |public void authenticate() | throws LoginException |{ | authenticate( getLoginContext() ); |} | Now we have : |public void authenticate() |

[jboss-user] [JBoss Seam] - Re: Further extending an EntityHome

2007-09-25 Thread mustaghattack
anonymous wrote : | Seam instantiates (javabean) components with a no-arg constructor, so this won't help, unless you yourself instantiate an entityHome using new, which you shouldn't ever be doing. | Of course. But I didn't think it in that way ... You mainly use EntityHome with

[jboss-user] [JBoss Seam] - Re: Further extending an EntityHome

2007-09-25 Thread mustaghattack
matt.drees wrote : right? Right :) It's just a matter of design ... ( To me it would have been better to just remove the reflection stuff and change the no-arg constructor to a parameterized one ) View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4088533#4088533

[jboss-user] [JBoss Seam] - Re: Further extending an EntityHome

2007-09-24 Thread mustaghattack
You may have to parameterize your BookingHome : try | public class BookingHome B extends Booking extends EntityHome B { | and then | public class BulkBookingHome extends BookingHomeBulkBooking { | View the original post :

[jboss-user] [JBoss Seam] - Re: JBoss EL performance vs Sun EL

2007-09-24 Thread mustaghattack
I'm also interested in profiling JBoss with eclipse. - Tried the TPTP but I can't get it working (looks buggy to me) - Tried the jboss-profiler (not integrated with eclipse, its a web app which uses logs), but I didn't find it that good (I can't see EL method call on the method call page, even

[jboss-user] [JBoss Seam] - Re: JBoss EL performance vs Sun EL

2007-09-24 Thread mustaghattack
About performance I'm wondering if JSF (+ Seam) is viable for a heavy loaded application (extranet). I've downloaded Nuxeo which is the only open source real application I know that uses Seam. Ok it's designed for intranet usage but It's amazing how slow it is ... I have a small server, for

[jboss-user] [JBoss Seam] - Re: JBoss EL performance vs Sun EL

2007-09-24 Thread mustaghattack
Thanks, mgrouch. I was looking for some open source software but I'll give a try to JProbe. BTW thanks for all your performance investigation (++ for the performance tips thread). View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4088069#4088069 Reply to the post

[jboss-user] [JBoss Seam] - Re: Rich Text Editor

2007-09-20 Thread mustaghattack
Hi, I've something working fine with TinyMCE. There's post about how to use it with ajax : http://www.jboss.com/index.html?module=bbop=viewtopict=109794 This is how I use it (with ajax re-rendering): - copy the tinymce scripts into your project - add this script (init-tiny.js) : |

[jboss-user] [JBoss Seam] - Re: Rich Text Editor

2007-09-20 Thread mustaghattack
donno, I haven't used it with resources View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=408#408 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=408 ___ jboss-user mailing

[jboss-user] [JBoss Seam] - Re: Parameters in EL method binding

2007-09-12 Thread mustaghattack
Cause it only works for method binding (such as action=xxx). View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4083546#4083546 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4083546

[jboss-user] [JBoss Seam] - method binding parameters in facelets custom tag

2007-09-10 Thread mustaghattack
I remember seeing posts saying that giving parameters for method bindings is not possible in facelets custom tags ... I'm using Seam 1.2.1.ga and I was wondering if this will be fixed in Seam 2 (I think the Seam 1.3 has been abandonned ?) or if any workaround exist for 1.2. Thanks View the

[jboss-user] [JBoss Seam] - Re: Reloading ResourceBundle without restarting the server

2007-07-24 Thread mustaghattack
Ok I found the solution in this thread : http://www.jboss.com/index.html?module=bbop=viewtopict=101324postdays=0postorder=ascstart=20 The messages component cache the messages ... View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4067083#4067083 Reply to the post

[jboss-user] [JBoss Seam] - Reloading ResourceBundle without restarting the server

2007-07-23 Thread mustaghattack
I see few solutions to achieve this : (1) extend seam's ResourceBundle component to use bundle in database (there is a post in the forum on this) (2) extend seam's ResourceBundle component and manage resource bundles manually (I mean writing the cache and the load method) (3) extend seam's

[jboss-user] [JBoss Seam] - Wildcard for pages action

2007-07-20 Thread mustaghattack
I'd like to use wildcard in the from-action attribute like this : | navigation from-action=#{logoEditor.editLogo(*)} | redirect view-id=/logo/edit.xhtml/ | /navigation | So each time I use logoEditor.editLogo whatever the parameter is I'm redirected to edit.xhtml. I tried with

[jboss-user] [JBoss Seam] - Re: Seam 1.2.1GA - Facelets

2007-07-20 Thread mustaghattack
Maybe you'll find the answer in this thread (Seam Maven) : http://www.jboss.com/index.html?module=bbop=viewtopict=97338start=80 View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4066211#4066211 Reply to the post :

[jboss-user] [JBoss Seam] - Re: Wildcard for pages action

2007-07-20 Thread mustaghattack
Yes it's a navigation rule. Thanks anyway. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4066212#4066212 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4066212 ___ jboss-user

[jboss-user] [JBoss Seam] - Set and @DataModel : patch for SetDataModel ?

2007-07-17 Thread mustaghattack
@DataModel doesn't work with Set for me. I'm using Seam 1.2.1 GA with Sun JSF Impl. I've been looking in SetDataModel and I found this : |@Override |public Object getWrappedData() |{ | return set; |} | But set is not supported by JSF so I changed it to the

[jboss-user] [JBoss Seam] - Tree annotation

2007-07-16 Thread mustaghattack
Is there any annotation like the DataModel one which would make easier the use of TreeNode ? Thanks View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4064575#4064575 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4064575

[jboss-user] [JBoss Seam] - Re: Tree annotation

2007-07-16 Thread mustaghattack
Ok I wanted to be sure before to start writing anything. Thanks View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4064613#4064613 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4064613

[jboss-user] [JBoss Seam] - Mocking @Logger

2007-07-10 Thread mustaghattack
I would like to unit test a Seam SFSB which uses an injected logger. I didn't find any MockLog so I use the logging factory like that : setField( editor, log, Logging.getLog( test ) ); It solves the NullPointerException and the test are working fine but when logging, the Interpolator try to

[jboss-user] [JBoss Seam] - Re: Mocking @Logger

2007-07-10 Thread mustaghattack
Ok, http://jira.jboss.com/jira/browse/JBSEAM-1633 I attached a MockLog. The mockLog method for SeamTest should be straightforward. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4062339#4062339 Reply to the post :

[jboss-user] [JBoss Seam] - Remote job opportunity on Seam project

2007-07-05 Thread mustaghattack
Sorry for this, it's probably not the right place ... I've been working with Seam for a few month and I definitively like it ! I'm currently in London and I would like to move to a very small village far from the city (in another country :)). I won't find anything overthere so I'm thinking

[jboss-user] [JBoss Seam] - Validate fileUpload

2007-06-27 Thread mustaghattack
Just wondering would it be possible to validate (using the seam validation mecanism) a file. I would like to upload an image but the accept attribute of the fileUpload component is neglected by the browser. So I wrote an Image validator and I would like to use it with s:validate. Problem

[jboss-user] [JBoss Seam] - Re: Validate fileUpload

2007-06-27 Thread mustaghattack
Cool ! Thx View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4058152#4058152 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4058152 ___ jboss-user mailing list

[jboss-user] [JBoss Seam] - s:graphicImage problems with Sun JSF Impl

2007-06-14 Thread mustaghattack
I have few problems with seam's graphicImage component. * NullPointerException due to getRenderType() != null This is the encodeChildren method of UIComponentBase (Sun impl) | /** | * @throws NullPointerException [EMAIL PROTECTED] | */ | public void

[jboss-user] [JBoss Seam] - Re: s:graphicImage problems with Sun JSF Impl

2007-06-14 Thread mustaghattack
Actually not : I did ant war.tomcat in the ui example folder. I put it in my tomcat (5.5.23) webapps. Tomcat start successfully. But when enter one of the link (fileUpload for example) on the main page I get : | 15:10:49,124 ERROR [ExceptionFilter] could not roll back transaction |

[jboss-user] [JBoss Seam] - Re: s:graphicImage problems with Sun JSF Impl

2007-06-14 Thread mustaghattack
BTW I use the fileUpload without problem. Here's my facelets page : | rich:panel | f:facet name=header#{messages['edit.file_upload']}/f:facet | h:form enctype=multipart/form-data | s:fileUpload

[jboss-user] [JBoss Seam] - Re: s:graphicImage problems with Sun JSF Impl

2007-06-14 Thread mustaghattack
Ok, http://jira.jboss.com/jira/browse/JBSEAM-1457 View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4054426#4054426 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4054426 ___

[jboss-user] [JBoss Seam] - Re: s:graphicImage problems with Sun JSF Impl

2007-06-14 Thread mustaghattack
Ok I have the solution : doesn't work when cookies are not allowed. The session is destroyed regularly. I'm not a Servlet expert but why does it happen ?? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4054472#4054472 Reply to the post :

[jboss-user] [JBoss Seam] - Facelets 1.1.11 and s:decorate problem

2007-06-13 Thread mustaghattack
I just had a problem with facelets version 1.1.11 when using seam's decorate tag. The ui:insert/ doesn't insert the content of the decorate childs but the content of the last (?) ui:define. In my case the body definition. In result I have duplicate tags (and duplicate id errors). I switched

[jboss-user] [JBoss Seam] - Re: Building parent and child in one page

2007-06-09 Thread mustaghattack
Ok no one see a solution without cloning ? It would help me a lot ! Thanks View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4052788#4052788 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4052788

[jboss-user] [JBoss Seam] - Re: Building parent and child in one page

2007-06-09 Thread mustaghattack
Thank for your reply Pete. I tried nested conversation without success. The problem is that you get the same persistence context even if you use two components. I didn't find a solution with JTA as well : - Start a transaction with entity manager 1 - Persist the parent - Start a transaction

[jboss-user] [JBoss Seam] - Building parent and child in one page

2007-06-08 Thread mustaghattack
I would like to create a questionnaire and its questions in the same page. The user will be able to add/remove/edit question to a new questionnaire and save/cancel the whole thing at the end. I have problems for editing a question. Here is the use case : - New Questionnaire - New Question (1)

[jboss-user] [JBoss Seam] - Re: Building parent and child in one page

2007-06-08 Thread mustaghattack
I tried that one as well but it fails for this use case : - New Questionnaire New Question (1) Save Question (1) Edit Question (1) Cancel changes on Question 1 - Save Questionnaire (em.flush()) I got the changes done during the edit step. Thanks for the reply. View the

[jboss-user] [JBoss Seam] - Re: s:validateAll cumulates validation error messages when u

2007-06-06 Thread mustaghattack
I have the same problem ... I'm using Sun JSF Impl After a look in the code I found the problem : UIValidateAll add the validator in the getChildren() method. During the restore phase the StateManager restore the component tree structure before restoring the state. So the getChildren() method

[jboss-user] [JBoss Seam] - Re: fetchtype.LAZY results in JSF validation error

2007-06-04 Thread mustaghattack
anonymous wrote : | 3) 'xxx: Value is not a valid option' validation error occurs because the newly submitted converted selection is not a member of the original list. Have you overridden equals() on the OrgUnit so that it uses Id equality rather than object equality (you create a new

[jboss-user] [JBoss Seam] - Re: Versatile component : component binding, facelets or new

2007-05-31 Thread mustaghattack
Ok well I didn't try that one ... I thought that wasn't possible to add children during the render phase. I'll have a look, Thanks Bruno View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4050011#4050011 Reply to the post :

[jboss-user] [JBoss Seam] - Re: Versatile component : component binding, facelets or new

2007-05-30 Thread mustaghattack
Thanks for the reply. In this article Rick Hightower explain how to make compile-time tag, which doesn't work for my requirements. It's not difficult to turn them into render-time tags but I found easier to just use the rendered attribute. I've done a component which work like this : |

[jboss-user] [JBoss Seam] - Using enum for component attribute

2007-05-24 Thread mustaghattack
Hello, I'm wondering if there is a simple way to bind a model property to a component attribute. Here is a simple example : I would like to persist the selectManyCheckbox layout attribute. In the model I would typically use an enum (independent of the UI values) like enum Alignment {

[jboss-user] [JBoss Seam] - Versatile component : component binding, facelets or new com

2007-05-22 Thread mustaghattack
Hi everyone, I'm writing a questionnaire maker app and I would need a versatile component which could render either a list/menu/checkbox/radio/text depending on type/style attribute. I see 3 solutions : component binding, facelets component or JSF component. Component binding is deprecated in