inputFileUpload save state problem

2007-06-05 Thread ncheltsov
Hi, I have the following question about one of myFaces custom components. inputFileUpload I managed to do everything except one thing. I don't know how to save the state of the input field where the path to a specified file is entered. When I reload the page, I am developing, the state is

Re: inputFileUpload save state problem

2007-06-05 Thread David Delbecq
Hi, For security reason, in HTML (not related to JSF), it's impossible to set an initial value for an upload field. En l'instant précis du 05/06/07 10:55, ncheltsov s'exprimait en ces termes: Hi, I have the following question about one of myFaces custom components. inputFileUpload I

Re: inputFileUpload save state problem

2007-06-05 Thread ncheltsov
So, it is intended to work like this and it is not an omission? You mean, that if I want something like this, I must implement it by my self and to take all the responsibility of a probable security holes? David Delbecq wrote: Hi, For security reason, in HTML (not related to JSF), it's

Re: inputFileUpload save state problem

2007-06-05 Thread Volker Weber
Hi, yes, it is intended to work like this. And if you want to implement it yourself, you need to implement a custom browser. The existing browsers (IE, firefox, opera, ...) dit not allow this. In HTML it is not possible to set an initial value, (nor set the value by javascript later) to a

Tobago - myfaces - tomcat java 1.4

2007-06-05 Thread Leonhard Holzer
Hello everybody, I'm trying to configure a sample application using Spring-Webflow, myfaces, tobago to run under tomcat and java 1.4 using the retro libraries. Everything works fine without tobago, b ut when I try to include tobago I get the following error: javax.servlet.ServletException

[MyFaces] looking for el-api/el-ri sources

2007-06-05 Thread Renzo Tomaselli
Hi, as a matter of debugging help I would need to find out sources of el-api.jar and el-ri.jar. Sometime ago I found out some sparse sources (from Glassfish svn ?), but there was some mismatch between debugger source lines and jar binaries as usually distributed along common JSF packages.

designing h:dataTable

2007-06-05 Thread sandipp
Hi All, I want to design datatTable as, --- Edit | Personal Information| Account Information | // first row

Re: designing h:dataTable

2007-06-05 Thread ncheltsov
I am not sure, that I fully understand your question, but I think, that h:dataTable element is not intended for such use. You can display with it some tabular information, set header and footer and apply some visual cosmetic. That's all. Consider using other component. P.S. Of course I can

Re: [MyFaces] looking for el-api/el-ri sources

2007-06-05 Thread Mike Kienenberger
el-api.jar and el-ri.jar are available from the Apache Tomcat 6.x project. I don't know the details of how to fetch them. Asking on that mailing list is probably your best bet. Wendy posted this in the past for maven users: dependency groupIdorg.apache.tomcat/groupId

Any one using Selenium to test JSCook Menus?

2007-06-05 Thread Paul Spencer
I am using Selenium to test the UI portion of my application. Currently I am having trouble testing the menus generated by the JSCookMenu. Specifically I do not know what to enter for Target when trying to click on the menu using the click command. Is any testing JSCookMenus with Selenium?

Re: Any one using Selenium to test JSCook Menus?

2007-06-05 Thread Svilen Ivanov
Hi, I use selenium to test t:tree2. My problem was how to locate the [+] or [-] icon in front of specific node. I ended up writing my own locator (in selenium terms) that traverses the DOM near the node's text and finds image tags with specific URL (plus.png/minus.png). Locating the image makes

Re: Any one using Selenium to test JSCook Menus?

2007-06-05 Thread Paul Spencer
Svi, Thank you point me to user-extensions. I was hoping for a simpler solution :) Paul Spencer Svilen Ivanov wrote: Hi, I use selenium to test t:tree2. My problem was how to locate the [+] or [-] icon in front of specific node. I ended up writing my own locator (in selenium terms) that

Re: designing h:dataTable

2007-06-05 Thread Ryan Wynn
t:dataList allows you more fine grained control over the display. On 6/5/07, ncheltsov [EMAIL PROTECTED] wrote: I am not sure, that I fully understand your question, but I think, that h:dataTable element is not intended for such use. You can display with it some tabular information, set header

