openDataTable.jsp: openDataList --> request scope

2005-09-15 Thread Dave
Hello, When I change the backing bean openDataList to request scope, I got the exception when I click any header to sort. javax.servlet.ServletException: Cannot get value for _expression_ '#{openDataList.data}'   If I set preserveDataModel=true or or both, I still got the exception. What is wrong?

data conversion

2005-09-15 Thread Dave
Previously I used with dataTable, data conversion was done by JSF between String/Integer, String/BigDecimal. When I changed it to use for variable number of columns, I got error. Cannot set value for _expression_ '#{backingBean.columnValue}' to a new value of type java.lang.String   In the backin

RE: Navigation Panel Question

2005-09-15 Thread James Reynolds
Yeah, that is definitely what's going on. Thanks a ton! JR -Original Message- From: Jesse [mailto:[EMAIL PROTECTED] Sent: Thursday, September 15, 2005 8:28 PM To: MyFaces Discussion Subject: Re: Navigation Panel Question Could be to do with your browser trying to load your 'ed css re

Re: Navigation Panel Question

2005-09-15 Thread Jesse
Could be to do with your browser trying to load your 'ed css resource from a location that is relative to the page's location in your web-app. That's why it works at the top level and not at any lower level. As a test, trying including a tag in your section in the lower-level page. Althou

Navigation Panel Question

2005-09-15 Thread James Reynolds
Hello all,   I just noticed a problem with my navigation panel.  I have a top level "home" link that takes the user to the index page.  If I use the component to browse to a link in a lower directory, then click the home link, the page renders without any style information.  It's as if the

Re: Help your brothers and sisters- Suggestions for improving this JSF example

2005-09-15 Thread Craig McClanahan
On 9/15/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: I believe it's needed in order to get the various methods called within the JSF life-cycle... such as the use of prerender. >From the Shale http://struts.apache.org/shale/features.html#view Rick's got it right ... AbstractViewController is

Re: Help your brothers and sisters- Suggestions for improving this JSF example

2005-09-15 Thread rick.reumann
I believe it's needed in order to get the various methods called within the JSF life-cycle... such as the use of prerender. >From the Shale http://struts.apache.org/shale/features.html#view Each backing bean that implements ViewController will support a boolean property postback, which wi

Re: UIComponent: Not serializable?

2005-09-15 Thread Thomas Spiegl
see Adam Winer's comment on MYFACES-573: http://issues.apache.org/jira/browse/MYFACES-573?page=comments#action_12329502 ThomasOn 9/15/05, Marios Kerkemezos <[EMAIL PROTECTED]> wrote: Hello everyone!I have the following question, which I still haven'tanswered...I have a simple MyFaces test applic

Re: setting headers on the response in JSF

2005-09-15 Thread Thomas Spiegl
If you don't want to implment a PhaseListener or a javax.servlet.Filter for setting response headers, think about using MyFaces Tiles-Support. You'd just need to define a scriptlet in one (maybe a few) JSP templates. Thomas On 9/15/05, Ken Weiner <[EMAIL PROTECTED]> wrote: What is the best way to

Re: [newbie] Forward to launch page

2005-09-15 Thread Thomas Spiegl
You could use a redirect instead. If you are using extension mapping *.jsf the following redirect should work. <% response.sendRedirect(response.encodeRedirectURL("/pages/launch.jsf")); %> Thomas On 9/16/05, Robert Taylor <[EMAIL PROTECTED]> wrote: Greetings, I'm a current Struts user interested i

Re: Help your brothers and sisters- Suggestions for improving this JSF example

2005-09-15 Thread Werner Punz
Ah I just googled, the AbstractViewController is Shale, that explains a lot ;-)... Craig if you read this, I thought that one point of JSF was to get rid of the Form-Action division of struts towards a more generalized approach? Does the AbstractViewController do something special in Shale or is

Re: Validator for

