Re: Why do h:message Tags Need to be enclosed in h:panelGroup or h:panelGrid Tags

2005-12-20 Thread Gert Vanthienen

Mike,

What would be the correct way to make this happen in MyFaces?  Add an 
issue to JIRA and attach the solution for  to it?


Gert


Mike Duffy wrote:

Wouldn't it be more logical to make this the default behaviour of
 (and arguably also for ) in MyFaces, as their common 
usage in HTML also is
to group other elements?

Yes.  I think that is exactly correct.

Mike

--- Gert Vanthienen <[EMAIL PROTECTED]> wrote:

  

L.S.,

Actually, it was quite easy to have the  render it's children,
as described in the article referred to by Mike Kienenberger.  I downloaded
the source code for the MyFaces Sandbox components and added these two
methods to the FieldsetRenderer class:

public boolean getRendersChildren() {
return true;
}

public void encodeChildren(FacesContext context, UIComponent component)
throws IOException {
RendererUtils.renderChildren(context, component);
}

Now, the  behaves like e.g. a panelGroup, allowing us to use it
as a nesting container for other tags.

Wouldn't it be more logical to make this the default behaviour of
 (and arguably also for ) in MyFaces, as their common
usage in HTML also is to group other elements?

Gert






Re: jsf analogy to struts action

2005-12-20 Thread Craig McClanahan
On 12/20/05, Laurie Harper <[EMAIL PROTECTED]> wrote:
Oops, spoke too soon... the trouble with the servlet approach is thatto-view-id in faces-config isn't a context relative path, it's relativeto the Faces servlet... So I guess it's time to dig into custom navhandlers.

The interpretation of a view identifier is up to the ViewHandler you
are using, but for the default implementation it is most definitely a
context relative path starting with a "/" character, such as
"/index.jsp" or "/foo/bar.jsp".

That doesn't help solve the original problem posed in this thread,
however ... a custom NavigationHandler, however, could deal with that
sort of thing.

Craig
 


Simple Anchor Tag Some Text

2005-12-20 Thread Mike Duffy
The h:outputLink tag creates an ; however, because there is 
no "name"
attribute for this tag there does not seem to be an easy way to create an html 
anchor tag: Some Text.

Any suggestions?

Mike

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


Re: My Faces extensions component problem

2005-12-20 Thread Ali Raza
Yeah, extensions filter is enabled. I have even tried copying the
complete web.xml from simple.war to my own project, but even that didnt
help

Thanx,
AOn 12/20/05, Mike Kienenberger <[EMAIL PROTECTED]> wrote:
Did you enable the extensions filter?http://myfaces.apache.org/tomahawk/extensionsFilter.htmlOn 12/20/05, Ali Raza <
[EMAIL PROTECTED]> wrote:> Greetings,>>  I have downloaded my faces examples and the simple project (simple.war)> runs fine.>  but when i try to use  the same components on my own seperate new project
> it does not render the tag>>  > src=""

>  //-->>>  in the head of the page.>  Any idea why this happens ?>>  Thanx>  A>> --> "A sixteenth century inventor called Wan Hu designed a rocket-propelled > chair on which he planned to ascend into heaven. He built an open cabin, to> which he fitted 47 rockets underneath and above, and two kites to keep him> aloft. Wan Hu disappeared in flame and smoke and was never seen again. A > crater on the moon is now named after him, so in one sense he made it to the> heavens after all. This is the first recorded design of something> approximating to a manned space rocket."> > The Chinese Space Programme.> From Conception to Future Capabilities.> Brian Harvey-- "A sixteenth century inventor called Wan Hu designed a rocket-propelled chair on which he planned to ascend into heaven. He built an open cabin, to which he fitted 47 rockets underneath and above, and two kites to keep him aloft. Wan Hu disappeared in flame and smoke and was never seen again. A crater on the moon is now named after him, so in one sense he made it to the heavens after all. This is the first recorded design of something approximating to a manned space rocket."The Chinese Space Programme.From Conception to Future Capabilities.Brian Harvey

tables and html COL tags

2005-12-20 Thread Simon Kitching

Hi,

I'm using MyFaces from SVN head, and JSP to generate HTML.

I need to be able to set the width for various columns on the table, and 
adding styles to each cell isn't sufficient - I need the COL tag 
functionality.


As far as I can see, none of the table components available can generate 
COL html elements. Is this correct?



I'm working on a patch to add this functionality. It involves 
modifications to HtmlTableRenderer, called just after  has been 
emitted. My current code iterates over all child UIColumn components of 
the HtmlDataTable:


* if child has a facet named "colstyle":
   * emit a  to match any preceding UIColumn that
 didn't have this facet
   * get the first child of that component and render it.

This then allows:

  
...
...

  
 ...
  
  

  
  

  

to generate

  



  ...

  
  

There is something slightly odd about this use of facets though. In 
other cases, facets are used to hold arbitrary components that are 
rendered. Here, I'm really assuming the facet holds a component that 
generates a COL tag; anything else will result in a malformed page.


Can anyone suggest an alternative way for columns to specify their COL 
data? Storing these attributes directly on the t:column tag isn't really 
practical I think.


NB: I'll also handle UIColumns (ie t:columns) children but didn't want 
to confuse things further here...


Cheers,

Simon


Re: jsf analogy to struts action

2005-12-20 Thread Laurie Harper
Oops, spoke too soon... the trouble with the servlet approach is that 
to-view-id in faces-config isn't a context relative path, it's relative 
to the Faces servlet... So I guess it's time to dig into custom nav 
handlers.


L.

Laurie Harper wrote:
But what about if you need to do this for the initial page? (i.e. you 
don't have a page to put a command link on...)


I want this to be able to have bookmarkable URLs in my app, where 
different URLs may map to the same view (JSP) -- for example, URLs 
/app/users/tom and /app/users/jim would both be served by 
/pages/user.jsp, and 'tom' or 'jim' would be passed into the JSP as a 
request attribute/parameter.


The only way I've figured out so far to do this sort of thing is to 
write a front-controller servlet that does the mapping from logical URLs 
to physical JSPs and uses requestDispatcher.forward() to pass control 
off to the Faces servlet.


It's been suggested that writing a custom navigation handler might be 
another route to go; I haven't had a chance to explore that yet.


L.

Mike Kienenberger wrote:



// On bean
public String process()
{
 // process
 if (result1)   return "processResult1";
 if (result2)   return "processResult2";
 if (result3)   return "processResult3";
 if (result4)   return "processResult4";


 return "processResultDefault";
}

On 12/20/05, tony kerz <[EMAIL PROTECTED]> wrote:

at the risk of asking a stupid question:

if i wanted to have a user hit a url and have some processing take place
which then results in one of several available pages being displayed, in
struts i could easily accomplish that with an action class.

what would be the appropriate way to accomplish that functionality in a
JSF application?

something like dropping into an action method on a backing bean, but
without the initial page...











Re: jsf analogy to struts action

2005-12-20 Thread Laurie Harper
But what about if you need to do this for the initial page? (i.e. you 
don't have a page to put a command link on...)


I want this to be able to have bookmarkable URLs in my app, where 
different URLs may map to the same view (JSP) -- for example, URLs 
/app/users/tom and /app/users/jim would both be served by 
/pages/user.jsp, and 'tom' or 'jim' would be passed into the JSP as a 
request attribute/parameter.


The only way I've figured out so far to do this sort of thing is to 
write a front-controller servlet that does the mapping from logical URLs 
to physical JSPs and uses requestDispatcher.forward() to pass control 
off to the Faces servlet.


It's been suggested that writing a custom navigation handler might be 
another route to go; I haven't had a chance to explore that yet.


L.

Mike Kienenberger wrote:



// On bean
public String process()
{
 // process
 if (result1)   return "processResult1";
 if (result2)   return "processResult2";
 if (result3)   return "processResult3";
 if (result4)   return "processResult4";


 return "processResultDefault";
}

On 12/20/05, tony kerz <[EMAIL PROTECTED]> wrote:

at the risk of asking a stupid question:

if i wanted to have a user hit a url and have some processing take place
which then results in one of several available pages being displayed, in
struts i could easily accomplish that with an action class.

what would be the appropriate way to accomplish that functionality in a
JSF application?

something like dropping into an action method on a backing bean, but
without the initial page...








bug?

2005-12-20 Thread Kurt Edegger

Hi everyone,

I ran into a problem by using the inputTextarea component of myfaces-1.1.1.
I simply like to display some editable text by adding



to my jsp page. The application crashed with an ClassCastException [1] while 
retrieving the attribute cols for the tag.
The two methods configBean.getPatientHistoryHeight and configBean.getPatientHistoryWidth are 
returning two Strings like "10" and "40" respectively. I double checked this by 
adding

 by


to my page, which renders properly showing: 10 by 40

If I replace the value bindings for rows and cols by actual numbers, the 
application works fine.

Any ideas why I can't use value bindings, which are returning string values, 
with the inputTextarea component??

Thank you for your help in advance,

Kurt

[1] here's the shortened stacktrace:
javax.faces.FacesException: Could not get property rows of component 
buttonform:patientHistory
 at 
javax.faces.component._ComponentAttributesMap.getComponentProperty(_ComponentAttributesMap.java:226)
 at 
javax.faces.component._ComponentAttributesMap.get(_ComponentAttributesMap.java:128)
[...snip...]
Caused by: java.lang.reflect.InvocationTargetException
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:324)
 at 
javax.faces.component._ComponentAttributesMap.getComponentProperty(_ComponentAttributesMap.java:221)
 ... 71 more
Caused by: java.lang.ClassCastException
 at 
javax.faces.component.html.HtmlInputTextarea.getRows(HtmlInputTextarea.java:321)
 ... 76 more
ERROR: Servlet.service() for servlet Faces Servlet threw exception (2005-12-20 
16:22:44,156 
http-8080-Processor24_org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/sakai-ecgviewer-tool].[Faces
 Servlet])
javax.faces.FacesException: Could not get property rows of component 
buttonform:patientHistory
 at 
org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:421)
 at 
org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java:234)
 at 
org.sakaiproject.jsf.app.SakaiViewHandler.renderView(SakaiViewHandler.java:140)
[...snip...]
Caused by: org.apache.jasper.JasperException: Could not get property rows of 
component buttonform:patientHistory
 at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:370)
 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)
[...snip...]
ERROR: Servlet.service() for servlet sakai.ecgviewer.tool threw exception 
(2005-12-20 16:22:44,171 
http-8080-Processor24_org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/sakai-ecgviewer-tool].[sakai.ecgviewer.tool])
javax.faces.FacesException: Could not get property rows of component 
buttonform:patientHistory
 at 
org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:421)
 at 
org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java:234)
 at 
org.sakaiproject.jsf.app.SakaiViewHandler.renderView(SakaiViewHandler.java:140)
[...snip...]
Caused by: org.apache.jasper.JasperException: Could not get property rows of 
component buttonform:patientHistory
 at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:370)
 at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
[...snip...]



Re: Websphere 6.0 page navigation problem

2005-12-20 Thread Khurram Ahmed
ive already tried the parent last solution and it didnt help and i
completely removed the ibm jsf implementation jars too that didnt help
either


On 12/20/05, Rogerio Saulo (P) <[EMAIL PROTECTED]> wrote:
>
>
> Just change the classloader order in the EAR and WAR modules properties for
> PARENT_LAST.
>
> With myfaces.jar in the WEB-INF/lib of your application, WAS will load the
> myfaces implementation before the IBM one.
>
> This works for me.
>
> Rogerio
>
>
> -Original Message-
> From: fabio fornelli [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, December 20, 2005 9:05 AM
> To: MyFaces Discussion
> Subject: Re: Websphere 6.0 page navigation problem
>
> Hi, we've had the same problem! it seems that Web sphere 6.0 ships with
> IBM's JSF distribution and probably it's in the server's boot classpath as
> well. We didn't manage to sort out the problem in a decent way. If you just
> want your web app to work you have to swap the jars in the server's lib
> (hope you can do that). Substitute myfaces.jar to ibm-jsf-impl.jar (check
> the name of this jar. I'm not sure about that) and start the server again.
> Obviously it's not a viable solution in a production environment but at
> least you can work around the problem in your test environment.
>
> Hope this helps
>
> cheers
> Fabio
>
>
> Khurram Ahmed wrote:
>
> > MyFaces version:  1.1.1
> > Tomact version: 5.0.27
> >
> > I have an application that was developed on tomcat 5.0.27 that refuses
> > to work properly on websphere 6.0 i am able to access the opening page
> > after logging however any subsequent attempts at navigation through a
> > link menu in the application generates the following errors..
> >
> > *Error Message: *
> > *Error Code: *500
> > *Target Servlet: *action
> > *Error Stack: *
> > java.lang.NullPointerException
> >  at
> >
> com.ibm.websphere.product.WASProduct.listFileNames(WASProduct.java:2251)
> >  at
> >
> com.ibm.websphere.product.WASProduct.listFileNames(WASProduct.java:2244)
> >  at
> >
> com.ibm.websphere.product.WASProduct.basicGetProductNames(WASProduct.j
> > ava:1467)
> >
> >  at
> >
> com.ibm.websphere.product.WASProduct.getProductNames(WASProduct.java:1
> > 460)
> >
> >  at
> >
> com.ibm.websphere.product.WASProduct.basicGetProducts(WASProduct.java:
> > 1429)
> >
> >  at
> >
> com.ibm.websphere.product.WASProduct.getProducts(WASProduct.java:1422)
> >  at
> >
> com.ibm.websphere.product.WASProduct.getProductById(WASProduct.java:942)
> >  at
> >
> com.ibm.websphere.product.WASProduct.productPresent(WASProduct.java:968)
> >  at
> >
> _ibmjsp.secure.layouts._contentLayout._jspService(_contentLayout.java:
> > 467)
> >
> >  at
> com.ibm.ws.jsp.runtime.HttpJspBase.service(HttpJspBase.java:88)
> >  at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
> >  at
> >
> com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.
> > java:1212)
> >
> >  at
> >
> com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWr
> > apper.java:629)
> >
> >  at
> >
> com.ibm.wsspi.webcontainer.servlet.GenericServletWrapper.handleRequest
> > (GenericServletWrapper.java:117)
> >
> >  at
> >
> com.ibm.ws.jsp.webcontainerext.JSPExtensionServletWrapper.handleReques
> > t(JSPExtensionServletWrapper.java:171)
> >
> >  at
> >
> com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppR
> > equestDispatcher.java:250)
> >
> >  at
> >
> org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.j
> > ava:1070)
> >
> >  at
> >
> org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestPr
> > ocessor.java:273)
> >
> >  at
> >
> org.apache.struts.tiles.TilesRequestProcessor.processTilesDefinition(T
> > ilesRequestProcessor.java:253)
> >
> >  at
> >
> org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(Til
> > esRequestProcessor.java:308)
> >
> >  at
> >
> org.apache.struts.action.RequestProcessor.process(RequestProcessor.jav
> > a:279)
> >
> >  at
> >
> org.apache.struts.action.ActionServlet.process(ActionServlet.java:1486)
> >  at
> >
> org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:510)
> >  at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
> >  at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
> >  at
> >
> com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.
> > java:1212)
> >
> >  at
> >
> com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWr
> > apper.java:629)
> >
> >  at
> >
> com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:2841)
> >  at
> >
> com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:220)
> >  at
> >
> com.ibm.ws.webcontainer.VirtualHost.handleRequest(VirtualHost.java:204)
> >  at
> >
> com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:1
> > 681)
> >
> >  at
> >
> com.ibm.ws.webcontainer.

