Re: DataScroller Lazy loading collections

2005-06-21 Thread Werner Punz
Interesting approach, I would have implemented a full model to do it, like I recommended. But yours looks much more compact. I never thought of applying a delegate to an existing model. Just a minor question, do you have callbacks into the setRowIndex method as well, because I just wonder if

Re: Dynamically adding form elements client-side

2005-06-21 Thread Werner Punz
Richard Wallace wrote: Werner Punz wrote: Richard Wallace wrote: Werner Punz wrote: Richard Wallace wrote: Ok, but how should I tinker with the element tree? I'm guessing AJAX will need to come into play. But how do I get access to the element tree? And exactly how should I

Re: DataScroller Lazy loading collections

2005-06-21 Thread Enrique Medina
Hi Werner, As we've been discussing, I'm only interested in getting a reference to the object being processed by each row in the DataTable, so IMHO the perfect point to get it is in the getRowData method. Currently, I'm loading the entire collection at once. This is an interesting area of

Re: Extensions setup errors

2005-06-21 Thread Bruno Aranda
Hi Eric, Are you installing myfaces in general, or do you want only the extensions to be used with the release implementation? Do the examples work for you? Have you also followed the steps in http://myfaces.apache.org/docs/gettingstarted.html ? Regards, Bruno 2005/6/21, Eric Knapp [EMAIL

Re: Extensions setup errors

2005-06-21 Thread Bruno Aranda
extensions to be used with the release implementation? Typo: not the 'release' implementation, but the 'reference' implementation... ;) Regards, Bruno 2005/6/21, Bruno Aranda [EMAIL PROTECTED]: Hi Eric, Are you installing myfaces in general, or do you want only the extensions to be used

Uploading file with a name containing non-ascii chars

2005-06-21 Thread Gur Eitan
Hi Im trying to use the UploadedFile class to upload files. It works great until I try to upload a file with a name containing non-ascii chars (Spanish chars for example). I can have 2 copies of the same file one with only ascii chars in the filename, and one with non-ascii chars, but

[Tiles] Included not compiled

2005-06-21 Thread Olaf Bergner
I just started using JSF, trying to get MyFaces' Tiles integration to work. So I created a layout page which uses tiles:insert to include the mainbar, the sidebar and the content pane. In my tiles definition file I have a base definition which all other definitions - two so far - extend. Here's

x:dataList - how do you set the style of the li elements

2005-06-21 Thread Randahl Fink Isaksen
I would like to render an unordered list similar to this ul liRegular element li style=margin-left:20pxIndented element/li /ul Notice the indentation of the second li element... Does anyone know how (if at all) I can affect the style of the li elements? I am doing the following which does not

Re: What is the right way to iterate

2005-06-21 Thread Randahl Fink Isaksen
Thank you everyone who answered this - I started using datalist instead... seems much more like the real JSF approach. R. Werner Punz wrote: Randahl Fink Isaksen wrote: I have been trying to use c:forEach in my jspx pages but I keep experiencing different kinds of problems. An example:

DataTable: Facets Bug

2005-06-21 Thread mathias . werlitz
Hi all, there seems to be a big bug in the dataTable component implementation. If you use two dataTable components within each other the facets of the inner table do not work correctly. For example if you use a inputText component in the footer (of the inner table) the value is not updated an no

Tag-Bug

2005-06-21 Thread ramesh bodimani
MyFaces Discussion I am planning to write a simple component, My component will take one parameter from the tag through the Tag class. I am using my tag in the jsp page like this: test:testTag jspID=%=request.getParameter(id)% My Tag class is like this: public class TestTag extends

script is not found in JSF

2005-06-21 Thread Srikanth Madarapu
Hi I have the following lines in struts pages and it works fine. script src=xde/SpellCheckNoApplet.js /script When I put the same lines in a verbatim tag in jsf pages, the browser cannot find the .js file. Is there a special way of including javascript for jsf files ?

Re: script is not found in JSF

2005-06-21 Thread techie techie
Try using full path of the file to be included.. Something like: script src=""/ Another thing I observed is... When I looked at the formatted source using FireFox's plug-in, with struts pages I can see the source with no problems, but for the source of jsf pages (with the above script ), I

RE: script is not found in JSF

