download file breaks lifecycle

2006-12-29 Thread ::SammyRulez::
Hello and happy new year Im' using this action method to generate dynamicaly pdf file and send them to the browser public String generaContratto(){ FacesContext facesContext = FacesContext.getCurrentInstance(); HttpServletResponse response = (HttpServletResponse)

Re: Problem with immediate=true button

2006-12-29 Thread Adrian Mitev
It works like a charm now. 2006/12/28, Adrian Mitev [EMAIL PROTECTED]: Thank you Gary. Now i'm returning null for redisplaying the page. 2006/12/28, Gary VanMatre [EMAIL PROTECTED]: From: Adrian Mitev [EMAIL PROTECTED] Yes. I've done it thisway already but it seems hack to me. You might

Re: [Tobago] tc:selectOneChoice in sheet not firing valuechanged event

2006-12-29 Thread Volker Weber
Just checked this, and found no problem, the valueChangeListener Method is invoked as it should. If you still have problems with this, please post the related sources (jsp and java) with further info. regards, Volker 2006/12/23, Volker Weber [EMAIL PROTECTED]: Hi, please put a [Tobago] in

Multiple Field Validations

2006-12-29 Thread Job de Noo
Hi all, i have to make a Validator that is generic in use and can validate more then one field for example a zip-code validator that checks if the zipcode is correct and if the street and housnumber are within the range of the zipcode. I read about the options there are to validate multiple

Re: download file breaks lifecycle

2006-12-29 Thread David Chandler
Simply add these two lines of code before the call to responseComplete(): // Save serialized view or else after clicking on the export button, user will have to click TWICE to invoke another action // See http://swforum.sun.com/jive/thread.jspa?threadID=63566

RE: tobago tab control

2006-12-29 Thread Wong, Emmanuel \(Sam\)
Hi: When I am on the 2nd tab with link command and click the link, it will redisplay on the 1st tab. No matter you were working on the other tab, it will display the 1st tab. Do you know how to redisplay it back to the current tab that I am working on with the link command? Am I doing

RE: Problems with Datascroller on Top of Datatable with t:buffer

2006-12-29 Thread kiran.gutta
Thanks Jeff. I tried the option given by you. If I display the scroller on top of data table, scroller works. I have to display the scroller in the bottom of the data table as well. If I put another scroller after t:dataTable, scroller is coming. ] However, the top scroller stops working.

Re: Problems with Datascroller on Top of Datatable with t:buffer

2006-12-29 Thread Jeff Bischoff
Kiran, Try putting the entire set of datascrollers and the dataTable in one panelGroup. Make sure the various scrollers have different id's. I will paste some working code that I have for identical datascrollers above and below the dataTable. See below. Regards, Jeff Bischoff Kenneth L

Re: Multiple Field Validations

2006-12-29 Thread David Chandler
You can use one validator to target multiple components as long as the component IDs you assign are distinct. There should be no problem using a form-level validator to reach of these fields with findComponent(id). h:inputText id=address1street.../ h:inputText id=address1zip.../ h:inputText

Re: tobago tab control

2006-12-29 Thread Volker Weber
Hi, this works if you add a state attribute to the tabgroup tag. the expression for state should point to a Integer value. Regards, volker 2006/12/29, Wong, Emmanuel (Sam) [EMAIL PROTECTED]: Hi: When I am on the 2nd tab with link command and click the link, it will redisplay on the

RE: [Tobago] tc:selectOneChoice in sheet not firing valuechanged event

2006-12-29 Thread Wong, Emmanuel \(Sam\)
Hi: I would like to have a select dropdown box to display what I selected from the dropdown box value. Do you know what is wrong with my code not taking the valueChangeListener or what other alternative to display associate selected value from the dropdown list. My purpose is doing the

Inline validation method

2006-12-29 Thread lightbulb432
The text below is a modified excerpt from the IBM article about JSF validation...I'm wondering what exactly they're trying to say. What do they mean by the value [has] to be generically evaluated with a component association in lieu of directly inspecting the local bean properties...what's the

Re: Problem with immediate=true button

2006-12-29 Thread Jeff Bischoff
Adrian Mitev wrote: It works like a charm now. If anyone has researched and can confirm that this is *required by the spec* to work, then please update the wiki page [1] with that information. As you can see, the third section of this wiki discusses this solution, but in a very skeptical

Re: download file breaks lifecycle

2006-12-29 Thread Jeff Bischoff
David, Thanks for the hint. Though I didn't ask the question, I have seen this behavior on one or two of my pages. Now I'll have a chance to fix it perhaps. Hmm... I went to the link your code points to, but there was really no mention of *why* this solution works. Do you know who

Re: Failing to take control of navigation

2006-12-29 Thread Calvin Hill
Alright, I need to clear up issue with what I wrote below. First, it is correct that Shale remoting will get you to a function on a managed bean from a get request. Though, since it was not part of the lifecycle, there will not be a response and you will end up with a blank page (at

Re: Multiple Field Validations

2006-12-29 Thread Job de Noo
Thanks for your reaction, i know what you mean, but that doesn't solve my problem(sry i just came from a old year party so i'm not tottaly sober, but will try to explain ) on 1 page i have two adresses, one normal street adres and 1 as we call it in the netherlands a postbus adres ,they can't

Re: Multiple Field Validations

2006-12-29 Thread David Chandler
So the problem is that i want to write a genric validator that doesn't know of the id's you might want to use within your page, but only the meaning of those id, so u can have multiple zipcode checks within the same page without altering your validator. Ah, I see. Since the address validator

Re: Multiple Field Validations

2006-12-29 Thread Mike Kienenberger
Hi. I recommend taking a look at sandbox:compareToValidator to understand how to retrieve the values of your input components. The sandbox:compareToValidator component compares values on two different components. You would need to expand it to handle however many additional fields you needed,

selectOneCountry too big

2006-12-29 Thread Dave
t:selectOneCountry .../ Some country names are long, and as a result the select box is too wide. I like to limit its size to 20 characters. I tried the property maxLength=20, but it did not work. I tried style=width:100px, it did not work either. Any help appreciated.

Re: selectOneCountry too big

2006-12-29 Thread ::SammyRulez::
I use a css class like this .fixed_select{ width:100; } and it works 2006/12/30, Dave [EMAIL PROTECTED]: t:selectOneCountry .../ Some country names are long, and as a result the select box is too wide. I like to limit its size to 20 characters. I tried the property maxLength=20, but it did