2005-09-15 Thread Mike Kienenberger
RTM :) It's the validation method binding, not a validator. To save you a trip, the signature is thus: public void foo(FacesContext context, UIComponent component, Object value) throws ValidatorException but can be named whatever you like. On 9/15/05, CONNER, BRENDAN (SBCSI) <[EMAIL PROTECTE

Re: Help your brothers and sisters- Suggestions for improving this JSF example

2005-09-15 Thread Werner Punz
Looks quite good, but one thing struck me... Your structure is very Struts like, which is not really needed. >extends AbstractViewController you wont need that in JSF unless you have something really important down there, which you have to reuse also you wont need to think in actions and forms

Validator for

2005-09-15 Thread CONNER, BRENDAN \(SBCSI\)
What format am I supposed to use to specify the value for the validator attribute in ? I tried giving a string that contained the fully qualified path name of the validator. Then I tried using the id of the validator given in faces-config.xml. Neither of those appeared to cause my validator to g

[newbie] Forward to launch page

2005-09-15 Thread Robert Taylor
Greetings, I'm a current Struts user interested in learning and using MyFaces and JSF. My dev. env. consists of Tomcat 5.5.9, MyFaces 1.0.9, JDK 1.4.2, Win2K. I've configured MyFaces to use Tiles for view-handler. What I want to do is to have my welcome page (index.jsp), forward to a launch p

Help your brothers and sisters- Suggestions for improving this JSF example

2005-09-15 Thread Rick Reumann
Eventually I want to turn this small example into a walk through lesson/tutorial. Before I get to that point, I could really use the help of those that know what they are talking about to look over this example and provide suggestions on how to fix it up. Since I'm new to JSF/MyFaces, I'm sure

resource bundle

2005-09-15 Thread Dave
When I use for variable number of columns in dataTable, I need to call getResourceBundle() from ViewRoot, and then call resoucebundle.getString("Label"). In JSP, I just use "#{bundle.Label}".  Is there any performance overhead? Is there a better way to display localized string from a backing bean

RE: Creating a Custom Component with other components inside...