2005-06-21 Thread Srikanth Madarapu
Try using full path of the file to be included.. Something like: script src=""/[Srikanth Madarapu]That did the trick. thanks. But I still don't understand why is it working in the struts pages and not in JSF. Another thing I observed is... When I looked at the formatted

Re: Dynamically adding form elements client-side

2005-06-21 Thread Richard Wallace
Werner Punz wrote: Richard Wallace wrote: Actually, on reflection, I can't really think of a good way to get everything I want for free anyways. I think I will need to develop a custom component, probably something that is composed of other existing UI elements. The three primary use

RE: script is not found in JSF

2005-06-21 Thread Srikanth Madarapu
Hi Now that the script issue is solved, I am having another problem... I have the following link in my jsf page f:verbatim a href="" img src="" border="0" /a /f:verbatim The _javascript_ file is in /webroot/xde folder, but when I clicked the link above it is trying to

Which MyFaces JARs to use with Sun RI?

2005-06-21 Thread CONNER, BRENDAN \(SBCSI\)
I've been trying to build up a working IBM RAD/RSA workspace that uses Sun's JSF RI and MyFaces components. So far, I've identified the following JAR files that need to be copied over from the MyFaces Project: myfaces-impl.jar myfaces-extensions.jar myfaces-wap.jar myfaces-xdoclet.jar

Tree2 component

2005-06-21 Thread Nick Leaver
Hi I cannot find anywhere a good example of using the x:tree2 component (or x:tree). My problem is I dont know how to submit my form to the relevant action when a node is selected. What I am trying to achieve is the same behaviour as a x:commandButton with an action set to

Running Tree2 on Sun RI

2005-06-21 Thread CONNER, BRENDAN \(SBCSI\)
Has Tree2 really been tested using a standard (non-MyFaces) JSF 1.1 implementation? I'm trying to run the tree2.jsp example using Sun's JSF 1.1 RI and the following MyFaces JAR files: myfaces-extensions.jar myfaces-wap.jar myfaces-xdoclet.jar When I bring up the tree2.jsp, I get the following

RE: script is not found in JSF

2005-06-21 Thread Srikanth Madarapu
The problem was in my .js file. I have fixed it thanks -Original Message-From: Srikanth Madarapu Sent: Tuesday, June 21, 2005 10:41 AMTo: MyFaces DiscussionSubject: RE: script is not found in JSF Try using full path of the file to be included.. Something like:

Re: Extensions setup errors

2005-06-21 Thread Bruno Aranda
You're welcome, Bruno 2005/6/21, Eric Knapp [EMAIL PROTECTED]: I was able to get this to work. I prefer to not embed jar files within my .ear files so I had installed the myfaces.jar file in jboss. I got things to work by extracting the myfaces_ext.tld file and having that be part of my .ear

Re: Possible Bug in HtmlRenderer in Tree2

2005-06-21 Thread Sean Schofield
I turned off the showNav attribute in the ext:tree2 tag, which caused also the showLines to turn off. I don't think this was the intended behaviour. I couldn't get it to turn on again even by explicitly specifying showLines=true That's not a bug, that's intentional. IMO it doesn't make

Re: problem in using x:dataTable and x:updateActionListener

2005-06-21 Thread Sean Schofield
Does it work with preserve datamodel = false? I wonder if that might be the problem... It's supposed to work either way of course. sean On 6/5/05, Farooq Mahmood [EMAIL PROTECTED] wrote: Hi, I am new to jsf and I m using my faces. I m getting problem regarding x:dataTable and

Re: problem in using x:dataTable and x:updateActionListener

2005-06-21 Thread Sean Schofield
Also, try with h:dataTable. That should help narrow it down as to whether the problem is on your end or with x:dataTable. AFAIK h:dataTable works fine in this area. sean On 6/21/05, Sean Schofield [EMAIL PROTECTED] wrote: Does it work with preserve datamodel = false? I wonder if that might

Re: Tree2 Facets

2005-06-21 Thread Sean Schofield
You must know all of the possible facet types in advance. You don't have to know how many of each type you will have (that part can be dynamic) but you do need to know the finite list of possible facets (foo-folder, etc.) If you don't want to customize based on the node type you could just make

Re: Using Tree2 with WebSphere 5.1

2005-06-21 Thread Sean Schofield
You should be able to use whatever version of JSF you want. I don't use WS but you can probably tinker with the server libraries and replace them with whatever version you want. sean On 6/7/05, CONNER, BRENDAN (SBCSI) [EMAIL PROTECTED] wrote: Has anyone gotten Tree2 to work with WebSphere 5.1?

