Re: is there a way to pull a session scope variable directly into a jsf tag?

2006-07-31 Thread Cosma Colanicchia
I think that the problem is that, if EL is found in the action attribute, JSF tries to use it as an action method (it attemps to call it).. 2006/7/31, Matthias Fischer [EMAIL PROTECTED]: I wanted to create a command button like h: commandButton action= #{session.foo} ... Hi, I have not

Re: is there a way to pull a session scope variable directly into a jsf tag?

2006-07-31 Thread Cosma Colanicchia
It may work... can I ask why you are designing things this way? It seems a bit odd to me to add another level of abstraction on page navigation: an expression that resolve to a string that is matched against navigation rules that finally defines a view (!) Cosma 2006/7/31, Matthias Fischer

Re: JSCookMenu and linkDummyForm?

2006-07-31 Thread Cosma Colanicchia
If you are using Trinidad, you should download the latest sources to use JSCookMenu. Cosma 2006/7/31, [EMAIL PROTECTED] [EMAIL PROTECTED]: Hello All, I have set up a JSCookMenu to display a Navigation menu but when I click on a menu item my navigation is ignored and I am returned to the

Re: JSCookMenu roadmap inquiry - Please respond!!

2006-08-01 Thread Cosma Colanicchia
Simon, the problem with that patch is that most of the changes it takes are already been applied into the source code another commit, so it would likely cause conflicts / compile failures / unexpected behaviours. I have not time to look into this now.. the following patch may fix this problem,

Re: is there a way to pull a session scope variable directly into a jsf tag?

2006-08-01 Thread Cosma Colanicchia
You can always write an action method, and return different outcomes, if you want to reuse the view. Cosma 2006/8/1, Matthias Fischer [EMAIL PROTECTED]: Hm, that's right. what I had in mind when I answered Tom's question was that session.foo contains an action binding string. But then you

Re: is there a way to pull a session scope variable directly into a jsf tag?

2006-08-02 Thread Cosma Colanicchia
a method that returns the session scope variable and are using that with the action button of the shared jsp, and this controls navigation ok. If anyone has resolved this problem in another way, I'd love to read about. Thanks again to everyone. Tom Cosma Colanicchia

Where can I find the convertBoolean?

2006-05-09 Thread Cosma Colanicchia
Hi,I'm searching for the convertBoolean converter, I need it to use a h:selectBooleanCheckbox component with a non-boolean backing bean attribute (I have a 1 / 0 database value). I can't find this component in by tomahawk release.. is it still in the sandbox? Where can I obtain a sandbox jar? (or

Re: Where can I find the convertBoolean?

2006-05-09 Thread Cosma Colanicchia
/myfaces/tomahawk/tomahawk-sandbox/On 5/9/06, Cosma Colanicchia [EMAIL PROTECTED] wrote: Hi, I'm searching for the convertBoolean converter, I need it to use a h:selectBooleanCheckbox component with a non-boolean backing bean attribute (I have a 1 / 0 database value). I can't find this component

selectBooleanCheckBox and non-boolean attributes: is it possible?

2006-05-09 Thread Cosma Colanicchia
Hi,I'm trying to use h:selectBooleanCheckBox with a non-boolean backing-bean attribute like this:h:selectBooleanCheckbox value=#{peopleAction.person.fgObsoleto}s:convertBoolean trueValue=1 falseValue=0/ /h:selectBooleanCheckboxs prefix is mapped to tomahawk-sandbox.. but it fails with the

Re: Deployment warning: /WEB-INF/faces-config.xml has been specified in the javax.faces.CONFIG_FILES context parameter of the deployment descriptor

2006-05-09 Thread Cosma Colanicchia
AFAIK, WEB-INF/faces-config.xml is loaded by default, you have to list only additional faces-config files in your web.xmlCosma2006/5/9, Todd Patrick [EMAIL PROTECTED]: When I deploy a Myfaces based project to Sun Java System Application Server 8.2, I receive the following warning:

t:inputDate off by one day!

2006-05-10 Thread Cosma Colanicchia
Hi,I'm using the t:inputDate component, but it is rendered always a day-after the actual value of bound property. I use the component this way:t:inputDate id=birthDate value=#{peopleAction.person.birthDate } required=true type=date popupCalendar=true/the bound variable is of type java.util.date.

Re: t:inputDate off by one day!

2006-05-10 Thread Cosma Colanicchia
Thank you Volker,I've read the discussion and the JIRA issue, but I'm still not sure about a solution. I'm using a recent snapshot of myfaces-impl-1.1.4 and a snapshot of tomahawk-1.1.2, so it should be already addressed in my lib version ([#MYFACES-506] is marked as fixed in 1.1.1), isn't it?Do

Re: t:inputDate off by one day!

2006-05-11 Thread Cosma Colanicchia
outputText or defining a property on all my beans.Thanks for the precious help VolkerCosma On 5/10/06, Volker Weber [EMAIL PROTECTED] wrote: Hi Cosma,Cosma Colanicchia wrote: Thank you Volker, I've read the discussion and the JIRA issue, but I'm still not sure about a solution. I'm using a recent

Re: t:inputDate off by one day!

2006-05-11 Thread Cosma Colanicchia
-classorg.apache.myfaces.custom.convertDateTime.DateTimeConverter/converter-class/converterCosmaOn 5/11/06, Cosma Colanicchia [EMAIL PROTECTED] wrote: Hey you're right, my outputText is doing wrong, inputDate is displaying the correct date! :)I've also found this FAQ on the same problem http://wiki.apache.org/myfaces/FAQ#Date

Re: when is form tag required?

2006-05-12 Thread Cosma Colanicchia
I'm a near-newbie, but I think that these components must always live inside a h:form. Is there any reason you can't simply put a h:form at the top of all your other jsf components, right under your body element? CosmaOn 5/11/06, Ken [EMAIL PROTECTED] wrote: Hi,Given commandButton, commandLink,

Datalist with server-side paging

2006-05-12 Thread Cosma Colanicchia
Hi, I'm experimenting with t:dataTable + t:dataScroller. It seems that, in order to make the dataScroller work, my managed bean has to return the complete List of elements to the dataTable component. I need to implement list paging server-side, because I fetch from the database only the rowset I

Re: Datalist with server-side paging

2006-05-15 Thread Cosma Colanicchia
Thank you!CosmaOn 5/12/06, Julian Ray [EMAIL PROTECTED] wrote: Hi Cosma,Have you seen this on the WIKI?http://wiki.apache.org/myfaces/WorkingWithLargeTables--View this message in context: http://www.nabble.com/Datalist-with-server-side-paging-t1608235.html#a4362169Sent from the MyFaces - Users

Re: Bookmarking and Crawling of JSF

2006-05-15 Thread Cosma Colanicchia
A sort of allowbookmarks standard meta tag would be great :)Cosma2006/5/15, Chrisi [EMAIL PROTECTED]: On 5/14/06, Andrew Robinson [EMAIL PROTECTED] wrote: Just to add to your list 3) Create a bookmark this page link as part of each page (create a custom control, or just use a facelets template)

