Facelet and JSF View handler together

2006-03-25 Thread Murat Hazer
Hi,   I am on a project which is not using facelets right now and i want to migrate the project to facelets in time. So i wanna ask that is it possible that using myfaces JSPViewHandler and FaceletViewHandler together? (some pages Facelets and others are JSP).  
-- Murat HAZERElektrik-Elektronik Mühendisi - Electrical-Electronics EngineerBlog URL: http://www.projedunyasi.orgYahoo Group: 
http://groups.yahoo.com/group/malatyafenlisesi97/


RE: JSF and Tiles

2006-03-25 Thread Igor Marakov
You aren't alone :) 

After initial JSF learning curve, the only serious issue I had so far with
tiles/JSF combo is inability to use Tomahawk aliasBeans when including tiles
in the loop. But that can be circumvented by writing tile controller.
Other than that, overriding TilesViewHandler lets you hook into view
creation and rendering thus providing combined benefit of "tiled" layout and
basis for development of the functionality similar to Shale's
ViewController.

What is also nice here is the fact that Tiles itself have no learning curve
to speak of. Attentive reading of "advanced-tiles" PDF file and looking at
example provided with Myfaces are quite sufficient to get going. 

On the other hand, both Facelets and Shale/Clay are still too (IMO) immature
to become a basis for serious production app. Next year maybe...


-Original Message-
From: Bjørn T Johansen [mailto:[EMAIL PROTECTED] 
Sent: Friday, March 24, 2006 5:19 PM
To: users@myfaces.apache.org
Subject: Re: JSF and Tiles

On Fri, 24 Mar 2006 19:59:45 +0100
Werner Punz <[EMAIL PROTECTED]> wrote:

> Greg Reddin wrote:
> > 
> > On Mar 24, 2006, at 9:15 AM, Murat Hazer wrote:
> > 
> >> Is there a good tutorial introduces tiles and usage of it with JSF,  
> >> or is there any other good templating framework for JSF?
> > 
> > 
> > If you'/re starting from scratch with no knowledge of Tiles, I'd  
> > recommend starting with Facelets or Clay.  I have no experience with  
> > either, but, as has been pointed out already, they are "native" JSF  
> > technologies, whereas Tiles was conceived in a world without JSF and  
> > the integration can be problematic.  If you like Tiles I'd ask you to  
> > check out the Standalone version that is currently in the sandbox.  A  
> > (mostly) working version is available and I am trying to push forward  
> > with it.  By the end of that process it will be much easier to use  
> > Tiles with JSF, although still probably not seamless.  Stay tuned.
> > 
> > Greg
> > 
> > 
> I can second that, although the tiles approach in JSF is way saner with 
> 1/3rd less glue code in xml thank in Struts, it still is a somewhat 
> rough experience, with many internal issues.
> If you can, omit tiles and go for something else.
> The options have been mentioned.
> 


I was just wondering what I am missing? I am running JSF and Tiles and have
no problem using them together; am
I doing something wrong? :)


Regards,

BTJ




Re: how do I prevent nervous users starting actions more than once???

2006-03-25 Thread Emily Gu
Hi Andreas,
 
  Thanks for the detailed explaination. I will give it a try. Thanks for your help!!
 
Emily 
On 3/26/06, Andreas Zeller - zit-systems <[EMAIL PROTECTED]> wrote:

Hi Emily,It's very simple actually. Instead of using Like public String myAction (ActionEvent e){...return "bla";}It looks exactly like your common action method, just that it submits the event that is actually triggered. Now you just need to get any necessary information out of the event and make your application reject any following actions that are not allowed now. You want to disable the buttons, I know... But that'll happen after the request. So during the request, the user can still trigger actions. So what you could do, is prevent him from doing that inside the application, or blocking specific actions by using a state-model for your application.
Using application states would probably be the best idea and it would be clean and good code, since you wouldn't need any of the things I am describing right now. But we're lazy and for just one action, we don't need a state-model. Anyway, just didn't want to leave the idea unmentioned. Back to the component / parameter version.
Should look like this: UIParameter lParameter = (UIParameter)e.getComponent().getId();or, if you want to access the f:param you set inside the commandlink, you'd use something like UIParameter lParameter = (UIParameter)e.getComponent().findComponent("name");
Hope that'll help.
AndreasEmily Gu wrote: 

Hi Andreas,
 
Thanks for your reply. Pretty much similar. Only mine is simpler. I have several  buttons on the same page. I would like only allow the first button click taking effect and disable all others. And only allow one click for a button. Otherwise it has submitted the same form data many times. If you have sample code, would you please send it to me? I would like to see how you get the component id and identify it is from the same page and but a duplicated request. 

 
Thanks a lot!!
Emily 
On 3/25/06, Andreas Zeller - zit-systems <
[EMAIL PROTECTED]> wrote: 

Hey Emily,If your Button causes your application to fail in some way, you could catch that kind of bad user interaction by identifying the clicked button via the component id (which is unique for each component on your page). 
This is kind of a "dirty" solution, but if the application switches to a different state, the triggered action should be "locked", so it can't be accessed again, unless it won't cause any damage.
You would do this by giving the commandButton an ID, setting an f:param inside the button and getting this parameter (if you have a dynamic model and need to know which button has been clicked) back in the application via an ActionEvent, which is a parameter for an actionListener method. 
I had to do this for a system that locks datasets and prevents other users from editing. A user should only be able to edit one record at a time. If the user acts quickly and clicks several buttons on the page, that would open many open records. So what I did, is catch the ID and the param, unlock the records he clicked before and open only the last one for editing. If your problem is similar in some way, this might be a solution. A dirty one, I admit, but it works. 
 
Andreas
Emily Gu wrote: 

Hi,
 
 Would you please let me know how do you know it is clicked the same button so that you can provent the next click by doing this?
 
Thanks,
Emily 
On 1/25/06, Hansjörg Meuschel <[EMAIL PROTECTED]> wrote: 

Hi Steffen,thanks for this great information, the filter works perfectly and solvedone of my biggest problems with my application ! 
Steffen Hankiewicz wrote:>Hi Hansjörg,>how can I prevent impatient users of my webapp to perform actions twice>>by clicking serveral times on the commandbuttons ?? 
>>I  am using a servlet filter which works great here. Maybe you want to>give it a try:>>
 http://www.onjava.com/pub/a/onjava/2004/03/24/loadcontrol.html?page=1>>HTH,>>Steffen Hankiewicz