Re: Tree2 delete Item

2005-06-21 Thread Sean Schofield
Tree and Tree2 are two different components. I developed tree2 to address some shortcomings in the original tree. Tree2 uses a different approach to things and some were uncomfortable with abandoning the original tree so we have both components available for the user to choose which one they

RE: Using Tree2 with WebSphere 5.1

2005-06-21 Thread CONNER, BRENDAN \(SBCSI\)
Thanks, Sean. Given that, is there an easy way to obtain the minimal set of classes needed from the MyFaces distribution to get just the Tree2 component's capability (without laboriously loading one class after another to see which dependencies are still broken)? Ideally, I'd like to crisply

Re: HtmlTree in org.apache.myfaces.custom.tree2

2005-06-21 Thread Sean Schofield
This component has a default initial state of collapsed. Is it possible to have an initial state of expanded. Search the archives for some earlier discussions regarding this. There is interest in a solution but it will require some help from users who are willing to put in a little bit of

Re: Using Tree2 with WebSphere 5.1

2005-06-21 Thread Sean Schofield
Use myfaces-extensions.jar (see the binary release and/or nightly build.) Its designed to run with RI or any other implementation. Whichever impl you use it should be JSF 1.1 - nobody has tested tree2 with JSF 1.0 so who knows if that works or not. sean On 6/21/05, CONNER, BRENDAN (SBCSI)