Re: Bookmarking and Crawling of JSF

2006-05-15 Thread Cosma Colanicchia
I'm not yet involved in the bookmark and back button issues, but I hope that, for the time I will, you'll have already found a brillant solution :)2006/5/15, Mario Ivankovits [EMAIL PROTECTED]:Hi! A sort of allowbookmarks standard meta tag would be great :) We already started a jsf tag which

Re: Bookmarking and Crawling of JSF

2006-05-15 Thread Cosma Colanicchia
Hi Mario,I agree with your point, a web application can't (and doesn't want to, IMO) provide bookmark facility for each of its states. From the user prospective, it would be much more clear if developers could tell the browser to disable the add bookmark function where it has no meaning. But it's

Re: Calendar bug in 1.1.1?

2006-05-16 Thread Cosma Colanicchia
See this thread:http://thread.gmane.org/gmane.comp.jakarta.myfaces.user/19435/focus=19435Cosma 2006/5/16, Dennis Virtudazo [EMAIL PROTECTED]: Has anyone seen this bug(?) in myfaces 1.1.1. TheInputCalendar control always generates a valueChangeevent and returns a date that is 1 day less than whatis

Wiki entry ExecutingMethodsFromLinkButtonParameters: how can it works?

2006-05-17 Thread Cosma Colanicchia
I am looking with interest at the wiki entry [1]. The third solution explained suggests that, when using a dataList with a DataModel source, you can simply put a commandLink, for example an Edit one, without have to worry about passing in some way the identifier of that row. It is not very clear

Re: Wiki entry ExecutingMethodsFromLinkButtonParameters: how can it works?

2006-05-17 Thread Cosma Colanicchia
) has been called.. I must be missing something, how could this work as explained in the wiki entry? Pls help.Cosma2006/5/17, Cosma Colanicchia [EMAIL PROTECTED] : I am looking with interest at the wiki entry [1]. The third solution explained suggests that, when using a dataList with a DataModel s

Re: Wiki entry ExecutingMethodsFromLinkButtonParameters: how can it works?

2006-05-17 Thread Cosma Colanicchia
Ok, find the solution.You can't set preserveDataModel to true in t:dataList component in order for this method to work.Cosma2006/5/17, Cosma Colanicchia [EMAIL PROTECTED]:I reply to myself. I've tried to implement the suggested solution, but doesn't work.. please help me figure out what's wrong

Remote sorting with t:dataTable