Re: how do I prevent nervous users starting actions more than once???

2006-03-25 Thread Andreas Zeller - zit-systems




Hi Emily,

It's very simple actually. Instead of using 

Like 

public String myAction (ActionEvent e){
...
return "bla";
}

It looks exactly like your common action method, just that it submits
the event that is actually triggered. Now you just need to get any
necessary information out of the event and make your application reject
any following actions that are not allowed now. You want to disable the
buttons, I know... But that'll happen after the request. So during the
request, the user can still trigger actions. So what you could do, is
prevent him from doing that inside the application, or blocking
specific actions by using a state-model for your application.

Using application states would probably be the best idea and it would
be clean and good code, since you wouldn't need any of the things I am
describing right now. But we're lazy and for just one action, we don't
need a state-model. Anyway, just didn't want to leave the idea
unmentioned. Back to the component / parameter version.

Should look like this: UIParameter lParameter =
(UIParameter)e.getComponent().getId();
or, if you want to access the f:param you set inside the commandlink,
you'd use something like UIParameter lParameter =
(UIParameter)e.getComponent().findComponent("name");

Hope that'll help.

Andreas



Emily Gu wrote:

  Hi Andreas,
   
  Thanks for your reply. Pretty much similar. Only mine is
simpler. I have several  buttons on the same page.
I would like only allow the first button click taking effect and
disable all others. And only allow one click for a button. Otherwise it
has submitted the same form data many times. If you have sample code,
would you please send it to me? I would like to see how you get the
component id and identify it is from the same page and but a duplicated
request.
  
   
  Thanks a lot!!
  Emily
  
 
  On 3/25/06, Andreas Zeller - zit-systems <[EMAIL PROTECTED]>
wrote:
  
Hey Emily,

If your Button causes your application to fail in some way, you could
catch that kind of bad user interaction by identifying the clicked
button via the component id (which is unique for each component on your
page).

This is kind of a "dirty" solution, but if the application switches to
a different state, the triggered action should be "locked", so it can't
be accessed again, unless it won't cause any damage.

You would do this by giving the commandButton an ID, setting an f:param
inside the button and getting this parameter (if you have a dynamic
model and need to know which button has been clicked) back in the
application via an ActionEvent, which is a parameter for an
actionListener method.


I had to do this for a system that locks datasets and prevents other
users from editing. A user should only be able to edit one record at a
time. If the user acts quickly and clicks several buttons on the page,
that would open many open records. So what I did, is catch the ID and
the param, unlock the records he clicked before and open only the last
one for editing. If your problem is similar in some way, this might be
a solution. A dirty one, I admit, but it works.

 

Andreas


Emily Gu wrote:

  Hi,
   
   Would you please let me know how do you know it is clicked
the same button so that you can provent the next click by doing this?
   
  Thanks,
  Emily
  
 
  On 1/25/06, Hansjörg Meuschel <[EMAIL PROTECTED]> wrote:
  
  Hi
Steffen,
thanks for this great information, the filter works perfectly and solved
one of my biggest problems with my application ! 

Steffen Hankiewicz wrote:

>Hi Hansjörg,
>
>
>
>>how can I prevent impatient users of my webapp to perform
actions twice
>>by clicking serveral times on the commandbuttons ?? 
>>
>>
>
>I  am using a servlet filter which works great here. Maybe you want
to
>give it a try:
>
>
http://www.onjava.com/pub/a/onjava/2004/03/24/loadcontrol.html?page=1
>
>HTH,
>
>Steffen Hankiewicz
>
>
>
>

  
  
  



  
  
  






Re: how do I prevent nervous users starting actions more than once???

2006-03-25 Thread Emily Gu
Hi Andreas,
 
Thanks for your reply. Pretty much similar. Only mine is simpler. I have several  buttons on the same page. I would like only allow the first button click taking effect and disable all others. And only allow one click for a button. Otherwise it has submitted the same form data many times. If you have sample code, would you please send it to me? I would like to see how you get the component id and identify it is from the same page and but a duplicated request.

 
Thanks a lot!!
Emily 
On 3/25/06, Andreas Zeller - zit-systems <[EMAIL PROTECTED]> wrote:

Hey Emily,If your Button causes your application to fail in some way, you could catch that kind of bad user interaction by identifying the clicked button via the component id (which is unique for each component on your page).
This is kind of a "dirty" solution, but if the application switches to a different state, the triggered action should be "locked", so it can't be accessed again, unless it won't cause any damage.
You would do this by giving the commandButton an ID, setting an f:param inside the button and getting this parameter (if you have a dynamic model and need to know which button has been clicked) back in the application via an ActionEvent, which is a parameter for an actionListener method.
I had to do this for a system that locks datasets and prevents other users from editing. A user should only be able to edit one record at a time. If the user acts quickly and clicks several buttons on the page, that would open many open records. So what I did, is catch the ID and the param, unlock the records he clicked before and open only the last one for editing. If your problem is similar in some way, this might be a solution. A dirty one, I admit, but it works.
 
Andreas
Emily Gu wrote: 

Hi,
 
 Would you please let me know how do you know it is clicked the same button so that you can provent the next click by doing this?
 
Thanks,
Emily 
On 1/25/06, Hansjörg Meuschel <[EMAIL PROTECTED]> wrote:
 
Hi Steffen,thanks for this great information, the filter works perfectly and solvedone of my biggest problems with my application ! 
Steffen Hankiewicz wrote:>Hi Hansjörg,>how can I prevent impatient users of my webapp to perform actions twice>>by clicking serveral times on the commandbuttons ?? 
>>I  am using a servlet filter which works great here. Maybe you want to>give it a try:>>
 http://www.onjava.com/pub/a/onjava/2004/03/24/loadcontrol.html?page=1>>HTH,>>Steffen Hankiewicz



Re: how do I prevent nervous users starting actions more than once???

2006-03-25 Thread Andreas Zeller - zit-systems




Hey Emily,

