[JBoss-user] [JBoss Seam] - Entity bean helper functions possible?

2006-04-28 Thread TrippCCN
Is it possible to add a helper function to an Entity bean that is not a getter or setter? For example, are the two methods at the bottom of this code valid? If so, how do I display their values inside jsf? I tried #{member.getAge} but that didn't work | package org.cnow.object; |

[JBoss-user] [JBoss Seam] - Re: Not understanding @Out completely

2006-04-27 Thread TrippCCN
ack... I didn't realize that scope was an available attribute for the @Out annotation. Is there a more updated version of the seam docs online or an errata anywhere? Problem solved, thanks Gavin. Chad View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3939925#

[JBoss-user] [JBoss Seam] - Re: Not understanding @Out completely

2006-04-27 Thread TrippCCN
Is that sufficient? thanks chad View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3939918#3939918 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3939918 --- Using Tomcat

[JBoss-user] [JBoss Seam] - Re: Not understanding @Out completely

2006-04-26 Thread TrippCCN
Sorry... I thought maybe the problem was obvious enough to avoid posting code. I can't get the jsp file to display the users name if I try and use "otherMember" but it works fine if I change the bean and outputText tag to "member". Here's the bean: | package org.cnow.site; | | import

[JBoss-user] [JBoss Seam] - Re: Not understanding @Out completely

2006-04-25 Thread TrippCCN
anybody? even a point in the right direction so I can figure out how to do it myself would help View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3939378#3939378 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3939378

[JBoss-user] [JBoss Seam] - Not understanding @Out completely

2006-04-25 Thread TrippCCN
I have an entity bean named "member" to represent a user of our system. When a user logs in, the member is stored to a context variable: | @In @Out | private Member member; | and accessed from jsf like this: #{member.first_name} Now I want to store another member to a context variable

[JBoss-user] [JBoss Seam] - Datatable form submit problem

2006-04-23 Thread TrippCCN
I'm having a problem with a commandLink tag inside a datatable. This works: | | | | But this does not (it just refreshes the page): | | | | | | | | Am I doing something obviously wrong? Thanks, Chad View the original post : http://www.jboss.com/

[JBoss-user] [JBoss Seam] - Re: Using the tag

2006-04-19 Thread TrippCCN
Ah that explains it. Is there any alternative to s:link (or workaround) so that I can propagate the outjected variable to another JSP page? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3938202#3938202 Reply to the post : http://www.jboss.com/index.html?mod

[JBoss-user] [JBoss Seam] - Using the tag

2006-04-19 Thread TrippCCN
I'm trying to use the s:link tag as follows: | | I imported the taglib like this: <%@ taglib uri="http://jboss.com/products/seam/taglib"; prefix="s" %> But I'm getting the error message: | ERROR [[jsp]] Servlet.service() for servlet jsp threw exception | org.apache.jasper.JasperEx

[JBoss-user] [JBoss Seam] - Re: URL Friendly Links

2006-04-16 Thread TrippCCN
I compiled from CVS and overwrote the old jboss-seam-ui.jar and still the same error. | 17:16:09,328 ERROR [[jsp]] Servlet.service() for servlet jsp threw exception | org.apache.jasper.JasperException: /charities/find.jsp(1,1) The absolute uri: http://jboss.com/products/seam/taglib cannot b

[JBoss-user] [JBoss Seam] - Re: URL Friendly Links

2006-04-15 Thread TrippCCN
How do I get the s:link tag to work? I downloaded the nightly build, copied over jboss-seam.jar, and added <%@ taglib uri="http://jboss.com/products/seam/taglib"; prefix="s" %> But I'm sure I'm missing something... i get the error: | taglib cannot be resolved in either web.xml or the jar fi

[JBoss-user] [JBoss Seam] - Re: URL Friendly Links

2006-04-06 Thread TrippCCN
Ok so I got it to work with @Factory, but I can only link back to the same page. Is there a way to link to another JSP page and still access the outjected variable? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3935700#3935700 Reply to the post : http:/