Fwd: [Beginner's question] Tree2 - problem using example code in WSAD

2005-06-21 Thread Sean Schofield
-- Forwarded message -- From: Kang, Dong Soo [EMAIL PROTECTED] Date: Jun 13, 2005 5:25 PM Subject: Re: [Beginner's question] Tree2 - problem using example code in WSAD To: [EMAIL PROTECTED] I have a same problem with this guy. I set up extension filter and other stuff

RE: HtmlTree in org.apache.myfaces.custom.tree2

2005-06-21 Thread Rahul Pilani
If you always want the node to be expanded why not just have isNodeExpanded return true? Also, you seem to be trying to toggle the expanded state in isNodeExpanded. That sounds like a recipe for trouble ;-) This method is used to *check* if the node is expanded or not. You don't know how many

Re: HtmlTree in org.apache.myfaces.custom.tree2

2005-06-21 Thread Sean Schofield
Ahh I see. There has been talk of maintaining the expanded state outside of the component (basically per node, or something like that.) There are drawbacks to that approach (see archives for earlier discussions.) sean On 6/21/05, Rahul Pilani [EMAIL PROTECTED] wrote: If you always want

RE: Tree2 Table custom renderer

2005-06-21 Thread Virtudazo, Dennis \(Exchange\)
I am closer to the fix. I had to extend tree2.HtmlTree and implement processDecodes. I had to call processDecodes on all the component children of the tree also -- these are the UIColumn(s). The structure of the tree2 table in the jsp looks like this: my:tree2table h:column this

RE: Possible Bug in HtmlRenderer in Tree2

2005-06-21 Thread Rahul Pilani
-Original Message- From: Sean Schofield [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 21, 2005 12:35 PM To: MyFaces Discussion; [EMAIL PROTECTED] Subject: Re: Possible Bug in HtmlRenderer in Tree2 I turned off the showNav attribute in the ext:tree2 tag, which caused also the

RE: [Beginner's question] Tree2 - problem using example code in WSAD

2005-06-21 Thread CONNER, BRENDAN \(SBCSI\)
Yes, that's a known bug that I logged (http://issues.apache.org/jira/browse/MYFACES-281?page=all). The problem is that id is defined twice in the tld for tree2, so the tag attribute id value is read as client Tree instead of client Tree. If you unpack the JAR file and eliminate the duplicate

RE: HtmlTree in org.apache.myfaces.custom.tree2

2005-06-21 Thread Rahul Pilani
What help would you require for a solution to this problem? -Original Message- From: Sean Schofield [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 21, 2005 1:25 PM To: MyFaces Discussion Subject: Re: HtmlTree in org.apache.myfaces.custom.tree2 Ahh I see. There has been talk of

RE: Using Tree2 with WebSphere 5.1

2005-06-21 Thread CONNER, BRENDAN \(SBCSI\)
Hmm. That's what I thought also, although I've tried to get it to work with just myfaces-extensions.jar and the Sun RI, with no luck. I've only gotten it to work if I use the entire myfaces.jar (and not the Sun implementation). I modified the example jsp somewhat, because it uses a non-standard

Re: Possible Bug in HtmlRenderer in Tree2

2005-06-21 Thread Sean Schofield
Ok that is a slightly bizarre reason for wanting to do that but I see what you mean. The problem is that you can't connect the lines to your folders (they would have to be connected to a blank space or some defined icon.) The folders are facet specific and are optional so there isn't really a

Need Help

2005-06-21 Thread Balaji Saranathan
Title: Need Help Hi, If I create a custom component and the property should be a Hashtable, how would I create the tag class for the same. I want to pass the hashtable as a method binding. It just happened that I created a String setters/getters in the tag class and it worked. But when I

Re: Using Tree2 with WebSphere 5.1

2005-06-21 Thread Sean Schofield
I haven't run tree2 on the RI and from what you are describing it sounds like there may be a problem. My gut instinct tells me that there is a problem with the RI because AFAIK there is no spec requirement that a commandLink be inside of a form. Of course I haven't read the spec that carefully

RE: Possible Bug in HtmlRenderer in Tree2

2005-06-21 Thread Rahul Pilani
I am using a custom facet that puts in the folders, and it is already connected with the lines. What I wanted to do was put lines instead of the nav buttons. I think that should be fairly straight forward as all you are doing is using one image (the one with a line) instead of the nav button

RE: Using Tree2 with WebSphere 5.1

2005-06-21 Thread CONNER, BRENDAN \(SBCSI\)
I'll see what I can do. I could be wrong, but I was under the impression that a command link *does* have to be inside a form, since, as Hans Bergsten, in his O'Reilly book, puts it, it renders the component as an HTML a element attribute ... containing JavaScript code for submitting the form the

Re: HtmlTree in org.apache.myfaces.custom.tree2

2005-06-21 Thread Sean Schofield
Have you searched the archives for the discussions I referenced? They outline some of the problems. Once you are up to speed on those issues let me know if you think you have the time and expertise to help with this. Ideally we get several people to help out. sean On 6/21/05, Rahul Pilani

RE: Using Tree2 with WebSphere 5.1

2005-06-21 Thread CONNER, BRENDAN \(SBCSI\)
Ah, OK. I realize you're busy now, so don't feel compelled to answer this now, but, for the record, when using the Sun RI, I also get the following error on the x:panelLayout tag used in the tree2.jsp example: [6/21/05 16:08:39:868 CDT] 7292fe94 UIComponentBo W

RE: HtmlTree in org.apache.myfaces.custom.tree2

2005-06-21 Thread Rahul Pilani
I certainly do have the time, but I don't think I have that much expertise in JSF, if that's what you are looking for. I went through the archives, and I get what you are saying about the TreeNode being an exact representation of the data and all rendering issues assigned to HtmlTree. I guess I

Re: HtmlTree in org.apache.myfaces.custom.tree2

2005-06-21 Thread Sean Schofield
Lets see if we can't attract a few more people to the cause. Time is the most important - expertise is a nice plus ;-) All of us are relatively new to JSF so don't worry. If we can get a few more people willing to help out then I am willing to reopen some of those old discussions. My first

RE: HtmlTree in org.apache.myfaces.custom.tree2

2005-06-21 Thread CONNER, BRENDAN \(SBCSI\)
I could potentially help out - Brendan -Original Message- From: Sean Schofield [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 21, 2005 4:28 PM To: MyFaces Discussion Subject: Re: HtmlTree in org.apache.myfaces.custom.tree2 Lets see if we can't attract a few more people to the

Re: DataScroller Lazy loading collections

2005-06-21 Thread Werner Punz
Enrique Medina wrote: Hi Werner, As we've been discussing, I'm only interested in getting a reference to the object being processed by each row in the DataTable, so IMHO the perfect point to get it is in the getRowData method. Currently, I'm loading the entire collection at once. This is an

Re: Dynamically adding form elements client-side

2005-06-21 Thread Werner Punz
Richard Wallace wrote: Werner Punz wrote: Richard Wallace wrote: Actually, on reflection, I can't really think of a good way to get everything I want for free anyways. I think I will need to develop a custom component, probably something that is composed of other existing UI elements.