If your Button causes your application to fail in some way, you could
catch that kind of bad user interaction by identifying the clicked
button via the component id (which is unique for each component on your
page).
This is kind of a "dirty" solution, but if the application switches to
a different state, the triggered action should be "locked", so it can't
be accessed again, unless it won't cause any damage.

You would do this by giving the commandButton an ID, setting an f:param
inside the button and getting this parameter (if you have a dynamic
model and need to know which button has been clicked) back in the
application via an ActionEvent, which is a parameter for an
actionListener method.

I had to do this for a system that locks datasets and prevents other
users from editing. A user should only be able to edit one record at a
time. If the user acts quickly and clicks several buttons on the page,
that would open many open records. So what I did, is catch the ID and
the param, unlock the records he clicked before and open only the last
one for editing. If your problem is similar in some way, this might be
a solution. A dirty one, I admit, but it works.

Andreas

Emily Gu wrote:

  Hi,
   
   Would you please let me know how do you know it is clicked the
same button so that you can provent the next click by doing this?
   
  Thanks,
  Emily
  
 
  On 1/25/06, Hansjörg Meuschel <[EMAIL PROTECTED]> wrote:
  Hi
Steffen,
thanks for this great information, the filter works perfectly and solved
one of my biggest problems with my application !


Steffen Hankiewicz wrote:

>Hi Hansjörg,
>
>
>
>>how can I prevent impatient users of my webapp to perform
actions twice
>>by clicking serveral times on the commandbuttons ??

>>
>>
>
>I  am using a servlet filter which works great here. Maybe you want
to
>give it a try:
>
>
http://www.onjava.com/pub/a/onjava/2004/03/24/loadcontrol.html?page=1
>
>HTH,
>
>Steffen Hankiewicz
>
>
>
>

  
  
  






Re: how do I prevent nervous users starting actions more than once???

2006-03-25 Thread Emily Gu
Hi,
 
 Would you please let me know how do you know it is clicked the same button so that you can provent the next click by doing this?
 
Thanks,
Emily 
On 1/25/06, Hansjörg Meuschel <[EMAIL PROTECTED]> wrote:
Hi Steffen,thanks for this great information, the filter works perfectly and solvedone of my biggest problems with my application !
Steffen Hankiewicz wrote:>Hi Hansjörg,>how can I prevent impatient users of my webapp to perform actions twice>>by clicking serveral times on the commandbuttons ??
>>I  am using a servlet filter which works great here. Maybe you want to>give it a try:>>
http://www.onjava.com/pub/a/onjava/2004/03/24/loadcontrol.html?page=1>>HTH,>>Steffen Hankiewicz


button style changes on IE

2006-03-25 Thread Dave
IE browser:  why will the command button border style change if the label is long, like 20 characters?     Is this a IE bug?       Thanks!
		Blab-away for as little as 1¢/min. Make  PC-to-Phone Calls using Yahoo! Messenger with Voice.

RE: How to speed up JSF