2006-05-17 Thread Cosma Colanicchia
Hello,I use the t:dataTable component with a custom-made DataModel. I need sorting, but I want my list back-end to do the work.. is there a way to use the standard sort attributes of t:dataList and make the component notify my backing bean of the user actions, instead of actually sort the rows?

Re: Remote sorting with t:dataTable

2006-05-17 Thread Cosma Colanicchia
the task you are attempting which you might want to check out -- again I have not tried this as facelets seems pretty invasive. - Original Message From: Cosma Colanicchia [EMAIL PROTECTED]To: MyFaces Discussion users@myfaces.apache.orgSent: Wednesday, May 17, 2006 9:51:53 AM Subject: Remote

Simple queston on EL syntax

2006-05-18 Thread Cosma Colanicchia
Hi,I have a problem with EL syntax and cannot found any good reference or manual on this topic, so I try to ask you :-)A component in my JSP page h:outputText value=#{person.fgDismissed == '1' ? 'Yes' : 'No'}/ that causes the following exception: javax.faces.FacesException: Cannot get value for

Re: Wiki entry ExecutingMethodsFromLinkButtonParameters: how can it works?

2006-05-18 Thread Cosma Colanicchia
that this feature isn't really needed in my case. ByeCosma2006/5/17, Mike Kienenberger [EMAIL PROTECTED]: On 5/17/06, Cosma Colanicchia [EMAIL PROTECTED] wrote: t:dataTable id=peopleList var=person value=#{peopleListBacker.list} rows=8 preserveDataModel=true Having just writed a custom DataModel

Re: Simple queston on EL syntax

2006-05-18 Thread Cosma Colanicchia
/18, Julian Ray [EMAIL PROTECTED]: This ref might provide some help http://www.coreservlets.com/JSF-Tutorial/#Section4 From: Cosma Colanicchia [mailto:[EMAIL PROTECTED] Sent: Thursday, May 18, 2006 4:16 AM To: MyFaces Discussion Subject: Simple queston on EL

Re: Simple queston on EL syntax

2006-05-18 Thread Cosma Colanicchia
Ooschn, it must be a String. Maybe the problem is related to the custom PropertyResolver from struts-shale: my person bean is a DynaBean dynamically generated from a SQL query (and the field is a VARCHAR), so in order to access its values I had to provide this resolver. Anyway, the exception is

Re: Where to download the Sandbox-Components?

2006-05-18 Thread Cosma Colanicchia
Try here http://people.apache.org/maven-snapshot-repository/org/apache/myfaces/tomahawk/tomahawk-sandbox/ Cosma 2006/5/18, Ooschn [EMAIL PROTECTED]: Hello, I'd like to use the FishEyeNavigationMenue in my WebApp since it really looks great ;) But I just don't find a way to download the

Re: Simple queston on EL syntax

2006-05-18 Thread Cosma Colanicchia
Regards struts-shale, I only extracted their custom PropertyResolver, it's not very complicated if you wanna take a look. It simply checks if the object is a DynaBean and call, in this case, the methods get(propertyName) or set(propertyName) otherwise returns the control to the superclass (the

Re: DataTable and Lazy-Loading

2006-05-18 Thread Cosma Colanicchia
See this wiki entry: http://wiki.apache.org/myfaces/WorkingWithLargeTables Cosma 2006/5/18, Hans Sowa [EMAIL PROTECTED]: Hi all First following Scenario: I know that I will have to load 20.000 Records and I want to display it with a scrollable Datatable. Is it possible to load only the

Re: Simple queston on EL syntax

2006-05-18 Thread Cosma Colanicchia
failing: h:outputText value=#{'1' == '1' ? 'Yes' : 'No'}/ h:outputText value=#{person.fgDismissed == '1'}/ On 5/18/06, Cosma Colanicchia [EMAIL PROTECTED] wrote: Hi, I have a problem with EL syntax and cannot found any good reference or manual on this topic, so I try to ask you

Re: Simple queston on EL syntax

2006-05-18 Thread Cosma Colanicchia
Already tried, this doesn't work :) 2006/5/18, Mike Kienenberger [EMAIL PROTECTED]: On 5/18/06, Cosma Colanicchia [EMAIL PROTECTED] wrote: Both works... maybe that syntax do some check on the bean which isn't catched by the converter, for example it could check the type of the property

Re: Sortable DataTable in Tomahawk...

2006-05-18 Thread Cosma Colanicchia
Two little notes: 1) immediate=false should be the default setting for t:commandSortHeader. 2) Is it needed to manually invert sort ordering? Having specified sortAscending=#{...} in your dataTable, it should be done automatically.. (at least it works for me) About the big problem.. you may

Re: DataTable and Lazy-Loading

