[Tobago] tc:sheet and c:forEach

2007-03-18 Thread Michał 'Gandalf' Stawicki
Hello, is there a way to put c:forEach inside tc:sheet and iterate over var attribute of tc:sheet? I have tried doing similar code as in forEach example, but with no success regards, michael -- [EMAIL PROTECTED] http://stawicki.jasliska.pl GG: 369 JID: [EMAIL PROTECTED]

Re: [Tobago] tc:sheet and c:forEach

2007-03-18 Thread Volker Weber
Hi, no this is not possible. The lifetime of the sheets var attribute is out of the c:foreach. What did you want to archive? Can you give an example? Regards, Volker 2007/3/18, Michał 'Gandalf' Stawicki [EMAIL PROTECTED]: Hello, is there a way to put c:forEach inside tc:sheet and iterate

Re: [Tobago] Problem with 1.0.11 build

2007-03-18 Thread Volker Weber
Hi, 1.0-11-SNAPSHOT runns well with my app, without any changes on tree. Maybe you need to do an cleanCache on the IE, such a problem could occure with an old js file in cache and new html code in response. Regards, Volker 2007/3/18, yazid [EMAIL PROTECTED]: Hi al; I've an application

Re: Component coding questions

2007-03-18 Thread Volker Weber
Hi, you should not use viewRoot.createUniqueId() for your components, this is the same as not assigning ids. The rest seems ok for me. You still have problems? Regards, Volker 2007/3/17, Marko Asplund [EMAIL PROTECTED]: Volker Weber wrote: My current problems are related to container

Re: [Tobago] tc:sheet and c:forEach

2007-03-18 Thread Michał 'Gandalf' Stawicki
Hello, Simple way: I have a List of objects, which I need to display in tc:sheet, and every Object has List of Objects2 which I need to display in one of the columns. Every Object2 has a ListSelectItems and String Seleced properties. My use case: I have a sheet which I use to display

Tomcat6 Validation

2007-03-18 Thread Elisa Budelli
Hello, I am using MyFaces version 1.1.5 and Tomcat 6. Everything seems to work fine except for Validation. In a Backing bean i have the following method: public void validateLogin(FacesContext context, UIComponent toValidate, Object value) throws ValidatorException{ .. } int the

Re: CompatibilityMatrix

2007-03-18 Thread Marcus Beyer
Am 15.03.2007 um 12:27 schrieb Marcus Beyer: after trying wildest combinations of MyFaces and Tomahawk, I finally discovered http://wiki.apache.org/myfaces/ CompatibilityMatrix. My question: why on earth is this important page not linked from http://myfaces.apache.org/tomahawk/ after the

Re: Tomcat6 Validation

2007-03-18 Thread Saul Qunming Yuan
Hi, I doubt the way you use the validator is correct. You can use a validator attribute inside the h:inputText tag or use f:validator as a nested tag. i.e., h:inputText type=text id=login value=#{UserBean.loginname} size=15 validator=#{UserBean.validateLogin} required=true / or,

Re: How to load an application scoped bean on application startup

2007-03-18 Thread Simon Kitching
H. Swaczinna wrote: Hello, I want to load an application scoped bean immidiately when the applcation is loaded (deployed), not when it is first accessed. In general, I can create the bean in a ServletContextListener: public void contextInitialized(ServletContextEvent event) {

Re: FacesContext.addMessage in an action method

2007-03-18 Thread Simon Kitching
[EMAIL PROTECTED] wrote: I have seemingly tried everything. I put forceId on the t:inputText (which sets the id properly); I tried a validator and calling addMessage() from within the validator method, which although it is bulky it did work and the error message appeared; page-level validation

Re: FacesContext.addMessage in an action method

2007-03-18 Thread SOSELLA
Simon, Yes. I am using redirect / in my navigation rules. What is the behavior of JSF if you return null? Does it stay on that page? Thanks for the tip. This might be the explanation I have been seeking. - Original Message - From: Simon Kitching [EMAIL PROTECTED] Date: Sunday,

Re: FacesContext.addMessage in an action method

2007-03-18 Thread Simon Lessard
Yes, returning null reloads the same page. On 3/18/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Simon, Yes. I am using redirect / in my navigation rules. What is the behavior of JSF if you return null? Does it stay on that page? Thanks for the tip. This might be the explanation I have

Re: setting default value for input field?

2007-03-18 Thread noah
I realize this thread is a week old, but I'd like to add that I've also noticed the lack of some sort of suggested value. In our case, we bind UIInputs directly to business object properties, but sometimes want to suggest a context sensitive value or partially fill it in. For example, in a

Re: setting default value for input field?

2007-03-18 Thread
Hi Noah, Why is it hard for the back-end logic to set these defaults when it constructs the unpersisted Reservation instance? I'm not sure I followed that part, it's something we do all the time in our system. cheers, Daniel.

Re: setting default value for input field?

2007-03-18 Thread Simon Kitching
[EMAIL PROTECTED] wrote: Hi Noah, Why is it hard for the back-end logic to set these defaults when it constructs the unpersisted Reservation instance? I'm not sure I followed that part, it's something we do all the time in our system. I guess it depends. In some cases it is the *business

Re: setting default value for input field?

2007-03-18 Thread Simon Kitching
Simon Kitching wrote: Maybe you could write a custom tag that sets defaults, eg s:setDefault value=default-value/ Another option might be to write a custom ValueBinding implementation, that handles strings of form #{someexpr :: defaultexpr} It just needs to look for ::; if not found

Re: Fwd: [Tobago] How to export data to excel sheet in Tobago

2007-03-18 Thread Vinay Konanki
Hi Bernd, Thank you very much, now im able to export to excel. When is open online its opening with MS Excel but when i saves the file to hard disk it is saving as filename.faces instead filename.xls, as there is no xls extension the file is not opening with MS Excel. Controller file includes