Re: [Tobago] global settings possible?

2007-02-26 Thread Udo Schnurpfeil
Hello Michał, You can see how to create a new tag by composing other tag here: https://svn.apache.org/repos/asf/myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/taglib/extension/LabelExtensionTag.java You will need to write a TLD-file, an may register it. (In Tobago the file

Re: [ Tobago ] Regarding Alignment Problems with gridLayout

2007-02-26 Thread Udo Schnurpfeil
Hello Madan, tc:column is only for Columns inside of tc:sheet. tc:cell is useful if there is a tc:gridLayout facet in the parent container to set spanX and/or spanY tc:panel may have its own layout-manager. A simple sample you can see here:

Re: [Solved] ERROR: Value is not a valid option

2007-02-26 Thread CarlHowarth
Hi, I am having this problem too. My select one is set up as follows: h:selectOneMenu id=regionList binding=#{Bean.regionListUI} value=#{Bean.region} f:converter converterId=myapp.Region/ f:selectItem itemValue=0 itemLabel=(all)/ t:selectItems var=r itemLabel=#{r.name}

togglelink within a datatable

2007-02-26 Thread Paul Ryan
Hi, I am trying to do inline editing within a table. I have included a togglePanel component as a column value within a t:datatable, my problem is that the 'for' attribute seems to require the explicit id of the component to hide/display, so when my table contains more than one row, the ids get

Re: [Tobago] tc:tab won't resize

2007-02-26 Thread Udo Schnurpfeil
Hallo Michał, I think I've the same scenario working, with 1.0.9 and also 1.0.10-SNAPSHOT How do you realize the resizing of the page? Udo Michał 'Gandalf' Stawicki schrieb: Hi, I have a tc:page that always sets its' size to maximum. So, if a user resizes his window, after next submit the

Re: sandbox floatingPanel css control

2007-02-26 Thread Werner Punz
Joe Ersinghaus schrieb: Hello, Does anyone know how to control the style (width or height) in the sandbox floatingPane.jsp example? I've tried adding sized elements inside the s:floatingPane control, and this will increase width (adjusted to the internal control), but the pane scroll-bar

Re: sandbox floatingPanel css control

2007-02-26 Thread Werner Punz
Joe Ersinghaus schrieb: Hello, Does anyone know how to control the style (width or height) in the sandbox floatingPane.jsp example? I've tried adding sized elements inside the s:floatingPane control, and this will increase width (adjusted to the internal control), but the pane scroll-bar

RE: PPRPanelGroup

2007-02-26 Thread Oellien, F \(Frank\)
Hello, That is what I have done so far. I have tried both 1.1.4 and 1.1.5 in a new web application that only contains the original JSP file and the corresponding Backing Bean. And these are the results: PPRSumit button - Request/Page Refresh ConfiguredSubmit Button - Request/Page Refresh

Re: togglelink within a datatable

2007-02-26 Thread Werner Punz
Paul Ryan schrieb: Hi, I am trying to do inline editing within a table. I have included a togglePanel component as a column value within a t:datatable, my problem is that the 'for' attribute seems to require the explicit id of the component to hide/display, so when my table contains more

Re: Sub columns in datatable

2007-02-26 Thread Werner Punz
[EMAIL PROTECTED] schrieb: Hi all, How to include sub columns in datatable. It has three columns Ssn,Names,profession. As illustrated in the fig below for Names (first names,middle names,last names). How to get the sub columns in the datatable. Try to nest a datalist into the colum of

Re: some functioanlity questions

2007-02-26 Thread Werner Punz
Colin Chalmers schrieb: 1. The browser Back-button when the user clicks on the browser back-button he should be taken back a page without loss of data . I've seen comments about client/side state saving in connection with cache expiry settings I've also seen solutions based on seam

Re: [Tobago] tc:tab won't resize

2007-02-26 Thread Michał 'Gandalf' Stawicki
I have a layout tag (def-layout.tag): %@ tag pageEncoding=UTF-8 % %@ taglib uri=http://myfaces.apache.org/tobago/component; prefix=tc % %@ taglib uri=http://java.sun.com/jsf/core; prefix=f % f:view locale=#{pageDisplayBean.locale} tc:page label=Chemigrafia id=overview state=#{layout}

Re: Sub columns in datatable

2007-02-26 Thread Amit Jain
You can do it by using datatable inside a datatable. So basically inside second column there will be datatable and you have to change value to the datatable accordingly. [EMAIL PROTECTED] wrote: Hi all, How to include sub columns in datatable. It has three columns Ssn,Names,profession.