2006-05-19 Thread Cosma Colanicchia
are currently shown how can I do this? I don't have an idea so far! Thanks a lot. Hans On 5/18/06, Cosma Colanicchia [EMAIL PROTECTED] wrote: See this wiki entry: http://wiki.apache.org/myfaces/WorkingWithLargeTables Cosma 2006/5/18, Hans Sowa [EMAIL PROTECTED]: Hi all First

Re: Sortable DataTable in Tomahawk...

2006-05-19 Thread Cosma Colanicchia
1) You're right, I remembered that its default value for this component is different from the other ones, and I thought you was just forcing it again.. BTW, my I ask you why do you need this to be true? 2) I use a snapshot of tomahawk 1.1.3 and it is done automatically (maybe the example was

Re: DataTable and Lazy-Loading

2006-05-19 Thread Cosma Colanicchia
If you are using a dataScroller, you can try to take a look at its firstRowIndexVar and lastRowIndexVar. 2006/5/19, Hans Sowa [EMAIL PROTECTED]: Hi Cosma I need to know that in my backing bean. On 5/19/06, Cosma Colanicchia [EMAIL PROTECTED] wrote: Hi Hans, where you need to know

Popup windows without breaking JSF

2006-05-19 Thread Cosma Colanicchia
I was thinking about a solution for the popup window problem in JSF.. someone has suggested to use a simple javascript, but any user action on the caller page that hasn't be submitted isn't notified to the backing beans, and validations are not executed.. in my case, the current row of a

Re: Popup windows without breaking JSF

2006-05-19 Thread Cosma Colanicchia
Is there any documentation available? I can't find any reference of it in the myfaces web site... Tnx Cosma 2006/5/19, Werner Punz [EMAIL PROTECTED]: Cosma Colanicchia schrieb: I was thinking about a solution for the popup window problem in JSF.. someone has suggested to use a simple

Re: commandLinks - javascript errors

2006-05-19 Thread Cosma Colanicchia
It can be the auto-scrolling, that causes errors if the myfaces filter isn't properly setup. Try to set, in web.xml, the parameter org.apache.myfaces.AUTO_SCROLL to false and see if this fix the problem. Cosma 2006/5/18, Nicolas GENSOLLEN [EMAIL PROTECTED]: Hi, Even if I'm not using SUN RI

Re: Popup windows without breaking JSF

2006-05-19 Thread Cosma Colanicchia
Maybe I just didn't understand it very well, but I need to open a new *browser* window, while this component seems to open an in-page popup, like the t:popUp one.. 2006/5/19, Werner Punz [EMAIL PROTECTED]: Cosma Colanicchia schrieb: Is there any documentation available? I can't find any

Re: commandLinks - javascript errors

2006-05-19 Thread Cosma Colanicchia
properly setup, what is a properly setup ? Nicolas - Original Message - From: Cosma Colanicchia [EMAIL PROTECTED] To: MyFaces Discussion users@myfaces.apache.org Sent: Friday, May 19, 2006 11:31 AM Subject: Re: commandLinks - javascript errors It can be the auto-scrolling, that causes

Re: Magic rendering of h:outputText

2006-05-19 Thread Cosma Colanicchia
At first, try to close all of your browser window and restart the server.. it seems that you changed your jsp content but the server-side component tree is not in sync... Cosma 2006/5/19, Chrisi [EMAIL PROTECTED]: Hello, the following seems very magic and doesn't make any little sense for

Re: Popup windows without breaking JSF

2006-05-19 Thread Cosma Colanicchia
I know, and alredy considered jenia4faces, but my requirement is to open a new browser window.. so I was trying a way to minimize problems in JSF. Thanks anyway for your interest Cosma 2006/5/19, Werner Punz [EMAIL PROTECTED]: Cosma Colanicchia schrieb: Maybe I just didn't understand it very

Re: Absolute Path

2006-05-19 Thread Cosma Colanicchia
You should do this in your backing bean, see FacesContext on how obtain a reference to the HttpServletRequest object. Then you should be able to get the information you want from it.. getRequestURL is the method, if I remember well. Maybe you can access it from your page using EL, but I'm not

Re: Beginner: html-attributes and bean-values

2006-05-19 Thread Cosma Colanicchia
Beware that this syntax should work inside a simple HTML attribute (such as DIV) only with JSP 2.0 onwards, with previous JSP standards only JSF tags allows for #{...} binding on their attributes. Have you tried to set a breakpoint in the getter method of your value? Is it invoked the first time

Re: Sortable DataTable in Tomahawk...

2006-05-19 Thread Cosma Colanicchia
It is also strange that other form fields are cleared.. it again makes me think that something is going wrong between the first and the second call. You may try to backup your current jsp page, rip out all that isn't strictly related to your dataTable and try to track the problem. Check also

Re: Popup windows without breaking JSF

