Re: Help with bundling Faces-Config

2005-07-21 Thread Werner Punz
Balaji Saranathan wrote: Hi, I have some custom components built that have been bundled as a jar file. However, when I access them in my JSF page, I get ClassNotFoundException. The environment doesn’t seem to pick it up from the jar file. Can you clarify if I can bundle my own

Problem with x:panelTabbedPane

2005-07-21 Thread marc . baumgartner
Hi all, I have 2 Tabs in the panelTabbedPane. I select Tab 2 and hit a submit button in Tab 2. The submit button leads to a function of a backend bean. The return action of this actions leads to the same jsp. But on the next view tab 1 is selected instead of tab 2. How can I solve this

Re: Problem with x:panelTabbedPane

2005-07-21 Thread Werner Punz
[EMAIL PROTECTED] wrote: Hi all, I have 2 Tabs in the panelTabbedPane. I select Tab 2 and hit a submit button in Tab 2. The submit button leads to a function of a backend bean. The return action of this actions leads to the same jsp. But on the next view tab 1 is selected instead of tab 2.

commandLink and onClick javascript popup window problem

2005-07-21 Thread Clément Maignien
Here is the situation: I have a JSF page (result.jsp) with dataTable component with a commandLink in one of his columns. When clicking on this commandLink, I would like to open a popup window (detailStockInv.jsp) to display detail informations about the line that has been clicked. Here

Antwort: Re: Problem with x:panelTabbedPane

2005-07-21 Thread marc . baumgartner
Thank you for your fast answer. I am new to JSF - so can you give me a short example how I have to do this? |-+--- | | Werner Punz | | | [EMAIL PROTECTED] | | | Gesendet von: | | |

RE: Help with bundling Faces-Config

2005-07-21 Thread Jesse Alexander (KBSA 21)
-Original Message- Hi, I have some custom components built that have been bundled as a jar file. However, when I access them in my JSF page, I get ClassNotFoundException. The environment doesn't seem to pick it up from the jar file. Can you clarify if I can bundle my own

Re: Antwort: Re: Problem with x:panelTabbedPane