Re: JSTL + JSF question

2005-12-20 Thread Alexandre Poitras
One friendly advice, use facelets or Shale-Clay or you'll go throught
a lot of pain if you use JSP as your view technology. It has several
integration issues with JSF.


On 12/20/05, Matthias Wessendorf <[EMAIL PROTECTED]> wrote:
> http://www.onjava.com/pub/a/onjava/2004/06/09/jsf.html
>
> this is a good article on the issue.
>
> On 12/20/05, Matthias Wessendorf <[EMAIL PROTECTED]> wrote:
> > doesn't work
> >
> > use facelets or glassfish (jsp 2.1)
> >
> >
> >
> > On 12/20/05, Jeremy Sager <[EMAIL PROTECTED]> wrote:
> > > Hi guys -
> > >
> > > Thanks in advance for any answers :)
> > >
> > > I need to iterate over something in one of my JSPs that is a list 
> > > maintained
> > > in a session scoped JSF bean.
> > >
> > > I am trying to use this JSTL tag:
> > >
> > > 
> > >
> > > Is this legal?  Or do I need to do something complicated like using a JSP
> > > scriptlet to get my request parameters and go digging for the map?
> > >
> > > Jeremy Sager
> > > Data Communications Product Manager
> > > Chesapeake System Solutions
> > > 410.356.6805 x120
> > > [EMAIL PROTECTED]
> > >
> > >
> >
> >
> > --
> > Matthias Wessendorf
> > Zülpicher Wall 12, 239
> > 50674 Köln
> > http://www.wessendorf.net
> > mwessendorf-at-gmail-dot-com
> >
>
>
> --
> Matthias Wessendorf
> Zülpicher Wall 12, 239
> 50674 Köln
> http://www.wessendorf.net
> mwessendorf-at-gmail-dot-com
>


--
Alexandre Poitras
Québec, Canada


Re: valueChangeListener, what am I missing?

2005-12-20 Thread Anu Padki
I saw that happening before.
I believe is coz updateModelValues is called after the ProcessValidations, in which the eventhadlers are already called.
So the updatemodel is overwriting it.
- AnuOn 12/20/05, Bjørn T Johansen <[EMAIL PROTECTED]> wrote:
I have a JSF component where I am using a valueChangeListener method and a submit button... If I change thevalue of the component and press Submit, the valueChangeListener method is called and everything seems ok...
But in this method I set an index property of a managed bean (in the session scope) to 0 (this index propertyis being used as the value of a selectOneMenu comp.) and this selectOneMenu is reloaded with new data in the
valueChangeListener method.But when the page is redrawn after the submit, the index property is back to the same value as before even ifthe valueChangeListener method sets this to 0. Why? What am I missing?
(and setting this property to 0 in the submit method fixes this, but shouldn't this work just by using thevalueChangeListener method?)Regards,BTJ-
Bjørn T Johansen[EMAIL PROTECTED]---Someone wrote:"I understand that if you play a Windows CD backwards you hear strange Satanic messages"
To which someone replied:"It's even worse than that; play it forwards and it installs Windows"---



Re: Tobago SheetRenderer calls getter for list twicely.

2005-12-20 Thread Bernd Bohmann

Unfortunaly you don't read my description correctly or the subject.

In the render phase:

SheetRenderer is calling ListDataModel.setRowIndex

ListDataModel.setRowIndex is calling ListDataModel.getRowData

Then SheetRenderer is calling getRowData.

This means a double call for data.get(index)

Maybe data.get(index) is call three times
but i only analyse the render phase.

Bernd


Simon Kitching schrieb:

Hi,

All input components (including tables) call the getter at least twice.

They need to call the getter during the validation phase, in order to 
know whether to generate ValueChanged events.


And then they need to call it again at the start of the following render 
phase, because the value may have changed as a result of the "update 
model" phase.


There's really no way to avoid either of these calls. Possibly MyFaces 
could add a "noValueChanged" property on every component, and users 
could set that to true if they don't care about getting ValueChanged 
events for that component, so the validation step can skip trying to 
compare the current value against the model. Hmm..maybe the component 
could look to see if it has any ValueChangeListeners attached, and not 
try to generate the event in that case? I don't know if that's safe 
though; there might be other ways to detect that event than a listener 
(eg an ancestor component which overrides queueEvent). See method 
UIInput.validate for details.


If you are sure that your list will *not* change as a result of the 
"update model" phase, then you could do this:



private transient DataModel myModel;

public DataModel getMyModel() {
  if (myModel == null) {
// create the model, including fetching data
  }
  return myModel;
}


This way, you'll create the model during the validation phase (ie when 
the components are trying to determine whether ValueChanged events are 
needed or not) and use the same object during the rendering phase. Of 
course, as described above, that assumes your data won't change as a 
result of the "update model" phase.


Regards,

Simon

Bernd Bohmann wrote:


Tobago doesn't call getter for the list twice.

SheetRenderer is calling ListDataModel.setRowIndex

ListDataModel.setRowIndex is calling ListDataModel.getRowData

Then SheetRenderer is calling getRowData.

Maybe we can impove the implementation of ListDataModel.
(I think we should) :-)

Bernd




Dennis Byrne schrieb:


I don't think it's a good idea, because writing getter is more logic.




Are you talking about actions and actionListeners?

Dennis Byrne








--
Dipl.-Ing. Bernd Bohmann - Atanion GmbH - Software Development
Bismarckstr. 13, 26122 Oldenburg, http://www.atanion.com
phone: +49 441 4082312, mobile: +49 173 8839471, fax: +49 441 4082333


tree2 question

2005-12-20 Thread Yixing Ma








Hi,

 

I’m trying the myfaces tree2 component right now.

 

 

The environment is JDK 1.5_update 6, Myfaces 1.0.9, windows
XP professional SP2

 

My code is 



 



"1016" border="1" cellpadding="0" cellspacing="0" bordercolor="#00">

  

    "/images/header2.png" width="1016" height="90"/>

  

  

    "2"> 

  

    

  

  

    

  

    

    

  

    

  

  

    "2"> "/images/footer.png" width="1016" height="40"/>

  







 

 

The problem is, tree2 is inside the TermOrganizer.jsp, while CourseInputPanel.jsp display some
text information. 

 


 
  
  Tree
  
  
  
  
   
  
  
   
   
   
   
   
  Text…
  
 


 

 

I want something like


 
  
  Tree
  
  
  
  
   
  
  
  Text…
  
 


 

 

Is it possible?

 

 

 








Re: MyFaces Portlet Issue on WebSphere 5.1

2005-12-20 Thread Louis Burroughs

I finally got to the bottom of my issue
of my pages not rendering in WebSphere Portal Server 5.1.  I actually
had 2 problems:

1. My default classloading is set to
PARENT_LAST  on the portal server, but it is PARENT_FIRST in the RAD
debugger.  I found this one thanks to Ryan's hello world jsf portlet
which somehow rendered in debug, but not when I deployed.  After setting
the classloading to PARENT_FIRST I was able to get to the next error.

2. Relative links in my jsp(s) that
do not start with a "/" cause an IllegalStateException.  This
exception is neatly caught and wrapped in a PortletException, which is
wrapped in a FacesException, never to be heard from again (see PortletExternalContextImpl.dispatch(String
path)  ).  The page just stops rendering and returns blank.  I
have one portlet now rendering and I am chasing down the last of the rougue
links in the other.


Thanks


Louis M. Burroughs III






Ryan Wynn <[EMAIL PROTECTED]>
12/19/2005 08:17 AM
Please respond to "MyFaces Discussion"



        
        To:
       MyFaces Discussion 
        cc:
       
        bcc:
       
        Subject:
       Re: MyFaces Portlet Issue on WebSphere
5.1


On 12/17/05, Ryan Wynn <[EMAIL PROTECTED]>
wrote:
> On 12/16/05, Louis Burroughs <[EMAIL PROTECTED]> wrote:
> >
> > I posted on this forum a couple of days ago about issues I was
having
> > running a MyFaces app as a portlet and someone sent me a hello
world ear
> > called SamEar.ear to test with.  Unfortunately my inbox
got wiped out and I
> > cannot find the thread of emails, nor did I find it in the archives
and I
> > have a question:
> >
> > Can you tell me if the portlet ran in WebSphere 5.1.0.0, 5.1.0.1
or 5.1.0.2?
> >
> > The hello world portlet fails to render as well, even though
I do not get
> > any errors.  I am running WebSphere 5.1.0.0.
> >
> > Thanks,
> > Louis M. Burroughs III
>
> Louis, I sent you that sample.  Somone else was having a problem
using
> myfaces with wps 5.1 so I cooked up that portlet.  It worked
fine in
> the other person's case.  I am actually not positive right now
what
> exact version of 5.1 I am running at work.  I will let you know
on
> Monday.  I am pretty sure it's the base 5.1.0 version.
>
> Are you sure you are setting the correct permissions on the portlet
in
> order to be able to see it.  It sounds like a dumb question,
but since
> you didn't see any errors I thought I would check.
>
> You can also try it in the WPS 5.1 Test Environment for RAD if that
is
> available to you.
>
> Ryan
>


Here is the version info that I have

product=IBM WebSphere Portal Server
version=5.1.0.0
fixlevel=0
mode=standard
buildnumber=wp510_083


Re: NavigationMenuItem

2005-12-20 Thread Thomas Spiegl
I use the current version from svn.Jscookmenu works fine in the
examples application and the actionListener is getting called as well.
Do you get any java script errors?.

Thomas

