Re: [Tobago] - Looking for usage examples for progress bar

2006-12-21 Thread Volker Weber
This may be the problem, in this case the changes to the UIComponents value take only effect if they are done between the restoreView and the renderResponse phases! any changes outside this lifecircle are just discarded, because the binding component is newly created at restoreView and set into

AW: Re: AW: Source of the sandbox examples

2006-12-21 Thread Worm, Danny
Hi all, I try to play around with the dialog to get a feeling of the problem. Werner ask for the styleclass, here it is. .dojoDialog { background : lightyellow; border : 1px solid #999; -moz-border-radius : 5px; padding : 4px; /*positioning outside of the visible scope to

File Upload with Tobago

2006-12-21 Thread yazid
Hi all; I'm newbie in MyFaces; Can any one tell me how to use FileUpload in Tobago... Thanks -- View this message in context: http://www.nabble.com/File-Upload-with-Tobago-tf2864405.html#a8004651 Sent from the MyFaces - Users mailing list archive at Nabble.com.

RE: from-outcome value

2006-12-21 Thread Beelen, Marco
Anil, There is no way you can specify the name of an outcome just once and use a reference to it both in the java-code of your managed-bean and the navigation-rules in your faces-config.xml. Since your faces-config.xml doesn't get build or compile, there is no way to garantee that the values

Re: file download component for JSF

2006-12-21 Thread yazid
Hi all; Can any one tell me how to upload a file in memory with Tobago... Thanks; Scott O wrote: Ying, Tobago, Tomahawk, and Trinidad do. But MyFaces itself does not at the moment. We're currently discussing that right now on the dev list being that we've basically re-invented the

Why does JSF submit through JavaScript?

2006-12-21 Thread lightbulb432
Why does JSF always use JavaScript to submit a form rather than through the regular method of form submission? Is your entire JSF web application useless for clients that have JavaScript turned off? -- View this message in context:

Re: [Tobago] Problem with DateTimeConverter

2006-12-21 Thread Volker Weber
Hi Helmut, this is exact the expectet behavior. The jsf spec says the default timezone for converter is GMT, a date.toString() uses the systemDefault timezone, this makes the difference. see this thread for more: http://www.mail-archive.com/users%40myfaces.apache.org/msg21412.html Regards,

Re: Why does JSF submit through JavaScript?

2006-12-21 Thread Craig McClanahan
On 12/21/06, lightbulb432 [EMAIL PROTECTED] wrote: Why does JSF always use JavaScript to submit a form rather than through the regular method of form submission? That only happens for a commandLink component (i.e. a hyperlink that is to submit a form). If you use a commandButton component,

Re: Why does JSF submit through JavaScript?

2006-12-21 Thread Werner Punz
Craig McClanahan schrieb: Only for hyperlinks. If you can describe a way to have a hyperlink submit a form, without Javascript being enabled, we would love to hear it. ... ah that is easy... rewrite the browser engines :-D

Re: commandLink problems - once again - this time with selectOneMenu!

2006-12-21 Thread David Delbecq
En l'instant précis du 12/21/06 00:00, Behrang Saeedzadeh s'exprimait dans toute sa noblesse: That would make the items remain in memory far longer than they are actually needed to be. I was hoping to avoid the session. There is also the application scope, it has some usage for handling

Re: AW: Re: AW: Source of the sandbox examples

2006-12-21 Thread Werner Punz
Worm, Danny schrieb: Hi all, I try to play around with the dialog to get a feeling of the problem. Werner ask for the styleclass, here it is. .dojoDialog { background : lightyellow; border : 1px solid #999; -moz-border-radius : 5px; padding : 4px; /*positioning

Attribute for

2006-12-21 Thread Josué Alcalde González
I am extending HtmlOutputLabel adding a * when its for component is required. I am almost successful but I am having a problem. The * is not rendered the first time the page is rendered. The problem, is that findComponent does not find the for component using findComponent the first time:

Attribute for

2006-12-21 Thread Josué Alcalde González
I am extending HtmlOutputLabel adding a * when its for component is required. I am almost successful but I am having a problem. The * is not rendered the first time the page is rendered. The problem, is that findComponent does not find the for component using findComponent the first time: [...]

Re: Attribute for

2006-12-21 Thread David Delbecq
When exactly do you call getInputFor()? During rendering process? (encodeBegin()/encondEnd()) according to specs, findComponent will not work properly if your Label is not yet attached to it's parent NamingContainer. (form in you case), so i would suggest to check for getInputFor only in renderer.

Re: Attribute for

2006-12-21 Thread Josué Alcalde González
El jue, 21-12-2006 a las 11:54 +0100, David Delbecq escribió: When exactly do you call getInputFor()? During rendering process? (encodeBegin()/encondEnd()) according to specs, findComponent will not work properly if your Label is not yet attached to it's parent NamingContainer. (form in you

Re: Attribute for

2006-12-21 Thread David Delbecq
Ok, then just check component has a parent in your getinputfor, just to be sure. If the parent is correct, maybe, i said maybe, it's because you are using jsp (if am not wrong, in jsp, during first rendering, the parsing of jsp and rendering of component is done at the same time, that mean you

Re: Why does JSF submit through JavaScript?

2006-12-21 Thread Renzo Tomaselli
Craig McClanahan wrote: On 12/21/06, lightbulb432 [EMAIL PROTECTED] wrote: Why does JSF always use _javascript_ to submit a form rather than through the regular method of form submission? That only happens for a commandLink component (i.e. a hyperlink that is to submit a form). If

Re: Attribute for

2006-12-21 Thread Volker Weber
Hi, are using jsp (if am not wrong, in jsp, during first rendering, the parsing of jsp and rendering of component is done at the same time, that mean you render your label when inputtext does not yet exist, thought i thats exact the problem. in jsf 1.2 the component tree is created and

Re: Attribute for

2006-12-21 Thread Mario Ivankovits
Hi! in jsf 1.2 the component tree is created and rendered during reading the jsp. should have been jsf 1.2 Ciao, Mario

Re: Attribute for

2006-12-21 Thread Josué Alcalde González
El jue, 21-12-2006 a las 12:48 +0100, Mario Ivankovits escribió: Hi! in jsf 1.2 the component tree is created and rendered during reading the jsp. should have been jsf 1.2 Ciao, Mario Is there any solution? I can use t:dataScroller before t:dataTable and there are no problems with

AW: Re: [Tobago] Problem with DateTimeConverter

2006-12-21 Thread H. Swaczinna
Hello Volker, ok, thank you. I thought, the converter uses the default timezone, as toString() does, and not GMT by default. This issue seems to be a reason for many discussions... Regards Helmut Hi Helmut, this is exact the expectet behavior. The jsf spec says the default timezone for

Re: Attribute for

2006-12-21 Thread Mario Ivankovits
Hi! Is there any solution? I can use t:dataScroller before t:dataTable and there are no problems with the for element. Hmmm ... did you put your dataScroller/dataTable combination within an panelGroup, as far as I remember that helped. Though, don't you have any problems with the

Re: Attribute for

2006-12-21 Thread David Delbecq
2 solutions* 1) prefer facelets over jsp (not always possible, depends on your requirements, but faster, stronger, :p) 2) put your label after your input 3) surround your pair label/outputtext with a component that renders it's children itself during the encodeEnd() (someone suggested panelgroup)

