Struts-action-mapping-like capability in JSF

2006-11-21 Thread Eric Chentao Hu
I meant url -- beacking bean method mapping. I don't want to go the result page directly. On 11/21/06, Nebinger, David [EMAIL PROTECTED] wrote: What would be the best way of doing this in JSF? Um, have you actually read anything about JSF? I mean anyone who RTFM would know that the

RE: Problem deploying Java Web Server 6.1

2006-11-21 Thread Comerford, Sean
This isn't Glassfish though... it isn't even AppServer 8.1 This Sun Java System Web Server 6.1 - aka SunOne WebServer... separate product pre-dating AppServer and doesn't include JSF at all as far as I know. -Original Message- From: Simon Kitching [mailto:[EMAIL PROTECTED] Sent: Tue

RE: t:datatable alternating row colors?

2006-11-21 Thread Nebinger, David
Um, rowClasses works also with the JSF h:dataTable and does not require the use of t:dataTable... -Original Message- From: Sudhakar Mekathotti [mailto:[EMAIL PROTECTED] Sent: Monday, November 20, 2006 4:27 PM To: MyFaces Discussion Subject: Re: t:datatable alternating row colors? Mick,

RE: Struts-action-mapping-like capability in JSF

2006-11-21 Thread Nebinger, David
Sorry, Eric, but your question is still not completely clear, but I'll take a swag at it... Specific inbound URL mapping is not, I don't believe, supported as the whole JSF lifecycle includes the restoration of the view root; any inbound URL may or may not have the appropriate view

RE: inputText - making blank the default for numbers instead of 0

2006-11-21 Thread Nebinger, David
Have you tried using an Integer object in the backing bean rather than an int? I'd guess that a null Integer would be blank, where an int defaults to 0 upon creation... -Original Message- From: Jon Steelman [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 21, 2006 5:19 PM To:

binding selectBooleanCheckbox to a table row

2006-11-21 Thread [EMAIL PROTECTED]
Hello I have checked the archive but can't find a solution for my problem. I have a t:dataTable which has rows. On the first column of each row I have a checkbox which should be automatically checked dependend of another checkbox. For instance, if I have a checkbox in the tableheader an

Re: h:inputText - making blank the default for numbers instead of 0

2006-11-21 Thread Simon Kitching
Jon Steelman wrote: When an h:inputText field is value associated to an int/long in the backing bean, what is the sensible way to make it default to blank on the initial non-postback value instead of showing 0 by default? I haven't done this myself, but expect you would attach a custom

Re: AW: Re: AW: Re: [Tobago] How to set individual styles for individual components

2006-11-21 Thread Bernd Bohmann
Hello, it is not possible to combine markup until now. Maybe I will change this in few day, but I should ask the other developers what they think about this :-) Regards Bernd H. Swaczinna wrote: Hello Bernd, thank you, it works. But one short followup question: Is it possible to combine

ViewTag does not implement BodyTag err on JWS 6.1

2006-11-21 Thread Sean Comerford
I have a JSF web app (using the myfaces api impl jars) that works fine in Tomcat 5.5 I'm trying to deploy it to Sun Java Web Server v6.1 and seem to be getting some sort of versioning problem. Loading even a simple, hello world type JSF page gives the exception below. I gotta think others have

Re: AW: Re: Re: [Tobago] Dynamic reload of component data

2006-11-21 Thread Bernd Bohmann
Hello Helmut, the ajax stuff is only included if a reload facet is present. Maybe i will change it. You can enforce it with f:facet name=reload tc:reload frequency=5000 update=false / /f:facet Regards Bernd [EMAIL PROTECTED] wrote: Hi Volker, yes, it works with onclick. And

Re: Problem deploying Java Web Server 6.1

2006-11-21 Thread Simon Kitching
Sean Comerford wrote: I have a JSF web app (using the myfaces api impl jars) that works fine in Tomcat 5.5 I'm trying to deploy it to Sun Java Web Server v6.1 and seem to be getting some sort of versioning problem. A common problem when using MyFaces with Sun's stuff is not clearing out