On 12/20/05, Dudu <[EMAIL PROTECTED]> wrote:
> Hey
> I suppose there are no bug then
> no one responded my question about the NavigationMenuItem that I click
> and do nothing, no submit...
>
> But I it is strange, if I use the current release, it works, but when I
> use the nightly build, it doesn't works
> I'm must to use the nightly build , because I need to set the
> actionListener
> :(
> thanks all
>
>
>
>
>
> ___
> Yahoo! doce lar. Faça do Yahoo! sua homepage.
> http://br.yahoo.com/homepageset.html
>
>


--
http://www.irian.at

Your JSF powerhouse -
JSF Consulting, Development and
Courses in English and German

Professional Support for Apache MyFaces


RE: Why do h:message Tags Need to be enclosed in h:panelGroup or h:panelGrid Tags

2005-12-20 Thread Mike Duffy
Wouldn't it be more logical to make this the default behaviour of
 (and arguably also for ) in MyFaces, as their common 
usage in HTML also is
to group other elements?

Yes.  I think that is exactly correct.

Mike

--- Gert Vanthienen <[EMAIL PROTECTED]> wrote:

> L.S.,
> 
> Actually, it was quite easy to have the  render it's children,
> as described in the article referred to by Mike Kienenberger.  I downloaded
> the source code for the MyFaces Sandbox components and added these two
> methods to the FieldsetRenderer class:
> 
> public boolean getRendersChildren() {
> return true;
> }
> 
> public void encodeChildren(FacesContext context, UIComponent component)
> throws IOException {
> RendererUtils.renderChildren(context, component);
> }
> 
> Now, the  behaves like e.g. a panelGroup, allowing us to use it
> as a nesting container for other tags.
> 
> Wouldn't it be more logical to make this the default behaviour of
>  (and arguably also for ) in MyFaces, as their common
> usage in HTML also is to group other elements?
> 
> Gert
> 
> -Original Message-
> From: Gert Vanthienen [mailto:[EMAIL PROTECTED] 
> Sent: maandag 19 december 2005 20:04
> To: 'MyFaces Discussion'
> Subject: RE: Why do h:message Tags Need to be enclosed in h:panelGroup or
> h:panelGrid Tags
> 
> Mike,
> 
> Not really...  I guess you could go and download the source code for MyFaces
> and create try to create your own div tag based on the example code from the
> current div-tag and the panelGroup tag.  I will be trying to do the same
> thing tomorrow with the  tag, I will let you know if it worked
> out ok...
> 
> Gert
> 
> -Original Message-
> From: Mike Duffy [mailto:[EMAIL PROTECTED] 
> Sent: donderdag 15 december 2005 21:18
> To: MyFaces Discussion
> Subject: RE: Why do h:message Tags Need to be enclosed in h:panelGroup or
> h:panelGrid Tags
> 
> Thx.
> 
> Any suggestions for a hack that could make this work?
> 
> --- Gert Vanthienen <[EMAIL PROTECTED]> wrote:
> 
> > L.S.,
> > 
> > 
> > I have the same problem when using a Sandbox  tag.  Wouldn't
> it
> > make sense to add this behaviour to both the fieldset and div tags (as
> they
> > are meant to group other UI elements anyway)?  
> > 
> > Another option could be to include a 'rendersChildren=true/false'
> attribute
> > to the tag definitions, so that the end user can decide whether or not the
> > div/fieldset is responsible for rendering it's children (because that's
> the
> > issue here, if I'm correct?)
> > 
> > 
> > Regards,
> > 
> > Gert Vanthienen
> > 
> > 
> > -Original Message-
> > From: Mike Duffy [mailto:[EMAIL PROTECTED] 
> > Sent: donderdag 15 december 2005 20:42
> > To: users@myfaces.apache.org
> > Subject: Why do h:message Tags Need to be enclosed in h:panelGroup or
> > h:panelGrid Tags
> > 
> > I am using the MyFaces  tag to layout my pages, which works fine.
> > However, because the
> >  tags are not contained in an h:panelGroup or h:panelGrid tag,
> > errors like the
> > following are generated when the page loads:
> > 
> > 00:01:52,097 ERROR [HtmlMessageRendererBase] Could not render Message.
> > Unable to find component
> > 'estimatedStartDate' (calling findComponent on component
> > 'issueCreateForm:estimatedStartDateError'). If the provided id was
> correct,
> > wrap the message and
> > its component into an h:panelGroup or h:panelGrid.
> > 
> > Why do h:message tags need to be enclosed in h:panelGroup or h:panelGrid
> > tags.
> > 
> > Does anyone else think this is a bug? Any suggestions?
> > 
> > Thx.
> > 
> > Mike
> > 
> > __
> > Do You Yahoo!?
> > Tired of spam?  Yahoo! Mail has the best spam protection around 
> > http://mail.yahoo.com 
> > 
> > -- 
> > No virus found in this incoming message.
> > Checked by AVG Free Edition.
> > Version: 7.1.371 / Virus Database: 267.13.13/199 - Release Date:
> 13-12-2005
> >  
> > 
> > -- 
> > No virus found in this outgoing message.
> > Checked by AVG Free Edition.
> > Version: 7.1.371 / Virus Database: 267.13.13/199 - Release Date:
> 13-12-2005
> >  
> > 
> > 
> 
> 
> __
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around 
> http://mail.yahoo.com 
> 
> -- 
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.1.371 / Virus Database: 267.13.13/199 - Release Date: 13-12-2005
>  
> 
> -- 
> No virus found in this outgoing message.
> Checked by AVG Free Edition.
> Version: 7.1.371 / Virus Database: 267.14.1/206 - Release Date: 16-12-2005
>  
> 
> 
> -- 
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.1.371 / Virus Database: 267.14.1/206 - Release Date: 16-12-2005
>  
> 
> -- 
> No virus found in this outgoing message.
> Checked by AVG Free Edition.
> Version: 7.1.371 / Virus Database: 267.14.1/207 - Release Date: 19-12-2005
>  
> 
> 


_

Re: Tobago SheetRenderer calls getter for list twicely.

2005-12-20 Thread Simon Kitching

Hi,

All input components (including tables) call the getter at least twice.

They need to call the getter during the validation phase, in order to 
know whether to generate ValueChanged events.


And then they need to call it again at the start of the following render 
phase, because the value may have changed as a result of the "update 
model" phase.


There's really no way to avoid either of these calls. Possibly MyFaces 
could add a "noValueChanged" property on every component, and users 
could set that to true if they don't care about getting ValueChanged 
events for that component, so the validation step can skip trying to 
compare the current value against the model. Hmm..maybe the component 
could look to see if it has any ValueChangeListeners attached, and not 
try to generate the event in that case? I don't know if that's safe 
though; there might be other ways to detect that event than a listener 
(eg an ancestor component which overrides queueEvent). See method 
UIInput.validate for details.


If you are sure that your list will *not* change as a result of the 
"update model" phase, then you could do this:



private transient DataModel myModel;

public DataModel getMyModel() {
  if (myModel == null) {
// create the model, including fetching data
  }
  return myModel;
}


This way, you'll create the model during the validation phase (ie when 
the components are trying to determine whether ValueChanged events are 
needed or not) and use the same object during the rendering phase. Of 
course, as described above, that assumes your data won't change as a 
result of the "update model" phase.


Regards,

Simon

Bernd Bohmann wrote:

Tobago doesn't call getter for the list twice.

SheetRenderer is calling ListDataModel.setRowIndex

ListDataModel.setRowIndex is calling ListDataModel.getRowData

Then SheetRenderer is calling getRowData.

Maybe we can impove the implementation of ListDataModel.
(I think we should) :-)

Bernd




Dennis Byrne schrieb:

I don't think it's a good idea, because writing getter is more logic.



Are you talking about actions and actionListeners?

Dennis Byrne







Re: Tobago SheetRenderer calls getter for list twicely.

2005-12-20 Thread Bernd Bohmann

Tobago doesn't call getter for the list twice.

SheetRenderer is calling ListDataModel.setRowIndex

ListDataModel.setRowIndex is calling ListDataModel.getRowData

Then SheetRenderer is calling getRowData.

Maybe we can impove the implementation of ListDataModel.
(I think we should) :-)

Bernd




Dennis Byrne schrieb:
I don't think it's a good idea, because writing getter is 
more logic.



Are you talking about actions and actionListeners?

Dennis Byrne



--
Dipl.-Ing. Bernd Bohmann - Atanion GmbH - Software Development
Bismarckstr. 13, 26122 Oldenburg, http://www.atanion.com
phone: +49 441 4082312, mobile: +49 173 8839471, fax: +49 441 4082333


valueChangeListener, what am I missing?

2005-12-20 Thread Bjørn T Johansen
I have a JSF component where I am using a valueChangeListener method and a 
submit button... If I change the
value of the component and press Submit, the valueChangeListener method is 
called and everything seems ok...
But in this method I set an index property of a managed bean (in the session 
scope) to 0 (this index property
is being used as the value of a selectOneMenu comp.) and this selectOneMenu is 
reloaded with new data in the
valueChangeListener method.
But when the page is redrawn after the submit, the index property is back to 
the same value as before even if
the valueChangeListener method sets this to 0. Why? What am I missing?
(and setting this property to 0 in the submit method fixes this, but shouldn't 
this work just by using the
valueChangeListener method?)


Regards,

BTJ

-- 
---
Bjørn T Johansen

[EMAIL PROTECTED]
---
Someone wrote:
"I understand that if you play a Windows CD backwards you hear strange Satanic 
messages"
To which someone replied:
"It's even worse than that; play it forwards and it installs Windows"
---


RE: Why do h:message Tags Need to be enclosed in h:panelGroup or h:panelGrid Tags

2005-12-20 Thread Gert Vanthienen
L.S.,

Actually, it was quite easy to have the  render it's children,
as described in the article referred to by Mike Kienenberger.  I downloaded
the source code for the MyFaces Sandbox components and added these two
methods to the FieldsetRenderer class:

public boolean getRendersChildren() {
return true;
}

public void encodeChildren(FacesContext context, UIComponent component)
throws IOException {
RendererUtils.renderChildren(context, component);
}

Now, the  behaves like e.g. a panelGroup, allowing us to use it
as a nesting container for other tags.

Wouldn't it be more logical to make this the default behaviour of
 (and arguably also for ) in MyFaces, as their common
usage in HTML also is to group other elements?

Gert

-Original Message-
From: Gert Vanthienen [mailto:[EMAIL PROTECTED] 
Sent: maandag 19 december 2005 20:04
To: 'MyFaces Discussion'
Subject: RE: Why do h:message Tags Need to be enclosed in h:panelGroup or
h:panelGrid Tags

Mike,

Not really...  I guess you could go and download the source code for MyFaces
and create try to create your own div tag based on the example code from the
current div-tag and the panelGroup tag.  I will be trying to do the same
thing tomorrow with the  tag, I will let you know if it worked
out ok...

Gert

-Original Message-
From: Mike Duffy [mailto:[EMAIL PROTECTED] 
Sent: donderdag 15 december 2005 21:18
To: MyFaces Discussion
Subject: RE: Why do h:message Tags Need to be enclosed in h:panelGroup or
h:panelGrid Tags

Thx.

Any suggestions for a hack that could make this work?

--- Gert Vanthienen <[EMAIL PROTECTED]> wrote:

> L.S.,
> 
> 
> I have the same problem when using a Sandbox  tag.  Wouldn't
it
> make sense to add this behaviour to both the fieldset and div tags (as
they
> are meant to group other UI elements anyway)?  
> 
> Another option could be to include a 'rendersChildren=true/false'
attribute
> to the tag definitions, so that the end user can decide whether or not the
> div/fieldset is responsible for rendering it's children (because that's
the
> issue here, if I'm correct?)
> 
> 
> Regards,
> 
> Gert Vanthienen
> 
> 
> -Original Message-
> From: Mike Duffy [mailto:[EMAIL PROTECTED] 
> Sent: donderdag 15 december 2005 20:42
> To: users@myfaces.apache.org
> Subject: Why do h:message Tags Need to be enclosed in h:panelGroup or
> h:panelGrid Tags
> 
> I am using the MyFaces  tag to layout my pages, which works fine.
> However, because the
>  tags are not contained in an h:panelGroup or h:panelGrid tag,
> errors like the
> following are generated when the page loads:
> 
> 00:01:52,097 ERROR [HtmlMessageRendererBase] Could not render Message.
> Unable to find component
> 'estimatedStartDate' (calling findComponent on component
> 'issueCreateForm:estimatedStartDateError'). If the provided id was
correct,
> wrap the message and
> its component into an h:panelGroup or h:panelGrid.
> 
> Why do h:message tags need to be enclosed in h:panelGroup or h:panelGrid
> tags.
> 
> Does anyone else think this is a bug? Any suggestions?
> 
> Thx.
> 
> Mike
> 
> __
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around 
> http://mail.yahoo.com 
> 
> -- 
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.1.371 / Virus Database: 267.13.13/199 - Release Date:
13-12-2005
>  
> 
> -- 
> No virus found in this outgoing message.
> Checked by AVG Free Edition.
> Version: 7.1.371 / Virus Database: 267.13.13/199 - Release Date:
13-12-2005
>  
> 
> 


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

-- 
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.371 / Virus Database: 267.13.13/199 - Release Date: 13-12-2005
 

-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.371 / Virus Database: 267.14.1/206 - Release Date: 16-12-2005
 


-- 
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.371 / Virus Database: 267.14.1/206 - Release Date: 16-12-2005
 

-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.371 / Virus Database: 267.14.1/207 - Release Date: 19-12-2005
 



Re: JSF web application test

2005-12-20 Thread Craig McClanahan
On 12/20/05, Keith Lynch <[EMAIL PROTECTED]> wrote:







Sounds 
interesting!It is. I saw it demoed at JP05 and it looked great. 

How 
long does it take to setup up such tests?As long as it takes you to navigate your own interface plus + about 2-5 mins for each test case.

Is it 
tricky?Not at all. 

Regards,
AndyWhile
at JP I also saw a part of shale being used to test your managed beans.
It looks cool too but it's not the same type of testing. However I
haven't got a chance to look at this part yet.
http://struts.apache.org/struts-shale/features-test-framework.html

This part of Shale is an attempt to raise the bar on JSF development a
little, by removing the excuse that it's too hard to set up unit tests
for your server side beans :-).  The framework provides mock
objects for all the necessary structures, plus base classes for your
test cases that wire everything together for you like a container will.

That being said, I personally consider such unit tests to be necessary
but not sufficient for overall application testing, and like to have
system integration tests in addition, which behave like a client
browser, and then examine the results.  The Shale "use cases"
example app has some integration tests like this (as well as some unit
test coverage).

My personal favorite tool for integration tests is HtmlUnit (at SourceForge) but there are lots of others as well.
 CheersKeith

Craig
 

-Ursprüngliche Nachricht-Von: Keith Lynch 
  [mailto:[EMAIL PROTECTED]]Gesendet: Dienstag, 20. Dezember 2005 
  13:48An: MyFaces DiscussionBetreff: Re: JSF web 
  application testTake a look at Selenium
http://www.openqa.org/selenium/ 
  There's even a firefox plugin to record your tests :)
  On 12/20/05, Jesse 
  Alexander (KBSA 21) <[EMAIL PROTECTED]> 
  wrote:
  -Original 
Message-I believe you are looking for httpunit .-/Original 
Message-Or its abstraction 
JWebUnit.Alexander Original message 
>   What is the way to write automatic tests for web 
>   application using JSF? Right now I have to open 
web>   browser to manually test it. I like to write 
tests>   that can be executed as a batch to make sure 
that>   new changes will not break existing features. 
>>   Thanks for advice.>   
  Dave
__

This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
your system manager.
 
This footnote also confirms that this email message has been swept
for the presence of computer viruses. 
__







Re: Download file q

2005-12-20 Thread Marius Oancea




Yes is possible.

    HttpServletResponse response = (HttpServletResponse)
facesContext
    .getExternalContext().getResponse();

    ServletOutputStream out;
    try {
    out = response.getOutputStream();
    if (currentItem.getDocument() != null) {
    log.info("Attached document exists for " +
currentItem);
    response.setContentType("message/rfc822");
    response.setHeader("Content-disposition",
    "inline;filename=file.mht");
    out.write(currentItem.getDocument());
    } else {
    log.info("Not existing attached document. Using
default text. "
    + ...);
    response.setContentType("text/html");
    out.write(("No document for " +
currentItem.getTitle())
    .getBytes());
    }
    out.flush();
    } catch (Exception e) {
    log.debug(".. ", e);
    }
    facesContext.responseComplete();



Regards
    Marius


Anu Padki wrote:

> Is it not possible to download a
file using action method? Do we
> have to write a servlet? Thanks. - Anu




begin:vcard
fn:Oancea Marius
n:Marius;Oancea
org:Hermann Oberth Faculty of Engineering, Lucian Blaga University of Sibiu;Department of Computer Science
adr:;;4 Emil Cioran Str.;Sibiu;Sibiu;550025;Roumania
email;internet:[EMAIL PROTECTED]
title:Asist. Ing.
tel;home:+40 369 401740
tel;cell:+40 742 207963
url:http://www.csac.ulbsibiu.ro
version:2.1
end:vcard



Re: t:validateEqual custom message

2005-12-20 Thread Matthias Wessendorf
yes,

overwrite "org.apache.myfaces.Equal.INVALID_detail" key inside of your file

-Matthias

On 12/20/05, Airton Carrara <[EMAIL PROTECTED]> wrote:
> Hello.
>
> Does MyFaces offer a specific key on its custom messages list to
> t:validateEqual, as done e.g. to
> javax.faces.component.UIInput.REQUIRED,
> javax.faces.validator.NOT_IN_RANGE and so on?
>
> I mean something like "
> javax.faces.validator.VALIDATE_EQUAL" to add on a
> ResourceBundle properties file and set a custom error message...
>
> Thanks,
> Airton.
>


--
Matthias Wessendorf
Zülpicher Wall 12, 239
50674 Köln
http://www.wessendorf.net
mwessendorf-at-gmail-dot-com


Re: t:validateEqual custom message

2005-12-20 Thread Mike Kienenberger
org.apache.myfaces.Equal.INVALID = Validation Error
org.apache.myfaces.Equal.INVALID_detail =The given value ({0}) is not
equal with value of "{1}".

You can also use the new sandbox compareToValidator instead and
specify messages per validator instance using the "message" attribute.

On 12/20/05, Airton Carrara <[EMAIL PROTECTED]> wrote:
> Hello.
>
> Does MyFaces offer a specific key on its custom messages list to
> t:validateEqual, as done e.g. to
> javax.faces.component.UIInput.REQUIRED,
> javax.faces.validator.NOT_IN_RANGE and so on?
>
> I mean something like "
> javax.faces.validator.VALIDATE_EQUAL" to add on a
> ResourceBundle properties file and set a custom error message...
>
> Thanks,
> Airton.
>


NavigationMenuItem

2005-12-20 Thread Dudu

Hey
I suppose there are no bug then
no one responded my question about the NavigationMenuItem that I click 
and do nothing, no submit...


But I it is strange, if I use the current release, it works, but when I 
use the nightly build, it doesn't works
I'm must to use the nightly build , because I need to set the 
actionListener

:(
thanks all





___ 
Yahoo! doce lar. Faça do Yahoo! sua homepage. 
http://br.yahoo.com/homepageset.html 



Auto Page Refresh causes SocetException

2005-12-20 Thread Burke, Rodney








All,

 

I have monitoring web application which uses myfaces.

The basic flow seems to work, but I keep getting a
SocketException when the META auto refresh
kicks in.

 

I’m using HTML META refresh content with a timer as
follows:

 

   

   

    

  <[EMAIL PROTECTED]
file="/inc/head.inc" %>

     

  ;
URL="" >

   

   

   

    

 

Note: I have a JSF commandButton which users can push to do
a manual refresh and that works fine with no errors.

 

Any input is appreciated!

Thanks,

Rodney

 

 

Here’s the SocketException:

 

12:24:03,254 WARN  [ReducedHTMLParser] Invalid HTML;
bare lessthan sign found at line 1

12:24:03,317 ERROR [AddResource] Error while serving
resource: null

ClientAbortException:  java.net.SocketException:
Connection reset

    at
org.apache.catalina.connector.OutputBuffer.realWriteBytes(OutputBuffer.java:366)

    at
org.apache.tomcat.util.buf.ByteChunk.flushBuffer(ByteChunk.java:403)

    at
org.apache.catalina.connector.OutputBuffer.doFlush(OutputBuffer.java:314)

    at
org.apache.catalina.connector.OutputBuffer.close(OutputBuffer.java:278)

    at
org.apache.catalina.connector.CoyoteOutputStream.close(CoyoteOutputStream.java:91)

    at
org.apache.myfaces.component.html.util.MyFacesResourceLoader.writeResource(MyfacesResourceLoader.java:173)

    at
org.apache.myfaces.component.html.util.MyFacesResourceLoader.serveResource(MyfacesResourceLoader.java:152)

    at
org.apache.myfaces.component.html.util.AddResource.serveResource(AddResource.java:555)

    at
org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(ExtensionsFilter.java:109)

    at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)

    at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)

    at
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)

    at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)

    at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)

    at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)

    at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)

    at