Re: [Tobago] nesting tc:sheet

2007-02-26 Thread Michał 'Gandalf' Stawicki
Hi, no answers to this one... Is there any way in Tobago to do double-iteration (so I iterate over some List, and than I iterate over some elements than I get from the first list)? I can't use forEach as I need to use tc:selectOneChoice and f:selectItems and these won't work with forEach

debugging bean generated componenets

2007-02-26 Thread Yaron Spektor
Hi, I am creating a bean generated page using components and would like to see the jsf tags during the rendering in order to debug the code. I used to have a package that I would set to DEBUG in log4j but I cannot find the example I used. Any suggestions? In general, any good debug methods in JSF,

Sandbox inputSuggest

2007-02-26 Thread Pfau, Oliver
Hi, when I use inputSuggest from nightly build of sandbox there are attributes styleClass and style missing. In an older build it was present. Maybe something wrong with the TLD ? Regards, Oliver

Re: [Tobago] nesting tc:sheet

2007-02-26 Thread Udo Schnurpfeil
tc:selectItems may resolve your problem, it is similar to f:selectItems but allows $-Expressions, as far as I know. So you can use forEach. Do you really need nested loops? Is the inner a loop over the items? Then you can use ?:selectItems instead of ?:selectItem. Regards Udo Michał

RE: PPRPanelGroup - Additional Info

2007-02-26 Thread Oellien, F \(Frank\)
I have just figured out, that the PPRPanelGroup shows only this strange behavior, if used with Sun Standard implementation. When I use myfaces instead the resukts are different: Now I receive an alert window with the message: 'an error occurred during the ajax-request XMLHttpTransport Error:

Re: [Solved] ERROR: Value is not a valid option

2007-02-26 Thread Kevin Galligan
I'm having the same problem. I had some code that was working for a long time with 1.1.5-SNAPSHOT, and now I'm getting that error. h:selectOneMenu value=#{shared$FavoriteDocumentAdd.documentTypeId} onchange=toggleInputRow() id=documentTypeSelect style=background-color:rgb(204,204,255)

RE: Re: [Tobago] nesting tc:sheet

2007-02-26 Thread H. Swaczinna
There's no tc:selectItems in the Tobago tag doc. Is this a new tag? Regards Helmut tc:selectItems may resolve your problem, it is similar to f:selectItems but allows $-Expressions, as far as I know. So you can use forEach. Do you really need nested loops? Is the inner a loop over the items?

Re: Re: [Tobago] nesting tc:sheet

2007-02-26 Thread Michał 'Gandalf' Stawicki
nope, your right - I can't find it in 'Latest SVN TLD documentation' there is tc:selectItem, so I think you could make another iteration and create many tc:selectItem 's :) life isn't easy regards, michael On 26/02/07, H. Swaczinna [EMAIL PROTECTED] wrote: There's no tc:selectItems in the

Re: [Solved] ERROR: Value is not a valid option

2007-02-26 Thread Martin Grotzke
Does it work when you use itemValue=#{3} as workaround? I also had the same problem with itemValue=true, what I think is http://issues.apache.org/jira/browse/TOMAHAWK-152 ... Cheers, Martin On Mon, 2007-02-26 at 11:23 -0500, Kevin Galligan wrote: I'm having the same problem. I had some code

Re: [Solved] ERROR: Value is not a valid option

2007-02-26 Thread Kevin Galligan
More info. I took a look at the code. Revision 449566, repo path... https://svn.apache.org/repos/asf/myfaces/core/trunk/api/src/main/java/javax/faces/component/UISelectOne.java The original code does the following: _ValueConverter converter = new _ValueConverter() { public

Re: [Solved] ERROR: Value is not a valid option

2007-02-26 Thread Kevin Galligan
I did try that and didn't have any luck. I think that was due to the fact that I was using shorts rather than ints, but I'd have to try it again now that I have a better understanding of everything involved. I looked at TOMAHAWK-152 briefly. I'll have to sit down and take a better look at it.

Re: [Solved] ERROR: Value is not a valid option

2007-02-26 Thread Mike Kienenberger
The log message was this: URL: http://svn.apache.org/viewvc?view=revrev=449566 Log: fix for MYFACES-1328 : UISelectOne and UISelectMany fail with custom converter that returns java.lang.String from getAsObject() method. Thanks to Nikolay Petrov for tracking this down.

Re: [Solved] ERROR: Value is not a valid option

