Re: Where dose JSP works in JSF request lifecycle?

2006-04-28 Thread 王曾wang_zeng
Thank you Craig for making it clear. -- Wang Zeng

Re: Where dose JSP works in JSF request lifecycle?

2006-04-28 Thread Craig McClanahan
On 4/28/06, 王曾wang_zeng <[EMAIL PROTECTED]> wrote: 2006/4/29, Craig McClanahan <[EMAIL PROTECTED]>: > > You also have to remember that your listener is going to receive > beforePhase() calls for *all* simultaneously active requests, not just the > one page you might be interested in. And, don't

Re: Where dose JSP works in JSF request lifecycle?

2006-04-28 Thread 王曾wang_zeng
2006/4/29, Craig McClanahan <[EMAIL PROTECTED]>: You also have to remember that your listener is going to receive beforePhase() calls for *all* simultaneously active requests, not just the one page you might be interested in. And, don't forget to deregister yourself as a listener when the reque

Re: validWhen condition parsing problem.

2006-04-28 Thread Laurie Harper
Jakub Milkiewicz wrote: Hi I am using struts 1.2.8 and i have a problem with test condition with validwhen validator. Eveything works fine except when i try to compare sth with a string containing values not from iso8859-1 charset .i.e test

RE: Re: complex validation problem.

2006-04-28 Thread Chaudhary, Harsh
You could write a custom validator which would read the value of the documentIdentity. Then, If documentIdentity != "pazport", return true else -- Run your mask validation for passport number -- To do the mask validation, from your class, consult this: http://struts.apache.org/struts-action/stru

Re: Problem with message and Expired session

2006-04-28 Thread Laurie Harper
Juergen Kopper wrote: Hi, Angel Navarro schrieb: Hi, when I say 'the system expired session' is that the user are a lot of time without navigate and explorer expired session, dou you understand me? Yes I understand it and I think this makes the same as the invalidate(), this means it un

Re: Where dose JSP works in JSF request lifecycle?

2006-04-28 Thread Hubert Rabago
On 4/28/06, Craig McClanahan <[EMAIL PROTECTED]> wrote: Sorry for not being clearer. You can indeed register a listener with a declaration -- you get an application wide singleton that has the same lifetime as your application. However, it's also possible to add a phase listener programmatical

Re: complex validation problem.

2006-04-28 Thread Laurie Harper
Jakub Milkiewicz wrote: Hi I have a problem with conditional validation. Currently i am working with struts 1.1 - because of its WSAD support but i am thinking of migrating to the newest one. My problem is that on my jsp page i have 2 radio buttons: I am using struts validator and in my validat

ActionForward and input form