2006-05-19 Thread Cosma Colanicchia
don't think MyFaces yet supports server side state with multiple client windows for one Servlet session. -Andrew On 5/19/06, Cosma Colanicchia [EMAIL PROTECTED] wrote: I know, and alredy considered jenia4faces, but my requirement is to open a new browser window.. so I was trying a way to minimize

Re: Popup windows without breaking JSF

2006-05-22 Thread Cosma Colanicchia
at Apache. -Matthias On 5/19/06, Werner Punz [EMAIL PROTECTED] wrote: Cosma Colanicchia schrieb: I was thinking about a solution for the popup window problem in JSF.. someone has suggested to use a simple javascript, but any user action on the caller page that hasn't be submitted isn't notified

Configuring web.xml for MyFaces and ADF Faces

2006-05-22 Thread Cosma Colanicchia
Hi, I'm trying to configure the web.xml with both MyFaces and ADF Faces. I can't get a working configuration, can anyone help me to figure out the problem? !-- ADF Faces Extensions Filter -- filter filter-nameadfFacesFilter/filter-name

Re: Configuring web.xml for MyFaces and ADF Faces

2006-05-22 Thread Cosma Colanicchia
I asked there, but got no response. The -user list, in fact, doesn't seem very active.. I had a look to the archive too, right now I'm trying to search better :-) 2006/5/22, Matthias Wessendorf [EMAIL PROTECTED]: Hi Cosma- in the archives there were lot's of mails regarding this issue.

Re: Configuring web.xml for MyFaces and ADF Faces

2006-05-22 Thread Cosma Colanicchia
Yes, in fact I subscribed only this afternoon, but I have recevied no messages at all ;) I started again from a working MyFaces configuration and simply added the ADF Faces elements in web.xml, at least new the application starts up and my page is displayed. But it isn't working correctly: - my

Re: [CLOSED] Re: Configuring web.xml for MyFaces and ADF Faces

2006-05-22 Thread Cosma Colanicchia
See you there ;-) Cosma 2006/5/22, Matthias Wessendorf [EMAIL PROTECTED]: This is a very young list. The community around is just growing. BTW. I mailed you there for continue the discussion at ADF list ;-) -Matthias On 5/22/06, Cosma Colanicchia [EMAIL PROTECTED] wrote: Yes, in fact I

Re: datatable and selecting a row event

2006-05-23 Thread Cosma Colanicchia
A quick solution is to nest an t:updateActionListener inside your commandLink to update a property of your backing bean.There is another approach that I use with a dataTable, maybe it works also for a dataGrid: if your list is loaded using a DataModel, you can simply ask that object the current

Re: components that can use f:param

2006-05-26 Thread Cosma Colanicchia
AFAIK, it's up to the parent element to support f:param.. for example if you nest a param inside an outputText, it is used to replace part of the text marked as {1}, {2} etc. What are you expecting f:param to do inside an inputText? 2006/5/26, Andrew Robinson [EMAIL PROTECTED]: Technically

Re: turning off timezone awarenes (or at least taming it!)

2006-05-30 Thread Cosma Colanicchia
Perhaps this could help you http://thread.gmane.org/gmane.comp.jakarta.myfaces.user/19435/focus=19485 2006/5/30, ::SammyRulez:: [EMAIL PROTECTED]: yes.. (it in my case) but nothing happened 2006/5/30, Ondrej Svetlik [EMAIL PROTECTED]: ::SammyRulez:: wrote: Hi all I'm developing a

f:param, updateActionListener, pageFlowScope, getCurrentRowData.. which design for CRUD with JSF?

2006-05-30 Thread Cosma Colanicchia
Hi, I've been experimenting JSF for my company for some weeks by now. I'd like to discuss with you about the different ways the framework allows for passing parameters between views, which is a primary requirements for CRUD operations. I've tried many, each one with advantages and drawbacks: 1)

Re: param, updateActionListener, pageFlowScope, getCurrentRowData.. which design for CRUD with JSF?