2007-02-26 Thread Mike Kienenberger
Take a look at http://issues.apache.org/jira/browse/MYFACES-1328. It looks like the RI does not have this convenience conversion. I don't know what the spec says, but that'd be the place to get a definitive answer. If you're using facelets, as a temporary workaround you could create a

Re: [Solved] ERROR: Value is not a valid option

2007-02-26 Thread Kevin Galligan
I am using facelets. Where would that function go? Each f:selectItem entry? f:selectItem itemLabel=Website URL itemValue=#{myfn:convertStringToShort(3)}/ On 2/26/07, Mike Kienenberger [EMAIL PROTECTED] wrote: Take a look at http://issues.apache.org/jira/browse/MYFACES-1328. It looks

Re: [Solved] ERROR: Value is not a valid option

2007-02-26 Thread Mike Kienenberger
Yes, that's how I would do it. If you specify an itemValue, then that value must be of the correct type. Ie, is not a containerType (Srinivas) and 0 is not a region (Carl). On 2/26/07, Kevin Galligan [EMAIL PROTECTED] wrote: I am using facelets. Where would that function go? Each

Re: [Solved] ERROR: Value is not a valid option

2007-02-26 Thread Kevin Galligan
Thanks for the quick replies. I think that clears it up. On 2/26/07, Mike Kienenberger [EMAIL PROTECTED] wrote: Yes, that's how I would do it. If you specify an itemValue, then that value must be of the correct type. Ie, is not a containerType (Srinivas) and 0 is not a region (Carl). On

Re: [Solved] ERROR: Value is not a valid option

2007-02-26 Thread Mike Kienenberger
On 2/26/07, Mike Kienenberger [EMAIL PROTECTED] wrote: Yes, that's how I would do it. If you specify an itemValue, then that value must be of the correct type. Ie, is not a containerType (Srinivas) and 0 is not a region (Carl). Another way to handle this is to provide your itemValues from

sitemesh and jsf

2007-02-26 Thread Garner Shawn
I'm trying to use sitmesh with JSF and am getting the following exception: This is my template decorator page and has a f:view page. Is there something I have to do with this to initialize the FacesContext for the decorators/templates? javax.faces.FacesException: Faces context not found.

Unable to display Suggested Items using Sandbox component s:inputAjaxSuggest

2007-02-26 Thread bansi
Hi I am using Facelets 1.1.2 and tomahawk-sandbox-1.1.3-SNAPSHOT.jar, tomahawk-1.1.3.jar, MyFaces 1.1.4. The code works perfectly fine but when i enter values into textbox it doesnt show up suggested Items . Then i debugged the application with log4j Here is the jsp page h:outputText

Re: tobago demo 109 : tc tree control: Faces Tree recurring problem

2007-02-26 Thread Udo Schnurpfeil
Hello, you may use the upcoming new tree from the sandbox. I've added a simple editor in the tobago-example-sandbox. It shows how an editor may written (in the moment it is a VERY simple example, it only adds one node to the selected node). Regards, Udo ws_dev2001 schrieb: Hi all, I am

Re: [Solved] Unable to display Suggested Items using Sandbox component s:inputAjaxSuggest

2007-02-26 Thread bansi
Here is some more info on my earlier posting I figured out from debugging that control doesnt go to getSuggestedWords() method as the following line never gets printed in the log console : System.out.println(In getSuggestedWords method ); Wondering what could be the reason Regards Bansi

[Tobago] Problem with PDF download and Ajax

2007-02-26 Thread H. Swaczinna
Hi, I've a page with a link to download a PDF file. The PDF download itself works without a problem. But after a download Ajax requests don't work anymore, for example a popup or a tabGroup with reloadTab. Here's a small testcase for this behavior. The page: %@ taglib

Re: [Tobago] Problem with PDF download and Ajax

2007-02-26 Thread Bernd Bohmann
Hello Helmut, just solved see: http://issues.apache.org/jira/browse/TOBAGO-303 Should be available with the next nightly build Regards Bernd H. Swaczinna wrote: Hi, I've a page with a link to download a PDF file. The PDF download itself works without a problem. But after a download Ajax

jscookMenu

2007-02-26 Thread Shane Petroff
Hello, I'm having two seemingly very strange problems with the jscookMenu component. The first problem relates to navigation. I embedded a jscMenu inside a dataTable to act as something comparable to a right-click menu on a rich application. The menu works sort of the way one might expect,

[ANNOUNCE] Article: InFact Uses JSF to Power Book Search Portal