Re: JSF and AJAX without custom components?

2007-06-05 Thread Stan Carney
Thanks for your response Ernst! Yeah, I have looked around at pretty much every JSF AJAX framework out there and it isn't that I'm not impressed. There are definitely some smart people working to create generic components to be consumed by the masses. In our current position though I don't

Re: Force model update during immediate action event

2007-06-05 Thread Mike Kienenberger
You've already summarized the general answer to your question: use component bindings and manually validate and update the values. There may be other options (sandbox:subForm, perhaps), but it will require that you post specifically what you're trying to do. On 6/4/07, Sertic Mirko, Bedag

Re: Using Label value in custom validator

2007-06-05 Thread Mike Kienenberger
Labels are a component like anything else. However, I suspect you'd need to iterate through the entire component tree, looking for any h:label component that contains a reference to the current component. Another way to go is to use the t:message/messages component with replaceIdWithLabel=true

RE: How to have the label of SelectOneRadio as a commandLink

2007-06-05 Thread Beelen, Marco
Hello Mike, Thanks for you suggestion. Using a fully-qualified client-id does work indeed. It took some trail-and-error to determine the proper path from the NamingContainer, but I got a proper reference to the t:selectOneRadio for the t:radio-tag. So I started to use the following code:

[Trinidad] e.getFacesMessage is no Function

2007-06-05 Thread David Uebelacker
Hi, I'm using the trinidad SVN source. When i want to save a simple form, i get the JS error e.getFacesMessage is no Function. There seems to be a problem initialising the TrConverterException in Locale.js cause the LocaleElements array is empty. Someone familiar with Locale.js could help me

Re: [Trinidad] e.getFacesMessage is no Function

2007-06-05 Thread Matthias Wessendorf
what values are you binding to your input controls ? looks like a JS issue, when trying to throw JS TrConverterException -M On 6/5/07, David Uebelacker [EMAIL PROTECTED] wrote: Hi, I'm using the trinidad SVN source. When i want to save a simple form, i get the JS error e.getFacesMessage is

Re: How to have the label of SelectOneRadio as a commandLink

2007-06-05 Thread Mike Kienenberger
You're using the same variable name for two different things: t:selectItems var=seeker t:dataList var=seeker I wouldn't recommend doing this as it's only going to cause confusion (even though they are both in different scopes). I'm guessing the ordering problem is caused by how

Re: [Trinidad] Changes to isPostback?

2007-06-05 Thread Adam Winer
I'd suggest seeing a stacktrace to find out what phase this is being invoked in. RequestContext.isPostback() doesn't work until the end of Restore View phase, and I suspect your code is being called during Restore View. -- Adam On 6/4/07, Francisco Passos [EMAIL PROTECTED] wrote: Actually

[Tobago] Problem with tc:tree

2007-06-05 Thread Helmut Swaczinna
Hi, I want to have a tree with it's nodes selectable AND an associated treeNodeCommand. But it's impossible to have both together. When the nodes are selectable the treeNodeCommand is not executed. You can see this in the demo. Regards Helmut

RE: How to have the label of SelectOneRadio as a commandLink

2007-06-05 Thread Beelen, Marco
Hello Mike, I'm already using facelets with MyFaces for my application ( who isn't these days? ), so the suggestion to use a panelGroup isn't necessary. I followed your advice and changed one of the values of the var-attribute and that solved the problem. Now I can place the t:radio-tag before

Re: How to have the label of SelectOneRadio as a commandLink

2007-06-05 Thread Mike Kienenberger
Wow. I'm surprised that the var value was the cause of the problem. I don't really know why that would be. Glad it worked out, though. On 6/5/07, Beelen, Marco [EMAIL PROTECTED] wrote: Hello Mike, I'm already using facelets with MyFaces for my application ( who isn't these days? ), so the

why tab pane submits/validates all tabs

