[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: Maybe a bug on EntityManager.createNativeQuery(String)

2009-02-25 Thread stephen.friedrich
Still a problem in current hibernate. My workaround is to use a custom dialect: public class FitOracle9iDialect extends Oracle9iDialect { | public String getHibernateTypeName(int code, int length, int precision, int scale) throws HibernateException { | if (code == Types.CHAR && len

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

2007-11-08 Thread stephen.friedrich
"[EMAIL PROTECTED]" wrote : I'm not really in love with the idea. Hm, why not? Use case: * a GET request loads a page, * page action starts a conversation * the initial page load contains an edit form * conversation continues while another page containing more details is loaded * navigation retu

[jboss-user] [JBoss Seam] - Re: Logging all uncaught exceptions to a separate Logger?

2007-10-16 Thread stephen.friedrich
Addition for anybody who might find this post later on - including myself ;-) My own servlet filter never caught any exceptions. Turned out that Seam's built-in filter already logs and swallows all exceptions. Luckily it is a simple log4j configuration to redirect that log: | |

[jboss-user] [JBoss Seam] - Re: Logging all uncaught exceptions to a separate Logger?

2007-10-11 Thread stephen.friedrich
Thanks a lot, Matt, for the fast answer! That is working great. I already looked at the Exceptions class and figured I could use a catch-all handler that redirects to an error page that has a page action that calls a component that gets injected the handledException and logs it :-( Besides being

[jboss-user] [JBoss Seam] - Logging all uncaught exceptions to a separate Logger?

2007-10-11 Thread stephen.friedrich
Can Seam help me logging all uncaught exceptions to a separate Logger? If not - any idea how I can do that? I tried writing a servlet filter, but somehow I can't make it work: It seems exceptions are swallowed somewhere before they have the chance to bubble up to my doFilter() method. View the

[jboss-user] [JBoss Seam] - Re: s:fileUpload doesn't preserve pending value after immedi

2007-10-09 Thread stephen.friedrich
No way to get around it. I have seen an application (Jira) that adds a message underneath the upload text field like "Path was lost during reload. Please enter again.". That's probably the best you can do. If you really would find a way around this limitation you would be making headlines on ma

[jboss-user] [JBoss Seam] - Re: SFSB Method(Event Handler) still called after form valid

2007-10-05 Thread stephen.friedrich
Versions of Seam, JSF, Facelets or JSP? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4092118#4092118 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4092118 ___ jboss-user mai

[jboss-user] [JBoss Seam] - Re: How to abandon a conversation?

2007-10-05 Thread stephen.friedrich
Thanks, Pete! Turned out it _is_ working with tr:commandNavigationItem, I only tested with the wrong menu level :-( Anyway, I think the documentation should be improved: * "similar" => "any other JSF component that embeds a child f:param into its submission". * "Facelets only." => "Facelets only

[jboss-user] [JBoss Seam] - How to abandon a conversation?

2007-10-05 Thread stephen.friedrich
Ok, I now about the propagation attribute and about s:conversationPropagation. It does not work for me, because I am using Trinidad's Xml menu and tr:commandNavigationItem as a stamp to render it. Docs for s:conversationPropagation:anonymous wrote : Customize the conversation propagation for a

[jboss-user] [JBoss Seam] - Re: Entity Injection question

2007-10-01 Thread stephen.friedrich
I can't really point to a paragraph in the reference where it's explicitly described. Yet, every example uses components that way: Usually the very first reference to a component is encountered in EL in html/jsp. When explaining the registration example the 1.2.1 reference says: anonymous wrot

[jboss-user] [JBoss Seam] - Re: Entity Injection question

2007-10-01 Thread stephen.friedrich
Jacob, I think you are wrong. If you reference a seam component in EL in the component instance will _always_ be created if it was null. "smithbstl": You have to do it the way you did, if you really need to check for null properties. How comes, that you must do so? View the original post : ht

[jboss-user] [JBoss Seam] - Re: Warning: do not use Seam managed pesistent context for B

2007-10-01 Thread stephen.friedrich
Occurence count of the string "joinTransaction" in Seam 1.2.1 reference: 0 2.0 improved on that: Method is shown in exactly one code example without any comment :-( View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4090219#4090219 Reply to the post : http://www

[jboss-user] [JBoss Seam] - Re: Security: Better support for single sign on?!

2007-09-28 Thread stephen.friedrich
Sorry, should have included that already. For me this works fine: | | | | The checkLogin method is the very one I already posted. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4089839#4089839 Reply to the post : http://www.jboss.com/index.ht

[jboss-user] [JBoss Seam] - Re: Security: Better support for single sign on?!

2007-09-28 Thread stephen.friedrich
Brad, thanks for spotting that. No particular reason other than I have been through quite some trial and error until I arrived at this code. I'll switch completely to Identity.instance(). View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4089694#4089694 Reply to

[jboss-user] [JBoss Seam] - Re: Multiple role privelege with s:hasRole

2007-09-28 Thread stephen.friedrich
#{s:hasRole('admin') or s:hasRole('admin'} ? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4089659#4089659 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4089659 ___ jboss-us

[jboss-user] [JBoss Seam] - Re: Multiple role privelege with s:hasRole

2007-09-28 Thread stephen.friedrich
Oops, second admin should be manager, of course. Or did I misunderstand your question? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4089661#4089661 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4089661

[jboss-user] [JBoss Seam] - Re: rendering of UI component based on identity roles

2007-09-28 Thread stephen.friedrich
Phew - and again I am deep into the foreign land of JSF internals. Any idea what could have caused this? I see that in MyFaces ApplicationImpl.createValueBinding(String) is hardcoded to return an instance of org.apache.myfaces.el.ValueBindingImpl Is this already incorrect? Or should the co

[jboss-user] [JBoss Seam] - Re: Change Database Connection at Runtime

2007-09-28 Thread stephen.friedrich
We had the same problem and never really found a solution for it. The (business/legal) requirement was to store each clients financial data in a separate DB, but have a single web application where a use can switch between different clients (depending on authorizations). We never really found a

[jboss-user] [JBoss Seam] - Re: FacesMessage not showing up

2007-09-28 Thread stephen.friedrich
Anybody? I guess this comes from the fact that the find() method is called when dependency injection occurs and not inside an action handler. I've had no luck working around this problem yet. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4089588#4089588 Reply

[jboss-user] [JBoss Seam] - Re: rendering of UI component based on identity roles

2007-09-28 Thread stephen.friedrich
Sorry, Pete your're right of course: Seam 1.2.1, MyFaces 1.1.5, Trinidad 1.0.2, Facelets from VCS about two weeks old (because of https://facelets.dev.java.net/issues/show_bug.cgi?id=239). On Tomcat 5.5.17. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=40895

[jboss-user] [JBoss Seam] - Re: Security: Better support for single sign on?!

2007-09-28 Thread stephen.friedrich
Brad, can't you use a similar checkLogin() method like in my code above? It call identity.login(); which will call your authenticate method. In that method I use redirect.setViewId(nextPage); to redirect to a different page depending on the users role. (With "@Redirect redirect;" in my Authenti

[jboss-user] [JBoss Seam] - Re: rendering of UI component based on identity roles

2007-09-27 Thread stephen.friedrich
Shane, you are right, of course - the big question is: Whose Jira? >From my experience it is quite hard to get bugs fixed when more than one >framework might be affected. Do you think this is a problem of MyFaces or of Seam: | SCHWERWIEGEND: EL Expression #{s:hasRole('ADMINISTRATOR')} is invali

[jboss-user] [JBoss Seam] - Re: Trinidad Support?

2007-09-26 Thread stephen.friedrich
Well I can't say anything about Trinidad and RichFaces together, but even only Trinidad with Seam is quite tricky. If you are using the 1.2.x branch with facelets, then you need to build facelets from VCS to make seam's validation work, because it needed a bug fix in facelets. If you try to use

[jboss-user] [JBoss Seam] - FacesMessage not showing up

2007-09-26 Thread stephen.friedrich
By default EntityHome throws an exception if an entity cannot be found. (For example when somebody else already deleted an entity and you want to edit it.) I managed to get rid of that exception by overriding handleNotFound in my EntityHomes: | protected T handleNotFound() { | setId(nul

[jboss-user] [JBoss Seam] - Re: Field processing without submitting?

2007-09-26 Thread stephen.friedrich
Thanks to you two. I was pondering to fall back to hibernate specific api to be able to call evict() for a single entity instance. Probably the suggestion Jacob made is cleaner. I just have to learn and understand where and how to start/end my conversation. For now I have a third solution worki

[jboss-user] [JBoss Seam] - Re: rendering of UI component based on identity roles

2007-09-26 Thread stephen.friedrich
Damian, IIRC that failed for me with an error saying functions are not supported here. However "#{identity.hasRole('admin'}" worked fine. (Though my problem might have been special as I was using the EL in a Trinidad xml menu definition.) View the original post : http://www.jboss.com/index.ht

[jboss-user] [JBoss Seam] - Field processing without submitting?

2007-09-25 Thread stephen.friedrich
This is probably more a JSF than a Seam question, but because of Seam I can use my entity as JSF bean, which is now causing me this issue: I have a simple @Entity CalRule with name and script fields where script holds some script code that calculates some output value based on an input value. S

[jboss-user] [JBoss Seam] - Re: Seam in commercial prod environments

2007-09-24 Thread stephen.friedrich
anonymous wrote : is there an up-to-date, complete list of Seam projects that are currently deployed to large corporations' web application servers? AFAIK there's nothing in Seam's license that requires me to tell JBoss that I have gone live with my latest Seam app - so obviously the answer is: N

[jboss-user] [JBoss Seam] - Re: s:fileUpload forgets selection

2007-09-24 Thread stephen.friedrich
Probably not: There simply is no way to do that. For security reasons browsers don't allow setting the value. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4088115#4088115 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=

[jboss-user] [JBoss Seam] - Re: how to prevent *.xhtml pages from downloading?

2007-09-24 Thread stephen.friedrich
Sh*t - the rewrite rules I gave in my last post caused a problem: If you have configured redirect-after-post in your faces-config.xml, then page parameters are lost during redirection. Page parameters work fine if I either disabley tuckey or comment the < redirect /> tags in my faces-config.xml

[jboss-user] [JBoss Seam] - Re: Overriding EntityHome.find() results in exception

2007-09-21 Thread stephen.friedrich
Thanks a lot, wise guy! I removed the javassist folder from Seam's thirdpartyall.jar and added javassist.jar from javassist 3.6 (released about a week ago). Working fine now! @JBoss: Will there be a 1.2.2 release? Would be to include updated libraries. After all 1.2 will be used for some time (

[jboss-user] [JBoss Seam] - Overriding EntityHome.find() results in exception

2007-09-21 Thread stephen.friedrich
This is how the find method is declared in EntityHome public class EntityHome extends Home |... |public E find() { I try to override it like public class AuthorizationHome extends EntityHome { |... |public Authorization find() { At runtime this result in | javassi

[jboss-user] [JBoss Seam] - Re: Page parameters - change value

2007-09-21 Thread stephen.friedrich
Done that. The visibility of the SeamProblemsFAQ however is tiny compared to a warning right in the console. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4087101#4087101 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4

[jboss-user] [JBoss Seam] - Re: Creating a nested conversation does not create a new con

2007-09-21 Thread stephen.friedrich
RT*M anonymous wrote : 6.2 Nested Conversation: | | Usually, if a component exists in a parent conversation of the current nested conversation, the nested conversation | will use the same instance. Occasionally, it is useful to have a different instance in each nested conversation, | so

[jboss-user] [JBoss Seam] - Re: Page parameters - change value

2007-09-21 Thread stephen.friedrich
Gosh that stupid myfaces bug had cost lots of seam users lots of unproductive hours. How about making Seam print a BIG FAT WARNING in the log when it detects that myfaces is used in conjunction with server-side state saving? Can I file a jira issue for that? View the original post : http://ww

[jboss-user] [JBoss Seam] - Re: Security: Better support for single sign on?!

2007-09-20 Thread stephen.friedrich
Thanks Shane! Using identity.authenticate() got rid of the "Welcome, Stephen" message. To get rid of the "Please log in first" message I did this: @Scope(ScopeType.APPLICATION) | @Intercept(NEVER) | @Name("org.jboss.seam.core.pages") | @Install(precedence=Install.APPLICATION) | public class

[jboss-user] [JBoss Seam] - Re: Security: Better support for single sign on?!

2007-09-19 Thread stephen.friedrich
(I hate replying to myself, but somehow the last couple of lines in my first post got clipped.) Like the authenticate-method the auto-login-method on successful login would set roles at identity and return true. That would spare me from configuring a page action for all pages. It would prevent

[jboss-user] [JBoss Seam] - Re: Security: Better support for single sign on?!

2007-09-19 Thread stephen.friedrich
Forgot to add the most important comment: Thanks a million for implementing Seam's security features! Just looking at pure JAAS gives me the creeps... View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4086377#4086377 Reply to the post : http://www.jboss.com/index

[jboss-user] [JBoss Seam] - Security: Better support for single sign on?!

2007-09-19 Thread stephen.friedrich
I need to integrate my seam app with an existing custom made SSO solution. After some trial and error I came up with this solution that is basically working, even with login redirection configured (using redirect.captureCurrentView/returnToCapturedView exactly like documented in the seam referen

[jboss-user] [JBoss Seam] - Re: org.hibernate.exception.GenericJDBCException: Cannot ope

2007-09-19 Thread stephen.friedrich
Typically this means there was a previous error that corrupted the transaction. Specifically I have been getting this when trying to use MyFaces Trinidad with Sun's JSF RI. For some strange reason whenever a validation fails from that point on you'll get this error. View the original post : h

[jboss-user] [JBoss Seam] - Re: Wannabe-Example needs help growing up

2007-09-18 Thread stephen.friedrich
Thanks again, Pete. Some details are clearer now. Overall we're still turning around in cycles. An initial requirement was: Employee list should only be refreshed when clicking on the "Employees" header. If I don't immediately start a conversation then each single employee selection will reload

[jboss-user] [JBoss Seam] - Re: Wannabe-Example needs help growing up

2007-09-18 Thread stephen.friedrich
Thanks Pete for the quick answer! It helps somewhat, but still I don't really know how to make use of conversations. If you could stay with me for a while that would be great! I will really try to come up with a helpful example in the end. 1) Deletion problem You suggested calling both setInst

[jboss-user] [JBoss Seam] - Re: Last try - Conversational Feature let me feel like an id

2007-09-17 Thread stephen.friedrich
Pete, I posted a tiny little first example of what I am trying to do: http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4085264#4085264 If you could have a look at the open issues I mentioned, that would be great! View the original post : http://www.jboss.com/index.html?module=bb&op=viewt

[jboss-user] [JBoss Seam] - Wannabe-Example needs help growing up

2007-09-17 Thread stephen.friedrich
Every now and then someone asked in the forum how to best implement a common UI for editing master data with Seam: Multiple tabs/areas where each tab shows a list of items plus details for the item currently selected in the list. Last time we talked about it was here: http://www.jboss.com/index.

[jboss-user] [JBoss Seam] - Re: Page Parameter not working

2007-09-17 Thread stephen.friedrich
Nope, currently I am still using client-side state saving which is working fine. I posted a question on the myfaces mailing list, but nobody seemed to care. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4085244#4085244 Reply to the post : http://www.jboss.co

[jboss-user] [JBoss Seam] - Re: Cleaner RESTful urls? Any suggestions?

2007-09-13 Thread stephen.friedrich
I don't think so. As you may know google has been very hesitant (to say the least) in describing its bot, to make it harder to cheat. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4084097#4084097 Reply to the post : http://www.jboss.com/index.html?module=bb&

[jboss-user] [JBoss Seam] - Re: Cleaner RESTful urls? Any suggestions?

2007-09-13 Thread stephen.friedrich
Christian, it was news to me, too, so I tried to find some references. Don't know how much of it is myth, but a quick google search with "search engine optimization urls parameters" gave lots of results: http://www.webpronews.com/topnews/2004/01/14/url-structure-and-search-engine-optimization ano

[jboss-user] [JBoss Seam] - Re: Page Parameter not working

2007-09-12 Thread stephen.friedrich
Another midnight is through, but stupid me has found the culprit: As part of the backport from Seam 2.0.0 to 1.2.1 I changed from JSF RI to MyFaces, but I still tried to use server side state saving, which seems to be known to be buggy: http://www.jboss.com/index.html?module=bb&op=viewtopic&t=108

[jboss-user] [JBoss Seam] - Re: Converter behavior PROBLEM

2007-09-12 Thread stephen.friedrich
Ok, I am more or less at the end of my wisdom :-( Maybe you'll get more info out of h:messages by adding attribute showDetail="true". Else I would put a breakpoint on FacesContext.addMessage() and try to figure it out from the call stack. View the original post : http://www.jboss.com/index.h

[jboss-user] [JBoss Seam] - Re: Converter behavior PROBLEM

2007-09-12 Thread stephen.friedrich
Hm, let's see how your "offer" bean and especially the "price" property is defined. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4083512#4083512 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4083512 __

[jboss-user] [JBoss Seam] - Re: Converter behavior PROBLEM

2007-09-12 Thread stephen.friedrich
Well have you simply tried to add a single h:messages tag to your page? Let's see if you get any messages. For example when you use hibernate validation annotations on your entity beans, then seam will add matching jsf validators by itself. The behaviour you describe is consistent with that: Th

[jboss-user] [JBoss Seam] - Re: Converter behavior PROBLEM

2007-09-12 Thread stephen.friedrich
First assumption whenever the same page gets redisplayed: Validation failed and your page is missing h:message(s) tags to actually display the validation error messages. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4083458#4083458 Reply to the post : http:

[jboss-user] [JBoss Seam] - Re: JSF commandButton not rendering whole page

2007-09-12 Thread stephen.friedrich
show some code View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4083357#4083357 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4083357 ___ jboss-user mailing list jboss-user@lists

[jboss-user] [JBoss Seam] - Re: Page Parameter not working

2007-09-11 Thread stephen.friedrich
I do see the request parameter in the URL and after clicking on a link the correct URL is even displayed in the browser's address bar. I do (try to) use a page parameter: | | I put the action there only for testing and it sure is called. However request parameters

[jboss-user] [JBoss Seam] - Page Parameter not working

2007-09-11 Thread stephen.friedrich
It seems I am caught in the heel that is framework integration once more: Seam 1.2.1, Trinidad 1.0.2, MyFaces 1.1.5 A page parameter set like this never makes it into the model: | | It works in the seampay example (which does not use Trinidad). It also worked when in my prototype I

[jboss-user] [JBoss Seam] - Re: problem using entityqueries

2007-09-07 Thread stephen.friedrich
Grr, must of course be value="RstReportTemp" View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4082174#4082174 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4082174 ___ jboss-user

[jboss-user] [JBoss Seam] - Re: problem using entityqueries

2007-09-07 Thread stephen.friedrich
If you don't specify a component name in the value attribute of the @In annotation the name is taken from the variable declaration, which would be "repTemp" in your case which is wrong. Try @In(value="RstReportTemplate", create=true) RstReportTemplate repTemp; View the original post : http://

[jboss-user] [JBoss Seam] - Re: Client side validation

2007-09-06 Thread stephen.friedrich
Yes, I am using Trinidad. Yet now again I have to specify my constraints in two different places. Exactly what seam validation aims to void. Maybe Seam can "borrow" the Trinidad javascript. Or maybe there could be some hooks to integrate the two closer. View the original post : http://www.jboss

[jboss-user] [JBoss Seam] - Re: Last try - Conversational Feature let me feel like an id

2007-09-05 Thread stephen.friedrich
"ASavitsky" wrote : I wouldn't recommend reusing the same conversation in different areas of the system. Whenever user switches to a different area, scrap the old conversation and create a new one. You can do it in the same request, by ending it in the link itself (via propagation="end") and beg

[jboss-user] [JBoss Seam] - Re: Save conversation state in client

2007-09-05 Thread stephen.friedrich
I doubt that there's any chance to detect wether the browser will display a link target in a new tab/window (e.g. middle clicked) or will stay in the same tab (e.g. left clicked). I would feel pleased to stand corrected, though. Maybe there's some javascript or other magic that could help. Vie

[jboss-user] [JBoss Seam] - Re: Last try - Conversational Feature let me feel like an id

2007-09-05 Thread stephen.friedrich
"[EMAIL PROTECTED]" wrote : Any seam-gen application uses propagation="join". | Maybe, but those have no comments in them, no javadocs and the "The Seam Application Framework" chapter in the reference does not talk about conversations either. Funny things is that even though you always recomm

[jboss-user] [JBoss Seam] - Re: Last try - Conversational Feature let me feel like an id

2007-09-04 Thread stephen.friedrich
Now I, too, feel like an idiot because each example should be showing this, but I still don't get it after looking at several different examples. "[EMAIL PROTECTED]" wrote : ?! It's not different from any of the existing examples. You need to understand how propagation="none" and propagation="jo

[jboss-user] [JBoss Seam] - Re: Last try - Conversational Feature let me feel like an id

2007-09-04 Thread stephen.friedrich
That's exactly my use case and I don't have a solution either. Currently the first version of my app works without using conversations which of course seems to waste quite a lot of seams value. A big problem is that _all_ the explanations teach you about the technical side, e.g. what a conversat

[jboss-user] [JBoss Seam] - Re: When do I need a @Factory?

2007-08-22 Thread stephen.friedrich
No idea :-( >From my understanding of seam this should work without the factory. Maybe the full exception stacktrace could help... Just a side note: @Stateless @Scope( ScopeType.EVENT ) Does not make sense. Stateless beans always live in the stateless context. View the original post :

[jboss-user] [JBoss Seam] - Re: When do I need a @Factory?

2007-08-22 Thread stephen.friedrich
Do you have an annotation @Name("mySessionBean") at the class MySessionBean? @In does not define the component, you'll need the @Name annotation at the component's class or else a @Factory somewhere else. See "3.8. Factory and manager components" in the seam reference. View the original post :

[jboss-user] [JBoss Seam] - Re: Using JSF + POJO + EntityBean design

2007-08-22 Thread stephen.friedrich
Here's my understanding of this issue, somebody correct me if I'm wrong: * JSF, Seam-annotated POJOs plus JPA- or plain hibernate entities is certainly possible without EJB support. Of course Seam POJOs support conversations. * The seam reference manual is sparse to say the least, see section "25

[jboss-user] [JBoss Seam] - Re: Hibernate validation not working in Seam...

2007-08-20 Thread stephen.friedrich
In this thread http://www.jboss.com/index.html?module=bb&op=viewtopic&t=88789 Pete Muir says anonymous wrote : It's a limitation in JSF. If JSF component has (required=false && value=null) then any validators attached won't be fired. Gavin says the same in http://www.jboss.com/index.html?modul

[jboss-user] [JBoss Seam] - Where are aliases for fully qualified names of Seam Componen

2007-08-16 Thread stephen.friedrich
I'd like to complain at JetBrains support that Idea does not recognize the short aliases (e.g. "identity") for fully qualified components names ("org.jboss.seam.security.identity"). However I can't find where those aliases are configured. Doc says it's in the seam jar's components.xml, but that o

[jboss-user] [JBoss Seam] - Re: Mixing JSP and Facelets in Seam?

2007-08-16 Thread stephen.friedrich
It's definitly possible to have both jsp and facelets pages in a single app. That came handy for me when migrating a large app. See for example http://www.mojavelinux.com/blog/archives/2006/12/partial_facelets_adoption/ or http://wiki.java.net/bin/view/Projects/FaceletsFAQ#How_do_I_use_Facelets_a

[jboss-user] [JBoss Seam] - Re: EL functions library

2007-08-16 Thread stephen.friedrich
Hm, 1) I don't like all these "null safe" functions. There's always the tendency to just hide bugs that better be fixed. 2) Seam is already quite complex, not so much in principle concepts, but in sheer number of diverse features. If such an EL library is to be included it should better be disc

[jboss-user] [JBoss Seam] - Re: how to prevent *.xhtml pages from downloading?

2007-08-10 Thread stephen.friedrich
Maybe it saves somebody from a little trial and error. If you just want to serve your pages (rather than source code) with *.xhtml URLs these rules do the job fine: | /**.xhtml** | /$1.seam$2 | | | | /**.seam** | /$1

[jboss-user] [JBoss Seam] - Re: seamdiscs buggy

2007-08-09 Thread stephen.friedrich
Right, sorry for the stupid post. I was tired, it was getting very late and I was fed up with missing or outdated documentation on skinning and making no progress at all. I did not notice that I had already changed the template definition when experimenting with the example. I updated the FAQ o

[jboss-user] [JBoss Seam] - seamdiscs buggy

2007-08-08 Thread stephen.friedrich
The example claims to use Trinidad skinning - there's a skin configured in trinidad-config.xml and there is also a minimal skin.css file. However skinning does not work at all, because no xhtml page uses tr:document as root. That tag is necessary for skinning to be enabled. See http://wiki.apach

[jboss-user] [JBoss Seam] - Re: debug page problem: 404

2007-08-08 Thread stephen.friedrich
Oops - sorry forget it should have read/searched the forum first: http://www.jboss.com/index.html?module=bb&op=viewtopic&t=115580 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4072134#4072134 Reply to the post : http://www.jboss.com/index.html?module=bb&op=po

[jboss-user] [JBoss Seam] - Re: where can I checkout Seam 2.0 source

2007-08-08 Thread stephen.friedrich
:pserver:[EMAIL PROTECTED]:/cvsroot/jboss/jboss-seam View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4072133#4072133 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4072133 ___ jb

[jboss-user] [JBoss Seam] - debug page problem: 404

2007-08-08 Thread stephen.friedrich
When experimenting with the examples buggy code that I added often causes exceptions ;-) It seems that Seam tries to redirect to the debug page, but fails. For example I added a dummy exception in the seam-pay example (alwayws throwing a RuntimeException in PaymentController.saveAndSchedule()).

[jboss-user] [JBoss Seam] - Re: Trinidad: Validation still not working

2007-08-07 Thread stephen.friedrich
Hm, to check for the global version of the JSF implementation they already check for existence of Application.getExpressionFactory() That still does not answer the question if a particular component class is JSF 1.1 or 1.2. (Is it really possible at all to run a 1.1 component library on a 1.2 i

[jboss-user] [JBoss Seam] - Re: Trinidad: Validation still not working

2007-08-07 Thread stephen.friedrich
I had some help from the trinidad mailing list and did some more debugging. Ultimately it seems the bug is in facelets. They try to determine a component's JSF version by checking if it subclasses UIComponentBase, which fails for Trinidad (which has its own UIXComponentBase). This makes facelets

[jboss-user] [JBoss Seam] - Re: Trinidad: Validation still not working

2007-08-06 Thread stephen.friedrich
Did some debugging and research and found that this was already reported as JBSEAM-1667 but seems to be an issue with Trinidad. I'll try and test with a newer Trinidad version. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4071407#4071407 Reply to the post :

[jboss-user] [JBoss Seam] - Trinidad: Validation still not working

2007-08-06 Thread stephen.friedrich
I haven't been able to get s:validateAll to work with tr:inputText (JBoss Seam CVS, Trinidad 1.2.1, JBOss AS 4.2.1) The bug can be reproduced with seamdiscs example, when adding @Length(min=3, max=32) to Disc.name declaration. When trying to add a short or longer name the following exception occu

[jboss-user] [JBoss Seam] - Re: seam-ui example: s:selectItems example is broken

2007-08-03 Thread stephen.friedrich
So what's the gist of this? The UI I have in mind (or more precisely that is required by our client) simply cannot be implemented with all this sophisticated infrastructure (JPA, JSF, Seam) ? SelectMany... can't be used based on a OneToMany association? When I debug I find that when JSF/Seam cal

[jboss-user] [JBoss Seam] - Re: seam-ui example: s:selectItems example is broken

2007-08-01 Thread stephen.friedrich
Thanks a lot for looking into this, I really, really do appreciate this. I prepared an example to clarify what I want to achieve. There are departments which have employees. In the edit page for a department I'd like to have a multi-select for the employees that work in the department. (A selectM

[jboss-user] [JBoss Seam] - Re: seam-ui example: s:selectItems example is broken

2007-08-01 Thread stephen.friedrich
Hm, that really doesn't help much. How about a simple example that uses Seam's s:selectItems bound to a @OneToMany association in a selectMany-Component? :-) I did a grep through all the examples' code to find this one usage in the ui example. All the other usages of s:selectItems were in selec

[jboss-user] [JBoss Seam] - seam-ui example: s:selectItems example is broken

2007-07-31 Thread stephen.friedrich
On a fresh Seam from CVS and pristine JBossAS 4.2.1: - Deploy the seam-ui example - Select the s:selectItems topic - Select the "Edit the continent/country relationship" - Add some countries to Antarctica - Click on Apply - Select the s:fragment topic - Select the s:selectItems topic again (you'll

[jboss-user] [JBoss Seam] - Re: Examples: Code Police ;-)

2007-07-31 Thread stephen.friedrich
Thanks, Shane, you were right those were lots of changes ;-) I created JBSEAM-1742, but I can't assign the issue. There are a couple of issues I noticed, but did not really have a clue what to do about. Maybe you can comment/act on these: * mail, itext, takeaway: - screen.css is referenced f

[jboss-user] [JBoss Seam] - Re: Problem with injection

2007-07-26 Thread stephen.friedrich
- or use @In(create=true) to let seam create the component if needed - or set the auto-create flag in components.xml: View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4067894#4067894 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=

[jboss-user] [JBoss Seam] - Re: Examples: Code Police ;-)

2007-07-26 Thread stephen.friedrich
Sure, I can do that. Two separate issues/patches for missing schema locations and for incorrect doctype? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4067698#4067698 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=40676

[jboss-user] [JBoss Seam] - Re: How bad is unused conversations?

2007-07-25 Thread stephen.friedrich
Hm, I think explicit conversation ids only make sense when the application logic naturally suggests them. (Like using an article id for an article editor - it really makes no sense to edit the very same article in different conversations). To make matters more concrete: Image a UI that shows a

[jboss-user] [JBoss Seam] - Re: simple entity-home framework component not working

2007-07-25 Thread stephen.friedrich
Hm, if you look at the seampay example, the components.xml-declared entitiy home specifies the entity-manager property: | | | | | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4067397#4067397 Reply to the post : http://www.jboss.com/

[jboss-user] [JBoss Seam] - Re: How bad is unused conversations?

2007-07-25 Thread stephen.friedrich
To further complicate matters: What one would sometimes want instead is to have a separate long-running conversation for each tab/menu/page, isn't that so? User starts a task in one page then temporarily switches to another to look up needed information and likes to continue with the original ta

[jboss-user] [JBoss Seam] - Re: How bad is unused conversations?

2007-07-24 Thread stephen.friedrich
Hm, I'm not sure that I fully grok conversations, but it seems to me that starting conversations whenever a task/page is selected is overkill. Isn't it sufficient to start a conversation on the first submit after the page is shown ("the first task action")? View the original post : http://www.

[jboss-user] [JBoss Seam] - Re: Examples: Code Police ;-)

2007-07-24 Thread stephen.friedrich
And finally (at least I hope so): These component.xml files are missing declarations for the schema locations: examples\quartz\resources\WEB-INF\components.xml examples\seampay\resources\WEB-INF\components.xml These are missing only declarations for persistence and transaction sc

[jboss-user] [JBoss Seam] - Re: Examples: Code Police ;-)

2007-07-24 Thread stephen.friedrich
Thanks for the quick fix. If I may push my luck: There are a bunch of xhtml files which use a different root element than declared in the doctype: booking: conversations.xhtml seampay: search.xhtml contactlist: editContact.xhtml, viewContact.xhtml, search.xhtml itext:

[jboss-user] [JBoss Seam] - Examples: Code Police ;-)

2007-07-23 Thread stephen.friedrich
A few validation errors where a fix would make my Idea projects a little bit greener. f:subview without required id attribute === dvdstore: browse.xhtml, checkout.xhtml, complete.xhtml, confirm.xhtml, dvd.xhtml, showorders.xhtml, admin.xhtml, process.

[jboss-user] [JBoss Seam] - seampay is broken (CVS)

2007-07-23 Thread stephen.friedrich
Clean build of Seam from CVS. Clean installation of JBoss AS 4.2.1. Running the seampay example brings up the overview page, but clicking on any payment gives: Exception during request processing: | Caused by java.lang.IllegalArgumentException with message: "Could not invoke method by reflect

[jboss-user] [JBoss Seam] - Re: IDE support for Seam

2007-06-28 Thread stephen.friedrich
If you are willing to give some bucks for the bang try IntelliJ Idea ;-) Just map *.xhtml files to JSPx file type. Idea will give you code completion, navigation and refactoring support. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4058708#4058708 Reply to t

[jboss-user] [JBoss Seam] - Re: DRY Edit pages

2007-06-05 Thread stephen.friedrich
Huh? Either I am not understanding the anwser or Gavin, you did not understand the question. What if the maximum length changes to 5? Currently you have to update both the entity and the xhtml. Is there any possibility to avoid this? A JSF component or validator that queries the bean's metadata

[jboss-user] [JBoss Seam] - Re: Using JavaBeans and Hibernate3

2007-05-14 Thread stephen.friedrich
The answer is a definitive maybe: There is no such thing as an EJB 3.0 entity bean. The term "EJB entity" is only used for EJB 1.x/2.x. Indeed @Entity makes the annotated class an Entity in the sense of the Java Persistence API (JPA). Hibernate's entity manager is an implementation of the JPA.

[jboss-user] [JBoss Seam] - Re: Request: Step by Step build it yourself tutorial

2007-05-09 Thread stephen.friedrich
Pete, I don't care so much if it's an appendix or if it's chapter 2, but I have to agree that such an introduction would be very valuable. More than once I started with some new framework/library and while the documentation clearly wet my appetite it was much too hard to get started for real.

[jboss-user] [JBoss Seam] - Seam apps leaking memory?!

2007-05-07 Thread stephen.friedrich
My (not so large) app can be redeployed on JBoss 4.0.5 exactly two times before the deployment is failing. I know that the issue of OOME in PermGenSpace has been discussed before and the default answers were either "Sun JVM bug", "use jrockit" (which only increases the available redeploys a lit

  1   2   >