org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39)

    at
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:153)

    at
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59)

    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.processConnection(Http11Protocol.java:744)

    at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)

    at
org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)

    at
java.lang.Thread.run(Thread.java:534)

12:24:03,319 ERROR [[default]] Servlet.service() for
servlet default threw exception

java.lang.IllegalStateException

    at
org.apache.catalina.connector.ResponseFacade.sendError(ResponseFacade.java:409)

    at
org.apache.myfaces.component.html.util.AddResource.serveResource(AddResource.java:580)

    at
org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(ExtensionsFilter.java:109)

    at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)

    at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)

    at
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)

    at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)

    at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)

    at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)

    at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)

    at
org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39)

    at
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:153)

    at
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59)

    at
org.apache.catalina.core.StandardHostValve.invoke(StandardHo

t:validateEqual custom message

2005-12-20 Thread Airton Carrara
Hello.Does MyFaces offer a specific key on its custom messages list to t:validateEqual, as done e.g. to javax.faces.component.UIInput.REQUIRED, javax.faces.validator.NOT_IN_RANGE and so on?I mean something like "
javax.faces.validator.VALIDATE_EQUAL" to add on a ResourceBundle properties file and set a custom error message...Thanks,Airton.


RE: tobago examples

2005-12-20 Thread Dennis Byrne
David, I think you are correct.  Previous example was using 
latest IE on XP.  From work, I can click around all over the 
place w/ Firefox and XP.  But also from work, I tried IE and 
got the exception the first time I clicked on the "ListBox" 
tab.

 Original message 
>Date: Tue, 20 Dec 2005 11:47:13 -0500
>From: "David G. Friedman" <[EMAIL PROTECTED]>  
>Subject: RE: tobago examples  
>To: "MyFaces Discussion" 
>
>No problems here in IE or Firefox.  What 
browser/version/platform are you using?  Can you use another 
one to check it's
>not your OS or Internet connection?
>
>-David
>
>-Original Message-
>From: Dennis Byrne [mailto:[EMAIL PROTECTED]
>Sent: Tuesday, December 20, 2005 11:36 AM
>To: MyFaces Discussion
>Subject: Re: tobago examples
>
>
>That's weird.  I just went back there and only got a 404 on
>step 3 (the tab starting w/ "List").
>
> Original message 
>>Date: Tue, 20 Dec 2005 11:31:10 +0100
>>From: Matthias Wessendorf <[EMAIL PROTECTED]>
>>Subject: Re: tobago examples
>>To: MyFaces Discussion 
>>
>>can't reproduce ...
>>
>>
>>On 12/20/05, Dennis Byrne <[EMAIL PROTECTED]> wrote:
>>> 1.) http://tobago.atanion.net/tobago-example-demo/
>>> 2.) click on "Tree Control"
>>> 3.) click on the second tab.
>>> 4.) click on the first tab.
>>> 5.) click on the second tab
>>> 6.) 404 for http://tobago.atanion.net/tobago-example-
>>> demo/faces/overview/treeControl.jsp
>>>
>>>  Original message 
>>> >Date: Tue, 20 Dec 2005 00:50:59 -0900
>>> >From: Dennis Byrne <[EMAIL PROTECTED]>
>>> >Subject: tobago examples
>>> >To: users@myfaces.apache.org
>>> >
>>> >http://tobago.atanion.net/tobago-example-demo/
>>> >
>>> >I believe I have accidently brought down the demo app for
>>> >tobago.  This is the second time I have clicked on one of
>>> the
>>> >tabs and received an error page, as well as a 404
>whenever I
>>> >go any page of the app.
>>> >
>>> >I cannot remember the name of the tab I clicked on.  If
>>> >someone can tell me how to get a war file, it probably
>won't
>>> >take long for me to retrace my steps.
>>> >
>>> >Dennis Byrne
>>>
>>> Dennis Byrne
>>>
>>
>>
>>--
>>Matthias Wessendorf
>>Zülpicher Wall 12, 239
>>50674 Köln
>>http://www.wessendorf.net
>>mwessendorf-at-gmail-dot-com
>
>Dennis Byrne
>

Dennis Byrne


Re: How to get currently selected node of tree2 component

2005-12-20 Thread Kurt Edegger

Hi Hans,

thank you for this hint! This looks like somethink that should work. The 
question is only, why the HtlmTree.getNode() is reset anyway after the 
listener. But I think this is out of scope for now.
How did you find out about this updateActionListener? I just found the 
JavaDoc entry after you pointed this listener out to me. Additional the 
doc is not very descriptive in terms of functionality.


Again, thank you very much!

Take care,

Kurt


RE: Tobago SheetRenderer calls getter for list twicely.

2005-12-20 Thread Dennis Byrne
>I don't think it's a good idea, because writing getter is 
>more logic.

Are you talking about actions and actionListeners?

Dennis Byrne


RE: Tobago SheetRenderer calls getter for list twicely.

2005-12-20 Thread Olexandr Zakordonskyy
I don't think it's a good idea, because writing getter is more logic. And I
don't think it will be performance loose if Tobago makes it as in Sun RI and
getter will be called once per 1 component rendering instead of 2 times.

Thanks.

-Original Message-
From: Dennis Byrne [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, December 20, 2005 7:02 PM
To: MyFaces Discussion
Subject: RE: Tobago SheetRenderer calls getter for list twicely.

Try loading the data in an action or actionListener (before 
the request is forwarded to the current view).

 Original message 
>Date: Tue, 20 Dec 2005 18:50:39 +0200
>From: "Olexandr Zakordonskyy" <[EMAIL PROTECTED]>  
>Subject: RE: Tobago SheetRenderer calls getter for list 
twicely.  
>To: "'MyFaces Discussion'" 
>
>But how can I initialize data if I am working with a session 
bean? 
>Possible solutions
>
>1)In constructor.
>2)In getter.
>
>What I have to choose.
>If I am working with dynamic data first choise is not 
possible.
>The last is to read data in getter or in method that will be 
called from
>getter.
>
>I don't see the reason why to call getter more than once for 
1 component
>rendering.
>
>Maybe you advice any other data-init mechanism.
>
>Thanks.
>Olexandr.
>
>-Original Message-
>From: Dennis Byrne [mailto:[EMAIL PROTECTED] 
>Sent: Tuesday, December 20, 2005 6:33 PM
>To: MyFaces Discussion
>Subject: Re: Tobago SheetRenderer calls getter for list 
twicely.
>
>I think your going to find this behavior with any of the 
more 
>complex controls.  The best way to guard against this is to 
>make your getters "just getters".  Typically a problem comes 
>up whenever there is a database trip in the getter.
>
> Original message 
>>Date: Tue, 20 Dec 2005 12:58:04 +0200
>>From: "Olexandr Zakordonskyy" <[EMAIL PROTECTED]>  
>>Subject: Tobago SheetRenderer calls getter for list 
>twicely.  
>>To: 
>>
>>Hi.
>>
>>SheetRenderer calls getter for list twicely. It would be 
>better if it will
>>store reference and will not call it more than once.
>>
>>Thanks.
>>
>
>Dennis Byrne
>

Dennis Byrne



RE: Tobago SheetRenderer calls getter for list twicely.

2005-12-20 Thread Dennis Byrne
Try loading the data in an action or actionListener (before 
the request is forwarded to the current view).

 Original message 
>Date: Tue, 20 Dec 2005 18:50:39 +0200
>From: "Olexandr Zakordonskyy" <[EMAIL PROTECTED]>  
>Subject: RE: Tobago SheetRenderer calls getter for list 
twicely.  
>To: "'MyFaces Discussion'" 
>
>But how can I initialize data if I am working with a session 
bean? 
>Possible solutions
>
>1)In constructor.
>2)In getter.
>
>What I have to choose.
>If I am working with dynamic data first choise is not 
possible.
>The last is to read data in getter or in method that will be 
called from
>getter.
>
>I don't see the reason why to call getter more than once for 
1 component
>rendering.
>
>Maybe you advice any other data-init mechanism.
>
>Thanks.
>Olexandr.
>
>-Original Message-
>From: Dennis Byrne [mailto:[EMAIL PROTECTED] 
>Sent: Tuesday, December 20, 2005 6:33 PM
>To: MyFaces Discussion
>Subject: Re: Tobago SheetRenderer calls getter for list 
twicely.
>
>I think your going to find this behavior with any of the 
more 
>complex controls.  The best way to guard against this is to 
>make your getters "just getters".  Typically a problem comes 
>up whenever there is a database trip in the getter.
>
> Original message 
>>Date: Tue, 20 Dec 2005 12:58:04 +0200
>>From: "Olexandr Zakordonskyy" <[EMAIL PROTECTED]>  
>>Subject: Tobago SheetRenderer calls getter for list 
>twicely.  
>>To: 
>>
>>Hi.
>>
>>SheetRenderer calls getter for list twicely. It would be 
>better if it will
>>store reference and will not call it more than once.
>>
>>Thanks.
>>
>
>Dennis Byrne
>

Dennis Byrne


RE: Tobago SheetRenderer calls getter for list twicely.

2005-12-20 Thread Olexandr Zakordonskyy
But how can I initialize data if I am working with a session bean? 
Possible solutions

1)In constructor.
2)In getter.

What I have to choose.
If I am working with dynamic data first choise is not possible.
The last is to read data in getter or in method that will be called from
getter.

I don't see the reason why to call getter more than once for 1 component
rendering.

Maybe you advice any other data-init mechanism.

Thanks.
Olexandr.

-Original Message-
From: Dennis Byrne [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, December 20, 2005 6:33 PM
To: MyFaces Discussion
Subject: Re: Tobago SheetRenderer calls getter for list twicely.

I think your going to find this behavior with any of the more 
complex controls.  The best way to guard against this is to 
make your getters "just getters".  Typically a problem comes 
up whenever there is a database trip in the getter.

 Original message 
>Date: Tue, 20 Dec 2005 12:58:04 +0200
>From: "Olexandr Zakordonskyy" <[EMAIL PROTECTED]>  
>Subject: Tobago SheetRenderer calls getter for list 
twicely.  
>To: 
>
>Hi.
>
>SheetRenderer calls getter for list twicely. It would be 
better if it will
>store reference and will not call it more than once.
>
>Thanks.
>

Dennis Byrne



RE: tobago examples

2005-12-20 Thread David G. Friedman
No problems here in IE or Firefox.  What browser/version/platform are you 
using?  Can you use another one to check it's
not your OS or Internet connection?

-David

-Original Message-
From: Dennis Byrne [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 20, 2005 11:36 AM
To: MyFaces Discussion
Subject: Re: tobago examples


That's weird.  I just went back there and only got a 404 on
step 3 (the tab starting w/ "List").

 Original message 
>Date: Tue, 20 Dec 2005 11:31:10 +0100
>From: Matthias Wessendorf <[EMAIL PROTECTED]>
>Subject: Re: tobago examples
>To: MyFaces Discussion 
>
>can't reproduce ...
>
>
>On 12/20/05, Dennis Byrne <[EMAIL PROTECTED]> wrote:
>> 1.) http://tobago.atanion.net/tobago-example-demo/
>> 2.) click on "Tree Control"
>> 3.) click on the second tab.
>> 4.) click on the first tab.
>> 5.) click on the second tab
>> 6.) 404 for http://tobago.atanion.net/tobago-example-
>> demo/faces/overview/treeControl.jsp
>>
>>  Original message 
>> >Date: Tue, 20 Dec 2005 00:50:59 -0900
>> >From: Dennis Byrne <[EMAIL PROTECTED]>
>> >Subject: tobago examples
>> >To: users@myfaces.apache.org
>> >
>> >http://tobago.atanion.net/tobago-example-demo/
>> >
>> >I believe I have accidently brought down the demo app for
>> >tobago.  This is the second time I have clicked on one of
>> the
>> >tabs and received an error page, as well as a 404
whenever I
>> >go any page of the app.
>> >
>> >I cannot remember the name of the tab I clicked on.  If
>> >someone can tell me how to get a war file, it probably
won't
>> >take long for me to retrace my steps.
>> >
>> >Dennis Byrne
>>
>> Dennis Byrne
>>
>
>
>--
>Matthias Wessendorf
>Zülpicher Wall 12, 239
>50674 Köln
>http://www.wessendorf.net
>mwessendorf-at-gmail-dot-com

Dennis Byrne



Re: tobago examples

2005-12-20 Thread Dennis Byrne
That's weird.  I just went back there and only got a 404 on 
step 3 (the tab starting w/ "List").

 Original message 