2006-03-25 Thread Dave
Does Ajaxanywhere support ? I tried it weeks ago, it did not work with MyFaces . The state from a few pages back was restored, not the previous request. Has anyone experienced the same issue? Thanks!"Yura.Tkachenko" <[EMAIL PROTECTED]> wrote:Hi,  I agree with this. Ajaxanywhere execute whole processing of jsf lifecycle, but it responsed back to client only part of the page (ajax zone which client declare). So I suppose that it should works a little faster. But I want to know how Myfaces works with Facelets, is it really better to use Facelets instead of JSP?     Thanks,  Yura.  From: Cagatay Civici [mailto:[EMAIL PROTECTED] Sent: Sunday, March 26, 2006 12:27 AMTo: MyFaces DiscussionSubject: Re: How to speed up JSF     Hi,As far as I know, ajaxanywhere submits the page as a whole actually, not just the
 zones(spans) and the zone components output spans. These spans' innerHtmls are later retrieved from the wrapped servletresponse and set using _javascript_. This approach will not help your application to run faster. What do you think?Cagatay,On 3/25/06, Yura.Tkachenko <[EMAIL PROTECTED] > wrote:  Hi,  I just finding some ways to speed up JSF. I'm using MyFaces implementation and actually I don't like how JSF is rendering it's very slow. I've n
 ever
 tried Facelets with MyFaces is it really can speed up work of my application? Because I have only little theoretical knowledge about Facelets. But on all my JSF pages I actually doesn't use JSP as it, so I suppose I have always some time to: compile JSP(only 1 time) + execute jsp compiled class. So I think if Facelets miss this step then my application will work much faster, am I right?  + Another approach to use AjaxAnywhere with this library server response executes much faster, because user requests not all page, only part of it.  Anyone use Facelets+MyFaces+AjaxAnyWhere ¨C is it faster for user then only MyFaces?     Thanks,   Yura Tkachenko  Murano Software Kharkov, Ukraine  mailto: [EMAIL PROTECTED]  http://www.muranosoft.com          
	
		Yahoo! Messenger with Voice. PC-to-Phone calls for ridiculously low rates.

RE: How to speed up JSF

2006-03-25 Thread Yura.Tkachenko








Hi,

I agree with this. Ajaxanywhere
execute whole processing of jsf lifecycle, but it responsed back to client only
part of the page (ajax
zone which client declare). So I suppose that it should works a little faster. But
I want to know how Myfaces works with Facelets, is it really better to use
Facelets instead of JSP?

 

Thanks,

Yura.









From:
Cagatay Civici [mailto:[EMAIL PROTECTED] 
Sent: Sunday, March 26, 2006 12:27
AM
To: MyFaces Discussion
Subject: Re: How
to speed up JSF



 

Hi,

As far as I know, ajaxanywhere submits the page as a whole actually, not just
the zones(spans) and the zone components output spans. These spans' innerHtmls
are later retrieved from the wrapped servletresponse and set using _javascript_.
This approach will not help your application to run faster. 

What do you think?

Cagatay,



On 3/25/06, Yura.Tkachenko
<[EMAIL PROTECTED]
> wrote:





Hi,

I just finding some ways to speed up JSF. I'm using MyFaces
implementation and actually I don't like how JSF is rendering it's very slow.
I've never tried Facelets with MyFaces is it really can speed up work of my
application? Because I have only little theoretical knowledge about Facelets.
But on all my JSF pages I actually doesn't use JSP as it, so I suppose I have
always some time to: compile JSP(only 1 time) + execute jsp compiled class. So
I think if Facelets miss this step then my application will work much faster,
am I right?

+ Another approach to use AjaxAnywhere with this library server response
executes much faster, because user requests not all page, only part of it.

Anyone use Facelets+MyFaces+AjaxAnyWhere – is it faster for user then
only MyFaces?

 

Thanks, 

Yura Tkachenko

Murano Software Kharkov, Ukraine

mailto: [EMAIL PROTECTED]

http://www.muranosoft.com 

 

 







 








Re: A dynamic component and the JSF lifecycle

2006-03-25 Thread Adam Winer
Indeed:  with Facelets, JSTL tags like c:forEach do generally work.
But it does get tricky when you're changing the number of
components from one request to the next.

What should be happening is that during Render Response,
the tags re-execute, and if there's a new component, it gets inserted -
especially if you have "id" set uniquely on that showDetailItem, which it
looks like you do, though confirmation of that would be a good idea.

-- Adam


On 3/24/06, Jeremy Sager <[EMAIL PROTECTED]> wrote:
>
>
>
> Correct me if I'm wrong, but facelets is supposed to specifically fix that
> problem, isn't it?
>
>
>
>
>
> Jeremy Sager
>
> Data Communications Product Manager
>
> Chesapeake System Solutions
>
> 410.356.6805 x120
>
> [EMAIL PROTECTED]
>
>  
>
>
> From: Alexander Panzhin [mailto:[EMAIL PROTECTED]
>  Sent: Friday, March 24, 2006 3:29 PM
>  To: MyFaces Discussion
>  Subject: Re: A dynamic component and the JSF lifecycle
>
>
>
>
> Sorry to break it to you, but JSTL Core tags do not work well with JSF.
>  Usually they're "late".
>  In the sense that you have to refresh to get a correct view.
>  That's because they're rendered at different times.
>
>
>
>
> Thanks in advance for any help guys J
>
>
>
> I am using an ADF showOneTab component that has a varying number of tabs. I
> iterate across a list inside the xhtml document with a facelets tag.
>
>
>
> In theory, a user may be able to click on various command items such as
> links and buttons that would cause an item to be added to my list and a
> navigate-back-to-self situation, which means that the new tabs should show
> up.
>
>
>
> The problem is, it doesn't work like that, and I think I know why…
>
>
>
> My list isn't going to get updated until the Invoke Application phase, by
> which point the component hierarchy is already built.
>
>
>
> That's the problem… I think. What I actually see is really spotty behavior,
> where sometimes things appear and other times they don't, and I can't tell
> why. Regardless of the behavior, if I just hit the refresh button, the page
> always loads exactly the way it should.
>
>
>
> Here are my tags:
>
>
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
>
>
>
>
>
>
> Does anyone have any advice on how I should proceed here?
>
>
>
> I was thinking that the answer may be to write a custom phase listener and
> figure out how to process my action early, which I'm more than happy to do
> if it's the correct solution. I just don't want to go barking up the wrong
> tree, or down a dead end alley, or whatever analogy you prefer if there's a
> "duh" solution to this problem out there.
>
>
>
> And remember I'm running that c:forEach in the facelets world, not the JSP
> world.
>
>
>
>
> Jeremy Sager
>
> Data Communications Product Manager
>
> Chesapeake System Solutions
>
> 410.356.6805 x120
>
> [EMAIL PROTECTED]
>
>
>
>
>  --
>Su pagarba,
>   Aleksandr Panzin
>   IT sistemu architektas.
>
>With best regards,
>   Alexander Panzhin
>   IT systems architect
>


Re: How to speed up JSF

2006-03-25 Thread Cagatay Civici
Hi,As far as I know, ajaxanywhere submits the page as a whole actually, not just the zones(spans) and the zone components output spans. These spans' innerHtmls are later retrieved from the wrapped servletresponse and set using _javascript_. This approach will not help your application to run faster.
What do you think?Cagatay,On 3/25/06, Yura.Tkachenko <[EMAIL PROTECTED]
> wrote:
















Hi,

I just finding some ways to speed up JSF. I'm
using MyFaces implementation and actually I don't like how JSF is
rendering it's very slow. I've never tried Facelets with MyFaces is
it really can speed up work of my application? Because I have only little theoretical
knowledge about Facelets. But on all my JSF pages I actually doesn't use
JSP as it, so I suppose I have always some time to: compile JSP(only 1 time) + execute
jsp compiled class. So I think if Facelets miss this step then my application
will work much faster, am I right?

+ Another approach to use AjaxAnywhere with this
library server response executes much faster, because user requests not all
page, only part of it.

Anyone use Facelets+MyFaces+AjaxAnyWhere – is it
faster for user then only MyFaces?

 

Thanks,


Yura Tkachenko

Murano Software Kharkov, Ukraine

mailto: 
[EMAIL PROTECTED]

http://www.muranosoft.com


 

 










RE: How to disable commandLink button after it is clicked once?

2006-03-25 Thread Yura.Tkachenko








Hi, Emily

I didn’t said use
always  false;”

 

I only said about
something like that:

 



 

.
Java code

.

public void onAdd() {

………

 // no need to
execute onAdd

 linkAdd.setStyleClass(“disableLinkClass”);
// apply style to disable link

 linkAdd.setOnClick(“return
false;”); // break server-side action for this link

.

}

 

Or you can implement
another scenario for this.

 

Best wishes,

Yura.

 









From: Emily Gu
[mailto:[EMAIL PROTECTED] 
Sent: Saturday, March 25, 2006
11:50 PM
To: MyFaces Discussion
Subject: Re: How to disable
commandLink button after it is clicked once?



 



Hi,





 





  Thanks for your reply. After I did this, the form is never
submitted.





 





   >this.disabled=true;
document.myForm.submit(); return false;"



 



Thanks,





Emily







 





On 3/25/06, Yura.Tkachenko
<[EMAIL PROTECTED]>
wrote: 





Hi,

Try to setup onclick handler after you clicked on
the link like this:

 



 

In this case by onclick won't be submit.

 

Thanks,

Yura.

 









From: Emily Gu [mailto: [EMAIL PROTECTED]] 
Sent: Saturday, March 25, 2006
10:43 PM
To: users@myfaces.apache.org
Subject: How to disable
commandLink button after it is clicked once?







 



Hi,





 





Any
recommend way to disable the commandLink button after a user click it once?
_javascript_ this.disabled=true, it seems only giving the visual effect as the
the button is disabled but it still submits twice if I click it twice. Any help
is greatly appreciated. 





 





Thanks,





Emily











 








t:collapsiblePanel

2006-03-25 Thread Andreas Zeller - zit-systems




Hey everybody,

I got a question concerning the collapsible Panel Tag of MyFaces. I
have several objects inside a database and I added the
"toggleCollapsed" boolean Attribute to the bean.

So that's what the Comments Bean looks like. Just a few getters and
setters, filled by hibernate. Hibernate doesn't touch the property for
the panel.

BUT: When I expand the panel, all of the objects expand and not only
the one I selected. To get this straight: the datatable iterates the
objects inside the list. So each object has a different
"toggleCollapsed" property.

Why does the panel expand all the objects? Here's a screenshot of both
states and the source of the JSF Code.



I'd be glad if anybody could help me with that.

If I am not rebuilding, you can check it out for yourself:
http://82.207.147.13:8080/Produktredaktion/pages/kommentare.xhtml

Thanks in advance,

Andreas


    
            id="kommentare"
    value="#{benutzerKommentare.comments}"
    var="comments"
    rows="15"
    rowClasses="oddRow, evenRow"
    renderedIfEmpty="true"
    headerClass="tableHeader"
    preserveDataModel="false"
    >

    
    
    
    
    
    

    
    
    
    
    
    

    
    
    
    
    
    

                    
    
    
    

    
    
    
    

    








Re: How to disable commandLink button after it is clicked once?

2006-03-25 Thread Emily Gu
Hi,
 
  Thanks for your reply. After I did this, the form is never submitted.
 
    color="#2a00ff" size="2">this.disabled=true; document.myForm.submit(); return false;"
 
Thanks,
Emily
 
On 3/25/06, Yura.Tkachenko <[EMAIL PROTECTED]> wrote:



Hi,
Try to setup onclick handler after you clicked on the link like this:
 

 
In this case by onclick won't be submit.
 
Thanks,
Yura.
 




From: Emily Gu [mailto:
[EMAIL PROTECTED]] Sent: Saturday, March 25, 2006 10:43 PM
To: users@myfaces.apache.org
Subject: How to disable commandLink button after it is clicked once?

 

Hi,

 

Any recommend way to disable the commandLink button after a user click it once? _javascript_ this.disabled=true, it seems only giving the visual effect as the the button is disabled but it still submits twice if I click it twice. Any help is greatly appreciated. 


 

Thanks,

Emily



RE: How to disable commandLink button after it is clicked once?

2006-03-25 Thread Yura.Tkachenko








Hi,

Try to setup onclick
handler after you clicked on the link like this:

 



 

In this case by onclick
won’t be submit.

 

Thanks,

Yura.

 









From: Emily Gu
[mailto:[EMAIL PROTECTED] 
Sent: Saturday, March 25, 2006
10:43 PM
To: users@myfaces.apache.org
Subject: How to disable
commandLink button after it is clicked once?



 



Hi,





 





Any recommend way to disable the commandLink button after a
user click it once? _javascript_ this.disabled=true, it seems only giving the
visual effect as the the button is disabled but it still submits twice if I
click it twice. Any help is greatly appreciated. 





 





Thanks,





Emily










How to disable commandLink button after it is clicked once?

2006-03-25 Thread Emily Gu
Hi,
 
Any recommend way to disable the commandLink button after a user click it once? _javascript_ this.disabled=true, it seems only giving the visual effect as the the button is disabled but it still submits twice if I click it twice. Any help is greatly appreciated.

 
Thanks,
Emily


Re: The best practice of remembering previous selections when doing paginating?

2006-03-25 Thread Emily Gu
Thanks for your reply. I will try that.
 
Emily 
On 3/24/06, Aleksei Valikov <[EMAIL PROTECTED]> wrote:
Hi.> I have one question for you. For the solution posted on wiki page of> large data set , when you select several rows on the first
> page, then go to the next page, the selection is gone. It only knows> what selected in the current page. I have two questions now:>> 1. What is the best practice in doing such web pages. Should it remember
> stuff selected from the first page?> 2. How to do it in using  with ?>> In my opinion, it would be nice if we can remember the selections of> previous visited pages if the data are related.
I usually add a column with a checkbox that adds/removes row id from theset. The set is saved somewhere in a session-scoped managed bean.If your selection is no longer one-page-scoped (request-scoped), it's
time to move its storage to a session-scoped bean.Bye./lexi


Re: WebLogic precompilation

2006-03-25 Thread Emily Gu
Hi Thien,
 
We had slow loading issue on WLS 8.1. The way resolved it is to tell WLS ignore the JSP and Sevlet code change checking in weblogic.xml file. On production, you really don't need to check for code changes, but on development, you can set it accordingly.
That made a big difference for our project in performance.
 
Good luck!
Emily
 
On 3/18/06, THIEN PHAM <[EMAIL PROTECTED]> wrote:
Thank you so much, Adam.So I guess if I deploy my application as an EAR file,it's a hopeless situation then?
--- Adam Brod <[EMAIL PROTECTED]> wrote:> Hi Thien->> Precompiling jsps is great, but you need to tell> weblogic's runtime where
> to look for them.>> To do that, you need to edit/create your> weblogic.xml file (under WEB-INF)> and add the workingDir param.>> > 
>   workingDir>>autodeploy/mywebapp/WEB-INF/classes> > 
>> If you do this, the files should not be compiled> twice.  This works on my> local windows machine in exploded webapp format.>> Adam Brod> Product Development Team>
>> THIEN PHAM <[EMAIL PROTECTED]>> 03/16/2006 01:01 PM> Please respond to> "MyFaces Discussion" <
users@myfaces.apache.org To> MyFaces Discussion > cc>> Subject> WebLogic precompilation
>>> Hi,>> My Myfaces application seems to take a long time to> respond when its pages are accessed for the first> time> in WebLogic 8.1
 (though this problem is not seen> with> JBoss 4 or Websphere 6). Now that's probably okay> because of the first time compilation of the> involved> JSP files. I'd like to precompile JSP pages of my
> application so that it can be deployed and used by> WL.> I have followed all kinds of instructions from BEA> website from using weblogic.jspc to weblogic.appc> tools but to no avail. The tools do generate byte
> codes for these pages and place them under> WEB-INF/classes. But WL still recompile these pages> (instead of using classes under WEB-INF/classes> directory) when they're access for the first time.
> Does anyone have any success in doing this? I'd> appreciate very much if you can show me how. Thanks.>> __> Do You Yahoo!?> Tired of spam?  Yahoo! Mail has the best spam
> protection around> http://mail.yahoo.com>__Do You Yahoo!?Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com


tomahawk master/detail table expandAll, collapseAll feature

2006-03-25 Thread Mikhail Grushinskiy

Please, add expandAll/collapseAll actions into detailToggler.
Although I've found a work-around to implement expand/collapse all details
it would be much easier if detailToggler had these actions in the base code.

Thanks,
MG



Re: tabchangelistener

2006-03-25 Thread Mike Kienenberger
On 3/25/06, Matthias Kahlau <[EMAIL PROTECTED]> wrote:
> Can you please tell me what the problem was with the serverSideTabSwitch?

You quoted it already below, but to restate, it didn't interpret
non-EL expressings as Boolean values, and wasn't saving the state of
the switch in saveState/restoreState.

On 3/25/06, Matthias Kahlau <[EMAIL PROTECTED]> wrote:
> > On 10/31/05, Turgay Zengin <[EMAIL PROTECTED]> wrote:
> > > The flag is:
> > > serverSideTabSwitch="true"
> > >
> > > This attribute is for the t:panelTabbedPane.
> >
> > The interpretation and state-saving of the serverSideTabSwitch was
> > broken until this week.   I'd recommend that you use the latest
> > nightly build or an svn snapshot if you need serverSideTabSwitching.
> >
> >
> > The workaround for using it without upgrading is to use
> >
> > serverSideTabSwitch="#{true}"
> >
> > However, you may still have problems because the state of the switch
> > is not saved, and the behavior may unexpectedly revert back to
> > client-side tab switching (or may break in some other unexpected way).
>
> Can you please tell me what the problem was with the serverSideTabSwitch?
>
> I use the Nightly Build 20051130 with serverSideTabSwitch, and it seems to
> work without a problem...
>
> -Matthias
>
>


How to speed up JSF

2006-03-25 Thread Yura.Tkachenko








Hi,

I just finding some ways to speed up JSF. I’m
using MyFaces implementation and actually I don’t like how JSF is
rendering it’s very slow. I’ve never tried Facelets with MyFaces is
it really can speed up work of my application? Because I have only little theoretical
knowledge about Facelets. But on all my JSF pages I actually doesn’t use
JSP as it, so I suppose I have always some time to: compile JSP(only 1 time) + execute
jsp compiled class. So I think if Facelets miss this step then my application
will work much faster, am I right?

+ Another approach to use AjaxAnywhere with this
library server response executes much faster, because user requests not all
page, only part of it.

Anyone use Facelets+MyFaces+AjaxAnyWhere – is it
faster for user then only MyFaces?

 

Thanks,

Yura Tkachenko

Murano Software Kharkov, Ukraine

mailto: [EMAIL PROTECTED]

http://www.muranosoft.com

 

 








AW: tabchangelistener

2006-03-25 Thread Matthias Kahlau
> On 10/31/05, Turgay Zengin <[EMAIL PROTECTED]> wrote:
> > The flag is:
> > serverSideTabSwitch="true"
> >
> > This attribute is for the t:panelTabbedPane.
>
> The interpretation and state-saving of the serverSideTabSwitch was
> broken until this week.   I'd recommend that you use the latest
> nightly build or an svn snapshot if you need serverSideTabSwitching.
>
>
> The workaround for using it without upgrading is to use
>
> serverSideTabSwitch="#{true}"
>
> However, you may still have problems because the state of the switch
> is not saved, and the behavior may unexpectedly revert back to
> client-side tab switching (or may break in some other unexpected way).

Can you please tell me what the problem was with the serverSideTabSwitch?

I use the Nightly Build 20051130 with serverSideTabSwitch, and it seems to
work without a problem...

-Matthias



Re: PanelTabbedPane : Server Side Tab Switch

2006-03-25 Thread Mike Kienenberger
On 3/25/06, Cedric Legallo <[EMAIL PROTECTED]> wrote:
> Hi everyone, I am using myfaces 1.0.10 for a project, and i need to force a
> server side tab switching for a  tag.
> How can it be done with 1.0.10 version of myFaces ?

Your best bet is to upgrade to the latest snv snapshot due to bugs I
fixed earlier this week.

Otherwise, try downloading the latest source code and back-port the changes.

I'm fairly certain that the code to support server-side tab switching
was still in there -- you only need to provide a flag to activate it. 
 Actually, you could potentially hardcode server-side tab switching
into your build -- that should be pretty trivial.

-Mike


Re: tabchangelistener

2006-03-25 Thread Mike Kienenberger
On 10/31/05, Turgay Zengin <[EMAIL PROTECTED]> wrote:
> The flag is:
> serverSideTabSwitch="true"
>
> This attribute is for the t:panelTabbedPane.

The interpretation and state-saving of the serverSideTabSwitch was
broken until this week.   I'd recommend that you use the latest
nightly build or an svn snapshot if you need serverSideTabSwitching.


The workaround for using it without upgrading is to use

serverSideTabSwitch="#{true}"

However, you may still have problems because the state of the switch
is not saved, and the behavior may unexpectedly revert back to
client-side tab switching (or may break in some other unexpected way).


Re: Regarding Server Side Tab Switching in panelTabbedPane.

2006-03-25 Thread Mike Kienenberger
On 3/25/06, Chandramohan Mani <[EMAIL PROTECTED]> wrote:
> Hi Mike,
>
> can you please help me how to use this pacth in my file.

It's better to post to the MyFaces users mailing list rather than to
me directly.

The patch I applied for serverSideTabSwitching is a trivial one.   It
merely fixes a bug where you were required to use "#{true}" instead of
"true"

You can build the latest code snapshot (or use a nightly build if you
don't need the sandbox) to pick up the patch automatically.

Otherwise, I'd recommend just using the workaround -- "#{true}" for
true and "#(false}" for false until your next upgrade.


Re: JSF and Tiles

2006-03-25 Thread Alexandre Poitras
Watch the JavaOne 2005 presentation I have linked previously.

On 3/24/06, Bjørn T Johansen <[EMAIL PROTECTED]> wrote:
> On Fri, 24 Mar 2006 19:59:45 +0100
> Werner Punz <[EMAIL PROTECTED]> wrote:
>
> > Greg Reddin wrote:
> > >
> > > On Mar 24, 2006, at 9:15 AM, Murat Hazer wrote:
> > >
> > >> Is there a good tutorial introduces tiles and usage of it with JSF,
> > >> or is there any other good templating framework for JSF?
> > >
> > >
> > > If you'/re starting from scratch with no knowledge of Tiles, I'd
> > > recommend starting with Facelets or Clay.  I have no experience with
> > > either, but, as has been pointed out already, they are "native" JSF
> > > technologies, whereas Tiles was conceived in a world without JSF and
> > > the integration can be problematic.  If you like Tiles I'd ask you to
> > > check out the Standalone version that is currently in the sandbox.  A
> > > (mostly) working version is available and I am trying to push forward
> > > with it.  By the end of that process it will be much easier to use
> > > Tiles with JSF, although still probably not seamless.  Stay tuned.
> > >
> > > Greg
> > >
> > >
> > I can second that, although the tiles approach in JSF is way saner with
> > 1/3rd less glue code in xml thank in Struts, it still is a somewhat
> > rough experience, with many internal issues.
> > If you can, omit tiles and go for something else.
> > The options have been mentioned.
> >
>
>
> I was just wondering what I am missing? I am running JSF and Tiles and have 
> no problem using them together; am
> I doing something wrong? :)
>
>
> Regards,
>
> BTJ
>


--
Alexandre Poitras
Québec, Canada


PanelTabbedPane : Server Side Tab Switch

2006-03-25 Thread Cedric Legallo
Hi everyone, I am using myfaces 1.0.10 for a project, and i need to force a server side tab switching for a  tag.How can it be done with 1.0.10 version of myFaces ?Thanks for answers
-- Le Gallo Cédric


Re: jscookmenu and custom themes in 1.1.1

2006-03-25 Thread Murat Hazer
You should you stylelocation property of the  tag.Regards
On 3/25/06, Brian Woolf <[EMAIL PROTECTED]> wrote:
hi:  Does anyone know, how to  using custom themes for the jscookmenu componentin myFaces  release.1.1.1? My pages worked correctly in myfaces release1.1.1,so I don't switched to  nightly build.  Thanks,
--View this message in context: http://www.nabble.com/jscookmenu-and-custom-themes-in-1.1.1-t1341339.html#a3586688
Sent from the MyFaces - Users forum at Nabble.com.-- Murat HAZERElektrik-Elektronik Mühendisi - Electrical-Electronics Engineer



jscookmenu and custom themes in 1.1.1

2006-03-25 Thread Brian Woolf

hi:
  Does anyone know, how to  using custom themes for the jscookmenu component
in myFaces  release.1.1.1? My pages worked correctly in myfaces release
1.1.1,so I don't switched to  nightly build.
  Thanks,
  
--
View this message in context: 
http://www.nabble.com/jscookmenu-and-custom-themes-in-1.1.1-t1341339.html#a3586688
Sent from the MyFaces - Users forum at Nabble.com.



Re: JSCookMenu not rendering on first entry to JSF [SEC=UNCLASSIFIED]

2006-03-25 Thread Brian Woolf

check your web.xml,custom filter must after extend filer.
--
View this message in context: 
http://www.nabble.com/JSCookMenu-not-rendering-on-first-entry-to-JSF-SEC%3DUNCLASSIFIED--t1051544.html#a3586605
Sent from the MyFaces - Users forum at Nabble.com.



Re: Ajax jsf component panel

2006-03-25 Thread John Slave
I want to use ajax to conditional render components (if the component is 
closed there is no need to load the components...however these effects 
can be achieved without ajax...)


Thank you
John Slave



Gerald Müllan ha scritto:

Hi John,

which result you wanna get through the ajax request?

Only for the expand-and-contract functionality there is no need for
using ajax. This can be done only using javaScript on client side.

Do you use a js framework for your component or have you coded it on your own?

As far as i know, our accordion component uses open rico for shielding
from the complexity. A cool working example can be found under:

http://openrico.org/rico/demos.page?demo=rico_accordion

Also the dojo js framework has this feature right now:

http://archive.dojotoolkit.org/nightly/tests/widget/test_AccordionPane.html

cheers,

Gerald

On 3/24/06, John Slave <[EMAIL PROTECTED]> wrote:
  

Hi,

i wish to create an ajax component panel that is simply a panel with
particular javascript effect to expand and contract. However i found a
solution but i don't know if this is the right solution. I will use dwr
servlet to communicate by ajax (as explained in blue prints catalog
article) but the render inside will be always available but
hidden...because i don't know how i can render and put the result via
ajax...
Someone can tell me if it is a correct solution? Some suggestion?

Thank you
Yours faithfully
John Slave





--
Gerald Müllan
Schelleingasse 2/11
1040 Vienna, Austria
0043 699 11772506
[EMAIL PROTECTED]

  




Re: Ajax jsf component panel

2006-03-25 Thread Gerald Müllan
Hi John,

which result you wanna get through the ajax request?

Only for the expand-and-contract functionality there is no need for
using ajax. This can be done only using javaScript on client side.

Do you use a js framework for your component or have you coded it on your own?

As far as i know, our accordion component uses open rico for shielding
from the complexity. A cool working example can be found under:

http://openrico.org/rico/demos.page?demo=rico_accordion

Also the dojo js framework has this feature right now:

http://archive.dojotoolkit.org/nightly/tests/widget/test_AccordionPane.html

cheers,

Gerald

On 3/24/06, John Slave <[EMAIL PROTECTED]> wrote:
> Hi,
>
> i wish to create an ajax component panel that is simply a panel with
> particular javascript effect to expand and contract. However i found a
> solution but i don't know if this is the right solution. I will use dwr
> servlet to communicate by ajax (as explained in blue prints catalog
> article) but the render inside will be always available but
> hidden...because i don't know how i can render and put the result via
> ajax...
> Someone can tell me if it is a correct solution? Some suggestion?
>
> Thank you
> Yours faithfully
> John Slave
>


--
Gerald Müllan
Schelleingasse 2/11
1040 Vienna, Austria
0043 699 11772506
[EMAIL PROTECTED]


Portal problems

2006-03-25 Thread Srinivas Surapaneni

I am trying to use myfaces in weblogic portal environment
 
I was not able to get the scrolling working in the datalist and inputCalendar
 
I am seeing the following in the log
 
DEBUG [18:13:48] (JspStateManagerImpl.java:serializeView:569) - Processing serializeView - serialize state in sessionDEBUG [18:13:48] (JspStateManagerImpl.java:serializeView:577) - Processing serializeView - serialize compressed 
DEBUG [18:13:48] (JspStateManagerImpl.java:serializeView:594) - Exiting serializeView - serialized. Bytes : 1071DEBUG [18:13:48] (JspStateManagerImpl.java:saveSerializedView:334) - Exiting saveSerializedView - server-side state saving - saved state 
DEBUG [18:13:48] (ViewTag.java:doAfterBody:184) - leaving ViewTag.doAfterBodyDEBUG [18:13:48] (ViewTag.java:doEndTag:94) - entering ViewTag.doEndTagDEBUG [18:13:48] (ViewTag.java:doEndTag:108) - leaving ViewTag.doEndTag
 DEBUG [18:13:48] (ReducedHTMLParser.java:parse:430) - DOCTYPE found at line 10 WARN [18:13:48] (DefaultAddResource.java:writeMyFacesJavascriptBeforeBodyEnd:682) - MyFaces special _javascript_ could not be retrieved from request-map. 

 
 
I tried AUTO_SCROLL to true and false and it is not working in both cases


Re: ajaxing a component renderer

2006-03-25 Thread Gerald Müllan
Yes; as travis said the AjaxDecodePhaseListener is a good example how
myfaces handles
the ajax stuff.

We are currently adding the ajax request the url value
"affectedAjaxComponent+components_client_id" apart from the real value
which we want to send to the server.

During the ajax request the mentioned phase listener seeks the
component through the "affectedAjaxComponent" value in the request
parameter map.
It can gain now a reference to the ajax component (and further to the
corresponding renderer) through searching for the given client id and
now every output can be rendered to client.

Thats the way we are actually handling ajax requests; but sure thats
not the one-and-only solution.

regards,

Gerald

On 3/25/06, Travis Reeder <[EMAIL PROTECTED]> wrote:
> Check out AjaxDecodePhaseListener in the sandbox and the ajax components in
> the sandbox.  There are some good examples in there.
>
> Travis
>
>
> On 3/24/06, Hubert Rabago <[EMAIL PROTECTED]> wrote:
> > On 3/24/06, Werner Punz < [EMAIL PROTECTED]> wrote:
> > > You have to define the ajax call in the original renderer with a content
> > > div or any other element content element, of the component and then
> > > render the html in the ajax cycle, and
> > > then on the html level replace the content holders inner html
> > > part with the ajax rendered html.
> > > That would be the trick on component level.
> >
> > I'm wondering, since you didn't have a period in this last sentence,
> > if you'll allow me to complete it for you:
> >
> > > On page level it is quite different (I have to look into how the ajax
> > > anywhere people were able to pull off ajax zones, given the fact that
> > > JSF 1.1 does not allow partial rendering officially yet so I can
> use that knowledge to write a custom panel that will allow ajax requests to
> modify the server side component tree and update the controls shown on the
> client.)
> >
> > Hubert
> >
>
>


--
Gerald Muellan
Schelleingasse 2/11
1040 Vienna, Austria
0043 699 11772506
[EMAIL PROTECTED]


RE: [SPAM, DNSBL] - I am trying to run a sample application of myfaces in tomcat 5.5.9 but it return NullPointerException - Sending mail server found on sbl-xbl.spamhaus.org

2006-03-25 Thread Yura.Tkachenko

Hi,
Hope you put in your browser something like this to access to jsf page:
http://localhost/someApp/someJsfPage.jsf, otherwise you will get NPE.

Thanks,
Yura.

-Original Message-
From: Legolas Woodland [mailto:[EMAIL PROTECTED] 
Sent: Saturday, March 25, 2006 12:01 PM
To: MyFaces Discussion
Subject: [SPAM, DNSBL] - I am trying to run a sample application of myfaces
in tomcat 5.5.9 but it return NullPointerException - Sending mail server
found on sbl-xbl.spamhaus.org

Hi
Thank you for reading my post.
I am trying to test a sample myfaces application in tomcat 5.5.9 , but 
it return the following exception:
java.lang.NullPointerException
at 
javax.faces.webapp.UIComponentTag.setupResponseWriter(UIComponentTag.java:61
5)
at 
javax.faces.webapp.UIComponentTag.doStartTag(UIComponentTag.java:217)
at 
org.apache.myfaces.taglib.core.ViewTag.doStartTag(ViewTag.java:71)
at org.apache.jsp.index_jsp._jspx_meth_f_view_0(index_jsp.java:99)
at org.apache.jsp.index_jsp._jspService(index_jsp.java:74)
at 
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:3
22)
at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:252)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:173)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:213)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:178)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126
)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105
)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:107)
at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne
ction(Http11Protocol.java:744)
at 
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.jav
a:527)
at 
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWo
rkerThread.java:80)
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:684)
at java.lang.Thread.run(Thread.java:595)


here is my web.xml file



http://java.sun.com/dtd/web-app_2_3.dtd";>






com.sun.faces.validateXml
true

  




com.sun.faces.verifyObjects
true

 





Faces Servlet
javax.faces.webapp.FacesServlet
1





Faces Servlet
*.jsf





I have included following jar file into web-inf/lib
myfaces-impl.jar
myfaces-api.jar
sandbox.jar
tomahawk.jar
myfaces-all.jar