Re: How to capture the action of clicking back button in the browser toolbar?

2008-02-12 Thread Thomas Chang
Ok, many thanks! No, sorry, but it is well documented on the internet. Google for browser caching and http headers On Feb 12, 2008 10:56 AM, Thomas Chang <[EMAIL PROTECTED]> wrote: > 1) You could force all you pages to never cache, so when they hit back it goes to t

Re: How to capture the action of clicking back button in the browser toolbar?

2008-02-12 Thread Thomas Chang
rowser caching and http headers On Feb 12, 2008 10:56 AM, Thomas Chang <[EMAIL PROTECTED]> wrote: > 1) You could force all you pages to never cache, so when they hit back it goes to the server. This sounds interesting. Maybe have y

Re: How to capture the action of clicking back button in the browser toolbar?

2008-02-12 Thread Thomas Chang
, Thomas Chang <[EMAIL PROTECTED]> wrote: Thanksfor the reply. What I am looking for is: I want to vorbiden the back button activity, i.e., if the user click the back button, it will show error message and the user has to refresh the page and go back to the page where he starts. This m

Re: How to capture the action of clicking back button in the browser toolbar?

2008-02-12 Thread Thomas Chang
re you sure" popup and just remove the listener when the click on a command link or button On Feb 12, 2008 10:11 AM, Thomas Chang <[EMAIL PROTECTED]> wrote: Thanksfor the reply. What I am looking for is: I want to vorbiden the back button activity, i.e., if the user click the bac

Re: How to capture the action of clicking back button in the browser toolbar?

2008-02-12 Thread Thomas Chang
. Thomas Chang <[EMAIL PROTECTED]> schrieb: > In my web-app, after I logout I can even access the page by clciking the back-button in the browser tool bar. Now I want to caoture this action so I can check if the session is valid or not redirect it.This might be happen

How to capture the action of clicking back button in the browser toolbar?

2008-02-12 Thread Thomas Chang
In my web-app, after I logout I can even access the page by clciking the back-button in the browser tool bar. Now I want to caoture this action so I can check if the session is valid or not redirect it. Soeone knows? Cheers Thomas - Jetzt

Re: Where to find all the param-names such as "org.apache.myfaces.ALLOW_JAVASCRIPT"?

2008-02-06 Thread Thomas Chang
uot; http://myfaces.apache.org/download.html cheers, Gerald 2008/2/6 Thomas Chang <[EMAIL PROTECTED]>: > Hi all, > > In the web.xml we see often in the the param-name such as " > org.apache.myfaces.ALLOW_JAVASCRIPT" or "javax.faces.STATE_SAVING_METHOD". I &g

Where to find all the param-names such as "org.apache.myfaces.ALLOW_JAVASCRIPT"?

2008-02-06 Thread Thomas Chang
Hi all, In the web.xml we see often in the the param-name such as " org.apache.myfaces.ALLOW_JAVASCRIPT" or "javax.faces.STATE_SAVING_METHOD". I wonder where can I find all of these param-names? Regards Thomas - Beginnen Sie den Tag mit

[acegi] What's the advantage using ACEGI?

2008-02-05 Thread Thomas Chang
Hi all, Recently I read a lot about using Acegi in JSF. But I can't see any advantage. First, there is little document. Second, using Acegi is not easy. It's quite complecated. Third, using Acegi you can just define user and the role. Seems no chance to define group, sub group etc. A

A question about integration of JSF and Spring

2008-02-03 Thread Thomas Chang
Hi all, I am looking for tutorials, documentations about inegration of JSF/MyFaces and Spring. Could someone help me? Regards Thomas - Ihre erste Baustelle? Wissenswertes für Bastler und Hobby Handwerker.

RE: A question about in web.xml

2007-09-26 Thread Thomas Chang
ithout rendering anything. regards, Thomas Thomas Chang schrieb am 26.09.2007 12:44:12: > Hi all, > > I've create a web application with myfaces and it runs well till now. But > after I fill an own filter in the web.xml, I can't see the GUI anymore. The >

RE: A question about in web.xml

2007-09-26 Thread Thomas Chang
rgin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:10.0pt; font-family:"Times New Roman";} Seems like it interrupts execution of filter chain? Try adding adding chain.doFilter(request, response) on doFilter() method -Original Message- From: Thomas Ch

A question about in web.xml

2007-09-26 Thread Thomas Chang
Hi all, I've create a web application with myfaces and it runs well till now. But after I fill an own filter in the web.xml, I can't see the GUI anymore. The page is just a blank page. Why? The filter I filled into the web.xml looks as follow: ** ... JPAFilter cashregister.persitence.J

