[jboss-user] [JBoss Seam] - Re: seam ui example makes me puzzle

2008-02-11 Thread jazir1979
Hi guys, I've seen a few people posting with these symptoms in the past week, and it reminds me very much of a problem I reported last year- http://www.jboss.com/index.html?module=bbop=viewtopict=115167 My problem was introduced in Seam2, but fixed in 2.0.0.CR1. I'm wondering if there could

[jboss-user] [JBoss Seam] - Re: Worst possible situation

2008-02-10 Thread jazir1979
On my project we develop on windows, but our anthill (continuous integration) deployment and demo environment are on linux, with another external demo environment on windows under IIS forwarding to JBossAS. I've never noticed any kind of different application behaviour among these

[jboss-user] [JBoss Seam] - Re: Non english characters in messages.properties

2008-01-06 Thread jazir1979
[EMAIL PROTECTED] wrote : I'm not very good at i8ln, but shouldn't messages.properties be UTF-8 encoded as well in the situation? No, in fact you need to escape your UTF-8 characters in properties files, for example: | help=\u5E2E\u52A9 | I do this automatically in my ANT build as

[jboss-user] [JBoss Seam] - Re: trying to display a .doc file

2008-01-06 Thread jazir1979
I serve files out of the DB using a custom FileServlet, with code similar to the following: | response.setHeader(Content-Disposition, attachment; filename= + file.getFilename()); | response.setContentType(file.getContentType()); | response.setContentLength(file.getData().length); |

[jboss-user] [JBoss Seam] - Re: Possible to turn off validation for search value object

2007-12-25 Thread jazir1979
Hi Thorsten, Yes, you just need to make sure your search field is not wrapped in s:validate or s:validateAll tags. There was somebody else with this problem a few days ago, and they had s:decorate with the edit.xhtml template which includes the validate tags. Hibernate validation will only

[jboss-user] [JBoss Seam] - Re: Mysql Database Connection Problem Seam

2007-12-20 Thread jazir1979
This could mean you haven't GRANTed the MySQL user connect privileges, eg: GRANT ALL PRIVILEGES ON abc.* TO 'abc'@'localhost' IDENTIFIED BY 'xyz'; Also try substituting localhost with * if you want to connect from other machines. vikramchhetryy wrote : Hi All, | I am trying to create a new

[jboss-user] [JBoss Seam] - Re: Locale selector can not change the locale on Seam 2.0.0.

2007-12-20 Thread jazir1979
Hi Joshua, Sorry this isn't much help, but I can say for certain that I did not experience this when I upgraded our project to 2.0.0.GA. Also, I don't remember having to change any code to get it to work. I'm changing it with a command button that has the localeSelector.select action. good

[jboss-user] [JBoss Seam] - Re: Search entity doesn't need to be validated

2007-12-18 Thread jazir1979
I don't use seam-gen, and my project doesn't use entity fields to carry across search values... but I wonder, why would you even have your search fields inside s:validate in your UI? menashe wrote : After looking at the seam examples and seamgen code on how the search is done. It seams to me

[jboss-user] [JBoss Seam] - Re: Search entity doesn't need to be validated

2007-12-18 Thread jazir1979
From my understanding, you need s:validate to trigger hibernate validator at the JSF level. Otherwise, the validations only trigger when you try to persist an entity? I could be wrong, however. Another thing I'd point out is that using an entity for search values only works in the simplest

[jboss-user] [JBoss Seam] - Feature request - outject to multiple context variables?

2007-12-04 Thread jazir1979
Hi all, I have a case in my project where I would like to @Out an instance variable to multiple names. This is conceptually similar to the @Roles functionality that Seam provides for components, but it applies to an outjected variable instead. Currently I've had to declare the instance

[jboss-user] [JBoss Seam] - Re: JasperReport+Seam

2007-11-28 Thread jazir1979
mirlabraga wrote : Hello People | | How do I do for create a report with Jasper Report and show on Seam? | | Is It possible? | | I cant'n use the lib of the Seam (jboss-seam-pdf.jar), because my bussing request | | Jasper Report. | | Thanks. Hi, it certainly is

[jboss-user] [JBoss Seam] - Re: HELP!!! PDF generation and unicode

2007-10-21 Thread jazir1979
I believe it's a PDF font issue, I had the same problem in jasper reports which also uses iText, and had no luck after trying to use their asian fonts JAR to get chinese characters. See here: http://itextdocs.lowagie.com/tutorial/fonts/index.php Post back if you have any success...

[jboss-user] [JBoss Seam] - Re: Is it safe to have simple integer conversation IDs?

