Examples with h:commandLink opening a page in another frame of a frameset

2006-11-03 Thread Mick Knutson
I have a frameset I want to keep mostly static, but there are a couple operations I want to have a h:commandLink redirect the other frame to a differnt URL.login/logout is an example of this.How do I have: frame1: h:commandLink target="frame2"-- ThanksDJ MICKhttp://www.djmick.comhttp://www.myspace.

is there a State Select option like there is a

2006-11-03 Thread Mick Knutson
is there a State Select option like there is a -- ThanksDJ MICKhttp://www.djmick.com http://www.myspace.com/mickknutson

Re: Does Ajax4jsf permit references to compounded bean properties(i.e., "Bean.prop1.prop2") for values?

2006-11-03 Thread Stephen Osella
No. It is initialized. I do that in the constructor. Does this work for you? - Original Message - From: "Nuno Marques" <[EMAIL PROTECTED]> To: "MyFaces Discussion" Sent: Friday, November 03, 2006 4:35 PM Subject: Re: Does Ajax4jsf permit references to compounded bean properties(i.

Re: selectOneCountry and i18n question.

2006-11-03 Thread Mick Knutson
Now that I got to this, I want to have my application default to use en_US and United States for the Country pull down.I have this in my faces-config.xml:            en_US    en    es    de         messages    And this in my web.xml:        

RE: Setting a custom lifecycle

2006-11-03 Thread David Friedman
This is a JSF 1.2 feature which I believe is not yet implemented in MyFaces.  And I believe it would be configurable per FacesServlet so you could have different servlets mapped to different extensions, each using a different lifecycle but all sharing managed beans, resolvers, etc.   Regards

Re: FW: [SPAM (Non-existent user)] - RE: [O/T] JSF Best Practices for Authentication/Authorization - Local recipient does not exist

2006-11-03 Thread Cagatay Civici
It's discussed on the dev list too, I hope it'll be taken care of soon.On 11/3/06, Mick Knutson <[EMAIL PROTECTED] > wrote:No, I get them a s well... On 11/3/06, Nebinger, David <[EMAIL PROTECTED] > wrote: Am I the only one getting these bounce messages, or what?  -Original Message-

Does t:inputFileUpload require Servlet 2.4 ?

2006-11-03 Thread Raj Rajendran
Getting a Null UploadedFile in a Servlet 2.3 container and wondering if the requirement is 2.4...

Myfaces and URLs with dynamic segments

2006-11-03 Thread Morten Mortensen
Title: Myfaces and URLs with dynamic segments Anyone capable of creating a MyFaces/JSF application "App.WAR" including an intercepting filter parsing some of the URI like writing this in the browser - http://localhost:8080/App/Prefix/Machine17/4713/Overview/index.html - where the filter r

Re: Does Ajax4jsf permit references to compounded bean properties (i.e., "Bean.prop1.prop2") for values?

2006-11-03 Thread Nuno Marques
Maybe prop1 hasn't been initialized and is null. On Fri, 2006-11-03 at 16:29 -0600, Stephen Osella wrote: > I am using reference compounded bean reference as the value a selectOneMenu. > That is, > > > > This does not seem to work. However, > > > > works. Can someone verify this? Is ther

h:commandClick and a confirmation prompt

2006-11-03 Thread Iordanov, Borislav \(GIC\)
Hi,   How could I add a confirmation _javascript_ dialog box to a h:commandLink? The onclick event is taken by the renderer….   Thanks, Bolerio

Does Ajax4jsf permit references to compounded bean properties (i.e., "Bean.prop1.prop2") for values?

2006-11-03 Thread Stephen Osella
I am using reference compounded bean reference as the value a selectOneMenu. That is, This does not seem to work. However, works. Can someone verify this? Is there a reason for this? Thanks!

Re: [O/T] JSF Best Practices for Authentication/Authorization

2006-11-03 Thread Jeff Bischoff
Jeff Bischoff wrote: Web Tier: * Java 1.4 * Myfaces 1.1.4 (w/JSP) * Tomahawk Nightlies * Ajax4jsf 1.0.3 Ugh and probably more importantly: * JBoss 4 * Servlet 2.4 Thanks for all your replies so far guys, I'll be sure to read them in more detail, in the morning. ;)

Re: [O/T] JSF Best Practices for Authentication/Authorization

2006-11-03 Thread Jeff Bischoff
I should also mention some of the technologies we are using. Middle/Backend: * Java 1.4 * EJB 2.0 Unfortunately, this project has been underway for over a year now, and we are not using all the latest-and-greatest technologies. I have little power to change this. I have much more flexibility

Re: [O/T] JSF Best Practices for Authentication/Authorization

2006-11-03 Thread Cagatay Civici
Hi,Well, authentication is not JSF related, it's a J2EE issue but authorization on a JSF view can vary.I'll be adding a securityScope EL extension to sandbox in a couple of days, I believe it'll be a useful option. http://issues.apache.org/jira/browse/TOMAHAWK-607For Spring users, Acegi is the defa

AW: [O/T] JSF Best Practices for Authentication/Authorization

2006-11-03 Thread Bieringer Dominik
Hi Jeff, I want to share the way I am handling security in my application. (I am pretty new to JSF, just started my project some month ago and there is so much left for me to be learned in JSF ;D). There are some requirements in my application: --> There are 4 supported roles (customers, intern

RE: Best practices to add MyFaces to an existing Hibernate project

2006-11-03 Thread Nebinger, David
> Nebinger, David wrote: > > The easiest method would be simply to expose a getter > method on your backing bean that returns the hibernate pojo. > > > > Through EL, you can then do #{backingbean.pojo.field} w/o > having to replicate your various getters/setters or include > the pojo as a dire

Re: Best practices to add MyFaces to an existing Hibernate project

2006-11-03 Thread Mick Knutson
public class UserBackingBean extends BaseObject {    private User user;    public User getUser() {    return user;    }    public void setUser(User user) {    this.user = user;     }Registration.jsp:            :      

Re: Best practices to add MyFaces to an existing Hibernate project

2006-11-03 Thread Jeff Bischoff
Nebinger, David wrote: The easiest method would be simply to expose a getter method on your backing bean that returns the hibernate pojo. Through EL, you can then do #{backingbean.pojo.field} w/o having to replicate your various getters/setters or include the pojo as a direct backing bean.

Re: FW: [SPAM (Non-existent user)] - RE: [O/T] JSF Best Practices for Authentication/Authorization - Local recipient does not exist

2006-11-03 Thread Mick Knutson
No, I get them a s well...On 11/3/06, Nebinger, David <[EMAIL PROTECTED]> wrote: Am I the only one getting these bounce messages, or what?  -Original Message- From:   System Administrator  Sent:   Friday, November 03, 2006 4:17 PM To: [EMAIL PROTECTED] Subject:   

Re: Best practices to add MyFaces to an existing Hibernate project

2006-11-03 Thread Craig McClanahan
On 11/3/06, Nebinger, David <[EMAIL PROTECTED]> wrote: The easiest method would be simply to expose a getter method on your backing bean that returns the hibernate pojo.   Through EL, you can then do #{backingbean.pojo.field} w/o having to replicate your various getters/setters or include

Re: Best practices to add MyFaces to an existing Hibernate project

2006-11-03 Thread Mick Knutson
Then can you please show me an exapmle of your jsp and you BackingBean and DAO?I have tried what you said, but can't seem to get it to work.On 11/3/06, Jeff Bischoff <[EMAIL PROTECTED]> wrote: Mick,I don't know specifically about hibernate.However, I get the gist of your issue, and have faced the

FW: [SPAM (Non-existent user)] - RE: [O/T] JSF Best Practices for Authentication/Authorization - Local recipient does not exist

2006-11-03 Thread Nebinger, David
Title: FW: [SPAM (Non-existent user)] - RE: [O/T] JSF Best Practices for Authentication/Authorization - Local recipient does not exist Am I the only one getting these bounce messages, or what?  -Original Message- From:   System Administrator  Sent:   Friday, November 03, 2006 4:1

AW: Best practices to add MyFaces to an existing Hibernate project

2006-11-03 Thread Bieringer Dominik
Definitely, that’s the way I am doing it to. (I’m using hibernate in my project too).   Von: Nebinger, David [mailto:[EMAIL PROTECTED] Gesendet: Freitag, 3. November 2006 22:14 An: MyFaces Discussion Betreff: RE: Best practices to add MyFaces to an existing Hibernate project

Re: [O/T] JSF Best Practices for Authentication/Authorization

2006-11-03 Thread Jeff Bischoff
As for my specific requirements: I have a simple intranet application. There is a public (no auth) section, and a secure section for logged-in users. My main requirement is simple. I want to force the users to authenticate (log in) before they access the restricted portion of the application.

RE: Best practices to add MyFaces to an existing Hibernate project

2006-11-03 Thread Nebinger, David
The easiest method would be simply to expose a getter method on your backing bean that returns the hibernate pojo.   Through EL, you can then do #{backingbean.pojo.field} w/o having to replicate your various getters/setters or include the pojo as a direct backing bean. -Original Messa

Re: Best practices to add MyFaces to an existing Hibernate project

2006-11-03 Thread Jeff Bischoff
Mick, I don't know specifically about hibernate. However, I get the gist of your issue, and have faced the same question myself. I think the general pattern for this is to have a DAO (Data Access Object) as a member variable (property) of the managed bean. That way the managed bean simply con

Re: Converter error

2006-11-03 Thread monkeyden
Here is the reply to which I was referring. I suspect that, if correct, this is the root cause of my problem. Is this true? What selectlist is it referring to? The value attribute of the selectManyListBox? "...when a component that extends from UISelectOne (UISelectMany in my case) is valida

RE: [O/T] JSF Best Practices for Authentication/Authorization

2006-11-03 Thread Nebinger, David
I, too, am using acegi security, and echo the previous poster's opinion.   Rather than using the phase listener approach which seems to be view-based (whether you can see a view or not), with Acegi I can control which tags are present as part of a page enabling components for those users wh

Re: [O/T] JSF Best Practices for Authentication/Authorization

2006-11-03 Thread Mick Knutson
I am using Spring acegi for my application and it works great!On 11/3/06, Jeff Bischoff <[EMAIL PROTECTED] > wrote:Greetings Colleagues,I have often wondered what the majority of you are using for authentication and authorization in your non-public websites. Over thelast year on this mailing list,

Best practices to add MyFaces to an existing Hibernate project

2006-11-03 Thread Mick Knutson
I have an existing Hibernate project with many hibernate mapped POJO's.I do not want to add all the set/get methods from my POJO into Backing Beans, so I am wondering what others have done?Have your BackingBean extend you hibernate object? -- ThanksDJ MICKhttp://www.djmick.comhttp://www.myspace.com

[O/T] JSF Best Practices for Authentication/Authorization

2006-11-03 Thread Jeff Bischoff
Greetings Colleagues, I have often wondered what the majority of you are using for authentication and authorization in your non-public websites. Over the last year on this mailing list, I have seen bits and scraps of discussion on this topic. Most often, I hear mention of solutions like conta

Re: Creating portlets from an existing JSF web application

2006-11-03 Thread Dave Brondsema
Laurentiu Trica wrote: > Hi > > Does anyone know a good place for such a documentation? > Thanks a lot. > http://wiki.apache.org/myfaces/Using_Portlets links to a few HowTos -- Dave Brondsema Software Developer Cornerstone University signature.asc Description: OpenPGP digital signature

Re: BackingBean with POJO for model

2006-11-03 Thread Mick Knutson
after I put just lastName as the id, I get this error only:"lastName": Error during model data update.I do not get a lastName required errorOn 11/3/06, Jeff Bischoff <[EMAIL PROTECTED]> wrote: Mick Knutson wrote: > When I use the "id="user.firstName"" in the input text I get [Exception] >Right, yo

Re: Subject: expected a myfaces custom component class in package org.apache.myfaces.custom

2006-11-03 Thread Matt Tyson
If looks like the problem is in the call to MyFacesResourceHandler: java.lang.IllegalArgumentException: expected a myfaces custom component class in package org.apache.myfaces.cu stom at org.apache.myfaces.renderkit.html.util.MyFacesResourceHandler.validateCustomComponent(MyFacesResour c

Re: Subject: expected a myfaces custom component class in package org.apache.myfaces.custom

2006-11-03 Thread Matt Tyson
Dang it. That didn't fix it actually. I've tried like this: HTML_BASIC javax.faces.Command org.apache.myfaces.JSCookMenu com.company.toolbox.jsf.renderer.HtmlJSCookMenuRendererCompany and with

Re: BackingBean with POJO for model

2006-11-03 Thread Jeff Bischoff
Mick Knutson wrote: > When I use the "id="user.firstName"" in the input text I get [Exception] > Right, you can't do that. Why would you want to? > Then I just submit the form with nothing in the text field, I get this: > > "lastName": Error during model data update. > > in the messages. > > > W

leaving https

2006-11-03 Thread Steven Gollery
I'm using the sandbox s:form component to send login information over https. This works fine. Now the problem is: I don't want to run the whole site in https after users login, so I'd like to switch back somehow for the next page. Any way to do that? -- View this message in context: http://www

BackingBean with POJO for model

2006-11-03 Thread Mick Knutson
I was creating a BackingBean that has my hibernate POJO inside like:UserBackingBean:===public class UserBackingBean extends BaseObject {    private User user;     public User getUser() {    return user;    }    public void setUser(User user) {    this

Re: status of tiles support

2006-11-03 Thread Martin Kuhn
Hi, we use Tiles with MyFaces 1.1.4 and a Tomahawk 1.1.5 snapshot without problems. Here some notes of my point of view (as I already stated in the ajax4jsf mailing list because of Tiles problems) The reason why we selected Tiles was, that when we started with JSF, there was no templating fram

Re: Subject: expected a myfaces custom component class in package org.apache.myfaces.custom

2006-11-03 Thread Matt Tyson
Dennis, That fixed it. I REALLY appreciate your assistance. I removed the rendit-kit-id from the faces-config entry that registered my subclass of the JSCookMenu converter and it resolved the error in the subject line. Again, thank you very much. Matt Tyson P.S. I removed this topic from t

Example with Ajax4jsf and MyFaces for dynamic page content based on selectOneMenu selection changes

2006-11-03 Thread Stephen Osella
I have decided to try Ajax4jsf to do the dynamic page content (rather than ValueChangeListener, etc.). Does anyone have an example of using Ajax4jsf *and* MyFaces for dynamic page content based on selectOneMenu selection changes? I have tried the a4j-Dropdownbox example and it works in the de

Re: Subject: expected a myfaces custom component class in package org.apache.myfaces.custom

2006-11-03 Thread Dennis Byrne
>JsCookMenu is a part of either core JSF tag lib renderers. Oops. JsCookMenu is *NOT* a part of either core JSF tag lib renderers. >Dennis Byrne > >>-Original Message- >>From: Matt Tyson [mailto:[EMAIL PROTECTED] >>Sent: Friday, November 3, 2006 11:20 AM >>To: users@myfaces.apache.org >>

Re: Subject: expected a myfaces custom component class in package org.apache.myfaces.custom

2006-11-03 Thread Dennis Byrne
Matt, HTML_BASIC may be the root of your problem. JsCookMenu is a part of either core JSF tag lib renderers. It is a member of MyFaces extended library. Try removing the render-kit-id element. Also, make sure this configuration file is correctly referenced in the deployment descriptor. Den

Subject: expected a myfaces custom component class in package org.apache.myfaces.custom

2006-11-03 Thread Matt Tyson
Trying to extend the JSCookMenu renderer. I subclassed HtmlJSCookMenuRenderer and added a faces-config entry like this: HTML_BASIC javax.faces.Command org.apache.myfaces.JSCookMenu com.company.toolbox.jsf.renderer.MyHtmlJSCookMenuRenderer

Re: Converter error

2006-11-03 Thread monkeyden
Let me take another stab at explaining my use case, in hopes of determining why validation is firing for the submitted values. I read something about Options not being valid if they aren't in the "master" list, specified by the value attribute of , and wanted to figure out if that is what's happe

Re: WPS5 and MyFaces

2006-11-03 Thread Jeff Bischoff
Spettini, Did you read the link from my last post? You missed something: "I think jsf-ibm contains both (API and IMPL)" So you have two JSF implementations still: 1) > myfaces-api-1.1.4.jar > myfaces-impl-1.1.4.jar 2) > jsf-ibm.jar My advice is to remove (1). Take out myfaces-api and myfaces-

Setting a custom lifecycle

2006-11-03 Thread Simon Lessard
Hello everyone,   I have a little specification question. How can you set a different Lifecycle to be used by the default FacesServlet? The specification (section 10.2.6.2) says that you can define a javax.faces.LIFECYCLE_ID context-param in web.xml.   Then the question become when can you registe

Re: Ajax4jsf or AjaxAnywhere?

2006-11-03 Thread Jeff Bischoff
Mike Shaw wrote: > I think, you are right. I was reading clause 3.1 and it seems restrctive to > me but then clause 3.5 allows us to use for commercial purpose I had that same impression the first time I read 3.1, but when you go back to the top and reread the definition of "Covered Software",

RE: Tomahawk with Portlets

2006-11-03 Thread pallavi.roy
Hi David, The whole description of my problem is clearly listed in : http://www.nabble.com/MyFaces-with-Sun%27s-JSF-RI-on-Websphere5.1-tf2558 712.html Feel free to give me your suggestions. Best Regards, Pallavi -Original Message- From: Nebinger, David [ma

sandbox-project-1.1.5 is missing in the snapshot repo

2006-11-03 Thread Aleksei Valikov
Hi. I wanted to use http://people.apache.org/maven-snapshot-repository as a snapshot repository for my projects. I wanted to use the 1.1.5 version of the sandbox. The org.apache.myfaces.tomahawk:tomahawk-sandbox:1.1.5-SNAPSHOT is in the repository, but it relies on the org.apache.myfaces.to

RE: Tomahawk with Portlets

2006-11-03 Thread Nebinger, David
> Hi David, > > Thanks I thought I had to import another jar. > It is a problem with Tomahawk1.1.3 being compatible with > Websphere Portal5.1. > Liferay is new for me. > I am using JSR-168 portlets built using WPS5.1 and RAD. > Hav you worked on this?

Download location for sandbox JAR and Example Source Files?

2006-11-03 Thread Stephen Osella
Do you know the location for downloading the sandbox JAR and example source files? Thanks for the tip about the sandbox. The s:pprPanelGroup looks like what I need.

RE: Tomahawk with Portlets

2006-11-03 Thread pallavi.roy
Hi David, Thanks I thought I had to import another jar. It is a problem with Tomahawk1.1.3 being compatible with Websphere Portal5.1. Liferay is new for me. I am using JSR-168 portlets built using WPS5.1 and RAD. Hav you worked on this? Best Regards,

RE: Tomahawk with Portlets

2006-11-03 Thread Nebinger, David
> I am not aware of the Portlet bridge.I am not using any. > Do I have to use some portlet-bridge.jar to make Tomahawk > compatible with Websphere Portlets. No, portlet bridge is not required. It's a tool that would allow for an existing JSF app to be integrated into a portal w

Re: MyFaces, Struts 1.1 and Struts-Faces

2006-11-03 Thread Christian Wiesing
Hello Matthias, thanks for your support. I will try it later because i don't have any access to the project yet. And yes, I am German ;-) and it would be great if you could send me the slides. Vielen Dank, Christian > one more thing ... :) > > I just saw that you are German, > or at least yo

Howto trigger actionListener when detailToggler of dataTable is triggered

2006-11-03 Thread Martin Grotzke
Hello, is it possible to invoke the application when the detailToggler of a dataTable is toggled? I would like to bind an actionListener in a backing bean to the detailToggler.toggle action (if there is something like this ;)) Thanx in advance, cheers, Martin -- signature.asc Description: Th

User parameters with ViewId

2006-11-03 Thread Krishnan Kannan
Hello,   We are trying to use the URL parameters in our Facelet  “viewed”  like  /local/myapp/searchUser.xhtml?convId=1”.   What’s happening is the viewed is parsing out the parameter and sets the URL to only until the .xhtml part (i.e. /local/myapp/searchUser.xhtml).  The source is in

Re: WPS5 and MyFaces

2006-11-03 Thread Spettini
Hi pals, I look at your thread just 10 min ago, no one of the a and b option help me. I have the same jar you have and the same web.xml, i don't understand where it doesn't work. Maybe the class path and the ibm jars! If i find a solution i'll send you the trick. pals wrote: > > Hi Spettini, >

Re: WPS5 and MyFaces

2006-11-03 Thread pals
Hi Spettini, I am also facing the problem currently with WPS5.1 and Tomahawk1.1.3. you can see the link to my post here: http://www.nabble.com/How-to-add-tomahawk-support-to-a-Sun-JSF-RI-application-tf2550561.html a)One of the possible suggestions that i got was to set the class loader mode to P

Re: Need help in getting 'commandButton'

2006-11-03 Thread Gerald Müllan
Hi, are you sure that the submit doesn`t work? Well, maybe in the label/input-block you picked out a validation error occurs but you can not see the validation error message because there is no t:messages component. Put something like: on your page, and try it again. cheers, Gerald On 11/

Re: How can you update other UI components on change of another UI component (non-ajax)?

2006-11-03 Thread Gerald Müllan
Hi, in case of the selectOneMenu there is a very nice solution in sandbox, which works perfectly. Have a look at the examples-page: http://example.irian.at/example-sandbox-20061103/ajaxChildComboBox.jsf regards, Gerald On 11/3/06, Stephen Osella <[EMAIL PROTECTED]> wrote: One t

Re: WPS5 and MyFaces

2006-11-03 Thread Spettini
Jeff now i catch the problem, next i show you the file i have in lib dir commons-beanutils-1.7.0.jar commons-beanutils.jar commons-codec-1.3.jar commons-collections-3.1.jar commons-collections.jar commons-digester-1.6.jar commons-digester.jar commons-el-1.0.jar commons-lang-2.1.jar jaxen-full.jar