2005-09-15 Thread Balaji Saranathan
I remember trying to learn custom components by creating a form builder that will create a form from XML file. What I did was to create a Label component and a HtmlInputText component as to the number of properties specified and add Validators accordingly.(Only regular Expression validator though

Re: Creating a Custom Component with other components inside...

2005-09-15 Thread Mike Kienenberger
If you're not limited to pure JSP tag technology, you could consider the following three alternatives, which allow you to quickly create composite components: 1) Facelets 2) Shale/Clay 3) t:aliasBean + jsp includes On 9/15/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Hi, > > I'm looking at

Creating a Custom Component with other components inside...

2005-09-15 Thread gvial
Hi, I'm looking at designing a simple component that would render the following: 2 ListBoxes with items in each of them. Each being plugged on a different List in the background. I'm trying to figure out how to do that right now... I have created a custom component that works but does not render

Re: Map managed bean with managed properties

2005-09-15 Thread Michael
Thanks for the reference.  I'm not sure how I missed that before.  I think I am going to try the wrapper bean idea. Thanks for the help, MichaelOn 9/15/05, Mike Kienenberger <[EMAIL PROTECTED]> wrote: It looks like you need to look at JavaServer Pages Specification (version 2.0),sections 2.3 throu

setting headers on the response in JSF

2005-09-15 Thread Ken Weiner
What is the best way to set headers on the HttpResponse to control things such as caching directives? For example: response.setHeader("Cache-Control", "no-cache"); Would I need to implement a PhaseListener? Is this done through config parameters of some kind?  Should I just include a scriptlet in

Re: commandLink with action inside Table

2005-09-15 Thread Rick Reumann
Mike Kienenberger wrote the following on 9/15/2005 12:18 PM: Take a look at this thread for both a discussion on the situation and solutions. Note that the earlier part of the thread didn't address the real issue, so I started you somewhere in the middle. http://mail-archives.apache.org/mod_mbo

Re: Boolean converter?

2005-09-15 Thread Ken Weiner
Yes, the issue in JIRA was http://issues.apache.org/jira/browse/MYFACES-451 You can get the source code from the MyFaces sandbox.On 9/14/05, Dennis Byrne <[EMAIL PROTECTED]> wrote: I think he put it in JIRA. Original message >Date: Wed, 14 Sep 2005 18:00:05 -0500 >From: "CONNER, BRENDAN \(S

Re: Hibernate: 1-to-many --> struggling

2005-09-15 Thread Werner Punz
Yes that is a good place, and that is what I did but there were another bunch of issues by using that mapping type... just posted a long explanation in the forum regarding all the problems you run into with many-to-many Joshua Davis wrote: Werner, Since you have data associated with your many-

PreserveDataModel behaviour (2)

2005-09-15 Thread Enrique Medina
Hi again, I have investigated another interesting behaviour about using PreserveDataModel, which makes my application crash (due to the way I'm working with data tables). Let me explain it to you in a straight-forward manner. Currently, I use a session scoped bean to work with my objects (e.g. on

Re: commandLink with action inside Table

2005-09-15 Thread Mike Kienenberger
Take a look at this thread for both a discussion on the situation and solutions. Note that the earlier part of the thread didn't address the real issue, so I started you somewhere in the middle. http://mail-archives.apache.org/mod_mbox/myfaces-users/200509.mbox/[EMAIL PROTECTED] Rick was going

Re: Map managed bean with managed properties

2005-09-15 Thread Mike Kienenberger
It looks like you need to look at JavaServer Pages Specification (version 2.0), sections 2.3 through 2.9 to determine the precedence of calling Map vs calling Bean properties. Take a look at JSF Spec 1.1 Section 5.1.3 (Get Value Semantics) and 5.1.4 (Set Value Semantics). While nothing is explic

Re: commandLink with action inside Table

2005-09-15 Thread Christian Froelich
Hello, YES, the action is executed if I remove the rendered attribute... BUT I need this attribute. You know this Problem or a solution?? Best Regards, Christian > --- Ursprüngliche Nachricht --- > Von: Rick Reumann <[EMAIL PROTECTED]> > An: MyFaces Discussion > Betreff: Re: commandLink with

Re: URGENT! HELP ME! Tree2 state problem

2005-09-15 Thread Guilherme Gomes
Well, i solved my issue by not creating a new tree. I have my tree in a session bean, so i just clean the root's children - with attention to collapse the nodes if they are expanded - and then repopulate the tree with the new data. That solved it, as i no longer have the same exception as you do n

Re: Custom Component

2005-09-15 Thread Werner Punz
Websphere problably runs on the IBM JDK,... Udo Schnurpfeil wrote: hmmm, I think IBM uses an other java version... with the IBM I can't help your in the moment. I've no sources. But what I've seen is the start of the stacktrace. It seems that there is an NullPointerException, and while the

Re: commandLink with action inside Table

2005-09-15 Thread Rick Reumann
Does the action get executed if you remove the 'rendered' attribute? Christian Froelich wrote the following on 9/15/2005 9:00 AM: Thanks for your fast answer! My jsp looks like this: ... ...other h:columns... The commandLink is always rendered as link.

Re: Custom Component

2005-09-15 Thread Udo Schnurpfeil
hmmm, I think IBM uses an other java version... with the IBM I can't help your in the moment. I've no sources. But what I've seen is the start of the stacktrace. It seems that there is an NullPointerException, and while the construction of the NullPointerException an NullPointerException occu

RE: Map managed bean with managed properties

2005-09-15 Thread Neal Haggard
It's a bit of a work-around, but I believe allowing map.property to use get/put is part of the EL syntax.  Perhaps look at breaking out the initialization function into another holder bean.   public class MyMapHolder { ... public Dependency getMyDependency() { return myDepe

Re: Map managed bean with managed properties

2005-09-15 Thread Michael
Yeah you can use expressions (JSF Spec 1.1 Section 10.3.1 Page 285).  I use Spring's delegating variable resolver to expose my Spring beans through EL and then I inject references to them in this manner.  It has worked great up until the map case. Should a bug be filed on this or is it desired beh

Re: Custom Component

2005-09-15 Thread Udo Schnurpfeil
Which Faces implementation? Which version? What is the "long" version of Java? I'm wondering about the NullPointerException inside of java.lang.Throwable. What is the content of the JSP? Udo Goyo Escobar Escalero wrote: JAVA IS 1.4 I'm not using myFaces Original Message Follows--

Re: Hibernate: 1-to-many --> struggling

2005-09-15 Thread Werner Punz
Jepp just gave you an example on how I think things could be made easier or how things should resolve in that special area... Dont get me wrong, I like Hibernate but I have seen several developers run into serious issues in that area... Werner Joshua Davis wrote: Aha, I've found you! http://fo

Re: commandLink with action inside Table

2005-09-15 Thread Christian Froelich
Thanks for your fast answer! My jsp looks like this: ... ...other h:columns... The commandLink is always rendered as link. And also the rest of the treeTable seems to get rendered correctly. But the action method is only executed if the tableBody is empty

URGENT! HELP ME! Tree2 state problem

2005-09-15 Thread Atree Blu
Hi, I have a tree2 with showRootNode="true" preserveToggle="true" clientSideToggle="true".   I describe my problem: 1) I open a JSP popup page with a tree2 (there are many nodes under the root); 2) I expand some node; 3) I close popup; 4) I reopen the popup with another tree2 that, in this case, ha