2006-05-30 Thread Cosma Colanicchia
action=my:invoke('page', item)/ where my:invoke stores the parameter in some kind of hash map for later retrieval. Or the backing bean base class has an overridable invoke(Object obj) method, or similar. Regards Frank Felix -Original Message- From: Cosma Colanicchia [mailto:[EMAIL

Re: param, updateActionListener, pageFlowScope, getCurrentRowData.. which design for CRUD with JSF?

2006-05-30 Thread Cosma Colanicchia
Ok, I didn't know you was using hibernate :-) 2006/5/30, Frank Felix Debatin [EMAIL PROTECTED]: I see that use setActionListener to refresh an entire bean from your list one. Actually, the item that is passed is a proxy that carries an id and entity name that resolves to a hibernate

Re: f:param, updateActionListener, pageFlowScope, getCurrentRowData.. which design for CRUD with JSF?

2006-05-30 Thread Cosma Colanicchia
for passing values between views. I'm sure there are many other ways that other people have done it. -Andrew On 5/30/06, Cosma Colanicchia [EMAIL PROTECTED] wrote: Hi, I've been experimenting JSF for my company for some weeks by now. I'd like to discuss with you about the different ways

Re: if test

2006-06-01 Thread Cosma Colanicchia
Have you added a public String getUsername() method in your LoginBean class? Seems that is missing. I don't think this error is related to your managed property. 2006/6/1, [EMAIL PROTECTED] [EMAIL PROTECTED]: Thanks It seems I am a bit confused. I have added managed-property

Re: if test

2006-06-01 Thread Cosma Colanicchia
@myfaces.apache.org Date: Thu, 1 Jun 2006 17:07:48 +0200 From: Cosma Colanicchia [EMAIL PROTECTED] To: MyFaces Discussion users@myfaces.apache.org Subject: Re: if test Have you added a public String getUsername() method in your LoginBean class? Seems that is missing. I don't think this error is related

Re: Problems with table sorting.

2006-06-06 Thread Cosma Colanicchia
To get sortable columns, you have to use a t:sortCommandHeader around your columns header text. This way your setColumnName will be called when the user click on the column header. Then, your getNames() should check the current sort column and apply it to the data it returns. 2006/6/6, Dewhare,

Re: Is there an example of using tree2 with data from a database?

2006-06-06 Thread Cosma Colanicchia
See this wiki entry http://wiki.apache.org/myfaces/Tree2 You'll find two different methods to load tree content while opening its nodes, with examples. I personally suggest you the second one (Alternative Tree2 Lazy Loading Method...by jtmille3). Cosma 2006/6/5, Todd Patrick [EMAIL

Re: Help with Navigation rule with parameters

2006-06-06 Thread Cosma Colanicchia
Reading that wiki post: For these reasons [...] one should consider using a custom Navigation Handler adding the following capabilities: I've understood that you have to code and plug your custom navigation handler to inplement this sort of navigation logic. I've never seen using EL

Re: Passing Object to Page

2006-06-07 Thread Cosma Colanicchia
Can't you simply put it into requestScope instead of sessionScope? (You should then avoid redirect/s) Cosma 2006/6/6, Gregg Bolinger [EMAIL PROTECTED]: Currently, I know how to pass an object by value binding it to the session. FacesContext context = FacesContext.getCurrentInstance();

Re: Help with Navigation rule with parameters

2006-06-07 Thread Cosma Colanicchia
Henderson [EMAIL PROTECTED]: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jonathan Harley wrote: Cosma Colanicchia wrote: Reading that wiki post: For these reasons [...] one should consider using a custom Navigation Handler adding the following capabilities: I've understood that you have

Re: navigation rule

2006-06-07 Thread Cosma Colanicchia
The default suffix is appended in the myfaces ViewHandler implementation. Omitting the DEFAULT_SUFFIX init parameter causes a default default suffix to be used, that is .jsp :-) It seems that the default suffix is applied only if using extension mapping for your jsf pages.. you could try to use

Re: Jean-Claude Pace is out of the office.

2006-06-07 Thread Cosma Colanicchia
lol :-) 2006/6/7, Murray Brandon [EMAIL PROTECTED]: Oh no, a whole week of these ;-) [EMAIL PROTECTED] wrote: I will be out of the office starting 07/06/2006 and will not return until 12/06/2006. I will respond to your message when I return. For urgent issues please contact Reuben Muscat

Re: tomahawk t:dataTable question, please help

2006-06-07 Thread Cosma Colanicchia
With t:dataTable, you should use forceIdIndexFormula=#{yourBeanVar.primaryKeyColumn} to tell which column use as the row index (tableId:rowIndex:controlId).Normally, if you don't specify one, sequential indexes are generated. This can lead to out-of-sync problem if someone else deletes of insert

A solution for passing parameters between pages

2006-06-07 Thread Cosma Colanicchia
I try to explain the solution I was thinking of.. a bit complicated to setup because it is required to extend NavigationHandler and ViewHandler, but once configured it is very simple to use. Suppose you have a source-view.jsp that need to call a target view. 1) The source-view can use normal

Re: Help with Navigation rule with parameters

2006-06-07 Thread Cosma Colanicchia
/06, Cosma Colanicchia [EMAIL PROTECTED] wrote: The to-view-id element is part of the navigation-case. But finding the proper navigation-case is exactly the task that handleNavigation method should perform.. once found one, you can call navigationCase.getToViewId() to get

Multiple frames apps with JSF?