2007-08-30 Thread jazir1979
You can only access conversations that were initiated from your session. If you are worried about session hijacking then fine, but it has nothing to do with integer conversation IDs. dhinojosa wrote : Just the standard hijacking, knowing that there is a possibility of say 1000

[jboss-user] [JBoss Seam] - Re: h:selectManyCheckbox replaces PersistentBag with Arrays.

2007-08-20 Thread jazir1979
This is causing us troubles too. I can see that the JSF spec allows it, but it's one of those things where the integration between JSF and Hibernate is not SEAMless at all... it should just work, and it just doesn't, so it pollutes our application with code to deal with maintaining the

[jboss-user] [JBoss Seam] - Re: File upload - performance has taken a dive

2007-08-05 Thread jazir1979
I reproduced it using the seam-ui example, with a large file for Pete Muir's Picture. I had loads of the following: | 2007-08-06 11:45:20,921 DEBUG [org.jboss.seam.contexts.Contexts] found in event context: person | 2007-08-06 11:45:20,921 DEBUG [org.jboss.seam.contexts.Contexts] found in

[jboss-user] [JBoss Seam] - Re: File upload - performance has taken a dive

2007-08-05 Thread jazir1979
For example, this change on Fisheye: http://fisheye.jboss.com/browse/JBoss/jboss-seam/ui/src/main/java/org/jboss/seam/ui/component/UIFileUpload.java?r1=1.3r2=1.4 I'll try it... View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4071013#4071013 Reply to the post :

[jboss-user] [JBoss Seam] - Re: File upload - performance has taken a dive

2007-08-05 Thread jazir1979
It worked. Like all my other recent troubles, I had to apply the fix manually after inspecting Fisheye. It would have been much easier if there was like a Seam 2 Beta 2 release or something. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4071018#4071018

[jboss-user] [JBoss Seam] - File upload - performance has taken a dive

2007-08-02 Thread jazir1979
Hi all, I *think* this has happened since upgrading to Seam2, but I can't be sure of that. Anyway, this is what's happening: Whenever I upload a file with the file upload component, it is taking an extremely long time. It's also resulting in a huge number of the following logging statements

[jboss-user] [JBoss Seam] - Re: File upload - performance has taken a dive

2007-08-02 Thread jazir1979
Hi Shane, thanks for looking at this. I took a debugger to it and it seems it is the JSF processUpdates in the UIFileUpload component: | Contexts.lookupInStatefulContexts(String) line: 192 | Component.getInstance(String, boolean) line: 1722 | Component.getInstance(String) line: 1717

[jboss-user] [JBoss Seam] - Re: @In(required = false, value =

2007-07-09 Thread jazir1979
http://jira.jboss.org/jira/browse/JBSEAM-1628 View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4062160#4062160 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4062160 ___ jboss-user

[jboss-user] [JBoss Seam] - Error in international-2.0.xsd

2007-07-09 Thread jazir1979
Eclipse has started complaining to us that http://jboss.com/products/seam/international-2.0.xsd is invalid. There seems to be a trailling slash missing on line 15: | xs:attribute name=cookie-max-age | View the original post :

[jboss-user] [JBoss Seam] - Re: Error in international-2.0.xsd

2007-07-09 Thread jazir1979
Thanks Pete. Will the new version be propogated to the JBoss site? Or not until the next release? It's not a biggie, I just turned off Eclipses' XSD validations.. [EMAIL PROTECTED] wrote : Thanks, fixed in CVS :) View the original post :