Re: AW: A question about "face-config.xml"

2007-03-20 Thread Thomas Chang
e > assistant)... > > ----- Von: Thomas Chang [mailto:[EMAIL PROTECTED] > Gesendet: Dienstag, 20. März 2007 10:19 > An: users@myfaces.apache.org > Betreff: A question about "face-config.xml" > > > Hi all, > > In the "f

A question about "face-config.xml"

2007-03-20 Thread Thomas Chang
Hi all, In the "face-config.xml" there are so many different sections such as , etc.. I wonder where can I get infomation about all these sections in the "face-config.xml"? Regards Thomas - Jetzt Mails schnell in einem Vorschaufenster überflie

Re: Question about redirection on timeout

2007-03-14 Thread Thomas Chang
().invalidate(); lRequest.getSession(true); lContext.getApplication().getNavigationHandler().handleNavigation(lContext, null, "session_expired"); } else { pChain.doFilter(pRequest, pResponse); } } The "session_expired" is the normal jsf outcome. I hop

Re: Question about redirection on timeout

2007-03-13 Thread Thomas Chang
out requests. The next time an invalidated session is requested, a redirect will be done. Regards, Veit Original-Nachricht ---- Datum: Tue, 13 Mar 2007 15:11:45 +0100 (CET) Von: Thomas Chang An: users@myfaces.apache.org CC: Betreff: Question about redirection on timeout > Hi all, >

Question about redirection on timeout

2007-03-13 Thread Thomas Chang
Hi all, I set the timeout in the web.xml and it works find. What I want now is: if the timeout comes, it redirects to the login.xhtml. How can I do that? Seems I have to rewrite the filter? Regards Thomas - Was Sie schon immer wissen wollten ab

Question about index-menu

2007-03-02 Thread Thomas Chang
Hi, My web-Application has an index-menu on the left side. Assumed it has 2 top-levels and each top-lever has some under-level such as following: TL1 ul1-1 ul1-2 TL2 ul2-1 ul2-2 ul2-3 What I want is: at the beginning one can just see the top-level such as: TL1 TL2 But if one click th

RE: problem with t:commandLink

2007-02-17 Thread Thomas Chang
I have a similar porblem as yous. My problem is: I click the link in menu index to open pageA and then click a link in pageA to open a new page, assumed pageNew, in a new window (this pageNew contains no pdf but html). After I close the new window and click the same or other links in menu index

How to call a backing bean method from javascript?

2007-02-15 Thread Thomas Chang
Assumed I will simulate calling a backing bean function in

Re: How to open a new page which has no close button and no tool bar?

2007-02-15 Thread Thomas Chang
AIL PROTECTED]> schrieb: Hi Tomas, i don't think the supression of close button is possible, but for the rest maybe this helps: http://tinyurl.com/22k5gr Regards, Volker 2007/2/15, Thomas Chang : > Hi, > > Could you write it a little bit in detail? :) Or maybe you have an

RE: How to open a new page which has no close button and no tool bar?