2005-07-21 Thread Werner Punz
a vague one others might jump in with more detailed answers, you usually can bind backend bean properties via the bind attribute to component variables in the backed bean for instance it might look like this: class BackendBean { HtmlTabbedPane pane = new HtmlTabbedPane ...

How to remove a JDBC driver instance from the memory.

2005-07-21 Thread ramesh.bodimani
All, This is related to JDBC 1.0. I can register a driver with class.forName(=Driver class=); // type 4 driver This statement creates an instance of the specified driver class and puts in the memory. Then I can use that driver class while getting a connection by using

[OT] RE: How to remove a JDBC driver instance from the memory.

2005-07-21 Thread Jesse Alexander (KBSA 21)
Hi how about controlling that you have dereferenced the driver as completely as possible and then just ask the jvm to kindly consider doing a GC right now? have you considered asking this question in the JDBC-forum at sun's forum site? http://forum.java.sun.com/forum.jspa?forumID=48

Antwort: Re: Antwort: Re: Problem with x:panelTabbedPane

2005-07-21 Thread marc . baumgartner
Thank you. It was the right hint! But now I have the problem that my TabChangeListener is called several times. Does anyone know the reason why? Marc a vague one others might jump in with more detailed answers, you usually can bind backend bean properties via the bind attribute to

Re: Antwort: Re: Antwort: Re: Problem with x:panelTabbedPane

2005-07-21 Thread Werner Punz
[EMAIL PROTECTED] wrote: Thank you. It was the right hint! But now I have the problem that my TabChangeListener is called several times. Does anyone know the reason why? also only a vague one... once you change the settings for your main tab control, the listener might be triggered again,

Tree2 Summit

2005-07-21 Thread Sean Schofield
A while back we discussed getting all of the tree2 users together to discuss and implement various bug fixes and improvements for tree2. I'm hoping to have some time next week to address this. In the meantime here is what we should do to get ready for this: 1.) Check JIRA and make sure all of

Re: commandLink and onClick javascript popup window problem

2005-07-21 Thread Sean Schofield
I think your problem is that you are opening the window with an *onclick* javascript even. This has nothing to do with the JSF lifecycle. The regular commandLink approach (without using onclick) works because you post back (via a form) to the same page. In your case you are just opening the

html editor different size at mozila and internet explorer

2005-07-21 Thread Tomer Ben-David
Hi I ran the html editor example and in internet explorer it seems fine however in mozilla firefox the html editor is very small and the buttons are not aligned correctly, is that a bug? Thanks Tomer

x:inputcalendar events are not workimg?

2005-07-21 Thread Polanki, Varada \(Exchange\)
Hi, x:inputcalendar events like disabled, onchange are not working. Has anybody using these events successfully? Thanks Regards, Varada ** Please be aware that, notwithstanding the fact that the person sending this

RE : commandLink and onClick javascript popup window problem

2005-07-21 Thread Clément Maignien
Yes indeeed Sean. That's is exactly what I said at the end of my post. But my question is : is it possible to open a popup window (with or without javascript) to display my detailed informations ? if yes, how ? Thanks. -Message d'origine- De : Sean Schofield [mailto:[EMAIL PROTECTED]

Re: RE : commandLink and onClick javascript popup window problem

2005-07-21 Thread Bruno Aranda
There is a component x:popup wich you could use, but it shows only onmouseover (if someone had the time to adapt this component to show onclick it would be great, the possibility to choose if the popup should be shown on onmouseover or onclick). Regarding your problem, maybe you can use a session

StateHolder Question

2005-07-21 Thread Galen Dunkleberger
Am I correct in believing a component only holds its state for the life of a single view. So that if the same component is in two differenet views and I navigate from one view to other the component will not retain it's state from the previouse view without it's values or itself being bound to a

RE : RE : commandLink and onClick javascript popup window problem

2005-07-21 Thread Clément Maignien
Yes I tried to use the x:popup component but it is not appropriate for what I want to do. Having a onclick behaviour ont it would be great :D The solution you propose is actually what I tried to do. But the problem is that I use javascript to open the new window. It brakes the JSF flow and my

Re: Replacing JSF EL with JavaScript

2005-07-21 Thread alex
Dennis Byrne wrote: Are you under the impression that EL functions cannot accept parameters? Just again to this point of the discussion: I tried myself to write a function that would return the size of a java.util.List passed as parameter. However, it works fine with JSTL (core),

Re: Replacing JSF EL with JavaScript

2005-07-21 Thread Mike Kienenberger
There's no way to force someone to use a tool the correct way. However, I think EL is a good example of how to force someone to use the tool incorrectly. Instead of a simple #{backingBean.viewMethod(viewDependentVariable[s])}, you now have to perform horrible convolutions and tricks to accomplish

Re: StateHolder Question

2005-07-21 Thread Mike Kienenberger
I'm not really confident about my answer to this, but since no one else has responded, I'll post what I think and someone more knowledgable will gleefully correct it :) Components provide methods for saving and restoring state. Between requests, that state information is stored somewhere, but

RE: RE : RE : commandLink and onClick javascript popup window problem

2005-07-21 Thread CONNER, BRENDAN \(SBCSI\)
We've been trying to do the same thing. We started working with the example given in Chapter 12 of the book Core JavaServer Faces (p. 587: How do I generate a popup window?). Actually, the book gives 2 examples: a simple one (involving index1.jsp and popup1.jsp), and a more robust one like

RE: Replacing JSF EL with JavaScript

2005-07-21 Thread CONNER, BRENDAN \(SBCSI\)
I haven't been following the previous entries in this thread, but, in this example, the easiest solution is to create a method in one's bean called, for example, getListSize(): public int getListSize() { return this.getList().size(); } and then code it in one's JSP as: h:outputText

Re: RE : commandLink and onClick javascript popup window problem

2005-07-21 Thread Slawek
there is race between two requests: -submit form (perform actions) and receive answer -open popup with new page if submit would win (hit server looong beforem popup request), than action would be performed and popup could have fresh data in 99.(9)% cases popup wins, so it doesnt have proper

Dynamic Converter

2005-07-21 Thread Dennis_Byrne
There are 29 lookup tables in my db. The selectOneMenu tags of the site are populated via objects that have been mapped to each table using Hibernate. I want one converter to rule them all. getAsString() is done (determine the identifier/pk property of the bean at runtime by querying the OR meta

Re: Replacing JSF EL with JavaScript

2005-07-21 Thread Mike Kienenberger
On 7/21/05, Aleksei Valikov [EMAIL PROTECTED] wrote: The point was that you can't use JSTL functions in JSF method bindings. Actually, you can. It's just difficult to do with the Myfaces EL resolver. You have to hardcode the association. You can also do so if you're using myfaces + facelets

Re: Replacing JSF EL with JavaScript

2005-07-21 Thread Mike Kienenberger
Never mind. You said method bindings, not value bindings. On 7/21/05, Mike Kienenberger [EMAIL PROTECTED] wrote: On 7/21/05, Aleksei Valikov [EMAIL PROTECTED] wrote: The point was that you can't use JSTL functions in JSF method bindings. Actually, you can. It's just difficult to do with

Re: Dynamic Converter

2005-07-21 Thread Mike Kienenberger
I handled this by code generation. My Cayenne data-model + Velocity = N converter.java files + 1 faces-config file. I'll be interested to here if you come up with a better way. You might also be able to do something with this. Not sure if it's directly relevent, but maybe it'll give you new

Re: StateHolder Question

2005-07-21 Thread Galen Dunkleberger
Thanks for the reply Mike. I asked the question because I'm working on a custom navigation component for my project. It's basically a simple navigation bar that contains links to other views and also keeps track of which link is currently selected. Maybe I'm doing something wrong but the only way

Re: I cannot load tags of myfaces 1.0.9 (20050711) in Eclipse 3.1 final and JBossIDE-1.5M2-ALL ...

2005-07-21 Thread fabio quimbay
Greettings, Dennis ... It will leave jars in WEB-INF/lib according to as it describes the especficación to it, the truth didn't know it; although I continue with the problem of not being able to load tags from a page JSP in eclipse 3.1. I have been enough time with this restlessness and not yet I

Contribution of component library planned, live demo available

2005-07-21 Thread Udo Schnurpfeil
Dear MyFaces-Team, after the MyFaces BOF on the ApacheCON 2005 we have talked to Martin and Matthias about our extensional faces-based component library Tobago. We showed them some of our online examples visible at http://tobago.atanion.net and we all agreed, that it is important to

RE: Contribution of component library planned, live demo availabl e

2005-07-21 Thread Jesse Alexander (KBSA 21)
Hi Is there a Javascript free version of the components? regards Alexander -Original Message- From: Udo Schnurpfeil [mailto:[EMAIL PROTECTED] Sent: Thursday, July 21, 2005 11:13 PM To: dev@myfaces.apache.org; users@myfaces.apache.org Subject: Contribution of component library

Re: Dynamic Converter

2005-07-21 Thread Dennis_Byrne
I liked your solution because it would allow me to use the manage-properties as managed properties of converters . However dug a little deeper into the UIComponent that is passed to getAsObject and get what I needed HtmlSelectOneMenu - UISelectItems - SelectItem - the object - the object's name .

Re: StateHolder Question

2005-07-21 Thread Mike Kienenberger
If you point to a request bean, then I'd expect that bean to be recreated every request. If you point to a session bean, then it'll hang around until your session ends, so that seems to make sense. How are you saving state for your component? What's the contents of your saveState/restoreState?

Re: Dynamic Converter

2005-07-21 Thread Dennis_Byrne
Mike, are you caching anything? I thought about the converter itself but converters are created for each request. I've talked a lot of folks who're just going to the database on each conversion with no complaints about performance. Dennis Byrne

RE: Contribution of component library planned, live demo availabl e

2005-07-21 Thread Jesse Alexander (KBSA 21)
-Original Message- We are really interessted in your feedback regarding our examples. Unfortunatelly the descriptive text in the demo is not available in English yet. -/Original Message- Advantage of being swiss... no problem with the descriptions ;-) What I like is the clean

Re: Dynamic Converter

2005-07-21 Thread Mike Kienenberger
I generate and cache my list of SelectItems once per request. I wasn't really concerned about performance, but I wanted the lists to remain constant over the full duration of the request. You can always add additional caching easy enough after performance becomes an issue. No point in optimizing

Re: [OT] Java-/JSP-source displaying servlet

2005-07-21 Thread Sean Schofield
I assume you have seen the SourceCodeServlet in the simple examples? It doesn't format the source code but it basically shows the jsp as it would look in a text editor (before the jsf tags are processed into HTML.) Probably not what you are looking for but its a start ... sean

Re: [OT] Java-/JSP-source displaying servlet

2005-07-21 Thread Craig McClanahan
IIRC, Tomcat comes with just such a gadget, to display the sources for the servlet and JSP examples. Craig On 7/21/05, Jesse Alexander (KBSA 21) [EMAIL PROTECTED] wrote: Hi for a sample-webapp I need a servlet that can render formatted java- and jsp-sourcecode. Has somebody such a

Re: [OT] RE: How to remove a JDBC driver instance from the memory.

2005-07-21 Thread Adrian Merrall
Ramesh, There is a very interesting blog post on this topic here which may help you. http://www.patrickpeak.com/page/patrick/20050614#your_web_app_is_leaking This was in the context of the jdbc driver being left around when if you redeploy the app from ant. After a few ant redeploys you end up

Re: Replacing JSF EL with JavaScript

2005-07-21 Thread Dennis_Byrne
Craig, It sounds like your saying the spec aims at discouraging certain bad practices of the past. During the spec's childhood were there ever any arguments about it encouraging new bad practices. I ask this because I have found myself wanting to abuse FacesContext.getCurrentInstance() as a

Re: Replacing JSF EL with JavaScript

2005-07-21 Thread Craig McClanahan
On 7/21/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Craig, It sounds like your saying the spec aims at discouraging certain bad practices of the past. During the spec's childhood were there ever any arguments about it encouraging new bad practices. I ask this because I have found

TabbedPane + Tiles

2005-07-21 Thread Curtney Jacobs
Greetings! I have successfully manage to get my tile to display within my tabs, however, the same tile definition is displayed in each tab. I would like each tab to display its' corresponding tile. I don't know how to specify the correct url so that the correct tile definition is inserted. The

WML in MyFaces

2005-07-21 Thread aaronbartell
I am going to be writing a WML application and was excited to dig in with MyFaces because I have seen (or thought I saw) the tags for MyFaces WML implementation in the past. Now I am having trouble finding the WML tag library in any of the downloads or even mentioned on the