[jboss-user] [JBoss Seam] - @In(required = false, value =

2007-07-08 Thread jazir1979
Hi all, We have some code that uses the following: | @In(required = false, value = #{uiComponent['XXX']}) | Some methods in our bean are called when component XXX does not exist in the ViewRoot, which is why we use required = false. However, this fails now in Seam 2, because the Sun RI

[jboss-user] [JBoss Seam] - Re: @In(required = false, value =

2007-07-08 Thread jazir1979
It looks like this could be fixed with a very simple patch to org.jboss.seam.faces.UIComponent to catch the IllegalArgumentException and return null. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4061805#4061805 Reply to the post :

[jboss-user] [JBoss Seam] - Re: @In(required = false, value =

2007-07-08 Thread jazir1979
BTW- I'm using the workaround of looking up the components myself via the FacesContext ViewRoot in the methods that require it. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4061808#4061808 Reply to the post :

[jboss-user] [JBoss Seam] - Re: best way of using application scope constants?

2007-07-04 Thread jazir1979
I'm doing a similar thing to this using a SLSB with application scoped @Factory methods. It works well. | @Stateless | @Name(factory) | public class FactoryActionBean extends BaseActionBean implements FactoryAction { | @In(create = true, value = entityManager) | protected

[jboss-user] [JBoss Seam] - Need to fully qualify isUserInRole?

2007-07-04 Thread jazir1979
Hi all, I just noticed that the #{isUserInRole['BLAH']} tags in my JSF pages are not being invoked after my upgrade to Seam 2. After fully qualifying it as org.jboss.seam.web.isUserInRole['BLAH'] it works fine. Is this a known change, or can I avoid it somehow? Is it related to the fact

[jboss-user] [JBoss Seam] - Re: Transaction won't commit from MDB Seam2 component

2007-07-01 Thread jazir1979
[EMAIL PROTECTED] wrote : I need to see the actual nature of the failure. Try turning on more verbose logging. I haven't been able to get any more info, I've tried fiddling with jbossjta-properties.xml and my Log4J config, but no success. I found this:

[jboss-user] [JBoss Seam] - org.jboss.seam.Entity - constructor WTF?

2007-06-28 Thread jazir1979
Hi guys, I'm trying to temporarily hack my way around JBSEAM-1487 so I can finish my half-completed upgrade to 2.0 BETA. I've come across the following code in org.jboss.seam.Entity and it looks a bit weird: | for ( Class? clazz=beanClass; clazz!=Object.class; clazz =

[jboss-user] [JBoss Seam] - Component with @WebRemote methods can no longer use @Request

2007-06-28 Thread jazir1979
Hi again, I have a seam component with two @WebRemote methods and one standard method. The standard method uses a @RequestParameter. This worked fine in 1.2.1.GA but is breaking now on 2.0.0 (stacktrace below). I'm going to try and split this into two seperate components which I hope will

[jboss-user] [JBoss Seam] - Seam2 LocaleSelector - no longer shows default-locale

2007-06-28 Thread jazir1979
Hi again, With the following config in my faces-config.xml: | locale-config |default-localeen-AU/default-locale |supported-localezh-CN/supported-locale |supported-localees-BO/supported-locale | /locale-config | The Seam LocaleSelector using getSupportedLocales() as

[jboss-user] [JBoss Seam] - Re: Seam2 LocaleSelector - no longer shows default-locale

2007-06-28 Thread jazir1979
PS: the obvious fix worked... | locale-config |default-localeen-AU/default-locale |supported-localeen-AU/supported-locale |supported-localezh-CN/supported-locale |supported-localees-BO/supported-locale | /locale-config | View the original post :

[jboss-user] [JBoss Seam] - Re: Component with @WebRemote methods can no longer use @Req

2007-06-28 Thread jazir1979
http://jira.jboss.com/jira/browse/JBSEAM-1579 Done, thanks Gavin. The workaround of splitting the component into two worked fine, and probably not many people use a combination of @WebRemote and @RequestParameter like this. We're only using it in a lookup component that's dojo-based on the

[jboss-user] [JBoss Seam] - Transaction won't commit from MDB Seam2 component

2007-06-28 Thread jazir1979
Hi, I have an MDB annotated with @Name, which worked fine in 1.2.1.GA. But now, when the app server attemps to commit following a successful message, I get this... | 10:12:29,703 INFO [DownloadManager] Finished processing file: c:\download\received\2AZ3MQ_20060627134443 | 10:12:29,703

[jboss-user] [JBoss Seam] - Re: Transaction won't commit from MDB Seam2 component

2007-06-28 Thread jazir1979
http://jira.jboss.com/jira/browse/JBSEAM-1580 thank you! Daniel. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4058982#4058982 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4058982

[jboss-user] [JBoss Seam] - Re: Transaction won't commit from MDB Seam2 component

2007-06-28 Thread jazir1979
[EMAIL PROTECTED] wrote : Fixed, HTH. Thanks Gavin. This does work, but should I be concerned about the following WARN level trace? | 11:56:27,828 WARN [arjLoggerI18N] [com.arjuna.ats.arjuna.coordinator.TwoPhaseCoordinator_4] TwoPhaseCoordinator.afterCompletion - returned failure for

[jboss-user] [JBoss Seam] - Re: Seam 1.3.0.ALPHA entity converter: The instance was not

2007-06-27 Thread jazir1979
This a big step backwards in my opinion. I have a similar situation to the above, although my factories were for application scope, not even at the user session level. Now to populate these select boxes I will have to hit the DB over and over. I guess the widest scope I can cache these now

[jboss-user] [JBoss Seam] - Re: Seam 1.3.0.ALPHA entity converter: The instance was not

2007-06-27 Thread jazir1979
Also, I have a quick question- would it be as simple as changing the PersistenceProvider.instance().getId() to do the same thing as the default getId() implementation (Entity.forClass( bean.getClass() ).getIdentifier(bean)) rather than delegating to Hibernate? Or will I run into further

[jboss-user] [JBoss Seam] - Re: How to remove the cid parameter?

2007-06-21 Thread jazir1979
This is only helpful if you decide not to hide the cid param from the user, but I'm 99.99% sure that there MUST be a way to tell it to ignore certain query string parameters. A quick google for 'google analytics ignore query string parameter' gave some promising results. View the

[jboss-user] [JBoss Seam] - Re: Seam Web Beans future

2007-06-13 Thread jazir1979
There was a thread on this the other day: http://www.jboss.com/index.html?module=bbop=viewtopict=110412 At the end of the day, standards aside, you need to build to something concrete, and as you said, WebBeans is not finalised yet. Hibernate was popular and widely used long before JPA was

[jboss-user] [JBoss Seam] - Re: Is it possible to have same Class name Different package

2007-06-13 Thread jazir1979
Regardless of Seam, all EJBs in the same ejb-jar should have unique ejb names. Try annotating the SFSB classes with @EJB(name=beanX), this may solve the problem. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4054179#4054179 Reply to the post :

[jboss-user] [JBoss Seam] - Re: Is it possible to have same Class name Different package

2007-06-13 Thread jazir1979
jazir1979 wrote : | Regardless of Seam, all EJBs in the same ejb-jar should have unique ejb names. | | Try annotating the SFSB classes with @EJB(name=beanX), this may solve the problem. | BTW- there's a section on page 319 of Bill Burke's EJB3 book that explains how JBoss resolves

[jboss-user] [JBoss Seam] - Seam date control - CSS goodness

2007-06-13 Thread jazir1979
Hi all, Has anybody done any of their own neat looking CSS customisations for the Seam datepicker component? I would love to leech from ..errr.. admire your work. If so, perhaps uploading them to an area on the Wiki would be cool. ever hopeful, and visually challenged, Daniel. View the

[jboss-user] [JBoss Seam] - Re: h:messages for Authenticator

2007-06-12 Thread jazir1979
But it's still a global message, not for your loginPanel. Either remove the for and display your global messages, or use facesMessage.addToControl() in the code. tonylmai wrote : You're right. | | However, after I've added a panel with id for the message, it's still not displayed. |

[jboss-user] [JBoss Seam] - Re: in an MDB how to get an application scoped component ?

2007-06-12 Thread jazir1979
If you annotate your MDB as a Seam component, using @Name, then you can use bijection, I am doing this in my app. I'm not sure if you will be able to access the Application context. The documentation just says they do support bijection and some other Seam functionality. One issue I had was

[jboss-user] [JBoss Seam] - Re: Is @Entity required for Seam w/ Hibernate in Java EE

2007-06-03 Thread jazir1979
AFAIK, Hibernate Annotations uses the standard EJB3 annotations, as well as providing extras that are in the org.hibernate.* package. From the website: The Hibernate Annotations package includes: * Standardized Java Persistence and EJB 3.0 (JSR 220) object/relational mapping annotations

[jboss-user] [JBoss Seam] - PAGE context and Ajax4JSF

2007-05-31 Thread jazir1979
Hi all, Are there any plans (is it even technically possible?) to get PAGE scoped components to work with a page that uses Ajax4JSF? I was using a PAGE-scoped @Factory @DataModel previously, to display data to the user that gets modified by other asynchronous processes - ie: i wanted the data

[jboss-user] [JBoss Seam] - Re: PAGE context and Ajax4JSF

2007-05-31 Thread jazir1979
Hi Gavin, Thanks for the reply. [EMAIL PROTECTED] wrote : anonymous wrote : the serialized page state is not available when Ajax4JSF goes through the JSF lifecycle to process the validations | | I'm sure that's not correct. Ajax4JSF does resubmit the serialized state back to the server.

[jboss-user] [JBoss Seam] - Re: Font problem

2007-05-30 Thread jazir1979
Hi Nam, You do need to configure a character encoding filter, and Seam comes with one that you can set up in your components.xml: web:character-encoding-filter encoding=UTF-8 override-client=true url-pattern=*.seam/ hope that helps, Daniel. namnn wrote : Hi all, | I am from Vietnam. I need

[jboss-user] [Messaging, JMS JBossMQ] - Re: Configure queues/topics at application level, Possible?

2007-05-27 Thread jazir1979
This is causing me grief, because we want two different versions of the same app deployed into the same JBoss instance. I have it all working, with two different web context-roots and two loader-repository names which isolates the EJBs just fine. But if I need different queue names for

[jboss-user] [Messaging, JMS JBossMQ] - Re: Configure queues/topics at application level, Possible?

2007-05-27 Thread jazir1979
Well, after thinking about it, I guess this makes perfect sense. If you had a remote client, or a client outside of your app, there'd be no way to know which queue/application it intended to send the message to. So, ignore this ;) jazir1979 wrote : | This is causing me grief, because we

[jboss-user] [JBoss Seam] - Re: Howto handle LazyInitializationException

2007-05-24 Thread jazir1979
Hi Thierry, Have you read about the extended persistence context? If not, this is where your answer lies http://docs.jboss.com/seam/1.2.1.GA/reference/en/html/persistence.html Using a conversation-scoped SFSB with an extended persistence context will solve your problem. Daniel. View the

[jboss-user] [JBoss Seam] - Re: Generation of jasper reports in seam

2007-05-23 Thread jazir1979
Sorry, I can't be much help with that, I've never seen anything like it. I'm running my query in my own code and using a custom data source, so I've never dealt with these executer factory classes.. This seems to be a pure Jasper question, not really about using Jasper with Seam, so you may

[jboss-user] [JBoss Seam] - Re: Seam+JMS: extracting Java object from ObjectMessage

2007-05-23 Thread jazir1979
Hi, From what I've seen, the object in your ObjectMessage should follow the same rules as what any Seam Remoting @WebRemote method would return (Section 19.6 of the doco) -- ie: keep it as a simple JavaBean so you can access the serialized state from javascript using properties. I don't think

[jboss-user] [JBoss Seam] - Re: Generation of jasper reports in seam

2007-05-22 Thread jazir1979
Hi, I wrote my own JSF component that can view a report inside a div on a given page, and also export a report in a number of output formats. I can't really share the component at this stage, but these snippets should help you get something up and running. Hopefully in the future I can make

[jboss-user] [JBoss Seam] - Re: problem with encoding

2007-05-22 Thread jazir1979
My root facelets template just has the direct meta HTML tag in it: | meta http-equiv=Content-Type content=text/html; charset=UTF-8 / | The Seam blog example uses an f:view in its template.xhtml but specifies the encoding in a direct meta tag. I didn't even think f:view had such a

[jboss-user] [JBoss Seam] - Re: How to get a facelets parameter into a seam component

2007-05-21 Thread jazir1979
Hi Tobias, I ran into this problem previously as well, and had to work around it by solving my problem some other way. However, I did just have an idea. With normal JSF components that you use, you can inject them into your Seam bean with this: | @In(value=#{uiComponent['componentId']})

[jboss-user] [JBoss Seam] - Re: problem with encoding

2007-05-21 Thread jazir1979
There's a few layers this can fail at. You are right that you need the character encoding filter. Do you know if the data is being stored/inserted correctly at the DB level? (ie- connect to MySQL using some other tool to see). MySQL allows you to specify the character encoding at a DB-wide

[jboss-user] [JBoss Seam] - Re: Is it good to code JSP-specific information in EJB??

2007-05-20 Thread jazir1979
...and remember - 95% of web apps never end up needing this, which is the whole point of simplifying and unifying things in a framework like Seam. So make sure this is a true requirement that you'll actually make use of before you go and complicate the architecture..! View the original post

[jboss-user] [JBoss Seam] - Re: Is it good to code JSP-specific information in EJB??

2007-05-20 Thread jazir1979
Hi, If seperating these UI concerns from the business logic is a great concern, there is no reason you can't have a more traditional stateless service layer that your Seam EJBs talk to, and which could then be used by other clients. You'll need to get your persistence context strategy right,

[jboss-user] [JBoss Seam] - Re: Is it good to code JSP-specific information in EJB??

2007-05-20 Thread jazir1979
Hi Alain, I think that should work using the @DataModelSelection annotation to inject the selected row. I guess our experiences are different, because I've rarely used existing EJB services written years before for a new UI. But as I said, it's easy to keep this separation, so what is the

[jboss-user] [JBoss Seam] - Re: File upload / multipart filter - max request size

2007-05-16 Thread jazir1979
Ahh...I had a feeling there'd be a reason behind it. It's not a big deal at the moment and I could always implement further size restrictions in my business logic to restrict what we really accept. I was just hopeful that it would be do-able ;) Thanks for your help, Daniel. [EMAIL

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

2007-05-13 Thread jazir1979
Also not that MyFaces has achieved 100% compliance of JSF 1.2, as announced here: http://www.mail-archive.com/[EMAIL PROTECTED]/msg37334.html So perhaps the Sun RI 1.2 change will not be necessary now? View the original post :

[jboss-user] [JBoss Seam] - Re: @Factory usage

2007-05-10 Thread jazir1979
Hi Tony, The @Factory annotation creates a Seam component in its own right, it's not a property of the orderMgr bean. So I think you should use value=#{workingOrders} in your data table. Hope it helps, Daniel. View the original post :

[jboss-user] [JBoss Seam] - Re: @Factory usage

2007-05-10 Thread jazir1979
Context variable, not component. But y'know what I mean ;) View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4044859#4044859 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4044859 ___

[jboss-user] [JBoss Seam] - Best way for JMX MBean to depen on Seam initialization?

2007-05-01 Thread jazir1979
Hi all, I have a problem whereby a JMX MBean that polls a directory for files sends JMS messages, and the message-driven bean listening on this queue is a Seam component (mainly so it can use some edge-case Seam components like Messages, etc. It's not essential, but is handy). Unfortunately,

[jboss-user] [JBoss Seam] - Re: Possible to Stream Object to user in Seam?

2007-04-25 Thread jazir1979
I'm using a byte[] and MySQL together and it works fine, although I did have a feeling the lazy loading is being ignored as the original poster said, but haven't tested it properly. | @Lob | @Basic(fetch = FetchType.LAZY) | @Column(nullable = false) | public byte[]

[jboss-user] [JBoss Seam] - s:convertDateTime and s:selectDate without specifying patter

2007-04-10 Thread jazir1979
Hi all, The above 2 tags do not play nicely together if you do not specify a date format pattern. s:converDateTime correctly uses the current locale to format the date, which can result in my input box containing say 'dd/mm/', 'mm/dd/' or 'dd-mm-' depending on my locale. This is

[jboss-user] [JBoss Seam] - Re: 1.2.0GA- Where has

2007-03-02 Thread jazir1979
ahh, thank u kindly! i was looking at the 1.2.0 doco pre-patch1, it's all updated now. cheers, daniel. [EMAIL PROTECTED] wrote : It's been replaced. Here's the new components.xml entry: | | web:multipart-filter create-temp-files=true | |

[jboss-user] [JBoss Seam] - Re: File(data) Download problem...

2007-03-01 Thread jazir1979
Hi, I'm doing something similar to you for exporting jasper reports (JasperPrint) objects to various output formats. I think perhaps you are missing the call to FacesContext.responseComplete(), but I will show you all of my code, because there are also various flush() and close() calls in

[jboss-user] [JBoss Seam] - Re: Excel support in Seam: any interest?

2007-03-01 Thread jazir1979
Fair enough -- it's very true that these tools are a world unto themselves and require a fair investment in building the report designs. If Seam can provide some of this stuff without requiring a reporting framework, then that's great. In my experience in the enterprise java space, our teams

[jboss-user] [JBoss Seam] - 1.2.0GA- Where has

2007-03-01 Thread jazir1979
Hi guys, As part of JBSEAM-790, the org.jboss.seam.servlet.MultipartConfig class was removed. It looks to me like this was unintentionally removed along with the Filter classes. The 1.2.0 docs still refer to this class as the component to use for configuring multipart requests. What has

[jboss-user] [JBoss Seam] - Re: 1.2.0GA- Where has MultipartConfig gone?

2007-03-01 Thread jazir1979
TIP: putting quotes in a subject line causes it to truncate :( View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4024547#4024547 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4024547

[jboss-user] [JBoss Seam] - Re: Excel support in Seam: any interest?

2007-02-28 Thread jazir1979
I do love the idea of the PDF templating using facelets in Seam for doing up quick documents and e-mails -- but the idea of adding Excel support then leads to the plethora of other output formats that you can think of.. and does all that fluff (and re-inventing of the wheel) really belong in

[jboss-user] [JBoss Seam] - Re: Real basic one

2007-02-06 Thread jazir1979
If you implement a seperate business layer using EJBs, be aware that you may lose the advantages of Seam-managed persistence contexts. Somebody correct me if I'm wrong on that?? That would mean implementing your own strategy for avoiding lazy initialisation exceptions, and all the joy

[jboss-user] [EJB 3.0] - Re: Nullpointer exception in embedded JBoss unit test when I

2007-01-16 Thread jazir1979
Hi all, I've attached more info to this JIRA issue for a similar problem I'm having - NullPointerException when obtaining the principal, but a different stacktrace. This was lodged in June -- any ideas when this might be looked at? If it's not going to be soon, I guess I'm going to be testing

[jboss-user] [EJB 3.0] - Re: Service Beans in Embeddable EJB 3.0?

2007-01-04 Thread jazir1979
Hi again, Mine is going to System.out, as configured in the log4j.xml in my ejb3-embedded/conf directory (which is in my classpath when I run the tests). | appender name=CONSOLE class=org.apache.log4j.ConsoleAppender | errorHandler class=org.jboss.logging.util.OnlyOnceErrorHandler/

[jboss-user] [JBoss Seam] - Re: @Unwrap from SFSB and session timeout issue

2007-01-04 Thread jazir1979
Created JIRA issue: http://jira.jboss.org/jira/browse/JBSEAM-636 I'll upload some sample code to demonstrate it very soon. If I get a chance I may also look at the source and see if I can identify a reasonable fix. thanks, Daniel. View the original post :

[jboss-user] [EJB 3.0] - Re: Service Beans in Embeddable EJB 3.0?

2007-01-03 Thread jazir1979
Hi there, If your EJBs are being started you will see it in your logs, something similar to what I've got here: | DEBUG 03-01 15:00:33,895 (Ejb3AnnotationHandler.java:getContainers:158) -found EJB3: ejbName=LookupActionBean, class=LookupActionBean, type=STATELESS | DEBUG 03-01

[jboss-user] [EJB 3.0] - Re: service

2007-01-01 Thread jazir1979
How about a POJO singleton that access a clustered cache (like JBoss TreeCache, or ehcache..)? Or a set of JMX MBeans that you cluster http://www.jboss.org/index.html?module=bbop=viewtopict=77986 babacarn wrote : Hi, | | I am looking for 'something' that: | - has the features of a

[jboss-user] [EJB 3.0] - Re: Updating instead of deleting

2006-12-20 Thread jazir1979
I have the same problem, a uni-directional one to many on a FK with CascadeType ALL. I try to delete a parent entity A, and Hibernate tries to update the FK column on the child table B to null, rather than performing a delete. | DEBUG 21-12 10:51:52,375 (Log4JLogger.java:debug:84)

[jboss-user] [EJB 3.0] - Re: Updating instead of deleting

2006-12-20 Thread jazir1979
http://www.jboss.com/index.html?module=bbop=viewtopict=79385 Setting updatable = false fixed this for me. I'm not entirely sure why, but it's a perfectly sufficient solution for me, as this FK column never would be updated. View the original post :

[jboss-user] [EJB 3.0] - Re: MapKey, JoinColumn and referencedColumnName

2006-12-20 Thread jazir1979
This seemed to go away once I upgraded all the Hibernate jars past the old versions that still ship with Embeddable EJB3. I can delete fine, although the name and referencedColumnName attributes still seems the wrong way around to me. Maybe I'm just mis-interpreting the spec. View the

[jboss-user] [EJB 3.0] - MapKey, JoinColumn and referencedColumnName

2006-12-19 Thread jazir1979
Hi all, I'm trying to use a map-based relationship on a non-PK, provided below. The EJB3 spec states that when used for relationship mappings, the referenced column is in the table of the target entity. However, when I do this, I get Unable to find column with logical name errors from

[jboss-user] [Security JAAS/JBoss] - Flushing credential cache upon EAR redeploy

2006-12-14 Thread jazir1979
Hi all, We are having problems with credentials remaining cached when we do a hot redeploy of our EAR, despite the HttpSession (obviously) being lost. Our login module is not called into at all when we login after the redeploy. We found the Wiki link with info on how to flush the credential

[jboss-user] [JBoss Seam] - Re: Iterating over @Factory list - c:forEach vs ui:repeat

2006-12-12 Thread jazir1979
Nevermind... it's happening because TOMAHAWK panelNavigation2 only renders direct children that are menu items, which means my ui:repeat isn't even being rendered. Many apologies... *runs off to finally remove tomahawk from my codebase, after ignoring your warnings* View the original

[jboss-user] [JBoss Seam] - Seam 1.1 CR2 - embedded EJB3 tests started failing

2006-12-03 Thread jazir1979
Hi, I've just upgraded to CR2 (from CR1), and my app still deploys and works fine in JBoss. However, one of my test suites (extending SeamTest) has started failing. Every test that tries to use my login component fails at the bijection phase. Here is a snippet of my logs: | EBUG 04-12

[jboss-user] [JBoss Seam] - Re: Seam 1.1 CR2 - embedded EJB3 tests started failing

2006-12-03 Thread jazir1979
Thanks Gavin. Sorry that my search hadn't turned up the previous forum post about this. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3990836#3990836 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3990836

[jboss-user] [JBoss Seam] - @Redirect exception - FacesMessages added twice

2006-11-27 Thread jazir1979
Hi all, I've upgraded to 1.1CR1 and started to use the @Redirect/@Render annotations for exception handling. My error.xhtml page that I redirect to contains this: h:messages globalOnly=true layout=table styleClass=errors/ I have a Seam action as a trivial test that simply throws my application

[jboss-user] [JBoss Seam] - Re: @Redirect exception - FacesMessages added twice

2006-11-27 Thread jazir1979
Hi again, I've attached the seam src to my project and have debugged through -- in fact the ExceptionHandler is only running once (it's just that it was calling my exception.getMessage() twice, which confused me). However, the FacesMessage does appear twice. Where else could it be getting

[jboss-user] [JBoss Seam] - Re: @Redirect exception - FacesMessages added twice

2006-11-27 Thread jazir1979
Problem solved - stupid user error! View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3989116#3989116 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3989116 ___ jboss-user mailing

[jboss-user] [JBoss Seam] - Seam Integration Testing with Embeddable EJB3 - swallowing e

2006-11-22 Thread jazir1979
Hi all, I posted this to the EJB3 forum, but have had no replies: http://www.jboss.com/index.html?module=bbop=viewtopict=95354 Basically my app works fine when I deploy to JBoss but inside the embeddable EJB3 container where I'm doing seam integration tests, the application exceptions from my

[jboss-user] [JBoss Seam] - Re: Seam Integration Testing with Embeddable EJB3 - swallowi

2006-11-22 Thread jazir1979
If anybody is/was in the same boat as me: an upgrade from ALPHA8 to ALPHA9 has fixed this problem (although my Entity tests are now failing because the EM isn't being bound, but I'm sure I'll sort that out). View the original post :

[jboss-user] [EJB 3.0] - Re: Embeddable EJB3 swallowing application exceptions

2006-11-22 Thread jazir1979
If anybody is/was in the same boat as me: an upgrade from ALPHA8 to ALPHA9 has fixed this problem (although my Entity tests are now failing because the EM isn't being bound, but I'm sure I'll sort that out). View the original post :

[jboss-user] [EJB 3.0] - Embeddable EJB3 swallowing application exceptions

2006-11-21 Thread jazir1979
Hi guys, I have a Seam application with my Seam Actions (SFSBs) calling to a stateless business layer using SLSBs. My app deploys and works fine in JBoss AS 4.0.5, but I'm using embeddable EJB3 (currently ALPHA8) for integration testing. I'm finding that when my Seam Actions call to the

[jboss-user] [JBoss Seam] - Iterating over @Factory list - c:forEach vs ui:repeat

2006-11-19 Thread jazir1979
Hi all, I'm using facelets and had been building up a menu of modules that a user has access to using a list outjected by a Seam @Factory method: | c:forEach items=#{moduleList} var=module | t:navigationMenuItem | /t:navigationMenuItem | /c:forEach | I attempted to

[jboss-user] [EJB 3.0] - Re: RC9 is out

2006-11-09 Thread jazir1979
jimcarrey wrote : Why does it not say what version of hibernate is shipped with RC9 in the release notes? | Where canI go to recommend this should be done. | The reason is I want to be able to debug and see what is going on in some complex persistence use cases. If I can be 100% sure what

[jboss-user] [EJB 3.0] - OneToOne using a formula

2006-11-08 Thread jazir1979
Hi all, I haven't found anything in the EJB3 spec that lets me do something like the formula attribute of Hibernate's one-to-one. Does anybody know of a way to do this? This stems from an I18N problem.. I have a one to many relationship between a table A and a Messages table that stores an

[jboss-user] [EJB 3.0] - Re: OneToOne using a formula

2006-11-08 Thread jazir1979
PPS: after checking the EJB3 persistence spec, it seems I can't really use an Entity Callback to do something like this anyway. So now I'm really stuck as to the best way to model this.. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3984370#3984370

[jboss-user] [JBoss Seam] - Re: Don't support Chinese characters ?

2006-10-31 Thread jazir1979
Hi Eddie, I am using chinese characters in Seam with no problems. I have a messages_zh.properties with entries like: Copyright=2006 \u8457\u4F5C And I'm using this on my home page to allow the user to switch from their default locale (as sent by the browser): h:selectOneMenu

  1   2   >