RE: Struts-action-mapping-like capability in JSF

2006-11-21 Thread Eric Chentao Hu
It’s OK and thanks for the responses. I guess I’m looking for another level of abstraction / indirection. In Struts you can specify a so-called action path which is really a URL mapping to forward the request to an action which is really a Java method. In JSF, can something similar to this be

AW: t:datatable alternating row colors?

2006-11-21 Thread Bieringer.Dominik.nf
As far as i know this works on the h:datatable too. _ Von: Sudhakar Mekathotti [mailto:[EMAIL PROTECTED] Gesendet: Montag, 20. November 2006 22:27 An: MyFaces Discussion Betreff: Re: t:datatable alternating row colors? Mick, rowClasses=class1,class2 should do the trick. You need

Re: Struts-action-mapping-like capability in JSF

2006-11-21 Thread William Huang
apache shale remoting is what you are ;ooking for, if you find yourself using this alot, then JSF might be not the right solution for you. Eric Chentao Hu

Re: Struts-action-mapping-like capability in JSF

2006-11-21 Thread Volker Weber
sounds you are looking for a nonFacesRequest to facesResponse solution: http://wiki.apache.org/myfaces/InvokingJsfPagesWithStandardUrls#head-6c1aaf488d48f938896da962aaa4361ec3ffaf70 2006/11/21, Eric Chentao Hu [EMAIL PROTECTED]: It's OK and thanks for the responses. I guess I'm looking for

Re: inputText - making blank the default for numbers instead of 0

2006-11-21 Thread Jon Steelman
That does the trick. The null Long gives me a blank. Thanks, Jon On 11/21/06, Nebinger, David [EMAIL PROTECTED] wrote: Have you tried using an Integer object in the backing bean rather than an int? I'd guess that a null Integer would be blank, where an int defaults to 0 upon creation...

Re: charset problem

2006-11-21 Thread Randahl Fink Isaksen
If you are using facelets this character entity problem will not go away until the next release of facelets. I have written another post earlier about this called "Its a bug: Facelets+MyFaces cannot serve UTF-8 and here is why!" Randahl Paul Pogonyshev wrote: I wrote: Jeff

RE: Struts-action-mapping-like capability in JSF

2006-11-21 Thread Nebinger, David
Well, via the navigation rules you can define a complete rule such as: navigation-rule from-view-id/page1.jsf/from-view-id navigation-case from-outcomesuccess/from-outcome to-view-id/page2.jsp/to-view-id /navigation-case /navigation-rule navigation-rule

tree2 commandLink

2006-11-21 Thread Bharath Belagodu
In using Myfaces 1.1.4, tomahawk 1.1.3, I'm trying to get the tree2 working for navigation. The menu system is created during the startup of the application with the appropriate URLs. Since this menu system has to be a reusable component, I can't use navigation rules to specify actions for the

AW: First action does no call to backing bean

2006-11-21 Thread Strittmatter, Stephan
Has anybody any idea? I have still this problem. Thanks, Stephan -Ursprüngliche Nachricht- Von: Michael Heinen [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 8. November 2006 18:13 An: MyFaces Discussion Betreff: RE: First action does no call to backing bean I have the same problem on

Div component not rendering children

2006-11-21 Thread Aleksandras Skrynikovas
Hi, Here is the thing. When I put a Div component inside a jsp page and add children inside of it, they are rendered nicely like they should, but whenever I have to construct part of the JSF tree programmatically , when I'm adding the Div of some component and several other components as

AW: [announcement] new security extensions

2006-11-21 Thread Strittmatter, Stephan
Great, I will use it in future for our Portlets. As I can see, the context is configurable for this. I will then implement the interface for Liferay... Von: Cagatay Civici [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 14. November 2006 13:20 An: MyFaces

datatable generate error message

2006-11-21 Thread Po Po
Hi, I use tomahawk 1.1.3, when i use a t:datatable below t:dataTable id=data value=#{testBean.companyList} var=company rows=10 t:column t:outputText value=#{company.companyID}/ /t:column t:column t:outputText value=#{company.companyName}/ /t:column /t:dataTable The companyList

Re: First action does no call to backing bean

2006-11-21 Thread Martin Marinschek
Hi Stephan, well, the reason for that is to be found in the JSF-lifecycle. On a post-back, all 6 phases are executed - on the first request, only the first and the last are executed. As when the session is empty, we're talking about a first request, your action won't be executed at all.

Re: t:datatable alternating row colors?

2006-11-21 Thread Sudhakar Mekathotti
On 11/20/06, Nebinger, David [EMAIL PROTECTED] wrote: Um, rowClasses works also with the JSF h:dataTable and does not require the use of t:dataTable... Thought it was 'extended' functionality. Thanks for the info. -Original Message- *From:* Sudhakar Mekathotti [mailto:[EMAIL

Re: [Tobago] How to display master / detail data

2006-11-21 Thread Bernd Bohmann
Hello, you can use tc:link instead of button and get the current row with from the table or from the UIParam. tc:column label=Spaltenname 1 sortable=false align=left tc:link label=#{rowData.value} actionListener=#{testForm.click} f:parameter name=value

Accessing datascroller paginator variables

2006-11-21 Thread Jorge Vásquez
Hi list, I am using dataScroller for paginating a list. I would like to have access to the current page in the bean in order to load it whenever a user returns to a list that was previously loaded. My scenario is the user is loading a set of detail pages and when he/she comes back to the list

Re: passing parameters to window.open

2006-11-21 Thread viorel.chelaru
hi David, i'm very sorry for my delayed response , but i had to do an urgent part of the application i haven't tried your risolving ...because i got a hinchi had to satisfy it ...i did like this : in the page (with MB1) with the link i used t:updateListener and i updated the MB2

Re: datatable generate error message

2006-11-21 Thread Simon Kitching
Hi, Hmm.. I'm not a tomahawk developer (at least not recently), but it sure looks like HtmlTableRendererBase will fail nastily if rows is ever greater than the number of available elements in the data-list. I don't remember it being this way in the past though I haven't checked the old

[Tobago] TabChangeListener not invoked

2006-11-21 Thread H. Swaczinna
Hi, I've set a TabChangeListener for a tabGroup, but it is not invoked, when the tag I'm leaving contains an invalid input field, for example a numerical field with an invalid number entered. When the entered data is valid, the TabChangeListener is invoked. Is this a bug or a feature? I want to

t:datatable alternating row colors?

2006-11-21 Thread Mick Knutson
How can I alternate the row colors in a datatable? -- Thanks DJ MICK http://www.djmick.com http://www.myspace.com/mickknutson

Div component not rendering children

2006-11-21 Thread Aleksandras Skrynikovas
Hi, Here is the thing. When I put a Div component inside a jsp page and add children inside of it, they are rendered nicely like they should, but whenever I have to construct part of the JSF tree programmatically , when I'm adding the Div of some component and several other components as

AW: Re: AW: Re: [Tobago] How to set individual styles for individual components

2006-11-21 Thread H. Swaczinna
Hello Bernd, thank you, it works. But one short followup question: Is it possible to combine the markups in the markup attribute, for example markup=number;strong;mymarkup? Or must I define for every combination of simple markups a new combined markup, for example markupnumber/markup

RE: Struts-action-mapping-like capability in JSF

2006-11-21 Thread Nebinger, David
What would be the best way of doing this in JSF? Um, have you actually read anything about JSF? I mean anyone who RTFM would know that the navigation rules provide the string-result page mapping as struts provides...

Re: charset problem

2006-11-21 Thread Paul Pogonyshev
Daniel Young wrote: You may find you need a CharsetFilter: public void doFilter(final ServletRequest request, final ServletResponse response, final FilterChain chain) throws IOException, ServletException { request.setCharacterEncoding(encoding); chain.doFilter(request, response); }

AW: First action does no call to backing bean

2006-11-21 Thread Strittmatter, Stephan
Hi Martin, I am not shure if I understand it correct. It is not a commandButton shown on the initial page, it is just the first button pressed within the webApp. The user has navigated via navigationMenu first to the page. Or - writing this - could it happen by some immediate=true options?

Problem deploying Java Web Server 6.1

2006-11-21 Thread Sean Comerford
I have a JSF web app (using the myfaces api impl jars) that works fine in Tomcat 5.5 I'm trying to deploy it to Sun Java Web Server v6.1 and seem to be getting some sort of versioning problem. Loading even a simple, hello world type JSF page gives the exception. I gotta think others have hit

Re: JSCookMenu/navigationMenuItem Immediate attribute?

2006-11-21 Thread mrpantsuit
I second that. Seems to me skipping validation for a menu item would be the common case. Should be trivial to implement, too. Thanks. James Reynolds-4 wrote: Is there a way to set up the JSCookMenu so that it will bypass validation, as if it had an immediate attribute set to true?

Integrating t:dataTable with a large database table

2006-11-21 Thread Sriram Saroop
Hi all, Is there a standard way to paginate through a large DB table that integrates with the t:dataTable component without having to cache the entire result set in memory or having to hold a constant connection to the DB? Thanks

Re: Integrating t:dataTable with a large database table

2006-11-21 Thread Gerald Müllan
Hi, this maybe helpful to you: http://wiki.apache.org/myfaces/WorkingWithLargeTables cheers, Gerald On 11/21/06, Sriram Saroop [EMAIL PROTECTED] wrote: Hi all, Is there a standard way to paginate through a large DB table that integrates with the t:dataTable component without having to cache

sum of group by column in datatable

2006-11-21 Thread JS
Hi, How can I find the sum of group by columns in datatable ? For example : header1hearder2 header3 parent 1 child1 child11 child2 child22 Totaltotal1 total2 parent2child1 child11 chlild2 child22

RE: First action does no call to backing bean

2006-11-21 Thread Nebinger, David
Originally it sounded as though the user had been in the app, and after walking away from their browser the session eventually expired. Now the user walks back and clicks the button - that's the part that's throwing them. The submit on the form expects to go back to a live session, but since

inputHtml object tag

2006-11-21 Thread Dave
For inputHtml editor, in text editing mode, I added the following object width=425 height=350param name=movie value= http://www.xxx.com/video/1.swf;/paramparam name=wmode value=transparent/paramembed src= http://www.xxx.com/video/1.swf; type=application/x-shockwave-flash

problem with extended commandLink

2006-11-21 Thread K. Johnson
I have extended the htmlCommandLink component in order to add some parameters to the tag, that will effect the rendered output of the component. This works fine, with one problem I cannot get passed. When i use it inside a dataTable, the string value passed in to the parameter is accessbile

Re: [announcement] new security extensions

2006-11-21 Thread Bernd Bohmann
Hello, I have ask to include this module and an other module for inclusion in the myfaces common or what ever module, last month. http://mail-archives.apache.org/mod_mbox/myfaces-dev/200610.mbox/[EMAIL PROTECTED] I like the idea to share more code with each other project. Regards Bernd

[Tobago] Problem with input validation and tab group

2006-11-21 Thread H. Swaczinna
Hi! Is there a general problem with input validation and tabGroup? When I enter an invalid value in an input field, which resides on a tab of a tabgroup, and click on the submit button, the submit action is not called and the input field gets a red border. So everything is fine. But when I

Re: help : url problem

2006-11-21 Thread Simon Kitching
Mr Arvind Pandey wrote: Hi all, Using tomahawk tiles with JSF application, always shows the previous URL in the browser. As per the requirement of my application, I need to refresh the current page after a time-interval. But the browaser always shows the previous URL, hence once the

[Tobago] How to display master / detail data

2006-11-21 Thread swaczinna
Hi! I want to diplay master/detail data in one single page. I have got an overview list (tc:sheet) and an area (tc:box) to display the detail data for the currently selected row in the list. But I know, there's no selectionChangeListener for tc:sheet (and will not be in the near future?). So it

RE: Accessing datascroller paginator variables

2006-11-21 Thread Jorge Vásquez
In simple terms my current need is to be able to keep the paginator state in order to load the last page that the user was at when the datatable reloads. Regards, JV _ De: Jorge Vásquez [mailto:[EMAIL PROTECTED] Enviado el: lunes, 20 de noviembre de 2006 17:40 Para: 'MyFaces

[A bit Off-Topic]... problems with js and dojo syntax.

2006-11-21 Thread Dudu
I'm sorry. I have posted in many js groups, but no answer... I have a js object, and I need to return de data handled by the ajax request...see on the green comment dojo.declare(util, null, { evalOnBlur: function(id) { eval(dojo.byId(id).attributes['onBlur'].value); },

Re: [announcement] new security extensions

2006-11-21 Thread Bernd Bohmann
Hello Mario, Mario Ivankovits wrote: Hi Matthias! http://svn.apache.org/viewvc/myfaces/tobago/trunk/contrib/security/ This one is really interesting, though, instead of a simple error message I'd prefer something like invoking a navigation, For this I can add a optional ActionListner or

Re: [announcement] new security extensions

2006-11-21 Thread Mario Ivankovits
Hi Bernd! Bohmann schrieb: http://mail-archives.apache.org/mod_mbox/myfaces-dev/200610.mbox/[EMAIL PROTECTED] Sorry, I've read it in the past, but my brain didn't jump up at this time :-( I like the idea to share more code with each other project. Great! The FileUpload stuff is somewhat

AW: AW: PhaseListener behaviour

2006-11-21 Thread Pfau, Oliver
Ok...thanks Scott and SimonI have found another trigger... -Ursprüngliche Nachricht- Von: Scott O'Bryan [mailto:[EMAIL PROTECTED] Gesendet: Montag, 20. November 2006 07:23 An: MyFaces Discussion Betreff: Re: AW: PhaseListener behaviour Simon, Actually, while somewhat true, it

AW: Re: Re: [Tobago] Dynamic reload of component data

2006-11-21 Thread swaczinna
Hi Volker, yes, it works with onclick. And it's fast compared with reloading the whole page :-) Btw: It did not work for panel: Fehler: LOG.debugAjaxComponents is not a function Quelldatei:

RE: response.Header() not working in JSF Portlet

2006-11-21 Thread Nebinger, David
I'd guess that by returning null (assuming this is an action method), faces will redirect back to the form (although you don't indicate what happens when you do submit). Just a guess, but I'd try returning an actual string which, in the nav map will need to be coded with a redirect / in order

acegi, jsf navigation question...

2006-11-21 Thread Mick Knutson
I have a link to my secured area and my admin area, on my home page. When I click on my admin link, I get promoted for a username and password and am authenticated through acegi fine. But after AUTH, I get forwarded to the secured page, not the admin page, or page I originally requested. How can

oamSetHiddenInput is not defined

2006-11-21 Thread Adrian Mitev
Hi all. I've downloaded myfaces impl from the nightly builds 18.11.2006 and i got this as javascript error: oamSetHiddenInput is not defined. What means this and how to fix it?

Re: binding selectBooleanCheckbox to a table row

2006-11-21 Thread [EMAIL PROTECTED]
Hi Gerald So easy :) Thanks Gerald Müllan wrote: Hi, do you have made sure that your manage-bean FailureWrapper has a default no-arg constructor? It seems that the jsf managed-bean facility cannot create a new instance of the bean. cheers, Gerald On 11/21/06, [EMAIL PROTECTED] [EMAIL

Re: Div component not rendering children

2006-11-21 Thread Aleksandras Skrynikovas
Hi, I use tomahawk version 1.1.3. I have no experience of working with nightly builds unfortunately, is it safe? Because we have A LOT of stuff done with MyFaces that I would not want to break:) The biggest puzzle for me is why t:div renders children and org.apache.myfaces.custom.div.Div does

Re: sum of group by column in datatable

2006-11-21 Thread JS
Hi, Any one have an idea ? Please help me Thanks, JS. JS wrote: Hi, How can I find the sum of group by columns in datatable ? For example : header1hearder2 header3 parent 1 child1 child11 child2 child22 Totaltotal1

Redirect with setViewRoot outputLinks

2006-11-21 Thread kiran.gutta
Hi, I have Error page with Back button. On selecting Back I navigate to the page in which this error has occurred by setting that page to View Root using following code snippet. FacesContext context = FacesContext.getCurrentInstance(); UIViewRoot newView =

HtmlDataScroller and pageCountVar

2006-11-21 Thread debnunley
My scenario is very similar to many of the posting with respect to resetting the pageIndex when the # of rows in the result set has changed. In my case the # of rows is always a smaller.I've been successful resetting the pageIndex back to 1 with the setFirst() method on the table.

AW: Re: [Tobago] Dynamic reload of component data

2006-11-21 Thread swaczinna
Hello Volker, I tried this, but I get the error message Attribute script invalid for tag button according to TLD Must I use the onclick attribute instead? But when I use the onclick attribute on buttons, the action and actionListener will not be called. The is a general problem with buttons. I

Re: How to dynamic binding values using accordionPanel

2006-11-21 Thread liulocust
Can anybody know how to bind back-bean using s:accordionPanel? -- View this message in context: http://www.nabble.com/How-to-dynamic-binding-values-using-accordionPanel-tf2663044.html#a7442594 Sent from the MyFaces - Users mailing list archive at Nabble.com.

Check boxes in Tree2

2006-11-21 Thread Sawan Vithlani
Hi, How would you render sub-nodes of a node in a Tree2 control as an HTML checkbox? Are there any samples showing anything other then simple text being used as nodes in a Tree2 control? Thanks Sawan

Re: Check boxes in Tree2

2006-11-21 Thread Matthias Wessendorf
go to http://mail-archives.apache.org/mod_mbox/myfaces-users/200605.mbox/thread?8 and search for Tree2 CheckedNode question -M On 11/22/06, Sawan Vithlani [EMAIL PROTECTED] wrote: Hi, How would you render sub-nodes of a node in a Tree2 control as an HTML checkbox? Are there any samples

RE: response.Header() not working in JSF Portlet

2006-11-21 Thread pallavi.roy
Hi Stephan, My concepts are not very clear regarding the portal server. I am using RAD as my IDE and Wepsphere portal server and application server(WAS). Which Portal server are you using.Are you using the same combination.

Re: AW: Re: Re: [Tobago] Dynamic reload of component data

2006-11-21 Thread Volker Weber
I think in addition to update=false you should set the frequency to a very hight value e.g. 10 minutes (60) or more (depends on your application design). Otherwise the client will request a update every 5 seconds with a response of 'not modified' by the server. 2006/11/22, Bernd Bohmann

Question to JSF experts about value binding

2006-11-21 Thread Pfau, Oliver
Hi, are there situations in the JSF lifecycle where a value binding will not be executed ? Oliver

Re: Question to JSF experts about value binding

2006-11-21 Thread ir. ing. Jan Dockx
I believe so: on a request/response cycle, when the button clicked has immediate=true, and the field with the value binding has immediate=false (the default) On 22 Nov 2006, at 8:37, Pfau, Oliver wrote: Hi, are there situations in the JSF lifecycle where a value binding will not be