2007-06-05 Thread Alexander Wallace
I have a MyFaces portlet with 5 or so tabs, each with its own set of independent (i would hope) fields and submit buttons... However, all elements in all tabs are submitted and validated when either of tabs has a submit button clicked... Is this really how it is supposed to be? I'm using

MyFaces 1.2??

2007-06-05 Thread Julien Martin
Hello, When can we expect a 1.2 version of MyFaces?? Thanks in advance, Julien.

Re: [Trinidad] e.getFacesMessage is no Function

2007-06-05 Thread David Übelacker
hi, im using the tr:inputText with Double values ... but i will strip it down to a small example tomorrow David Matthias Wessendorf schrieb: what values are you binding to your input controls ? looks like a JS issue, when trying to throw JS TrConverterException -M On 6/5/07, David

Re: MyFaces 1.2??

2007-06-05 Thread Matthias Wessendorf
a release will be out soon. the nightly builds are available and the TCK has been passed. -Matthias On 6/5/07, Julien Martin [EMAIL PROTECTED] wrote: Hello, When can we expect a 1.2 version of MyFaces?? Thanks in advance, Julien. -- Matthias Wessendorf further stuff: blog:

Re: problem with s:timedNotifier

2007-06-05 Thread Mike Kienenberger
I don't think you can safely mix different Tomahawk and Tomahawk Sandbox versions. These two jar files are tightly-coupled. Be sure you are using jars built from the same source. This is probably also the reason for the other problems you posted. On 6/4/07, is_maximum [EMAIL PROTECTED] wrote:

Re: why tab pane submits/validates all tabs

2007-06-05 Thread Alexander Wallace
I'm using server side... But still get the undesired result... Any clues? On Jun 5, 2007, at 12:35 PM, Mike Kienenberger wrote: It's been awhile since I used tabs, but I think if you use server-side tab switching, only the current tab will be rendered (and submitted and validated). If you

Re: MyFaces 1.2??

2007-06-05 Thread Bruno Aranda
There are one or two bugs and I am adding most of the stuff added to 1.1 since we created the branch for 1.2 whenever is compatible. So, yes, the release is going to be done pretty soon, Cheers, Bruno On 05/06/07, Matthias Wessendorf [EMAIL PROTECTED] wrote: a release will be out soon. the

Re: JSF and AJAX without custom components?

2007-06-05 Thread Ernst Fastl
Hi Stan, Thank you for the insights to your solution. It sounds very interesting indeed. Hope we'll hear again from you on the list. kind regards Ernst On 6/5/07, Stan Carney [EMAIL PROTECTED] wrote: Thanks for your response Ernst! Yeah, I have looked around at pretty much every JSF AJAX

Re: problem with s:timedNotifier

2007-06-05 Thread is_maximum
Hi Mike but all of them are latest version. both sandbox and tomahawk are 1.1.5 the only myfaces core api is 1.1.6 Mike Kienenberger wrote: I don't think you can safely mix different Tomahawk and Tomahawk Sandbox versions. These two jar files are tightly-coupled. Be sure you are using

Re: PDF component - rendering for download

2007-06-05 Thread Mike Kienenberger
Here's the wiki page showing how to create a PDF download action. http://wiki.apache.org/myfaces/Sending_Files On 6/2/07, Erlend Hamnaberg [EMAIL PROTECTED] wrote: Hello. I need to create a component that can render a PDF file from a given model object. The pdf needs to be written to the

[Trinidad] Input Text Format That Uses A Mask

