RE: Exception meaning

2006-09-22 Thread David Friedman
Did you forget to put your h:dataTable inside and f:view and/or h:form tags? It looks like topic.jsp line 93 is about the start of the problem, at least if I read the Stacktrace below it is the area to check. Regards, David -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECT

Exception meaning

2006-09-22 Thread [EMAIL PROTECTED]
Hello Waht is the meaning of the exception? 23:20:03,937 ERROR [[Faces Servlet]] Servlet.service() for servlet Faces Servlet threw exception javax.faces.FacesException: Component _idJsp6:0:_idJsp8 must be embedded in an form at org.apache.myfaces.context.servlet.ServletExternalContextI

Re: Crystal renderer-type unsupported?

2006-09-22 Thread Jeff Bischoff
I finally found some time to take another look at this, and I figured out the problem in about 30 seconds. :P Seems the Crystal component needs to be inside both an f:view tag and an h:form tag. Those had been accidentally omitted because this was a conversion from the Cyrstal pure-JSP viewer,

Omit component from serializeView()?

2006-09-22 Thread Jeff Bischoff
I have a 3rd-party JSF component on one of my pages. When the page is redisplayed, JSF tries to serialze the view. But, it throws an exception because the component has a class that prevents it from being serialized. Can I tell JSF not to serialize this component? I am using server-side state

Re: Re-render JSF page components

2006-09-22 Thread Jeff Bischoff
Kiran, > Can the viewRoot be forced to be completely re-created Wiki page [1] covers ways to force updated model values in input components. The first solution on that page involves forcing a new view root. It works well for forcing input components to refresh - maybe it can help with your pr

Re: ajax4jsf + tree2?

2006-09-22 Thread Andrew Robinson
One last note, I said to custom render the UICommand, but that is not needed, just set ting the onclick attribute is probably all that is needed On 9/22/06, William Huang <[EMAIL PROTECTED]> wrote: I will give it a try later. thanks, Bill "Andrew Robinson"

where can I find the source of these two css files?

2006-09-22 Thread Thomas_Perry
I've seen these used for styleClasses but haven't found their source: " formLabels" and "formInputs" Can anyone point me to them (sun? myfaces?) Thanks in advance for your help Tom This message is intended for the recipient only and is not meant to be forwarded or distributed in any o

Re: ajax4jsf + tree2?

2006-09-22 Thread William Huang
I will give it a try later. thanks, Bill "Andrew Robinson" To "MyF

Re: Tomahawk 1.1.3 inputFileUpload solution

2006-09-22 Thread Wendy Smoak
On 9/22/06, JBuilderDoug <[EMAIL PROTECTED]> wrote: I finally figured this out, so I'm going to put an entire example in this post. If you have time, can you put your example on the wiki? There is a page already (and I added a link to this thread): http://wiki.apache.org/myfaces/File_Uploa

sorting with t:saveState and t:dataTable

2006-09-22 Thread Appel, Jeremy
All, I have been unable to get sorting to work when using t:saveState and t:dataTable. I am saving the entire backing bean(which contains the ListDataModel that I am sorting on) via t:saveState. I have looked through the wikis and it looks like there is nothing to it. Are there any trick

Re: ajax4jsf + tree2?

2006-09-22 Thread Andrew Robinson
Another thought: I kept looking at the API for A4J, and found a server side API that will work for including the zones to refresh: AjaxRendererUtils.addRegionsFromComponent(javax.faces.component.UIComponent component, javax.faces.context.FacesContext context) No the only thing you would need to

Re: ajax4jsf + tree2?

2006-09-22 Thread William Huang
These are good suggestion/ideas. I've also had put some thoughts about similar approach before. I've tried extending UITreeData, TreeNodeBase, etc.. encountered some unexpected behavior. But ultimately, I pullback on it. Just want something simple and that wont requiring additional code. I wil

RE: ajax4jsf + tree2?