Re: Change Email-Address for mailing-lists

2005-09-15 Thread Hendrik Neumann
Okay, I've done this - thanks.

Re: commandLink with action inside Table

2005-09-15 Thread Mathias Brökelmann
the action of the commandlink is only executed if the rendered flag for this and his parent component is true during the decode phase. Can you post the surrounding datatable tag also? 2005/9/15, Christian Froelich <[EMAIL PROTECTED]>: > Hello, > > I try to use a commandLink with an action inside

commandLink with action inside Table

2005-09-15 Thread Christian Froelich
Hello, I try to use a commandLink with an action inside a treeTable but it is not working properly :-( The following snippet of a treeTable-column is expected to: - render a link if it 's the tableHead - render a outputText if it's a row inside the tableBody - render a outputText with a special s

Re: Map managed bean with managed properties

2005-09-15 Thread Ricardo R. Ramírez Valenzuela
Does this actually work? I don't think you can use expressions in the value for initialization. What I do when I want to "inject" a value to another bean is get the bean via the faces context, for example I do a getManagedBean("detailsBean").setDetail(someObject) (I attach the code for my get

RE: Hibernate: 1-to-many --> struggling

2005-09-15 Thread Joshua Davis
Aha, I've found you! http://forum.hibernate.org/viewtopic.php?t=947528 > -Original Message- > From: news [mailto:[EMAIL PROTECTED] On Behalf Of Werner Punz > Sent: Thursday, September 15, 2005 2:45 AM > To: users@myfaces.apache.org > Subject: Re: Hibernate: 1-to-many --> struggling > > Du

RE: Hibernate: 1-to-many --> struggling

2005-09-15 Thread Joshua Davis
Werner, Since you have data associated with your many-to-many, you can simplify this by making an entity in the middle, transforming your many-to-many in to a many-to-one, one-to-many from the ORMs perspective. We can continue this discussion on the Hibernate forum, if you like. I'd be glad to h

Re: Change Email-Address for mailing-lists

2005-09-15 Thread Martin Marinschek
You need to unsubscribe and resubscribe! regards, Martin On 9/15/05, Hendrik Neumann <[EMAIL PROTECTED]> wrote: > Hi everybody, > > my email-address will change in a few days - how can I change it for the > mailing-lists? > > Greetings, > Hendrik > -- http://www.irian.at Your JSF powerhou

Change Email-Address for mailing-lists

2005-09-15 Thread Hendrik Neumann
Hi everybody, my email-address will change in a few days - how can I change it for the mailing-lists? Greetings, Hendrik

Re: Custom Component

2005-09-15 Thread Goyo Escobar Escalero
JAVA IS 1.4 I'm not using myFaces Original Message Follows From: Udo Schnurpfeil <[EMAIL PROTECTED]> Reply-To: "MyFaces Discussion" To: MyFaces Discussion Subject: Re: Custom Component Date: Thu, 15 Sep 2005 12:30:49 +0200 Hi! What is the Java version? What is the MyFaces version

Re: Custom Component

2005-09-15 Thread Udo Schnurpfeil
Hi! What is the Java version? What is the MyFaces version? Udo Goyo Escobar Escalero wrote: I've a problem extendign the UISelectOne component... My classes: package holderTagClasses; import javax.faces.application.Application; import javax.faces.component.UIComponent; import javax.faces.

Re: Providing bugfix: Firefox tag - Re: x:inputCalendar - popup hidden by other elements

2005-09-15 Thread Paul Klaer
You're welcome! Thanks for the fast resolving :-) Paul Bruno Aranda wrote: Thanks! It is fixed now... Bruno 2005/9/15, Paul Klaer <[EMAIL PROTECTED]>: Done. :-) http://issues.apache.org/jira/browse/MYFACES-569 Bruno Aranda wrote: Thanks Paul, but could you please open a JIRA issue with

Re: Providing bugfix: Firefox tag - Re: x:inputCalendar - popup hidden by other elements

2005-09-15 Thread Bruno Aranda
Thanks! It is fixed now... Bruno 2005/9/15, Paul Klaer <[EMAIL PROTECTED]>: > Done. :-) > > http://issues.apache.org/jira/browse/MYFACES-569 > > Bruno Aranda wrote: > > Thanks Paul, but could you please open a JIRA issue with the problem > > and upload the patch there? Then this will be tested