>Date: Tue, 20 Dec 2005 11:31:10 +0100
>From: Matthias Wessendorf <[EMAIL PROTECTED]>  
>Subject: Re: tobago examples  
>To: MyFaces Discussion 
>
>can't reproduce ...
>
>
>On 12/20/05, Dennis Byrne <[EMAIL PROTECTED]> wrote:
>> 1.) http://tobago.atanion.net/tobago-example-demo/
>> 2.) click on "Tree Control"
>> 3.) click on the second tab.
>> 4.) click on the first tab.
>> 5.) click on the second tab
>> 6.) 404 for http://tobago.atanion.net/tobago-example-
>> demo/faces/overview/treeControl.jsp
>>
>>  Original message 
>> >Date: Tue, 20 Dec 2005 00:50:59 -0900
>> >From: Dennis Byrne <[EMAIL PROTECTED]>
>> >Subject: tobago examples
>> >To: users@myfaces.apache.org
>> >
>> >http://tobago.atanion.net/tobago-example-demo/
>> >
>> >I believe I have accidently brought down the demo app for
>> >tobago.  This is the second time I have clicked on one of
>> the
>> >tabs and received an error page, as well as a 404 
whenever I
>> >go any page of the app.
>> >
>> >I cannot remember the name of the tab I clicked on.  If
>> >someone can tell me how to get a war file, it probably 
won't
>> >take long for me to retrace my steps.
>> >
>> >Dennis Byrne
>>
>> Dennis Byrne
>>
>
>
>--
>Matthias Wessendorf
>Zülpicher Wall 12, 239
>50674 Köln
>http://www.wessendorf.net
>mwessendorf-at-gmail-dot-com

Dennis Byrne


Re: Tobago SheetRenderer calls getter for list twicely.

2005-12-20 Thread Dennis Byrne
I think your going to find this behavior with any of the more 
complex controls.  The best way to guard against this is to 
make your getters "just getters".  Typically a problem comes 
up whenever there is a database trip in the getter.

 Original message 
>Date: Tue, 20 Dec 2005 12:58:04 +0200
>From: "Olexandr Zakordonskyy" <[EMAIL PROTECTED]>  
>Subject: Tobago SheetRenderer calls getter for list 
twicely.  
>To: 
>
>Hi.
>
>SheetRenderer calls getter for list twicely. It would be 
better if it will
>store reference and will not call it more than once.
>
>Thanks.
>

Dennis Byrne


RE: Websphere 6.0 page navigation problem

2005-12-20 Thread Rogerio Saulo (P)
Title: RE: Websphere 6.0 page navigation problem





Just change the classloader order in the EAR and WAR modules properties for PARENT_LAST.


With myfaces.jar in the WEB-INF/lib of your application, WAS will load the myfaces implementation before the IBM one.


This works for me.


Rogerio 


-Original Message-
From: fabio fornelli [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, December 20, 2005 9:05 AM
To: MyFaces Discussion
Subject: Re: Websphere 6.0 page navigation problem


Hi, we've had the same problem! it seems that Web sphere 6.0 ships with IBM's JSF distribution and probably it's in the server's boot classpath as well. We didn't manage to sort out the problem in a decent way. If you just want your web app to work you have to swap the jars in the server's lib (hope you can do that). Substitute myfaces.jar to ibm-jsf-impl.jar (check the name of this jar. I'm not sure about that) and start the server again. Obviously it's not a viable solution in a production environment but at least you can work around the problem in your test environment.

Hope this helps


cheers
Fabio 



Khurram Ahmed wrote:


> MyFaces version:  1.1.1
> Tomact version: 5.0.27
>
> I have an application that was developed on tomcat 5.0.27 that refuses 
> to work properly on websphere 6.0 i am able to access the opening page 
> after logging however any subsequent attempts at navigation through a 
> link menu in the application generates the following errors..
>
> *Error Message: *
> *Error Code: *500
> *Target Servlet: *action
> *Error Stack: *
> java.lang.NullPointerException
>  at
> com.ibm.websphere.product.WASProduct.listFileNames(WASProduct.java:2251)
>  at
> com.ibm.websphere.product.WASProduct.listFileNames(WASProduct.java:2244)
>  at
> com.ibm.websphere.product.WASProduct.basicGetProductNames(WASProduct.j
> ava:1467)
>
>  at
> com.ibm.websphere.product.WASProduct.getProductNames(WASProduct.java:1
> 460)
>
>  at
> com.ibm.websphere.product.WASProduct.basicGetProducts(WASProduct.java:
> 1429)
>
>  at
> com.ibm.websphere.product.WASProduct.getProducts(WASProduct.java:1422)
>  at
> com.ibm.websphere.product.WASProduct.getProductById(WASProduct.java:942)
>  at
> com.ibm.websphere.product.WASProduct.productPresent(WASProduct.java:968)
>  at
> _ibmjsp.secure.layouts._contentLayout._jspService(_contentLayout.java:
> 467)
>
>  at com.ibm.ws.jsp.runtime.HttpJspBase.service(HttpJspBase.java:88)
>  at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
>  at
> com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.
> java:1212)
>
>  at
> com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWr
> apper.java:629)
>
>  at
> com.ibm.wsspi.webcontainer.servlet.GenericServletWrapper.handleRequest
> (GenericServletWrapper.java:117)
>
>  at
> com.ibm.ws.jsp.webcontainerext.JSPExtensionServletWrapper.handleReques
> t(JSPExtensionServletWrapper.java:171)
>
>  at
> com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppR
> equestDispatcher.java:250)
>
>  at
> org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.j
> ava:1070)
>
>  at
> org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestPr
> ocessor.java:273)
>
>  at
> org.apache.struts.tiles.TilesRequestProcessor.processTilesDefinition(T
> ilesRequestProcessor.java:253)
>
>  at
> org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(Til
> esRequestProcessor.java:308)
>
>  at
> org.apache.struts.action.RequestProcessor.process(RequestProcessor.jav
> a:279)
>
>  at
> org.apache.struts.action.ActionServlet.process(ActionServlet.java:1486)
>  at
> org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:510)
>  at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
>  at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
>  at
> com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.
> java:1212)
>
>  at
> com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWr
> apper.java:629)
>
>  at
> com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:2841)
>  at
> com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:220)
>  at
> com.ibm.ws.webcontainer.VirtualHost.handleRequest(VirtualHost.java:204)
>  at
> com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:1
> 681)
>
>  at
> com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java
> :77)
>
>  at
> com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscriminat
> ion(HttpInboundLink.java:421)
>
>  at
> com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformat
> ion(HttpInboundLink.java:367)
>
>  at
> com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(Http
> ICLReadCallback.java:94)
>
>  at
> com.ibm.ws.tcp.channel.impl.WorkQueueManager.requestComplete(WorkQ

Re: Why do h:message Tags Need to be enclosed in h:panelGroup or h:panelGrid Tags

2005-12-20 Thread Mike Kienenberger
On 12/15/05, Mike Duffy <[EMAIL PROTECTED]> wrote:
> I am using the MyFaces  tag to layout my pages, which works fine. 
> However, because the
>  tags are not contained in an h:panelGroup or h:panelGrid tag, 
> errors like the
> following are generated when the page loads:
>
> 00:01:52,097 ERROR [HtmlMessageRendererBase] Could not render Message. Unable 
> to find component
> 'estimatedStartDate' (calling findComponent on component
> 'issueCreateForm:estimatedStartDateError'). If the provided id was correct, 
> wrap the message and
> its component into an h:panelGroup or h:panelGrid.
>
> Why do h:message tags need to be enclosed in h:panelGroup or h:panelGrid tags.
>
> Does anyone else think this is a bug? Any suggestions?

For an explanation on why JSF works like this, see this article.

http://www.onjava.com/pub/a/onjava/2004/06/09/jsf.html

The section "Creating and Rendering Components in Parallel" explains
the problem as well as why enclosing solves the problem.


Re: JSTL + JSF question

2005-12-20 Thread Matthias Wessendorf
http://www.onjava.com/pub/a/onjava/2004/06/09/jsf.html

this is a good article on the issue.

On 12/20/05, Matthias Wessendorf <[EMAIL PROTECTED]> wrote:
> doesn't work
>
> use facelets or glassfish (jsp 2.1)
>
>
>
> On 12/20/05, Jeremy Sager <[EMAIL PROTECTED]> wrote:
> > Hi guys -
> >
> > Thanks in advance for any answers :)
> >
> > I need to iterate over something in one of my JSPs that is a list maintained
> > in a session scoped JSF bean.
> >
> > I am trying to use this JSTL tag:
> >
> > 
> >
> > Is this legal?  Or do I need to do something complicated like using a JSP
> > scriptlet to get my request parameters and go digging for the map?
> >
> > Jeremy Sager
> > Data Communications Product Manager
> > Chesapeake System Solutions
> > 410.356.6805 x120
> > [EMAIL PROTECTED]
> >
> >
>
>
> --
> Matthias Wessendorf
> Zülpicher Wall 12, 239
> 50674 Köln
> http://www.wessendorf.net
> mwessendorf-at-gmail-dot-com
>


--
Matthias Wessendorf
Zülpicher Wall 12, 239
50674 Köln
http://www.wessendorf.net
mwessendorf-at-gmail-dot-com


Re: JSTL + JSF question

2005-12-20 Thread Wale Ernie
Hi,

Assuming your JSF bean is called editorPanelBean and it's in the session

You can get access to it using the following


so you don't have to use a scriplet in this scenario.


Re: JSTL + JSF question

2005-12-20 Thread Mike Kienenberger
Unless you're using facelets, you're going to have difficulty using
c:forEach with JSF.

Maybe you can use t:dataList instead?   The difference is that
c:forEach operates at component tree build time and dataList operates
at render time, but for most use cases, that doesn't make any
difference to the end-developer.

On 12/20/05, Jeremy Sager <[EMAIL PROTECTED]> wrote:
> Hi guys -
>
> Thanks in advance for any answers :)
>
> I need to iterate over something in one of my JSPs that is a list maintained
> in a session scoped JSF bean.
>
> I am trying to use this JSTL tag:
>
> 
>
> Is this legal?  Or do I need to do something complicated like using a JSP
> scriptlet to get my request parameters and go digging for the map?
>
> Jeremy Sager
> Data Communications Product Manager
> Chesapeake System Solutions
> 410.356.6805 x120
> [EMAIL PROTECTED]
>
>


Re: JSTL + JSF question

2005-12-20 Thread Matthias Wessendorf
doesn't work

use facelets or glassfish (jsp 2.1)



On 12/20/05, Jeremy Sager <[EMAIL PROTECTED]> wrote:
> Hi guys -
>
> Thanks in advance for any answers :)
>
> I need to iterate over something in one of my JSPs that is a list maintained
> in a session scoped JSF bean.
>
> I am trying to use this JSTL tag:
>
> 
>
> Is this legal?  Or do I need to do something complicated like using a JSP
> scriptlet to get my request parameters and go digging for the map?
>
> Jeremy Sager
> Data Communications Product Manager
> Chesapeake System Solutions
> 410.356.6805 x120
> [EMAIL PROTECTED]
>
>


--
Matthias Wessendorf
Zülpicher Wall 12, 239
50674 Köln
http://www.wessendorf.net
mwessendorf-at-gmail-dot-com


JSTL + JSF question

2005-12-20 Thread Jeremy Sager
Hi guys -

Thanks in advance for any answers :)

I need to iterate over something in one of my JSPs that is a list maintained
in a session scoped JSF bean.

I am trying to use this JSTL tag:



Is this legal?  Or do I need to do something complicated like using a JSP
scriptlet to get my request parameters and go digging for the map?

Jeremy Sager
Data Communications Product Manager
Chesapeake System Solutions
410.356.6805 x120
[EMAIL PROTECTED]



Re: jsf analogy to struts action

2005-12-20 Thread Mike Kienenberger


// On bean
public String process()
{
 // process
 if (result1)   return "processResult1";
 if (result2)   return "processResult2";
 if (result3)   return "processResult3";
 if (result4)   return "processResult4";


 return "processResultDefault";
}

On 12/20/05, tony kerz <[EMAIL PROTECTED]> wrote:
> at the risk of asking a stupid question:
>
> if i wanted to have a user hit a url and have some processing take place
> which then results in one of several available pages being displayed, in
> struts i could easily accomplish that with an action class.
>
> what would be the appropriate way to accomplish that functionality in a
> JSF application?
>
> something like dropping into an action method on a backing bean, but
> without the initial page...
>
>


RE: Sort Table - Page Refreshes - Then Auto Scroll Back to the Table

2005-12-20 Thread Matias Gomez Carabias
I've done this in a Struts Based Proyect, but I used javascript on the
onload, here's the deal:


I had to scroll to different parts of the page depending on the method
called (Struts' DispatchAction) on the method I set the action string in
the request to identify where it was called from, and then used a
JavaScript function to find the object to scroll to depending on the
action

Hope that helps.

Matias


">






function collateralGroupSubmit() {

var returnAction = document.getElementById("action").value;

var error = document.getElementById("error");

if((returnAction == "deleteCollateralGroup" ||returnAction ==
"getCollateralGroup" || returnAction == "modifyCollateralGroup" ||
returnAction == "addCollateralGroup") && error == null ) {

var obj = document.getElementById('collateralGroupEdition');

window.scrollTo(findPosX(obj), findPosY(obj))   ;

}   

}   



function findPosX(obj)
{
var curleft = 0;
if (obj.offsetParent)
{
while (obj.offsetParent)
{
curleft += obj.offsetLeft
obj = obj.offsetParent;
}
}
else if (obj.x)
curleft += obj.x;
return curleft;
}

function findPosY(obj)
{
var curtop = 0;
var printstring = '';
if (obj.offsetParent)
{
while (obj.offsetParent)
{
curtop += obj.offsetTop
obj = obj.offsetParent;
}
}
else if (obj.y)
curtop += obj.y;
return curtop;
}


-Original Message-
From: Mike Kienenberger [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, December 20, 2005 12:54 PM
To: MyFaces Discussion
Subject: Re: Sort Table - Page Refreshes - Then Auto Scroll Back to the
Table

If you've enabled the AUTOSCROLL parameter in your web.xml file, you
should be seeing javascript generated like the following for each
command-link/command-button.

onclick="clear__5FtagId1_5F2();document.forms['_tagId1_2'].elements['aut
oScroll'].value=getScrolling();document.forms['_tagId1_2'].elements['_ta
gId1_2:_link_hidden_'].value='_tagId1_2:showAttachmentStatusableWorkList
';if(document.forms['_tagId1_2'].onsubmit){var
result=document.forms['_tagId1_2'].onsubmit();  if( (typeof result ==
'undefined') || result )
{document.forms['_tagId1_2'].submit();}}else{document.forms['_tagId1_2']
.submit();}return
false;"

The javascript below sets the current element (generally a
command-link) as the location to scroll to when the page reloads.

document.forms['yourFormId'].elements['autoScroll'].value=getScrolling()
;

Unfortunately, I haven't figured out how to make it scroll to any
arbitrary component on the page, but I'd think just enabling the
parameter should make it scroll back to your sorting link.


org.apache.myfaces.AUTO_SCROLL
true

If true, a javascript function will be rendered that is
able to restore the
former vertical scroll on every request. Convenient
feature if you have pages
with long lists and you do not want the browser page to
always jump to the top
if you trigger a link or button action that stays on the
same page.
Default: "false"




On 12/19/05, Mike Duffy <[EMAIL PROTECTED]> wrote:
> I have implemented a sortable table with the  tag.  It's
very cool.  Thx to those
> who worked on this.
>
> I am not a JavaScript guru, so I am having some trouble with something
that should be very basic:
> My sortable table is near the bottom of my page.  After the page
refreshes. I'd like to
> automatically scroll back to the table.
>
> Any suggestions?
>
> Mike
>
> __
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>


Re: My Faces extensions component problem

2005-12-20 Thread Mike Kienenberger
Did you enable the extensions filter?

http://myfaces.apache.org/tomahawk/extensionsFilter.html

On 12/20/05, Ali Raza <[EMAIL PROTECTED]> wrote:
> Greetings,
>
>  I have downloaded my faces examples and the simple project (simple.war)
> runs fine.
>  but when i try to use  the same components on my own seperate new project
> it does not render the tag
>
>   src="/simple/faces/myFacesExtensionResource/org.apache.myfaces.component.html.util.MyFacesResourceLoader/11350766/jslistener.JsValueChangeListenerRenderer/JSListener.js">
>
>  in the head of the page.
>  Any idea why this happens ?
>
>  Thanx
>  A
>
> --
> "A sixteenth century inventor called Wan Hu designed a rocket-propelled
> chair on which he planned to ascend into heaven. He built an open cabin, to
> which he fitted 47 rockets underneath and above, and two kites to keep him
> aloft. Wan Hu disappeared in flame and smoke and was never seen again. A
> crater on the moon is now named after him, so in one sense he made it to the
> heavens after all. This is the first recorded design of something
> approximating to a manned space rocket."
>
> The Chinese Space Programme.
> From Conception to Future Capabilities.
> Brian Harvey


Re: Sort Table - Page Refreshes - Then Auto Scroll Back to the Table

2005-12-20 Thread Mike Kienenberger
If you've enabled the AUTOSCROLL parameter in your web.xml file, you
should be seeing javascript generated like the following for each
command-link/command-button.

onclick="clear__5FtagId1_5F2();document.forms['_tagId1_2'].elements['autoScroll'].value=getScrolling();document.forms['_tagId1_2'].elements['_tagId1_2:_link_hidden_'].value='_tagId1_2:showAttachmentStatusableWorkList';if(document.forms['_tagId1_2'].onsubmit){var
result=document.forms['_tagId1_2'].onsubmit();  if( (typeof result ==
'undefined') || result )
{document.forms['_tagId1_2'].submit();}}else{document.forms['_tagId1_2'].submit();}return
false;"

The javascript below sets the current element (generally a
command-link) as the location to scroll to when the page reloads.

document.forms['yourFormId'].elements['autoScroll'].value=getScrolling();

Unfortunately, I haven't figured out how to make it scroll to any
arbitrary component on the page, but I'd think just enabling the
parameter should make it scroll back to your sorting link.


org.apache.myfaces.AUTO_SCROLL
true

If true, a javascript function will be rendered that is
able to restore the
former vertical scroll on every request. Convenient
feature if you have pages
with long lists and you do not want the browser page to
always jump to the top
if you trigger a link or button action that stays on the same page.
Default: "false"




On 12/19/05, Mike Duffy <[EMAIL PROTECTED]> wrote:
> I have implemented a sortable table with the  tag.  It's very 
> cool.  Thx to those
> who worked on this.
>
> I am not a JavaScript guru, so I am having some trouble with something that 
> should be very basic:
> My sortable table is near the bottom of my page.  After the page refreshes. 
> I'd like to
> automatically scroll back to the table.
>
> Any suggestions?
>
> Mike
>
> __
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>


AW: Question?

2005-12-20 Thread andreas.mitter
Perhaps you also try the following:
 http://sourceforge.net/projects/jsf-comp

It's a OnLoad Phase listener.

Regards,
Andy

-Ursprüngliche Nachricht-
Von: Yee CN [mailto:[EMAIL PROTECTED]
Gesendet: Dienstag, 20. Dezember 2005 16:49
An: 'MyFaces Discussion'
Betreff: RE: Question?



Javascript function tied to the html  is not going to get
called until the page is being rendered and executed at the browser. That is
probably going to be too late.

Maybe you can put a  right after
 and place your onload code in the setter method of dummyField.

If the backing bean is in request scope you can also have a dummy managed
property and execute your onload code there.

Regards,
Yee


On 12/17/05, Sergio Flor <[EMAIL PROTECTED]> wrote:
> What about to try use onload body tag method?
>
>  You can call a javascript function on onload method and execute your code
> there.
>
> On 12/17/05, Marco <[EMAIL PROTECTED] > wrote:
> > How can i make a code executing on page load ?
> >
> > Thanks in advance
> >
>
>
>
> --
> Sérgio Flôr
> Enterprise Solutions Architect And J2EE Senior Specialist
> Getronics Brasil
> R. Verbo Divino, 1207 - 3º andar Cep: 04719-002
> Chac. Santo Antônio - São Paulo Brasil
> Tel.: + 55 11 5854-6959
> Cel.: + 55 11 8266-2269
> [EMAIL PROTECTED]


--
Alexandre Poitras
Québec, Canada


__

This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
your system manager.

This footnote also confirms that this email message has been swept
for the presence of computer viruses.
__


RE: Question?

2005-12-20 Thread Yee CN

Javascript function tied to the html  is not going to get
called until the page is being rendered and executed at the browser. That is
probably going to be too late.

Maybe you can put a  right after
 and place your onload code in the setter method of dummyField.

If the backing bean is in request scope you can also have a dummy managed
property and execute your onload code there.

Regards,
Yee


On 12/17/05, Sergio Flor <[EMAIL PROTECTED]> wrote:
> What about to try use onload body tag method?
>
>  You can call a javascript function on onload method and execute your code
> there.
>
> On 12/17/05, Marco <[EMAIL PROTECTED] > wrote:
> > How can i make a code executing on page load ?
> >
> > Thanks in advance
> >
>
>
>
> --
> Sérgio Flôr
> Enterprise Solutions Architect And J2EE Senior Specialist
> Getronics Brasil
> R. Verbo Divino, 1207 - 3º andar Cep: 04719-002
> Chac. Santo Antônio - São Paulo Brasil
> Tel.: + 55 11 5854-6959
> Cel.: + 55 11 8266-2269
> [EMAIL PROTECTED]


--
Alexandre Poitras
Québec, Canada



Fwd: how can I create my own custom-components in MyFaces?

2005-12-20 Thread Manfred Geiler
The way how and where you define your component "config" or tld is not
MyFaces specific, it's described in the JSF Specification
(downloadable at Sun Java website). You should find all you need
there.
For further help please subscribe to the MyFaces users discussion
list: http://myfaces.apache.org/mailinglists.html

Manfred


-- Forwarded message --
From: Vu Cuong <[EMAIL PROTECTED]>
Date: 20.12.2005 14:09
Subject: how can I create my own custom-components in MyFaces?
To: [EMAIL PROTECTED]


Hi Manolito!
I am currently using MyFaces 1.1.0 and want to write my own custom
components (a dozen perhaps). I have looked inside the MyFaces code
and risen a question:
Its great to separate component config (i.e. HtmlPanelNavigation.xml
for Navigation component), but I could not find how to join its tag
definition (*.tld) with that file (in Sun-JSF, usually I declare my
component config within faces-config.xml, but its not preferable,
right?). Can you show me the way? (the mechanism in which MyFaces
tells its engine about any custom components config)

Known that you are very busy, but I cant keep my own wonder. Thanks!

--
Cuongx.

__
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com


Re: is it possible to use a jsf application as a portlet ?

2005-12-20 Thread Dave Brondsema
Legolas Woodland wrote:
> is it possible to use a jsf application as a portlet ?
> Hi
> I have a jsf application and now i want to use it as a portlet .
> what is steps to convert the jsf application to a portlet ?
> is there any tutorial for this ?
> 
> 
> 
> Thank you
> 

Yes it is possible.  I am doing it now.

I don't know any good instructions for converting from servlet to
portlet.  But I would recommend finding sample portlets and getting
those running.  Understand a lot about portlets before you try to
convert to them.

If you want, you can download a sample portlet I have created that uses
JSF, Hibernate, and Spring.
http://splike.com/jasig-codejam-2005-dave-brondsema.zip


-- 
Dave Brondsema
Software Developer
Cornerstone University


signature.asc
Description: OpenPGP digital signature


Re: JSF web application test

2005-12-20 Thread Keith Lynch







Sounds 
interesting!It is. I saw it demoed at JP05 and it looked great. 
How 
long does it take to setup up such tests?As long as it takes you to navigate your own interface plus + about 2-5 mins for each test case.
Is it 
tricky?Not at all. 
Regards,
AndyWhile at JP I also saw a part of shale being used to test your managed beans. It looks cool too but it's not the same type of testing. However I haven't got a chance to look at this part yet.
http://struts.apache.org/struts-shale/features-test-framework.htmlCheersKeith
-Ursprüngliche Nachricht-Von: Keith Lynch 
  [mailto:[EMAIL PROTECTED]]Gesendet: Dienstag, 20. Dezember 2005 
  13:48An: MyFaces DiscussionBetreff: Re: JSF web 
  application testTake a look at Selenium
http://www.openqa.org/selenium/ 
  There's even a firefox plugin to record your tests :)
  On 12/20/05, Jesse 
  Alexander (KBSA 21) <[EMAIL PROTECTED]> 
  wrote:
  -Original 
Message-I believe you are looking for httpunit .-/Original 
Message-Or its abstraction 
JWebUnit.Alexander Original message 
>   What is the way to write automatic tests for web 
>   application using JSF? Right now I have to open 
web>   browser to manually test it. I like to write 
tests>   that can be executed as a batch to make sure 
that>   new changes will not break existing features. 
>>   Thanks for advice.>   
  Dave
__

This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
your system manager.
 
This footnote also confirms that this email message has been swept
for the presence of computer viruses. 
__





Submit form before going to non JSF Page

2005-12-20 Thread Huber, Michael
Hello,

I have an application were you can select entries from a pageable data table 
with the help of a boolean checkbox.
Then I have to proceed to a non jsf servlet.

Now to my problem:
If I just use a plain link the data (which entries were selected) doesn't get 
submitted before going to the servlet. If I scroll through the table before 
clicking on the link, the selected entries are submitted and saved in the faces 
context. Everything works fine then. But it isn't practicable for the user to 
scroll every time before clicking on the link. Using onclick="submit()" in the 
booleanCheckbox Component is too slow, as it renders the page new with every 
selected Item.

How can I solve this problem? I have to go to a normal URL with 2 parameters 
(like this: 
http://localhost:8080/application/application.proxy?PARAM1=test&PARAM2=test2) 

Michael



jsf analogy to struts action

2005-12-20 Thread tony kerz

at the risk of asking a stupid question:

if i wanted to have a user hit a url and have some processing take place
which then results in one of several available pages being displayed, in
struts i could easily accomplish that with an action class.

what would be the appropriate way to accomplish that functionality in a
JSF application?

something like dropping into an action method on a backing bean, but
without the initial page...



AW: JSF web application test

2005-12-20 Thread andreas.mitter



Sounds 
interesting!
How 
long does it take to setup up such tests?
Is it 
tricky?
 
Regards,
Andy

  -Ursprüngliche Nachricht-Von: Keith Lynch 
  [mailto:[EMAIL PROTECTED]Gesendet: Dienstag, 20. Dezember 2005 
  13:48An: MyFaces DiscussionBetreff: Re: JSF web 
  application testTake a look at Seleniumhttp://www.openqa.org/selenium/ 
  There's even a firefox plugin to record your tests :)
  On 12/20/05, Jesse 
  Alexander (KBSA 21) <[EMAIL PROTECTED]> 
  wrote:
  -Original 
Message-I believe you are looking for httpunit .-/Original 
Message-Or its abstraction 
JWebUnit.Alexander Original message 
>   What is the way to write automatic tests for web 
>   application using JSF? Right now I have to open 
web>   browser to manually test it. I like to write 
tests>   that can be executed as a batch to make sure 
that>   new changes will not break existing features. 
>>   Thanks for advice.>   
  Dave
__

This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
your system manager.

This footnote also confirms that this email message has been swept
for the presence of computer viruses.
__



How to refresh two scrollers in a page?

2005-12-20 Thread fu wanhong
Hi,
I have a JSP page, it contains a panelGrid, in this panelGrid has two scrollers and one dataTable, the source code as below:
 


   rowClasses="tableOddRow,tableEvenRow" styleClass="dataTable" width="100%" rowIndexVar="i" rows="10">
   
             
   
   
   


The e:dataScroller is the same as t:dataScroller, And in this page still has a search button and some textboxs that can input some search parameters,now it's OK to click search button at the first time , but when I alter some parameters then click search button, the second scroller can update correctly, but the first one still hold the states previously.

Anyone who have method to synchronize this two scroller states or other way to resolve this issues?
 
Thanks in advance!


Re: JSF web application test

2005-12-20 Thread Keith Lynch
Take a look at Seleniumhttp://www.openqa.org/selenium/ There's even a firefox plugin to record your tests :)On 12/20/05, 
Jesse Alexander (KBSA 21) <[EMAIL PROTECTED]> wrote:
-Original Message-I believe you are looking for httpunit .-/Original Message-Or its abstraction JWebUnit.Alexander Original message >   What is the way to write automatic tests for web
>   application using JSF? Right now I have to open web>   browser to manually test it. I like to write tests>   that can be executed as a batch to make sure that>   new changes will not break existing features.
>>   Thanks for advice.>   Dave


Re: Websphere 6.0 page navigation problem

2005-12-20 Thread fabio fornelli
Hi, we've had the same problem! it seems that Web sphere 6.0 ships with 
IBM's JSF distribution and probably it's in the server's boot classpath 
as well. We didn't manage to sort out the problem in a decent way. If 
you just want your web app to work you have to swap the jars in the 
server's lib (hope you can do that). Substitute myfaces.jar to  
ibm-jsf-impl.jar (check the name of this jar. I'm not sure about that) 
and start the server again. Obviously it's not a viable solution in a 
production environment but at least you can work around the problem in 
your test environment.


Hope this helps

cheers
Fabio 



Khurram Ahmed wrote:


MyFaces version:  1.1.1
Tomact version: 5.0.27

I have an application that was developed on tomcat 5.0.27 that refuses 
to work properly on websphere 6.0 i am able to access the opening page 
after logging however any subsequent attempts at navigation through a 
link menu in the application generates the following errors..


*Error Message: *
*Error Code: *500
*Target Servlet: *action
*Error Stack: *
java.lang.NullPointerException
 at 
com.ibm.websphere.product.WASProduct.listFileNames(WASProduct.java:2251)
 at 
com.ibm.websphere.product.WASProduct.listFileNames(WASProduct.java:2244)
 at 
com.ibm.websphere.product.WASProduct.basicGetProductNames(WASProduct.java:1467) 

 at 
com.ibm.websphere.product.WASProduct.getProductNames(WASProduct.java:1460) 

 at 
com.ibm.websphere.product.WASProduct.basicGetProducts(WASProduct.java:1429) 

 at 
com.ibm.websphere.product.WASProduct.getProducts(WASProduct.java:1422)
 at 
com.ibm.websphere.product.WASProduct.getProductById(WASProduct.java:942)
 at 
com.ibm.websphere.product.WASProduct.productPresent(WASProduct.java:968)
 at 
_ibmjsp.secure.layouts._contentLayout._jspService(_contentLayout.java:467) 


 at com.ibm.ws.jsp.runtime.HttpJspBase.service(HttpJspBase.java:88)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
 at 
com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1212) 

 at 
com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:629) 

 at 
com.ibm.wsspi.webcontainer.servlet.GenericServletWrapper.handleRequest(GenericServletWrapper.java:117) 

 at 
com.ibm.ws.jsp.webcontainerext.JSPExtensionServletWrapper.handleRequest(JSPExtensionServletWrapper.java:171) 

 at 
com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:250) 

 at 
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1070) 

 at 