[JBoss-user] [JBoss Seam] - Re: URL Friendly Links

2006-04-05 Thread TrippCCN
My bad I jumped the gun... can someone just point me to the FAQ on this subject? I couldn't find it in the Wiki. chad View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3935335#3935335 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&m

[JBoss-user] [JBoss Seam] - URL Friendly Links

2006-04-05 Thread TrippCCN
I'm trying to use GET request variables instead of the POST method that commandLink uses. I have the following code: | | Which outputs a javascript enabled link with # at the end. But I want links with ?id=1 or ?id=2, etc. Is there any way to use GET links (without the javascript) tha

[JBoss-user] [JBoss Seam] - Re: .seam welcome-file

2006-03-20 Thread TrippCCN
Oh, one other thing, FYI, you can also hide the actual redirect simplifying URL's (if you're picky like me). Meaning, the URL won't actually change from / to /index.seam, but it will still act as if the user typed /index.seam. c View the original post : http://www.jboss.com/index.html?module

[JBoss-user] [JBoss Seam] - Re: .seam welcome-file

2006-03-20 Thread TrippCCN
It's actually really easy... I implemented it on an airplane in 20 minutes and it handles your entire site and more. The index.jsp (or index.html) redirect option would put an index file in every directory, require a new one every time a directory is created, and god forbid you'd want to chang

[JBoss-user] [JBoss Seam] - Re: .seam welcome-file

2006-03-20 Thread TrippCCN
Thanks Simon, that's exactly what I was looking for. I didn't know a java rewrite engine existed. BTW, for anyone else looking for a similar solution, my rule is: | | Any call to index.jsp will result in an actual call to index.seam. The URL will NOT change for the use

[JBoss-user] [JBoss Seam] - Re: .seam welcome-file

2006-03-17 Thread TrippCCN
Say I create a file, www.mysite.com/members/index.jsp. In a non-seam site visitors could access that through www.mysite.com/members but in a seam site visitors need to go through www.mysite.com/members/index.seam so the seam listener and faces servlet are called. I want my visitors to still a

[JBoss-user] [JBoss Seam] - .seam welcome-file

2006-03-16 Thread TrippCCN
Does anyone have a clean way to make index.seam the welcome index file that's read so that I don't have to always point links to /index.seam to read the index.jsp file? I've checked the jsf forums as well and the only solutions are unclean (index.html redirect to .seam in every directory, etc.)

[JBoss-user] [JBoss Seam] - Different validator messages

2006-03-15 Thread TrippCCN
I have a Member.java pojo that maps to a database table which describes a user of our site. I use @In during the RegisterAction to enter the user into the database, and then @In again for the LoginAction to check the email/pass and log them in. Problem is, I use a validator in the Member.java:

[JBoss-user] [JBoss Seam] - Re: ResourceBundle in Annotation ?

2006-02-16 Thread TrippCCN
If you have a form field named 'password', even if the user leaves it blank the @NotNull validator will not trigger. You need to use a @Length(min=1) instead. chad View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3924336#3924336 Reply to the post : http://www

[JBoss-user] [JBoss Seam] - Re: Modifying Hibernate validator msgs

2006-02-11 Thread TrippCCN
Hey guys thanks for your replies. Cool I'll use length instead. The only reason I didn't do that was so that I wouldn't have to override the length message which I feel should be diff from an empty value... no biggie. Ya I read the hibernate docs, and it seems simple, but I couldn't get the

[JBoss-user] [JBoss Seam] - Modifying Hibernate validator msgs

2006-02-10 Thread TrippCCN
1) Is there a way to override Hibernates DefaultValidatorMessages.properties file so that I can have custom messages without actually changing the properties file inside hibernate-annotations.jar? 2) The @NotNull validator only checks for Null but not empty strings (eg. empty form field)... obv