2006-09-22 Thread Hagen, Nicholas
That is actually what I ended up doing (at least to a certain degree...see below) to produce a working AJAX tree2 implementation. However, I second (from your next post) that the tree2 UITreeData component should be changed to return UIComponent instead to allow any expandable component. If the t

Re: ajax4jsf + tree2?

2006-09-22 Thread Andrew Robinson
BTW - instead of decorating UICommand, you could request a change of the API of UITreeData: Change HtmlTreeRenderer.java (1.1.3) line 577 from: UICommand expandControl = tree.getExpandControl(); to: UIComponent expandControl = tree.getExpandControl(); Change line 111 of UITreeData.java (1.1.3) f

Re: ajax4jsf + tree2?

2006-09-22 Thread Andrew Robinson
That solution may not work. I just downloaded the last A4J release and UIAjaxCommandLink is not a UICommand: java.lang.Object extended by javax.faces.component.UIComponent extended by javax.faces.component.UIComponentBase extended by org.ajax4jsf.framework.ajax.AjaxActionComponent

Re: ajax4jsf + tree2?

2006-09-22 Thread Andrew Robinson
The way that AjaxAnywhere works is that it builds a Set of "zones" during the processing of a request. JavaScript can start that Set and then there is an API on the server (AAUtils.addZonesToRefresh(ServletRequest, String) method) that one can use. So in my approach, I let aa.js submit normally (

Re: Dynamically generated command links

2006-09-22 Thread K. Johnson
Did you make sure the command links have unique component ids? Its hard to help your problem without a code snippet, but We generate commandLinks in our application that use actionListeners without any problems. > ---Original Message--- > From: John Holland <[EMAIL PROTECTED]> > S

Re: Re-render JSF page components

2006-09-22 Thread K. Johnson
My navigation bean is session scoped already? I'd like to somehow force the page to rebuild when it is refreshed? Can this be done? Can the viewRoot be forced to be completely re-created, so that the components will 'hide' on page refresh, if they have previously been displayed, and vice-ver

Re: ajax4jsf + tree2?

2006-09-22 Thread William Huang
I dont quite understand the first paragraph.. "Andrew Robinson" To

Re: how to access a managed bean from a button action listener ?

2006-09-22 Thread K. Johnson
You can also use: FacesContext facesContext = FacesContext.getCurrentInstance(); MyBean myBean = (MyBean) FacesContext.getApplication().createValueBinding("{MyBeanAliasUsedInFacesConfig}"); This accesses the managedBean in context. > ---Original Message--- > From: Alexandre Jaquet <

Re: ajax4jsf + tree2?

2006-09-22 Thread Andrew Robinson
Doesn't A4J have a server-side API to tell it to include panels during the process action phase? That is how I accomplish the AJAX with AjaxAnywhere, I would be dissappointed with A4J if that server-side Java API was not available. I tried to look into it at one time briefly, but the documentatio

Re: ajax4jsf + tree2?

2006-09-22 Thread Andrew Robinson
That is not true. Lazy loading means that child nodes are created when the parent is expanded and not until then. If you create the whole tree model all at once, you are fully loaded, regardless of when the nodes are rendered. Lazy loading refers to model creating, not rendering time. As for AJAX

Tomahawk 1.1.3 inputFileUpload solution

2006-09-22 Thread JBuilderDoug
I finally figured this out, so I'm going to put an entire example in this post. I'm using Tomahawk 1.1.3 with RI JSF created in Borland's JBuilder. I've created a .war file from borland and deployed it under Tomcat 5.5 so it should be Borland independent. The problems I was having previously w

Navigation with dynamic URLs

2006-09-22 Thread born
Hi everybody, I'm stuck. I have found the following URL http://wiki.apache.org/myfaces/Custom_Navigation_Handler. The last part (/view.jsp?objectId=#{view.objectId}) would solve my problem, but unfortunately it doesn't work. MyFaces render this to the URL http://localhost:8080/productPage.jsf?prod

Re: Two dataList in same page

2006-09-22 Thread Mike Kienenberger
If the data is never going to change put it in application scope. If the data is going to change, then you don't want to be doing it this way. But if you want to be stubborn, write a phase-listener that happens right before restore_view. On 9/22/06, Patrick Dreyer <[EMAIL PROTECTED]> wrote: I

Re: tree2 client side

2006-09-22 Thread William Huang
do you mean it works if clientSideToggle="true" and it doesnt work if clientSideToggle="false"? "Pfau, Oliver" <[EMAIL PROTECTED]

Re: Two dataList in same page

2006-09-22 Thread Patrick Dreyer
I read some more pages, as well the one in the MyFaces wiki(http://wiki.apache.org/myfaces/FAQ#MissingInAction) and finally understood why there is no way around t:saveState. So, stays the problem why dataList doesn't get updated. My action is called fine, which in turn updates the data to be

Re: tomahawk 1.1.3

2006-09-22 Thread JBuilderDoug
PROBLEM PRETTY MUCH SOLVED!!! The primary thing I was doing wrong was that I was trying to implement MyFaces and Tomahawk into an older project and it was using the JSP 1.1 specification instead of 2.0. I created a new project in Borland's JBuilder and specified JSP 2.0. I initi

Tag reference sheet for Tomahawk 1.1.3 is not correct?

2006-09-22 Thread Rønnevik , Eivind
Hi all!   If I go to the tag reference sheet for Tomahawk and select dataScroller (http://myfaces.apache.org/tomahawk/tagreference.html#dataScroller), it says that the dataScroller has an onclick and an ondblclick attribute.   However, from my jsp I don't get these attributes displayed when

Re: Authorization via view-handler

2006-09-22 Thread janw
Hi Patrick, thanks for the hints and the links. Unless I use redirect in a navigation rule, in a filter I don't get the destination of the request, but the source. example: login.jsp => start.jsp When performing the login, the information I have when filtering the login-request is the URL of log

Re: Tree2 and Ajax4JSF Integration for Ajax Lazy Loading

2006-09-22 Thread William Huang
I havent look into DynaFaces because is still in its very early stage. If you found it works, that's good, you should post the solution with DynaFaces here so other users can use it.. I will definitely look into DynaFaces once it becomes more mature. Thanks, Bill

RE: Run-time component generation

2006-09-22 Thread John Holland
I'm trying to do something similar using ajax4jsf. The issue I'm having is that my a4j:commandLinks aren't invoking their actions or actionListeners when clicked. The components themselves look fine and render accordingly though. I'm guessing that I'm missing some initialization that needs to be

Re: Authorization via view-handler

2006-09-22 Thread Rogerio Pereira
I created a PhaseListener for this purpose.2006/9/22, Patrick Dreyer <[EMAIL PROTECTED]>: Sorry, forgot about the MyFaces wiki...Just found the page about "Access FacesContext from Servlet" http://wiki.apache.org/myfaces/AccessFacesContextFromServlet Patrick Dreyer schrieb:> Hi Jan>> Don't do authe

Re: Authorization via view-handler

2006-09-22 Thread Patrick Dreyer
Sorry, forgot about the MyFaces wiki... Just found the page about "Access FacesContext from Servlet" http://wiki.apache.org/myfaces/AccessFacesContextFromServlet Patrick Dreyer schrieb: Hi Jan Don't do authentication/authorization through a ViewHandler, use a servlet filter instead. Citation

Re: How to access input texts values from a button action method ?

2006-09-22 Thread Volker Weber
Hi, if you know the id of the element: FacesContext.getCurrentInstance().getViewRoot().findComponent(); Regards Volker 2006/9/22, Legolas Woodland <[EMAIL PROTECTED]>: Hi Thank you for reading my post how i can access the web page elements value (for example in login page to username and pa

Re: t:panelTabbedPane and t:dataScroller: links work only on the first p

2006-09-22 Thread András Piros
Hi Mike, sorry to inform you, it does not work with the tomahawk 1.1.5 snapshot from 22-Sep-2006 04:50. :andras Mike Kienenberger wrote: > > There were some changes made with javascript and links on Sat Jul 15 > 09:24:06 2006 to improve compatibility with the JSF RI. > > You might try a 1.1.

Re: Authorization via view-handler

2006-09-22 Thread Patrick Dreyer
Hi Jan Don't do authentication/authorization through a ViewHandler, use a servlet filter instead. Citation from JavaWorld (http://www.javaworld.com/javaworld/jw-07-2004/jw-0719-jsf.html): * Use a base backing bean: This solution is simple. However, it ties the backing beans to a specific inh

How to access input texts values from a button action method ?

2006-09-22 Thread Legolas Woodland
Hi Thank you for reading my post how i can access the web page elements value (for example in login page to username and password) from the button action method ? I do not want to use binding the page elements with the backing bean that my action method is inside it. is there any other way ? th

tree2 client side

2006-09-22 Thread Pfau, Oliver
Hi, when I set clientSideToggle of tree2 to true, the action of a commandlink pddata.pdClicked will not executed. With clientSideToggle it works. What's wrong ? Using myFaces 1.1.4 and Tomahawk 1.1.3. Thanks, Oliver

Fwd: selectOneMenu and a4j:support

2006-09-22 Thread Aneesha Govil
Can anyone help with this please? It would be great is someone can guide me on how to make this work. It ties with the selectOneMenu problem I posted earlier.Thanks,Aneesha-- Forwarded message -- From: Aneesha Govil <[EMAIL PROTECTED]>Date: Sep 22, 2006 2:55 PMSubject: selectOneMenu

selectOneMenu queries

2006-09-22 Thread Aneesha Govil
Hi,I have some questions about the selectOneMenu. In my work on this so far, if I set the value attribute as: and if my selectedTable property of the form bean is set to a present value in the tableform class, the change on the UI is not reflected in the class. It always works with the same value.

Re: Using without StartupServletContextListener because getting"basenull" Error

2006-09-22 Thread NABA
Thanks a lot... It works... :-) Mike Kienenberger schrieb: On 9/20/06, NABA <[EMAIL PROTECTED]> wrote: Hi... My environment: Eclipse 3.2 Tomcat 5.5.17 jsf-impl-1.2 tomahawk-1.1.3 servlet: 2.4 1. I attached the web.xml to this mail. I would like use Myfaces-Tomahawk and the Sun RI. Problem:

Re: t:panelTabbedPane and t:dataScroller: links work only on the first page

2006-09-22 Thread Mike Kienenberger
There were some changes made with _javascript_ and links on Sat Jul 15 09:24:06 2006 to improve compatibility with the JSF RI.You might try a 1.1.5 snapshot and see if the problem is already fixed. On 9/22/06, András Piros <[EMAIL PROTECTED]> wrote: Hi folks, I'm using MyFaces Tomahawk 1.1.3 and

Re: Tree2 and Ajax4JSF Integration for Ajax Lazy Loading

2006-09-22 Thread Roger Keays
Hey Bill, Nice Blog :) I've got another solution under the belt using DynaFaces which doesn't require any customization of the navigation components. Unfortunately, DynaFaces defect #13 (https://jsf-extensions.dev.java.net/issues/show_bug.cgi?id=13) has to be fixed before it is readily usab

t:panelTabbedPane and t:dataScroller: links work only on the first page

2006-09-22 Thread András Piros
Hi folks, I'm using MyFaces Tomahawk 1.1.3 and Sun's RI 1.2 together in an enterprise app under Sun's GlassFish appserver. If I have a t:dataTable, which has a t:dataScroller, my h:commandLinks inside t:dataTable work just fine, on the first page, and on every other page of the dataTable: So

Re: Using Tobago dynamically from servlet ??

2006-09-22 Thread Volker Weber
Hi Peter, please still comunicate over the list. You can create the component tree programatically in your java code. In my example our application should create the UIPanel and content dynamically in invokeApplicationPhase. I currently don't know links to examples or howtos, and no time to se

Re: Using Tobago dynamically from servlet ??

2006-09-22 Thread Peter Rabing
Hi Volker, I am a little unsure of your answer. The body of the content Panel, is a method call executed at run-time. The result must be some HTML/JavaScript code inserted into the page, correct ? But rather then generate HTML, I'd prefer to generate Tobago components, to be within the same para

Re: Errors on page

2006-09-22 Thread Martin Marinschek
Do me a favour and check if you have forms embedded in a form. That's disallowed in HTML, and might be the reason for this! regards, Martin On 9/22/06, Martin Marinschek <[EMAIL PROTECTED]> wrote: The javascript looks good to me. What's your html-header? regards, Martin On 9/22/06, Mike Kie

Re: Accessing JSP action var attribute from normal JSP expression or action

2006-09-22 Thread Mike Kienenberger
On 8/23/06, Daniel Kröger <[EMAIL PROTECTED]> wrote: I'm a bit confused since the description of the var attribute for the dataTable action says it's the request scope variable that holds the current row object. But the following exemplary code doesn't work anyway: ${child.name}

Re: how to access a managed bean from a button action listener ?

2006-09-22 Thread Craig McClanahan
On 9/21/06, Legolas Woodland <[EMAIL PROTECTED]> wrote: Hithank you for reading my posthow i can access a managed bean from a button action listener ?for example i have a managed bean named session and its scope is session, i used it to store user details until he/she logout and when he/she pressed

Re: Errors on page

2006-09-22 Thread Martin Marinschek
The javascript looks good to me. What's your html-header? regards, Martin On 9/22/06, Mike Kienenberger <[EMAIL PROTECTED]> wrote: Supposedly Myfaces Core 1.1.4 and Tomahawk 1.1.3 are compatible. But maybe we missed something. I'm using Core 1.1.4 and Tomahawk 1.1.5-snapshot (Aug 18th) myse

Re: Errors on page

2006-09-22 Thread Mike Kienenberger
Supposedly Myfaces Core 1.1.4 and Tomahawk 1.1.3 are compatible. But maybe we missed something. I'm using Core 1.1.4 and Tomahawk 1.1.5-snapshot (Aug 18th) myself. Wait a little bit and see if someone more knowledgeable about javascript comes online to help you. I'm pretty useless when it co

Re: Errors on page

2006-09-22 Thread Dave
I have already removed MyFaces libs coming with JBoss. But it did not solve the issue.   In FireFox javascipt console:   Error: Error in parsing value for property 'cursor'.  Declaration dropped.Source File: http://localhost:8080/faces/myFacesExtensionResource/org.apache.myfaces.renderkit.html.

Re: Can t:dataScroller's for-attribute reference UIData object in another form?

2006-09-22 Thread Mike Kienenberger
On 8/23/06, Rønnevik, Eivind <[EMAIL PROTECTED]> wrote: I have a dataScroller, and want to specify the for-reference to a dataTable, only thing is that I see the need of having the two objects (scroller and table) in two different forms (layout issues). I've tried something like this, with no su

Re: within dataTable

2006-09-22 Thread Mike Kienenberger
Carl, I think there's a t:convertDateTime component that provides extra attributes for dealing with this correctly. Might be sandbox:convertDateTime On 8/23/06, CarlHowarth <[EMAIL PROTECTED]> wrote: Hello all, Apologies if this has already been covered, I have not been able to find a suitab

Authorization via view-handler

2006-09-22 Thread janw
Hello, I'd like to use a ViewHandler for authorization. I use tiles, so I have already a Viewhandler defined in my application (JspTilesViewHandlerImpl). How can I integrate these two view-handlers? I think I cannot define a second view-handler. I know there are frameworks like SecurityFilter, A

Re: Using Tobago dynamically from servlet ??

2006-09-22 Thread Volker Weber
Hi Peter, you don't need to generate a jsp, you just need to create the component tree and map it via binding into a skeleton jsp. e.g.: <%-- left side navagation --%> <%-- content filled by application --%> with this your application has full control over the cont