2007-02-26 Thread Kito D. Mann
Hello, I'm pleased to announce the return of JSF Central's popular In the Trenches series. The latest installment tells the story of two developers who used JSF to develop the public-facing InFact Book Search site. Here's a quote: The first phase of the project was completed in less than three

need help editing a row of data.

2007-02-26 Thread Mick Knutson
I have a dataTable that has a list of users: t:dataTable value=#{userBackingBean.users} var=user preserveDataModel=false styleClass=users headerClass=usersHeader

Re: need help editing a row of data.

2007-02-26 Thread Simon Kitching
Mick Knutson wrote: tmpUserBean prints the row I was expecting, but now I do not know how to get tmpUserBean in the request and sent back to userDetail.xhtml What do you mean by sent back to userDetail.xhtml? Note that the h:commandLink tag can take an actionListener *attribute* as an

Re: need help editing a row of data.

2007-02-26 Thread Mick Knutson
i display a table of users on listUsers.xhtml Then I want to click the username link and open the selected user in that row on editUser.xhtml so I can edit that user. On 2/26/07, Simon Kitching [EMAIL PROTECTED] wrote: Mick Knutson wrote: tmpUserBean prints the row I was expecting,

Re: need help editing a row of data.

2007-02-26 Thread Mick Knutson
I also tried this: http://wiki.apache.org/myfaces/ExecutingMethodsFromLinkButtonParameters then I have this method: public String prepareForEdit(){ log.info (++); log.info

Facelets doesnt render sandbox component s:inputSuggestAjax

2007-02-26 Thread bansi
I am using Facelets 1.1.2 and tomahawk-sandbox 1.1.4 I figured out that Facelets were unable to render inputSuggestAjax component. I further validated it by putting debugging statements in suggestedItemsMethod The control never gets transfered to the method doesnt print the statements

Confused with session issues...

2007-02-26 Thread Jorge Vásquez
Regards to all, I’ve been working on an application with JSF for 6 months and we are reaching the point when we need to do some optimization as there are lots of objects in session scope and this has got us quite concerned. I have been going over the list’s past conversations regarding this

Re: Confused with session issues...

2007-02-26 Thread Mike Kienenberger
You can use t:updateActionListener to push values from one page to another, even if the data is request-scoped. On 2/26/07, Jorge Vásquez [EMAIL PROTECTED] wrote: Regards to all, I've been working on an application with JSF for 6 months and we are reaching the point when we need to do some

Re: t:datatable with commandLink and parameter

2007-02-26 Thread Mike Kienenberger
Mick, I'm taking a look at this. I'll let you know what I figure out. On 2/26/07, Mick Knutson [EMAIL PROTECTED] wrote: I am still having issues it seems. I can display the table just fine and then when I click the link, I get sent to UserBackingBeanImpl.prepareForEdit() then to my edit user

Re: t:datatable with commandLink and parameter

2007-02-26 Thread Mike Kienenberger
Well, one thing I see right off: t:updateActionListener property=#{userBackingBean.user.username} value=#{user.username} This is only going to set a username, not a user. Furthermore, if user is already null, it may not set

Re: t:datatable with commandLink and parameter

2007-02-26 Thread Mike Kienenberger
And private User user = new User(); should just be private User user; On 2/26/07, Mike Kienenberger [EMAIL PROTECTED] wrote: Well, one thing I see right off: t:updateActionListener property=#{userBackingBean.user.username}

Fwd: t:datatable with commandLink and parameter

2007-02-26 Thread Mike Kienenberger
Not sure why this bounced as spam. Maybe it was the zip attachment. Trying the pieces as individuals. -- Forwarded message -- From: Mike Kienenberger [EMAIL PROTECTED] Date: Feb 26, 2007 11:56 PM Subject: Re: t:datatable with commandLink and parameter To: MyFaces Discussion

Re: need help editing a row of data.

2007-02-26 Thread Mike Kienenberger
Solution to this issue (using t:updateActionListener and t:saveState) posted on the previous thread t:datatable with commandLink and parameter On 2/26/07, Mick Knutson [EMAIL PROTECTED] wrote: I also tried this: http://wiki.apache.org/myfaces/ExecutingMethodsFromLinkButtonParameters then I

[ Tobago ] Regarding PopUp's

2007-02-26 Thread madan chowdary
Hi All, I need to display a popup which is shown when a user places mouse over a link. My case is as such... There would be a link, which on clicked will navigate to a page which has the User Details. Now when he places his mouse over the link, i need to show a popup which has the same