2006-06-08 Thread Cosma Colanicchia
Hi, I'm trying to build an application that uses frames with JSF. Is this possible? Suppose a page with two frames, an upper one for menu and a bottom one that is again composed by a left frame for filter settings and a right one for a list. How can these frames talk each other? 1) The menu

Re: Multiple frames apps with JSF?

2006-06-08 Thread Cosma Colanicchia
/Tiles_and_JSF -Original Message- From: Cosma Colanicchia [mailto:[EMAIL PROTECTED] Sent: 08 June 2006 09:48 To: MyFaces Discussion Subject: Multiple frames apps with JSF? Hi, I'm trying to build an application that uses frames with JSF. Is this possible? Suppose a page with two frames, an upper

Re: Multiple frames apps with JSF?

2006-06-08 Thread Cosma Colanicchia
and validations.. 2006/6/8, Werner Punz [EMAIL PROTECTED]: Cosma Colanicchia schrieb: I don't know Tiles very well (I'm using ADF Faces+Facelets). Anyway, it sounds like you aren't talking about real frames using tiles (the whole page is always refreshed). I'm looking for a way to use HTML framesets

Re: Multiple frames apps with JSF?

2006-06-08 Thread Cosma Colanicchia
problems with a drop down menu on the top frame. It doesn't overlap to the bottom frame. You can overcome such a problem with an applet menu. Regards, Mert On 6/8/06, Cosma Colanicchia [EMAIL PROTECTED] wrote: I know, but we have some session-related problems that we solved in past using

Re: What is the purpose of the HtmlTree method addToModelListeners?

2006-06-08 Thread Cosma Colanicchia
I found that ADF Faces is very stable. It comes from a well tested code base.. Cosma 2006/6/8, Matthias Wessendorf [EMAIL PROTECTED]: but you can start to provide that option to tree2. this is open source :-) @ADF: well it is not in incubator because it is buggy and not stable or things

PhaseListener and navigation problem...

2006-06-09 Thread Cosma Colanicchia
I'm using a PhaseListener to check if the user is logged on. If it isn't, I save the view id that was being requested and forward the user on the login page. After the login, user has to be returned to his original page. This is to handle session timeout without returning the user to home page

Re: Can I pass a param to the backing bean method?

2006-06-13 Thread Cosma Colanicchia
You cannot pass directly a parameter to your backing bean method using EL. The wiki entry shows some alternative way to pass one parameter putting it somewhere (managed-bean property, request parameter, ...) and having your backing bean method retrieve its value. I can't see why this approach

Re: Problems With saveState

2006-06-14 Thread Cosma Colanicchia
Maybe it could help having also an h:messages globalOnly=true, to be sure to catch the global errors too. Cosma 2006/6/14, octoberdan [EMAIL PROTECTED]: There's a message for each of the components of the form. I even tried just having a submit button and an empty form... same problem..

Re: Problems With saveState

2006-06-15 Thread Cosma Colanicchia
I think so, the messages are retrieved from the FacesContext so it shouldn't be a problem, give it a try. Note: if you want h:messages to catch also the field-related messages, don't use the globalOnly attribute. Cosma 2006/6/14, octoberdan [EMAIL PROTECTED]: Each tab pane is a different

Re: can't parse argument number o

2006-06-15 Thread Cosma Colanicchia
Is there a field with a length validator on your page? It seems that the related error messag has some problems. Try to post your jsp page source. Cosma 2006/6/15, Bjørn T Johansen [EMAIL PROTECTED]: Does anyone know what this really mean? 15.06.2006 13:45:33,024 - can't parse argument

Re: can't parse argument number o

2006-06-15 Thread Cosma Colanicchia
... It gives a validation error, but no more exception... But shouldn't the validateLength code work? BTJ On Thu, 15 Jun 2006 13:57:30 +0200 Cosma Colanicchia [EMAIL PROTECTED] wrote: Is there a field with a length validator on your page? It seems that the related error messag has some problems

Re: can't parse argument number o

2006-06-15 Thread Cosma Colanicchia
Nevermind :-) 2006/6/15, Cosma Colanicchia [EMAIL PROTECTED]: Are you using the Sun RI or MyFaces? And which version? Cosma 2006/6/15, Bjørn T Johansen [EMAIL PROTECTED]: Yes, there is... Here is the relevant part of my jsp file...: h:dataTable value

Re: f:converterDateTime doesn't convert properly

2006-06-20 Thread Cosma Colanicchia
If you agree I can put some more detail into the wiki FAQ entry.. Cosma 2006/6/20, Volker Weber [EMAIL PROTECTED]: Hi, see this thread for more info: http://www.mail-archive.com/users%40myfaces.apache.org/msg21412.html regards, Volker 2006/6/20, Susumu Majima [EMAIL PROTECTED]: I use

Re: f:converterDateTime doesn't convert properly