2007-06-05 Thread William Hoover
Hello all, I have created a Trinidad component that allows input text boxes to have a user defined mask for entries on the client (similar to Atlas MaskEdit http://www.fci.com.br/maskedit/MaskEdit/MaskEdit.aspx). I would like to know what the process/procedure is to commit this component to

Re: problem with s:timedNotifier

2007-06-05 Thread is_maximum
No Mike I'm sure this is not the Seam issue, because other components of sandbox work fine. and Also I studied the source code of the TimedNotifier in decode() method it is written an if statement: if(component instanceof UIInput){ }else{ throw new UnsupportedOperationException(...);

Re: [Tobago] StateChangeListener doesn't work

2007-06-05 Thread Bernd Bohmann
Hello David, if you are paging the sheet the stateChangeListener is only called. Maybe we should define in which cases the stateChangeListener should called. Maybe a selectionListener is a better alternative. Please add a bug report to the jira. Regards Bernd David Steinkopff wrote: Hi

Re: Tobago - myfaces - tomcat java 1.4

2007-06-05 Thread Bernd Bohmann
Hello Leonhard, I think tobago is not configured correctly. Can you check the log files. Please look for a log info message '*** contextInitialized ***' Regards Bernd Leonhard Holzer wrote: Hello everybody, I'm trying to configure a sample application using Spring-Webflow, myfaces, tobago

Re: why tab pane submits/validates all tabs

2007-06-05 Thread Alexander Wallace
I guess you meant server side tab switch... i tried that, but when I use it, the action or action listener methods are never visited when buttons are clicked... it is very messed up... thanks! On Jun 5, 2007, at 1:01 PM, Alexander Wallace wrote: I'm using server side... But still get the

RE: why tab pane submits/validates all tabs

2007-06-05 Thread Jesse Alexander \(KSFD 121\)
well the tabbedPane always renders all components but just displays only one tab. As it uses links it needs the form around the whole and submits it in one piece... hth Alexander -Original Message- From: Alexander Wallace [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 05, 2007 10:26

Re: myfaces fileupload help

2007-06-05 Thread Alexander Wallace
if you are doing this in a portlet, we have a working one... let me know... On Jun 5, 2007, at 2:03 PM, Mike Kienenberger wrote: You will be more likely to get a response if you post your question to the correct list. I've redirected my answer to the MyFaces User mailing list

RE: Exception Handling using JSF/MyFaces and Spring

2007-06-05 Thread bansi
Thanks Kito for the suggestion. I would like to do something like this ... public String createManufacturer() { try{ manufManager.createManufacturer(namsManufacturer); FacesUtils.addInfoMessage(save, Manufacturer, namsManufacturer.getName());

Re: why tab pane submits/validates all tabs

2007-06-05 Thread Alexander Wallace
Ok... i guess that's then the expected behavior, just not what I expected... thanks! On Jun 5, 2007, at 3:37 PM, Jesse Alexander ((KSFD 121)) wrote: well the tabbedPane always renders all components but just displays only one tab. As it uses links it needs the form around the whole and

Re: [Trinidad] Input Text Format That Uses A Mask

2007-06-05 Thread Adam Winer
Roughly speaking, you: - Create an issue on JIRA - Attach a patch - If it's a significant quantity of code, file a CLA http://www.apache.org/licenses/icla.txt It's also generally a good thing to talk over the design first. I'd thing it'd be great if this were part of the client-side validation

ViewTag exception

2007-06-05 Thread marcinhosbt
Hi people. I getting the following error when trying to start the Tomcat 5.5 server. I am using myfaces 1.1.3... org.apache.jasper.JasperException: com/sun/faces/taglib/jsf_core/ViewTag org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:510)

RE: Exception Handling using JSF/MyFaces and Spring

2007-06-05 Thread Kito D. Mann
Bansi, Usually, you would just add a new FacesMessage to the FacesContext like so: facesContext.addMessage(null, new FacesMessage(FacesMessage.SEVERITY_ERROR, Duplicate id found, detailed description)); (I'm assuming that

Re: designing h:dataTable

2007-06-05 Thread sandipp
Hi Thanks All, Actually I do not want to change my h:dataTable now. I want to keep h:dataTable(which displaying second row header). So is it possible with normal html table.Since I tried with it but its not accepting colspan for normal html. Any code sample will be great help for me. Thanks

Re: HtmlRendererUtils - There should always be a submitted value

2007-06-05 Thread Shane Petroff
Mike Kienenberger wrote: I've also had it happen if the page changes and the facelets component tree (or jsp page) is still cached somewhere. I'm almost completely certain it is not a caching issue (although it would be good to know if one could configure Tomcat not to cache anything, ever...)