org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestProcessor.java:273) 

 at 
org.apache.struts.tiles.TilesRequestProcessor.processTilesDefinition(TilesRequestProcessor.java:253) 

 at 
org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(TilesRequestProcessor.java:308) 

 at 
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279) 

 at 
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1486)
 at 
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:510)

 at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
 at 
com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1212) 

 at 
com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:629) 

 at 
com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:2841)
 at 
com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:220)
 at 
com.ibm.ws.webcontainer.VirtualHost.handleRequest(VirtualHost.java:204)
 at 
com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:1681) 

 at 
com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:77) 

 at 
com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:421) 

 at 
com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:367) 

 at 
com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:94) 

 at 
com.ibm.ws.tcp.channel.impl.WorkQueueManager.requestComplete(WorkQueueManager.java:548) 

 at 
com.ibm.ws.tcp.channel.impl.WorkQueueManager.attemptIO(WorkQueueManager.java(Compiled 
Code))
 at 
com.ibm.ws.tcp.channel.impl.WorkQueueManager.workerRun(WorkQueueManager.java:934) 

 at 
com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worker.run(WorkQueueManager.java:1021) 

 at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java(Compiled 
Code))



any solutions or workarounds or hints about the reason for this error





RE: How to get currently selected node of tree2 component

2005-12-20 Thread Lefevre, Daniel
 Hello Kurt,

Sorry, but I cannot answer directly. In fact, I begin every listener of my bean 
by setting the current node with the selectedId I have stored, I have not tried 
to optimize this.

Bye, Dan

-Original Message-
From: Kurt Edegger [mailto:[EMAIL PROTECTED] 
Sent: lundi 19 décembre 2005 20:11
To: MyFaces Discussion
Subject: Re: How to get currently selected node of tree2 component

Hi Daniel,

thank you for your answer. That's probably a better way than using 
another bean property to store the selected node in the listener. But 
why and when is the tree.getNode() reset? If you set the node 
explicitely by tree.setNodeSelected(evt) is this persistent until the 
next node is selected?

Thank you again and sorry for the late response,

Kurt




Re: How to get currently selected node of tree2 component

2005-12-20 Thread Hans Sowa
Hi

I have an other solution for you. Use the updateActionListener tag
(just available for MyFaces) within the comamandLink tag. With this tag
you can set properties.



In case of a click to a node the updateActionListener is called and set the attribute node in the bean to the value node.

Then use in the commanlink the attribute styleClass as follows:
styleClass="#{node == bean.node ? 'blackbold':'blue'}">

This is very simple and works.

Hopefully this will help.

best regards Hans
2005/12/19, Kurt Edegger <[EMAIL PROTECTED]>:
Hi Daniel,thank you for your answer. That's probably a better way than usinganother bean property to store the selected node in the listener. Butwhy and when is the tree.getNode() reset? If you set the node
explicitely by tree.setNodeSelected(evt) is this persistent until thenext node is selected?Thank you again and sorry for the late response,Kurton 12/14/2005 2:53 AM Lefevre, Daniel stated:
> Hello,>> My (short) experiences shows that the getNode() method returns the node> which is selected in the htmlTree. Then the getNode() method returns the> selected node only in your selection event or via the htmlTree, when you
> have set it explicitely.>> What I do is as follows:> - in my selectNode method (actionListener), I take the selectedNodeId> and set the selected node of the htmlTree.>> public void selectNode(ActionEvent event)
> {> // set the selected status on the node of the tree> htmlTree.setNodeSelected(event);> selectedNodeId = htmlTree.getNodeId();> }>> - in the other actionListeners, I access the selected node by using the
> selectedNodeId.>> public void addNode(ActionEvent event)> {> // get access to the selected node> htmlTree.setNodeId(selectedNodeId);> MyTreeNode node = ((MyTreeNode) 
treeModel.getNode());>   .>   .>   .> }>> The used variables being declared as follows (with getters and setters> of course):>>
private
TreeModel  
treeModel;> private transient HtmlTree  htmlTree;>>
private
MyTreeNode  selectedNode;>
private
String  selectedNodeId;>> This is maybe not THE solution, but it works.> Hope this helps,>> Bye, Dan>>
-- mfg Hans Sowamailto:[EMAIL PROTECTED]


Re: tobago examples

2005-12-20 Thread Dudu

working fine
Dennis Byrne wrote:

1.) http://tobago.atanion.net/tobago-example-demo/
2.) click on "Tree Control"
3.) click on the second tab.
4.) click on the first tab.
5.) click on the second tab
6.) 404 for http://tobago.atanion.net/tobago-example-
demo/faces/overview/treeControl.jsp

 Original message 
  

Date: Tue, 20 Dec 2005 00:50:59 -0900
From: Dennis Byrne <[EMAIL PROTECTED]>  
Subject: tobago examples  
To: users@myfaces.apache.org


http://tobago.atanion.net/tobago-example-demo/

I believe I have accidently brought down the demo app for 
tobago.  This is the second time I have clicked on one of 

the 
  
tabs and received an error page, as well as a 404 whenever I 
go any page of the app.  

I cannot remember the name of the tab I clicked on.  If 
someone can tell me how to get a war file, it probably won't 
take long for me to retrace my steps.


Dennis Byrne



Dennis Byrne

  







___ 
Yahoo! doce lar. Faça do Yahoo! sua homepage. 
http://br.yahoo.com/homepageset.html 



Re: NavigationMenuItem

2005-12-20 Thread Dudu

Thanks again Thomas, but I coded like this:
*
<%@ page contentType="text/html;charset=windows-1252"%>
<%@ taglib uri="http://java.sun.com/jsf/html"; prefix="h"%>
<%@ taglib uri="http://java.sun.com/jsf/core"; prefix="f"%>
<%@ taglib uri="http://xmlns.oracle.com/adf/faces"; prefix="af"%>
<%@ taglib uri="http://xmlns.oracle.com/adf/faces/html"; prefix="afh"%>
<%@ taglib uri="http://myfaces.apache.org/extensions"; prefix="x"%>
<%@ taglib uri="http://myfaces.apache.org/tomahawk"; prefix="t"%>

 
   
 
 src="sag/jscookmenu/JSCookMenu.js">

 
 src="sag/jscookmenu/ThemeOffice/theme.js">

 untitled1
   
   
   
 binding="#{backing_untitled1.navigationMenuItem1}"

   action="LOGOFF_GLOBAL"
   id="navigationMenuItem1"/>
 binding="#{backing_untitled1.navigationMenuItem2}"
   action="LOGOFF_GLOBAL" 
id="navigationMenuItem2">
   binding="#{backing_untitled1.navigationMenuItem3}"

 action="LOGOFF_GLOBAL"
 id="navigationMenuItem3"/>
   binding="#{backing_untitled1.navigationMenuItem4}"

 action="LOGOFF_GLOBAL"
 id="navigationMenuItem4"/>
 
   
 
 



*And the menu is displayed, but I click on any navigationMenuItem, 
nothing happen, no submit


and here is the javascript generated to jscookmenu*
*

*var form1_jscookMenu1_menu =
[[null, '0', 'form1_jscookMenu1_menu:ALOGOFF_GLOBAL', 'form1', null],
[null, '0', 'form1_jscookMenu1_menu:ALOGOFF_GLOBAL', 'form1', null,[null, '0', 
'form1_jscookMenu1_menu:ALOGOFF_GLOBAL', 'form1', null],
[null, '0', 'form1_jscookMenu1_menu:ALOGOFF_GLOBAL', 'form1', null]]];**
 cmDraw ('form1_jscookMenu1_menu', 
form1_jscookMenu1_menu, 'hbr', cmThemeOffice, 'ThemeOffice');*

*I think it is a bug,
I'm using the nightly build of 19/december/2005
Thanks.

*
Thomas Spiegl wrote:
I testet it a few hours ago and had no java script errors, can you 
download a copy from svn and build a release?


On 12/19/05, *Dudu* < [EMAIL PROTECTED] 
> wrote:


Hmm
Then there are this bug really? the yesterday version?

Martin Marinschek wrote:
> Thomas just got this finished 2hours ago. So he actually meant the
> nightly build of today, not the one of yesterday ;)
>
> regards,
>
> Martin
>
> On 12/19/05, Dudu <[EMAIL PROTECTED]
> wrote:
>
>> Thomas.
>> he works almost well
>> I only replaced de libs with the nightly builded files.
>> but now, when I click in a navigationMenuItem on menu, is not
submited
>> anything, the page do nothing
>>
>> * 
>>   >
>> styleLocation="jscookmenu/ThemeOffice"
>>
javascriptLocation="jscookmenu/ThemeOffice/"
>>
binding="#{backing_sag_index.jscookMenu1}"

>> id="jscookMenu1">
>> > binding="#{backing_sag_index.navigationMenuItems1}"
>>
>> id="navigationMenuItems1"
>>
value="#{backing_sag_index.menu}"/>

>>   
>> 
>>
>>
>>
>> and the all javascript generated are like this...
>> *
>>
>> _cmSplit,[null, 'Rotas', 'id3__id5_jscookMenu1_menu:action',
'_id3', null],
>> [null, 'Fretes', 'id3__id5_jscookMenu1_menu:action', '_id3', null],
>> _cmSplit,[null, 'Transportes',
'id3__id5_jscookMenu1_menu:action', '_id3', null],
>> [null, 'Unidades', 'id3__id5_jscookMenu1_menu:action', '_id3',
null],
>> _cmSplit,[null, 'Seção', 'id3__id5_jscookMenu1_menu:action',
'_id3', null],
>> [null, 'Aplicações', 'id3__id5_jscookMenu1_menu:action',
'_id3', null],
>> [null, 'Causas', 'id3__id5_jscookMenu1_menu:action', '_id3',
null],
>> [null, 'Laboratórios', 'id3__id5_jscookMenu1_menu:action',
'_id3', null],
>> [null, 'Atividades', 'id3__id5_jscookMenu1_menu:action',
'_id3', null]],
>>
>> *I'm using the build of 18 december.*
>>
>> I'm thinking it is a bug..
>> Thanks
>>
>> Thomas Spiegl wrote:
>>
>>> Hi,
>>>
>>> I implemented the actionListener for JSCookMenu. Get the latest
>>> version from SVN or use nightly build to get the new feature.
>>> Attached you will find an example.
>>>
>>> 1) Example 1  Static
>>> >> actionListener="#{navigationMenu.actionListener}"
>>> itemLabel="#{example_messages['nav_Home']}"
>>> itemValue="go_home"
>>> action="go_home"/>
>>> The actionListener JSCookMenuBean.actionListener(ActionEvent
event)
>>> will be executed. HtmlCommandJSCookMenu is now holding the
itemValue
>>> of the clicked me

Re: Question?

Struts Shale would be the best solution in my opinion.

On 12/17/05, Sergio Flor <[EMAIL PROTECTED]> wrote:
> What about to try use onload body tag method?
>
>  You can call a javascript function on onload method and execute your code
> there.
>
> On 12/17/05, Marco <[EMAIL PROTECTED] > wrote:
> > How can i make a code executing on page load ?
> >
> > Thanks in advance
> >
>
>
>
> --
> Sérgio Flôr
> Enterprise Solutions Architect And J2EE Senior Specialist
> Getronics Brasil
> R. Verbo Divino, 1207 - 3º andar Cep: 04719-002
> Chac. Santo Antônio - São Paulo Brasil
> Tel.: + 55 11 5854-6959
> Cel.: + 55 11 8266-2269
> [EMAIL PROTECTED]


--
Alexandre Poitras
Québec, Canada


My Faces extensions component problem

Greetings,

I have downloaded my faces examples and the simple project (simple.war) runs fine.
but when i try to use  the same components on my own seperate new project it does not render the tag 


//-->
 
in the head of the page.
Any idea why this happens ?

Thanx
A-- "A sixteenth century inventor called Wan Hu
designed a rocket-propelled chair on which he planned to ascend into
heaven. He built an open cabin, to which he fitted 47 rockets
underneath and above, and two kites to keep him aloft. Wan Hu
disappeared in flame and smoke and was never seen again. A crater on
the moon is now named after him, so in one sense he made it to the
heavens after all. This is the first recorded design of something
approximating to a manned space rocket."The Chinese Space Programme.From Conception to Future Capabilities.Brian Harvey


Re: InputDate question...

Thanks a lot andreasOn 12/20/05, [EMAIL PROTECTED]
 <[EMAIL PROTECTED]> wrote:







of 
Course you can:
 
You 
just have to initalize the value in the bean and say:
 
In 
bean:
 
Date 
mydate = new Date();
 
And 
Provide Setter and Getter Methods for mydate
 
 
In 
JSP:
 


t:inputDate>
 
Regards
Andy

  -Ursprüngliche Nachricht-Von: Marco 
  [mailto:[EMAIL PROTECTED]]Gesendet: Dienstag, 20. Dezember 2005 
  11:51An: users@myfaces.apache.orgBetreff: InputDate 
  question...Hi All;I have a question.How 
  can i give an inputDate component a value from a backing bean and when the 
  page is loaded the inputDate displayes the the value in the bean 
  ?Thanks a lot