Re: Attribute for

2006-12-21 Thread Josué Alcalde González
El jue, 21-12-2006 a las 13:25 +0100, Mario Ivankovits escribió: Hi! Is there any solution? I can use t:dataScroller before t:dataTable and there are no problems with the for element. Hmmm ... did you put your dataScroller/dataTable combination within an panelGroup, as far as I

RE: Javascript Alert with Japanese characters (UTF-8)

2006-12-21 Thread Anil Kommareddi
You need escape=false so that the ampersand is not escaped and the unicode characters are rendered properly. I am assuming you set the content-type charset to utf-8. Place the same outputText on a page and view the source to see why it is not rendering correctly. _ From: [EMAIL

RE: from-outcome value

2006-12-21 Thread Anil Kommareddi
Thanks Marco, that is exactly what we have been doing. Here is one way that I thought of doing if anyone else is interested: Define the outcomes in a properties file and use an ANT filterset to use this properties file to replace the outcomes in the faces-config.xml during the build process.

Re: show image error icon with h:messages component

2006-12-21 Thread Jonathan Harley
Jorge Vásquez wrote: Regards to all, Is there a way to include an icon within the h:messages component? MyFaces renders h:messages in HTML as an ul list, so you can apply a CSS style to this, for example: form ul { list-style-image: url(graphics/messageIcon.gif); } This says that each

Re: from-outcome value

2006-12-21 Thread David Delbecq
Hi, This all looks to me a bit over-engineering and useless round cycling (defining constants string reference that resolve to constant string reference...) Why could this pack of things: from-outcome@OUTCOME.CONTINUE@/from-outcome public String someAction(){ ... return

Re: from-outcome value

2006-12-21 Thread Grigoras Cristinel
Hi, A better solution is to use custom navigation handler and the outcome string will make the name of view. Like '/somepoz/somefile.jsp'. In navigation handler you can check if the outcome string begin with / an set the view. Is some example in wiki about navigation handler. Cristi David

AW: Re: AW: Re: AW: Source of the sandbox examples

2006-12-21 Thread Worm, Danny
Hi all, I´ve now localized the problem. These lines make the problem visible to you. Please call these lines from IE and after that from the Firefox/Mozilla. ?xml version=1.0 encoding=UTF-8 ? !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Strict//EN xhtml1-strict.dtd html

RE: from-outcome value

2006-12-21 Thread Anil Kommareddi
Thanks Cristi, will try that approach and report back. _ From: Grigoras Cristinel [mailto:[EMAIL PROTECTED] Sent: Thursday, December 21, 2006 9:29 AM To: MyFaces Discussion Subject: Re: from-outcome value Hi, A better solution is to use custom navigation handler and the outcome

RE: from-outcome value

2006-12-21 Thread Anil Kommareddi
Hi, I agree this is a bit of overengineering, but when working with developers whose first language is not english, typos or misspellings are a part of the cycle and this is one way to minimize them. We are working on a largish ERP project with over 200 navigation rules and can use whatever help

refreshing dataTable on faces error messages

2006-12-21 Thread Ingo Düppe
Hi, I figured out that my t:dataTable will not be refreshed respectively rerendered if I define a FacesMessage with severity.error within an action method. In my case the user selected a record of a table that had been deleted in the mean time. So the action method creates an error message.

Re: Attribute for

2006-12-21 Thread Jeff Bischoff
Mario, This buffer workaround is not needed, when using the panelGroup workaround (or any container which renders its children). I have had absolutely no problems with datascrollers both above and below the dataTable, using panelGroup. :) Regards, Jeff Bischoff Kenneth L Kurz Associates,

Bind a custom component with an action method of a model bean of the component

2006-12-21 Thread Madhav Bhargava
Hi All, I am in the process of developing a custom component. The component will have the following: 1. Name of the currently logged in user - HtmlOutputText 2. Drop down containing all the roles that the user plays - HtmlSelectOneMenu 3. Command button along with the drop

Re: from-outcome value

2006-12-21 Thread David Delbecq
Sorry, but there are 2 places where typos can happen the .xml file the action method in you case, you have moved the string from action to a property file. Typos in your case can happen in 3 places the .xml (typo in @key@) the property file (bad key name) the helper class that call an entry in

MyFaces and no cache

2006-12-21 Thread Thierry Templier
Hello, Is it possible to configure MyFaces in order to use, for each request, the no cache HTTP headers (expires, pragma and cache-control)? Thanks for your answer. Thierry Take a look at my blog: http://jroller.com/page/Templth/ (old: http://templth.blogspot.com/)

Re: from-outcome value

2006-12-21 Thread Jeff Bischoff
David Delbecq wrote: example design public class OutcomeConstants { public static final String OUTCOME_CONTINUE=outcome.continue; } public String someAction(){ ... return OutcomeConstants.OUTCOME_CONTINUE; } navigation rule: from-outcomeoutcome.continue/from-outcome We

Migration to 1.1.4 problem

2006-12-21 Thread Cote.Mark
Hi everyone, We are having difficulties migrating to 1.1.4 version of myFaces. We have gone through the web site and the wiki, to no avail. We are not sure which jars are important? We have found references to the following jars throughout: Sandbox.jar Tomahawk-1.1.5-SNAPSHOT.jar

Re: from-outcome value

2006-12-21 Thread Anil Kommareddi
Thanks David. We already use it this way, but the problem is that there is no check on the XML file and that is where most of the problems occur. That is where my original thought started from. -Original Message- From: David Delbecq [mailto:[EMAIL PROTECTED] Sent: Thursday, December

Re: from-outcome value

2006-12-21 Thread Anil Kommareddi
Hmm you'd think some tool could do that for you... Really!! Anyways, it appears we've reached the end of this discussion. Thanks for all your responses folks. -Original Message- From: Jeff Bischoff [mailto:[EMAIL PROTECTED] Sent: Thursday, December 21, 2006 11:16 AM To: MyFaces

IllegalArgumentException while integrating Tomahawk 1.1.3 in JSF 1.1

2006-12-21 Thread terro
Hello! I had a JSF 1.1 App running (well :) with the Sun implementation. Now I would like to use tree2 components, and therefore I put the tomahawk-1.1.3.jar into the WEB-INF\lib folder of my project, added the corresponding entries in the web.xml and in the corresponding jsp. Now, after

Re: Migration to 1.1.4 problem

2006-12-21 Thread Jeff Bischoff
Hmm what are you migrating from, another JSF implementation or non-JSF framework? And are you interested in the Myfaces JSF implementation, the Tomahawk components library, or both? I think it will be much simpler for you to take a look at the example applications. Sadly, they are not part of

Tobago with ajax4jsf

2006-12-21 Thread yazid
Hi all; Is tobaco (1.0.9) compatible with ajax4jsf... I've got a hadache figuring out how to integrate them in the same war cheers -- View this message in context: http://www.nabble.com/Tobago-with-ajax4jsf-tf2866793.html#a8012026 Sent from the MyFaces - Users mailing list archive at

AW: Re: AW: Source of the sandbox examples

2006-12-21 Thread Worm, Danny
I have to append. The JS errors result of an incorrect dom model in firefox. All children's of s:modalDialog weren't in the document model. The firefox dom inspector couldn´t find these tree-nodes. Is this an bug of firefox regarding xhtml,dom? Ok I´m perplexed. Thanks DaWorm

RE: Migration to 1.1.4 problem

2006-12-21 Thread Cote.Mark
Jeff, thanks for your response. We are migrating from version 1.0.10. (It was impossible to migrate before this) I simply replaced myfaces-api-1.1.4.jar with myfaces-api-1.1.5-SNAPSHOT.jar and myfaces-impl-1.1.4.jar with myfaces-impl-1.1.5-SNAPSHOT.jar and it worked. The only thing which

Re: IllegalArgumentException while integrating Tomahawk 1.1.3 in JSF 1.1

2006-12-21 Thread terro
ok, found the problem: MyFacesExtensionsFilter didn't had a matching filter defined with the same name. I used the name extensionsFilter BTW after correcting I realise that one has to put the commons-fileupload.jar into the lib but this produces a lot of warnings! like: WARNING: Invalid tag

Re: Submitting a form on t:panelTabbedPane tab switching

2006-12-21 Thread mjovanov
Hi I have the same problem: my form fields are spread out across multiple tabs and I would like to be able to submit them all when the submit button is pressed. I too have the panelTabbedPane nested inside a form tag and a Submit button outside of the panelTabbedPane but inside the form tag.

Re: Why does JSF submit through JavaScript?

2006-12-21 Thread Sawan Vithlani
Apply this patch and the commandLink issue is resolved too, works fine without JavaScript (you have to set the ALLOW_JAVASCRIPT directive to false in web.xml). Be aware that this goes against the 1.1 spec. It's a boon for having compliant web pages though

Re: MyFaces and no cache

2006-12-21 Thread Titi Wangsa
AFAIK, writing your own filter solves this. works for me.

RE: MyFaces and no cache

2006-12-21 Thread Anil Kommareddi
This works well.. http://turbomanage.wordpress.com/2006/08/08/disable-browser-caching-in-jsf/ -Original Message- From: Thierry Templier [mailto:[EMAIL PROTECTED] Sent: Thursday, December 21, 2006 11:00 AM To: MyFaces Discussion Subject: MyFaces and no cache Hello, Is it possible to

EditableValueHolder immediate=true?

2006-12-21 Thread lightbulb432
When would you set immediate to true for an EditableValueHolder? I don't see the purpose. After all, if it happens in Apply Request Values versus Process Validations, what's the difference in terms of functionality? When should a developer consider setting immediate to true in these cases? --