2006-04-28 Thread Pat Slater
I have an method in a class that extends DispatchAction that throws Exception such as: public ActionForward saveMethod(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { //.. try

Re: Where dose JSP works in JSF request lifecycle?

2006-04-28 Thread Craig McClanahan
On 4/28/06, Hubert Rabago <[EMAIL PROTECTED]> wrote: On 4/28/06, Craig McClanahan <[EMAIL PROTECTED]> wrote: > > Yes. The way to do this would be to define a phase listener for Render > Response phase, and do your data collection in the beforePhase event > handler. You also have to remember th

RE: How to use displayTag

2006-04-28 Thread Chaudhary, Harsh
I am also looking for a pagination solution. And you are right, the documentation for DisplayTag is not exactly up to the mark. Another thing I found was it has some issues with its design. That is, by default, it gets the entire object returned from a query and populates a list with it. Now, if yo

How to use displayTag

2006-04-28 Thread makarand sonawane
Hi, I am looking for Tag implementation for Table which can be configured for external sorting and pagination. Which also support Struts( on sorting or Pagination invokes Struts Action). I have came accross displaytag opensource of sourceforge, but they lack clear documentation. It was also n

Re: Where dose JSP works in JSF request lifecycle?

2006-04-28 Thread Hubert Rabago
On 4/28/06, Craig McClanahan <[EMAIL PROTECTED]> wrote: Yes. The way to do this would be to define a phase listener for Render Response phase, and do your data collection in the beforePhase event handler. You also have to remember that your listener is going to receive beforePhase() calls for

Re: Where dose JSP works in JSF request lifecycle?

2006-04-28 Thread Craig McClanahan
On 4/28/06, Bernhard Slominski <[EMAIL PROTECTED]> wrote: > So, how do you make sure that the right dynamic data gets > loaded so that the > page displays the right stuff? That's where Shale comes in > handy. If your > backing bean implements the ViewController interface, then > prerender() wi

Re: Where dose JSP works in JSF request lifecycle?

2006-04-28 Thread Craig McClanahan
On 4/27/06, 王曾wang_zeng <[EMAIL PROTECTED]> wrote: Thank you,Craig. What do you mean by setup action? Is that the kind of action which grabs some data, do some encapsilation work, and stuff them into JSP scopes. Yes, that's what I meant. You say we can archive the goal with shale as well a

Re: [shale][clay] defining onClick() etc for components

2006-04-28 Thread Ryan Wynn
On 4/28/06, Ian.Priest <[EMAIL PROTECTED]> wrote: Try onchange and onselect instead of onChange and onSelect. I think case matters as dictated by the implementation of UISelectOne.

RE: validatewhen --- what's wrong?

2006-04-28 Thread Chaudhary, Harsh
What I can suggest now is for you to get the struts-examples.war file. It is distributed as part of the struts framework, I am not sure whether it is with the bin distribution or the src. But its there. Get that and run it and see if their validwhen works. They have a bunch of ready made example.

Struts-Faces Integration Library Problem

2006-04-28 Thread Juergen Reif
Hello Friens, i have compatibility problems with struts-faces and myfaces greater 1.0.9 or sun jsf 1.1_01. The Problem: when i submit a

RE: validatewhen --- what's wrong?

2006-04-28 Thread Zheng Wen Zhe
I am not sure how to set Apache tomcat server to debug mode. However, there are no exception been thrown out in console during validation execution. Jason -Original Message- From: Chaudhary, Harsh [mailto:[EMAIL PROTECTED] Sent: 28 April 2006 17:19 To: Struts Users Mailing List Subject:

RE: validatewhen --- what's wrong?

2006-04-28 Thread Chaudhary, Harsh
That looks good. Do you see any exception stack related to validation when you submit the form? Harsh. -Original Message- From: Zheng Wen Zhe [mailto:[EMAIL PROTECTED] Sent: Friday, April 28, 2006 11:07 AM To: 'Struts Users Mailing List' Subject: RE: validatewhen --- what's wrong? Thi

RE: validatewhen --- what's wrong?

2006-04-28 Thread Zheng Wen Zhe
This is the validwhen entry in validator-rules.xml * *** -Original Message- From: Chaudhary, Harsh [mailto:[EMAIL PROTECTED] Sent: 28 April 2006 17:09 To: Struts Users Mailing List Subject: RE: validatewhen --- what's wrong? Do you see

RE: validatewhen --- what's wrong?

2006-04-28 Thread Chaudhary, Harsh
Do you see some stack when validation runs for the password field? Also, do you see this entry in your validator-rules.xml file: mailto:[EMAIL PROTECTED] Sent: Friday, April 28, 2006 10:18 AM To: 'Struts Users Mailing List' Subject: RE: validatewhen --- what's wrong? The scenario is valida

RE: validatewhen --- what's wrong?

2006-04-28 Thread Zheng Wen Zhe
The scenario is validation always passes to success page as long as user fills in two fields, no matter what you are put in. So where could be the issue??? Jason -Original Message- From: Zheng Wen Zhe Sent: 28 April 2006 16:02 To: 'Struts Users Mailing List' Subject: RE: validatewhen ---

RE: validatewhen --- what's wrong?

2006-04-28 Thread Zheng Wen Zhe
The validation is definitely called. If I submit the form with login field empty, alert is popping up. So I am sure is somewhere wrong with the validwhen.. But, where?? Jason -Original Message- From: Chaudhary, Harsh [mailto:[EMAIL PROTECTED] Sent: 28 April 2006 16:04 To: Struts Users Ma

RE: validatewhen --- what's wrong?

2006-04-28 Thread Chaudhary, Harsh
Are you sure that validation is being called? For example, what happens when you submit the form with nothin in the login field (which is required)? Harsh. -Original Message- From: Zheng Wen Zhe [mailto:[EMAIL PROTECTED] Sent: Friday, April 28, 2006 3:24 AM To: 'Struts Users Mailing List'

RE: Accessing Validation Errors in an Action

2006-04-28 Thread Chaudhary, Harsh
Try this: In your Action class, use this method call: getErrors(javax.servlet.http.HttpServletRequest request) The javadoc for this method is at: http://struts.apache.org/struts-doc-1.2.7/api/org/apache/struts/action/A ction.html Harsh. -Original Message- From: Lixin Chu [mailto:[EMAIL

RE: [shale][clay] defining onClick() etc for components - fixed

2006-04-28 Thread Ian.Priest
Just noticed the case is wrong on the attributes. Wrong: Right: Now renders as ... mailto:[EMAIL PROTECTED] Sent: 28 April 2006 15:13 To: Struts Users Mailing List Subject: [shale][clay] defining onClick() etc for components Hi all, I'm using clay full html and i need to call a javascrip

[shale][clay] defining onClick() etc for components

2006-04-28 Thread Ian.Priest
Hi all, I'm using clay full html and i need to call a javascript function from a component. The component is defined in clay-config as

Re: StrutsTestCases

2006-04-28 Thread Chaitanya Parkhi
hi ichy,i tried your suggestion but still prob is still ther. On 4/28/06, ichy <[EMAIL PROTECTED]> wrote: > > hi Chaitanya > > when i use strutstestcase, i usually specify config file in setUp() as > > public void setUp() throws Exception { >super.setUp(); >setConfigFile("/WEB-INF/config/

Re: StrutsTestCases

2006-04-28 Thread ichy
hi Chaitanya when i use strutstestcase, i usually specify config file in setUp() as public void setUp() throws Exception { super.setUp(); setConfigFile("/WEB-INF/config/struts-config.xml"); } according to javadoc, the path can be either an absolute path like you set or a relative pa

AW: *****POSSIBLE SPAM***** Re: html:checkbox entries are not disappering

2006-04-28 Thread Hans-Peter Petek
Hi, this is correct, but how do I know which objects set to null and which not? I have an ArrayList with Objects (Users), one parameter of the user is "assigned" (of bool). With the list I can assign some of the users and can store this (submit the form). The index of the parameter is counted fro

AW: Where dose JSP works in JSF request lifecycle?

2006-04-28 Thread Bernhard Slominski
> So, how do you make sure that the right dynamic data gets > loaded so that the > page displays the right stuff? That's where Shale comes in > handy. If your > backing bean implements the ViewController interface, then > prerender() will > get called just before the JSP page is invoked. This

RE: validatewhen --- what's wrong?

2006-04-28 Thread Zheng Wen Zhe
Well, basically, I wanna the condition to be true only when user gives key word 'password' to the password field. And I tried this (*this* == 'password') The validwhen still always is true no matter what is given.. -Original Message- From: Jakub Milkiewicz [mailto:[EMAIL PROTECTED] Sent

Re: jsp / html in struts by eclipse

2006-04-28 Thread Vinit Sharma
Contact Eclipse support center :-D Try reinstalling eclipse... On 4/28/06, Chaitanya Parkhi <[EMAIL PROTECTED]> wrote: hi friends , i m using eclipse for my struts application,i m trying to create a JSP / HTML file in my project , but whenever i select respective option a progress box is comin

jsp / html in struts by eclipse

2006-04-28 Thread Chaitanya Parkhi
hi friends , i m using eclipse for my struts application,i m trying to create a JSP / HTML file in my project , but whenever i select respective option a progress box is coming as it should,but it stucks ther & doesnt show any progress atall, to come ot of it i hav 2 close whole project & again st

Re: StrutsTestCases

2006-04-28 Thread Chaitanya Parkhi
hi Ed,ya this is the same problem i m trying to solve. i hav removed that addtional slash before "D:" but still its not working, & also i i forgot to mention in my first mail that i m getting follwing warnings on my consol window: log4j:WARN No appenders could be found for logger ( servletunit.s