Custom Component

2005-09-15 Thread Goyo Escobar Escalero
I've a problem extendign the UISelectOne component... My classes: package holderTagClasses; import javax.faces.application.Application; import javax.faces.component.UIComponent; import javax.faces.context.FacesContext; import javax.faces.el.MethodBinding; import javax.faces.el.ValueBinding; im

Re: Providing bugfix: Firefox tag - Re: x:inputCalendar - popup hidden by other elements

2005-09-15 Thread Paul Klaer
Done. :-) http://issues.apache.org/jira/browse/MYFACES-569 Bruno Aranda wrote: Thanks Paul, but could you please open a JIRA issue with the problem and upload the patch there? Then this will be tested :-) We have to keep the bugs under control... Regards, Bruno 2005/9/15, Paul Klaer <[EMAIL

Re: Providing bugfix: Firefox tag - Re: x:inputCalendar - popup hidden by other elements

2005-09-15 Thread Bruno Aranda
Thanks Paul, but could you please open a JIRA issue with the problem and upload the patch there? Then this will be tested :-) We have to keep the bugs under control... Regards, Bruno 2005/9/15, Paul Klaer <[EMAIL PROTECTED]>: > Hi, > > this is definitly a bug. So, here I provide the solution. C

UIComponent: Not serializable?

2005-09-15 Thread Marios Kerkemezos
Hello everyone! I have the following question, which I still haven't answered... I have a simple MyFaces test application consisting of a small number of pages and an equal number of backing beans deployed on Tomcat 5.0.28. All my beans inherit from some base class which implements java.io.Serial

RE: Form data passing problem

2005-09-15 Thread Matthias Klein
Thanks. It works now. Matt -Original Message- From: Volker Weber [mailto:[EMAIL PROTECTED] Sent: Mittwoch, 14. September 2005 14:47 To: MyFaces Discussion Subject: Re: Form data passing problem Hi, you must remove the immediate="true" form your submit button! this skips the updatemode

Is there anybody out there?

2005-09-15 Thread Enrique Medina
Hi, Could you please vote this JIRA issue, so it can be given some priority? It has not even been assigned to anyone :-( http://issues.apache.org/jira/browse/MYFACES-522 Thanks.