2007-02-15 Thread Thomas Chang
-- From: Thomas Chang [mailto:[EMAIL PROTECTED] Sent: Donnerstag, 15. Februar 2007 17:47 To: MyFaces Discussion Subject: How to open a new page which has no close button and no tool bar? Hi all, My code look as follow: I wonder how canI set pr

How to open a new page which has no close button and no tool bar?

2007-02-15 Thread Thomas Chang
Hi all, My code look as follow: I wonder how canI set properties so that the new page "readMessageWindow" has no tool bar such as forwart and backwort and has no close button? - Was ist Glück? Schlafen Fische überhaupt

Problem by using

2007-02-15 Thread Thomas Chang
gards Thomas. Matthias Wessendorf <[EMAIL PROTECTED]> schrieb: Thomas, check [1] for more on it (search for updateActionListener), since you need a *taghandler* -M [1]http://wiki.apache.org/myfaces/Use_Facelets_with_Tomahawk On 2/2/07, Thomas Chang wrote: > Hi Aleksandr, > >

A question about log4j

2007-02-07 Thread Thomas Chang
Hi all, I am not sure if my question is put in a right place. Hope there is someone who can give me some info. I have a file called "mylog.log4j.properties" - not "log4j.properties". Normally I should put this file under WEB-INF and it will be packaged in to the WAR. But I want to put thi

How to set timer to a page?

2007-02-07 Thread Thomas Chang
Hi all, what I want to do is: I click the commandLink in page1.xHtml and it change to page2.xHtml. This page2.xHtml will just stay for several seconds for example and will do logout. How can I do that? Thanks Thomas - Yahoo! Messenger - kost

RE: How to set session-timeout?

2007-02-06 Thread Thomas Chang
(#default#ieooui) } Yes, I have the same issue. Could it be implement in JBOSS? - From: Thomas Chang [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 06, 2007 3:10 AM To: MyFaces Discussion Subject: How to set session-timeout?

How to set session-timeout?

2007-02-06 Thread Thomas Chang
Hi all, I want to set a so-called session timeout to my web application, so that is a user after logon and doesn't do anything for a while, his session will be closed and he has to re-logon to enter the web-application. I wonder this can be configue in server such as BEA-Webcontainer or I have

Re: Error by using

2007-02-02 Thread Thomas Chang
be presented in tomahawk.taglib.xml. Is it? Best regards, Aleksandr Thomas Chang <[EMAIL PROTECTED]> 02.02.2007 12:14Please respond to "MyFaces Discussion" To MyFaces Discussioncc Subject Error by using Hi all, My code look

Error by using

2007-02-02 Thread Thomas Chang
Hi all, My code look as follow: myPage.xHtml *** ... ... But I get following error when try to open myPage.xHtml. What's wrong? Tag Library supports namespace: http://myfaces.apache.org/tomahawk, but no tag was defined for name: updateActionListener Thanks Thomas

RE: FW: A question about showing/opening PDF-file in run-time

2007-01-30 Thread Thomas Chang
facesContext.responseComplete(); Regards, Stan. - From: Thomas Chang [mailto:[EMAIL PROTECTED] Sent: Monday, January 29, 2007 3:48 PM To: MyFaces Discussion Subject: A question about showing/opening PDF-file in run-time Good day everybody, My code look as follow. What I wa

Problem by opening a page in new browser

2007-01-30 Thread Thomas Chang
Hi all, The following is my code. What I wan tto do is: If I click the link, it will open a page in a new browser. It does. But my problem is: after I close the new opened browser, the first page dosen't work. It seems it is waitting for somewhat. What's wrong? Thanks Thomas m

A question about showing/opening PDF-file in run-time

2007-01-29 Thread Thomas Chang
Good day everybody, My code look as follow. What I want to do is: I generate a pdf-file in run-time and put it under a dir in server-side, assumed under "c:\temp\myfile.pdf". If one clicks the commmanlink, the PDF-file will be opened in a new browser window with tool-bar which contains save, pr

Re: A question about file-download

2007-01-29 Thread Thomas Chang
L PROTECTED]> schrieb: See here - http://wiki.apache.org/myfaces/Sending_Files 2007/1/26, Thomas Chang <[EMAIL PROTECTED] >: Hi, My code look as follow. What I want to do is: I generate a file in run-time and put it under a dir in server-side, assumed under "c:\temp\myfile.txt&

Re: A question about file-download

2007-01-26 Thread Thomas Chang
Perfect! Thanks! Adrian Mitev <[EMAIL PROTECTED]> schrieb: See here - http://wiki.apache.org/myfaces/Sending_Files 2007/1/26, Thomas Chang <[EMAIL PROTECTED] >:Hi, My code look as follow. What I want to do is: I generate a file in run-time and put it under a dir in server-s

Exception by using

2007-01-26 Thread Thomas Chang
Hi all, I try to use the as follow. ... But I got exception as follow: Tag Library supports namespace: http://myfaces.apache.org/tomahawk, but no tag was defined for name: inputTextHelp Should I update the tomahawk version? Thanks. Thomas -

How to set the color to the helpText in ?

2007-01-26 Thread Thomas Chang
Hi, How can I set the color to "DD.MM."? ... Thanks Thomas - Besseren Schutz gegen Spam - jetzt bei dem neuen Yahoo! Mail .

A question about file-download

2007-01-26 Thread Thomas Chang
Hi, My code look as follow. What I want to do is: I generate a file in run-time and put it under a dir in server-side, assumed under "c:\temp\myfile.txt". If one clicks the commmanlink, a pop-up dialog for file-download will be shown and one can chose a dir in local to save the file. I wonder i

Re: Again a qQuestion about value="#{......}

2007-01-26 Thread Thomas Chang
tant précis du 01/26/07 09:33, Thomas Chang s'exprimait en ces termes: > How can I set the color of each value? Such as following? > > value="#{myBean.myFirstname} color="#ee" #{myBean.mySurname} > color="#ee"..."/>. > > Thomas >

Again a qQuestion about value="#{......}

2007-01-26 Thread Thomas Chang
ce of + and the fact that it's a single string value with inlined EL expreseeions. Regards, ~ Simon On 1/25/07, Thomas Chang <[EMAIL PROTECTED]> wrote: Hi, Is it possible to put more values in the value="#{...}" such like: Thanks Thomas --

Question about value="#{......}

2007-01-25 Thread Thomas Chang
Hi, Is it possible to put more values in the value="#{...}" such like: Thanks Thomas - NEU: Fragen stellen - Wissen, Meinungen und Erfahrungen teilen. Jetzt auf Yahoo! Clever.

What's the difference between (onclick="submit()" immediate="false") and (onclick="submit()" immediate="true")?

2007-01-24 Thread Thomas Chang
Here is my code ... ... ... ... - Yahoo! 360° – Bloggen und Leute treffen. Erstellen Sie jetzt Ihre eigene Seite – kostenlos!.

Again a question about using "rendererd"

2007-01-24 Thread Thomas Chang
My code looks as follow: ... ... ... ... ... My program should run as follow: If I select the first item from the selectOneMenu (searchCriterien = 0), the inputTextField of "surname" will be shown. If I select the second item from the selectOneMenu (searchCriterien = 1),

RE: Question about "EL Expression Unbalanced:"

2007-01-24 Thread Thomas Chang
You are right! Böhringer Jochen <[EMAIL PROTECTED]> schrieb: It looks like you have forgotten to close the expression with a closing bracket #{myBean.accountNr} Regards Jochen From: Thomas Chang [mailto:[EMAIL PROTECTED] Sent: Wednesday, Janu

RE: Question about "EL Expression Unbalanced:"

2007-01-24 Thread Thomas Chang
Sorry, I take my email back. I find where is the error in my code. Thomas Chang <[EMAIL PROTECTED]> schrieb: Hi, As I start my web I got such an error: "com.sun.facelets.tag.TagAttributeException: /jsp/content/myJSF.xhtml @58,59 value="#{myBean.accountNr" EL

Question about "EL Expression Unbalanced:"

2007-01-24 Thread Thomas Chang
Hi, As I start my web I got such an error: "com.sun.facelets.tag.TagAttributeException: /jsp/content/myJSF.xhtml @58,59 value="#{myBean.accountNr" EL Expression Unbalanced: ... #{myBean.accountNr" WHat does it mean? Thanks Thomas - Jetzt Mails

Re: Question about using "rendered"

2007-01-23 Thread Thomas Chang
Hi Simon, Thanks for the answer. I've solved my problem. I changed the backing bean from "request" to "session" in the faceconfig.xml. It runs. Thanks again. Thomas Simon Kitching <[EMAIL PROTECTED]> schrieb: Thomas Chang wrote: > Hi a

Re: Question about using dataTable

2007-01-23 Thread Thomas Chang
background-color: #ee;} ... Volker Weber <[EMAIL PROTECTED]> schrieb: Hi, you need a prefixing dot '.' at the class definiton. .table-odd-row{background-color: #F1F1F1;} .table-even-row{background-color: #ee;} Regards, Volekr 2007/1/23, Thomas Chang : > Hi Marco, > >

Re: Question about using "rendered"

2007-01-23 Thread Thomas Chang
hLabel to 2. regards.... Arvind --- Thomas Chang wrote: > Hi all, > > I use the rendered inoder to change the showing or > hiding of an inputTextField in run-time. My code > look as follow: > > ... > ... > > value="#{myBean.searchitem2}" size="30

RE: Question about using dataTable

2007-01-23 Thread Thomas Chang
: Hello Thomas, Add the attribute rowClasses to the datatable with two comma-seperated classname for the odd and even-rows. . . With kind regards, Marco --------- From: Thomas Chang [mailto:[EMAIL PROTECTED] Sent: dinsdag 23

Question about using dataTable

2007-01-23 Thread Thomas Chang
Hi, How can I configue the dataTable so the even number and odd-number line has different background color? Thomas - Der neue Internet Explorer 7 in deutscher Ausführung ist da!

Question about using "rendered"

2007-01-23 Thread Thomas Chang
Hi all, I use the rendered inoder to change the showing or hiding of an inputTextField in run-time. My code look as follow: ... ... ... ... public class MyBean{ ... private String searchitem2 = null; ... public String getSearchitem2(){ ... } public void setSearchitem2{ ... } .