__

This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
your system manager.
 
This footnote also confirms that this email message has been swept
for the presence of computer viruses. 
__





Tobago SheetRenderer calls getter for list twicely.

Hi.

SheetRenderer calls getter for list twicely. It would be better if it will
store reference and will not call it more than once.

Thanks.



Re: tobago examples

Hi Dennis,

i also can't reproduce this, but i found the 404 in the server logs.
I have no idea how this could happen, the tomcat is still running and no
exceptions in the logs there.

Anaway, we have updated the example application to current svn state
now. There were some bugs fixed.

You can get the actually deployed war from this link:
  http://tobago.atanion.net/tobago-example-demo.war

Regards

  Volker Weber

Dennis Byrne wrote:
> 1.) http://tobago.atanion.net/tobago-example-demo/
> 2.) click on "Tree Control"
> 3.) click on the second tab.
> 4.) click on the first tab.
> 5.) click on the second tab
> 6.) 404 for http://tobago.atanion.net/tobago-example-
> demo/faces/overview/treeControl.jsp
> 
>  Original message 
> 
>>Date: Tue, 20 Dec 2005 00:50:59 -0900
>>From: Dennis Byrne <[EMAIL PROTECTED]>  
>>Subject: tobago examples  
>>To: users@myfaces.apache.org
>>
>>http://tobago.atanion.net/tobago-example-demo/
>>
>>I believe I have accidently brought down the demo app for 
>>tobago.  This is the second time I have clicked on one of 
> 
> the 
> 
>>tabs and received an error page, as well as a 404 whenever I 
>>go any page of the app.  
>>
>>I cannot remember the name of the tab I clicked on.  If 
>>someone can tell me how to get a war file, it probably won't 
>>take long for me to retrace my steps.
>>
>>Dennis Byrne
> 
> 
> Dennis Byrne
> 

-- 
Don't answer to From: address!
Mail to this account are droped if not recieved via mailinglist.
To contact me direct create the mail address by
concatenating my forename to my senders domain.


AW: InputDate question...




of 
Course you can:
 
You 
just have to initalize the value in the bean and say:
 
In 
bean:
 
Date 
mydate = new Date();
 
And 
Provide Setter and Getter Methods for mydate
 
 
In 
JSP:
 

t:inputDate>
 
Regards
Andy

  -Ursprüngliche Nachricht-Von: Marco 
  [mailto:[EMAIL PROTECTED]Gesendet: Dienstag, 20. Dezember 2005 
  11:51An: users@myfaces.apache.orgBetreff: InputDate 
  question...Hi All;I have a question.How 
  can i give an inputDate component a value from a backing bean and when the 
  page is loaded the inputDate displayes the the value in the bean 
  ?Thanks a lot
__

This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
your system manager.

This footnote also confirms that this email message has been swept
for the presence of computer viruses.
__



InputDate question...

Hi All;I have a question.How can i give an inputDate component a value from a backing bean and when the page is loaded the inputDate displayes the the value in the bean ?Thanks a lot


Valid HTML and dummyForm


Hi,

I'm new to this list and I hope this hasn't been discussed before - I've 
searched in the mailinglists archive but couldn't find an answer to this:


Is there any good way to render s that pass html-validation? 
Currently the form is rendered in this way (with 
org.apache.myfaces.ALLOW_JAVASCRIPT=false):


enctype="application/x-www-form-urlencoded">






The -tag of the hidden dummyForm needs to be in  tags or 
something like this to pass XHTML1.0 or HTML4.01 validation.



Another problem occurs when I'm using -Elements. 
The rendered  tag has an attribute multiple="true" which should 
be multiple="multiple" according to (X)HTML specifications.



Thanks for your help,

Carsten


Re: tobago examples

can't reproduce ...


On 12/20/05, Dennis Byrne <[EMAIL PROTECTED]> wrote:
> 1.) http://tobago.atanion.net/tobago-example-demo/
> 2.) click on "Tree Control"
> 3.) click on the second tab.
> 4.) click on the first tab.
> 5.) click on the second tab
> 6.) 404 for http://tobago.atanion.net/tobago-example-
> demo/faces/overview/treeControl.jsp
>
>  Original message 
> >Date: Tue, 20 Dec 2005 00:50:59 -0900
> >From: Dennis Byrne <[EMAIL PROTECTED]>
> >Subject: tobago examples
> >To: users@myfaces.apache.org
> >
> >http://tobago.atanion.net/tobago-example-demo/
> >
> >I believe I have accidently brought down the demo app for
> >tobago.  This is the second time I have clicked on one of
> the
> >tabs and received an error page, as well as a 404 whenever I
> >go any page of the app.
> >
> >I cannot remember the name of the tab I clicked on.  If
> >someone can tell me how to get a war file, it probably won't
> >take long for me to retrace my steps.
> >
> >Dennis Byrne
>
> Dennis Byrne
>


--
Matthias Wessendorf
Zülpicher Wall 12, 239
50674 Köln
http://www.wessendorf.net
mwessendorf-at-gmail-dot-com


Re: change JSCookMenu background


must to read the page http://www.cs.ucla.edu/~heng/JSCookMenu/
of and modify the themes as you preffer
Dave wrote:

How to change JSCookMenu background? color or image as background? Thanks
 
Dave


__
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com








___ 
Yahoo! doce lar. Faça do Yahoo! sua homepage. 
http://br.yahoo.com/homepageset.html 



Re: tobago examples

1.) http://tobago.atanion.net/tobago-example-demo/
2.) click on "Tree Control"
3.) click on the second tab.
4.) click on the first tab.
5.) click on the second tab
6.) 404 for http://tobago.atanion.net/tobago-example-
demo/faces/overview/treeControl.jsp

 Original message 
>Date: Tue, 20 Dec 2005 00:50:59 -0900
>From: Dennis Byrne <[EMAIL PROTECTED]>  
>Subject: tobago examples  
>To: users@myfaces.apache.org
>
>http://tobago.atanion.net/tobago-example-demo/
>
>I believe I have accidently brought down the demo app for 
>tobago.  This is the second time I have clicked on one of 
the 
>tabs and received an error page, as well as a 404 whenever I 
>go any page of the app.  
>
>I cannot remember the name of the tab I clicked on.  If 
>someone can tell me how to get a war file, it probably won't 
>take long for me to retrace my steps.
>
>Dennis Byrne

Dennis Byrne


tobago examples

http://tobago.atanion.net/tobago-example-demo/

I believe I have accidently brought down the demo app for 
tobago.  This is the second time I have clicked on one of the 
tabs and received an error page, as well as a 404 whenever I 
go any page of the app.  

I cannot remember the name of the tab I clicked on.  If 
someone can tell me how to get a war file, it probably won't 
take long for me to retrace my steps.

Dennis Byrne


RE: JSF web application test

-Original Message-
I believe you are looking for httpunit .
-/Original Message-

Or its abstraction JWebUnit.

Alexander

 Original message 
>   What is the way to write automatic tests for web
>   application using JSF? Right now I have to open web
>   browser to manually test it. I like to write tests
>   that can be executed as a batch to make sure that
>   new changes will not break existing features.
>
>   Thanks for advice.
>   Dave


Re: Session Scope Bean does NOT require serialization. Myfaces bug?

Simon is right (as always!). But the new serialization stuff is not
available in 1.1.1 only in current nightly (where it is waiting for
the next release ;))

2005/12/20, Simon Kitching <[EMAIL PROTECTED]>:
> Yee CN wrote:
> > Simon,
> >
> > What exactly is "SERIALIZE_STATE_IN_SESSION=true/false" that is new in the
> > nightly then?
> >
> > As far as I can tell - the 1.1.1 release was not serializing the bean I
> > placed in t:saveState, but it does in the nightly.
>
> Yep, that seems right to me.
>
> > So is 1.1.1 equivalent to
> > SERIALIZE_STATE_IN_SESSION=false?
>
> Yes, I believe so.
>
> > Where was the state being saved then?
>
> In 1.1.1, when server-side saving was enabled, I believe the VIEW state
> was being saved simply by storing a reference to the UIViewRoot (and
> hence all its children) in the session - unserialized. As long as the
> webapp didn't have clustering or hot-deploy enabled, then the UIViewRoot
> object was simply kept in memory until the next access.
>
> As described in the previous email, normal "managed beans" are not
> affected by the view serialization process. However a bean referenced
> from a t:saveState component does get stored in the same way as the
> view. In 1.1.1, because server-side state saving simply stored by
> putting a reference to the UIViewRoot into the session (ie no
> serialization occurs), the bean that the t:saveState referred to wasn't
> serialized. If you'd turned on client-side saving, then you would have
> got the serialization failure in 1.1.1.
>
> Now I think you can get the same effect with
> SERIALIZE_STATE_IN_SESSION=false, ie "don't serialize the state".
>
> However the new default is SERIALIZE_STATE_IN_SESSION=true, ie to run
> the serialization process on the UIViewRoot, then store this serialized
> data in the session instead of the original UIView component. This:
> * Is more memory-efficient (though more CPU intensive)
> * Makes behaviour consistent between client-side and server-side saving.
>Formerly, an app that worked with server-side state might fail when
>client-side was enabled because of serialization failures.
> * Ensures that any app that works correctly will also be clusterable.
>Formerly, an app might run on a single system but fail when clustering
>was enabled.
>
> >
> > Thanks taking time to explain - perhaps this should go to myfaces wiki?
> >
>
> Yes, that would be a good idea.
>
> Note that I'm no expert in this area...
>
> Cheers,
>
> Simon
>
> > Regards,
> > Yee
> >
> > -Original Message-
> > From: Simon Kitching [mailto:[EMAIL PROTECTED]
> > Sent: Tuesday, 20 December 2005 5:40 AM
> > To: MyFaces Discussion
> > Subject: Re: Session Scope Bean does NOT require serialization. Myfaces bug?
> >
> > Aleksei Valikov wrote:
> >> Hi.
> >>
> >>> My understanding is that with R1.1.1 the session scoped beans are not
> >>> serialized (thus Myfaces cannot be used in clustered deployments with
> >>> shared
> >>> sessions between containers). Serialization of backing beans to
> >>> session is
> >>> only added in the current build - and thus my questions regarding its
> >>> performance.
> >>>
> >>> Please correct me if I am wrong.
> >> I don't get it. Once you declare your bean as session-scoped, it simply
> >> becomes a session attribute - and managed by the servlet container. It's
> >> servlet container's task to serialize the session (together with its
> >> attributes), not JSF's. MyFaces can check if all of your session-scoped
> >> beans are serializable, but performing the serialization is above its
> >> tasks.
> >>
> >
> > MyFaces state-handling/serialization applies only to the view tree (ie
> > UIComponent objects).
> >
> > With managed beans, the MyFaces state-handling is irrelevant; JSF
> > doesn't try to "serialize backing beans". The beans simply go into the
> > servlet engine's request, session or application scope as for a non-JSF
> > application. Objects in the session don't need to be serializable,
> > though things like clustering and hot-restart won't work if they are not.
> >
> > However when using t:saveState, the two worlds do meet, because that
> > component is a UIComponent that gets stored along with the View, but it
> > retains a reference to a managed bean that it serializes too. In this
> > case the referenced bean *must* be Serializable (or implement
> > StateHolder) as documented for the saveState component.
> >
> >
> > Cheers,
> >
> > Simon
> >
> >
> >
>
>


--
Mathias


Re: tree2 Only multiple pages

Hi Dennis:
 Thanks for the reply. the example will demonstrate only expanding the tree2. Right? isnt there a way to save the state of the tree2 so that the next page knows what the tree2 state was and which was the selected node ?
 
On 12/20/05, Dennis Byrne <[EMAIL PROTECTED]> wrote:
You may want to check out the simple examples dist for thisone.  There is a tree2 expand all demonstration in there.
 Original message >Date: Tue, 20 Dec 2005 12:14:59 +0530>From: Ravi Gidwani <[EMAIL PROTECTED]>>Subject: tree2 Only multiple pages
>To: users@myfaces.apache.org>>   Hi All:>   I am using Myfaces 1.1.1. I am using tiles>   and have a tile defined with left side containing a
>   tree2 component.  On Clicking a node in the tree2 i>   take the user to some other page (say xyz.jsp) (Note>   this page is again tile based and contains the same>   tree2 component on the left).
> The problem is as soon as the new>   page(xyz.jsp) gets loaded the tree2 component is>   shown in the collapsed state and the node that was>   selected is now collapsed. I want to show the node
>   that was clicked as selected ...>>   Can this be done ?>>   Any feedback will be really appreciated...>>   TIA,>   ~Ravi>Dennis Byrne



Re: JSF web application test

I believe you are looking for httpunit .

 Original message 
>Date: Tue, 20 Dec 2005 00:16:41 -0800 (PST)
>From: Dave <[EMAIL PROTECTED]>  
>Subject: JSF web application test  
>To: users@myfaces.apache.org
>
>   What is the way to write automatic tests for web
>   application using JSF? Right now I have to open web
>   browser to manually test it. I like to write tests
>   that can be executed as a batch to make sure that
>   new changes will not break existing features.
>
>   Thanks for advice.
>   Dave
>
>   __
>   Do You Yahoo!?
>   Tired of spam? Yahoo! Mail has the best spam
>   protection around
>   http://mail.yahoo.com

Dennis Byrne


Re: tree2 Only multiple pages

You may want to check out the simple examples dist for this 
one.  There is a tree2 expand all demonstration in there.

 Original message 
>Date: Tue, 20 Dec 2005 12:14:59 +0530
>From: Ravi Gidwani <[EMAIL PROTECTED]>  
>Subject: tree2 Only multiple pages  
>To: users@myfaces.apache.org
>
>   Hi All:
>   I am using Myfaces 1.1.1. I am using tiles
>   and have a tile defined with left side containing a
>   tree2 component.  On Clicking a node in the tree2 i
>   take the user to some other page (say xyz.jsp) (Note
>   this page is again tile based and contains the same
>   tree2 component on the left).
> The problem is as soon as the new
>   page(xyz.jsp) gets loaded the tree2 component is
>   shown in the collapsed state and the node that was
>   selected is now collapsed. I want to show the node
>   that was clicked as selected ...
>
>   Can this be done ?
>
>   Any feedback will be really appreciated...
>
>   TIA,
>   ~Ravi
>

Dennis Byrne


JSF web application test

What is the way to write automatic tests for web application using JSF? Right now I have to open web browser to manually test it. I like to write tests that can be executed as a batch to make sure that new changes will not break existing features.      Thanks for advice.  Dave__Do You Yahoo!?Tired of spam?  Yahoo! Mail has the best spam protection around http://mail.yahoo.com