2006-06-20 Thread Cosma Colanicchia
TimeZone by default. I mean, to avoid everyone complaining about date conversion issues. Does anybody know why its default is GMT instead of system default? I mean, Oracle, java, etc adopt the same default TimeZone as the OS. -Mensaje original- De: Cosma Colanicchia [mailto:[EMAIL PROTECTED

Re: f:converterDateTime doesn't convert properly

2006-06-20 Thread Cosma Colanicchia
as UTC). But these will most probably change the default JDK TimeZone at system startup. The affected users would be a minority. -Mensaje original- De: Cosma Colanicchia [mailto:[EMAIL PROTECTED] Enviado el: martes, 20 de junio de 2006 11:58 Para: MyFaces Discussion Asunto: Re

Re: f:converterDateTime doesn't convert properly

2006-06-20 Thread Cosma Colanicchia
7.0 and 8.1 of Weblogic precisely to avoid losing the J2EE cert. I agree you are right. Such behaviour should be optional. -Mensaje original- De: Cosma Colanicchia [mailto:[EMAIL PROTECTED] Enviado el: martes, 20 de junio de 2006 12:23 Para: MyFaces Discussion Asunto: Re

Shale and Trinidad

2006-06-21 Thread Cosma Colanicchia
Hi, do you know if Shale can be easily plugged in a MyFaces/Trinidad project? I'm interested in the ViewController pattern, but I can't make it work. I setup the project as described in the Shale website, and also tried to manually set ViewViewHandler as the viewhandler in faces-config.xml.

Re: selected value and immediate submits

2006-06-21 Thread Cosma Colanicchia
I would go with a binding, don't know if there are other ways to do what you need. Cosma 2006/6/21, Michael Heinen [EMAIL PROTECTED]: Hi, I asked this question a few months ago but I didn't get an answer. So I try it again because I have to solve this now. I have a selectOneMenu

Re: Get All Values of SelectOneListBox

2006-06-21 Thread Cosma Colanicchia
Well, HTML never submit the whole content of a list AFAIK, only the selected one. So you have a few choices: 1) Select using javascript ALL the items as Ian suggested, so they are all submitted (but this need a select many) 2) Populate the list in the server side, so you don't need to submit

Re: Shale and Trinidad

2006-06-22 Thread Cosma Colanicchia
conclusion: the problem isn't related to view hander delegation stack. I'll try something else, stay tuned ;-) Cosma 2006/6/21, Craig McClanahan [EMAIL PROTECTED]: On 6/21/06, Cosma Colanicchia [EMAIL PROTECTED] wrote: Hi, do you know if Shale can be easily plugged in a MyFaces/Trinidad

Re: Login + Filter + Redirect (Redirect vs Forward?)

2006-06-23 Thread Cosma Colanicchia
Look at your servlet filters mapping in web.xml. By default, they don't trigger on page forwarding. For example, if you have a filter defined on *.jsf: 1) request /page.jsf - [FILTERS] - [servlets, etc.] - page.jsp 2) request /index.jsp - % response.sendRedirect(/page.jsf); % another

Re: Keeping inputFileUpload's file even if other validation errors?

2006-06-23 Thread Cosma Colanicchia
I don't know if (and when) ValueChangeListener is triggered with immediate UIInput components, but you can try this: set a binding on your upload component and set a valuechangelistener for it. If this fires before other validations, you should have a chance to retrieve the uploaded data from the

Re: t:saveState and browser Refresh problem

2006-06-23 Thread Cosma Colanicchia
1) Why do you use t:saveState on the whole bean? 2) When you want you data to be fetched? If you need to refresh on any request, why don't you put the JDBC call directly in the getter method? Cosma 2006/6/22, Surapuraju, Vamsi [EMAIL PROTECTED]: Hi, I am initializing the page data using

Re: _link_hidden_

2006-06-27 Thread Cosma Colanicchia
Hi, the _link_hidden AFAIK isn't intended for client-state saving, that kind of stuff get renderered in another hidden field in a serialized form, if enabled, and without any js code. The hidden field you're talking about should tell JSF, on the server-side, which component has triggered the

Re: Design Type Question

2006-06-28 Thread Cosma Colanicchia
Your backing-bean method is request or session scoped? 1) With request-scoped bean, I would set the value binding of your filter components to a different bean property than the one that is used by your getArticles method, and create a method applyFilters that simply copies the temporary filter

Problem building myfaces

2006-06-29 Thread Cosma Colanicchia
Hi, sorry with this sort of cross-post.. I've tried the devs list but got no response. I have done a fresh checkout of latest myfaces, and just installed maven 2.0.4. I cant build myfaces, mvn install gives me this error: D:\Sviluppo\myfacesmvn install [INFO] Scanning for projects... [INFO]

  1   2   >