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

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-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: Instead of %=getValue%

2006-07-27 Thread Cosma Colanicchia
I suggest you to take a look at facelets, it allows using EL expression anywhere in the page.. then you could just do: var campaignArray = #{campaignForm.campaignArray}; Cosma 2006/7/26, Andrew Robinson [EMAIL PROTECTED]: var campaignArray = #{campaignForm.campaignArray}; is valid in JSP 2.1

Re: source code incomplete

2006-07-27 Thread Cosma Colanicchia
Iordanov, there are some sources in myfaces that are said to be shared.. in the source repository they are under the shared\core\src\main\java\org\apache\myfaces\shared folder and appears to be in the org.apache.myfaces.shared package. At build-time, they are automatically refactorized to be

Re: source code incomplete

2006-07-27 Thread Cosma Colanicchia
. -Original Message- From: Cosma Colanicchia [mailto:[EMAIL PROTECTED] Sent: Thursday, July 27, 2006 11:47 AM To: MyFaces Discussion Subject: Re: source code incomplete Iordanov, there are some sources in myfaces that are said to be shared.. in the source repository they are under the shared\core

Re: expression language and access of collection properties, howto

2006-07-25 Thread Cosma Colanicchia
, but this is in JSP 2.1 specifications and is used for j2EE 5. I think i'll better redesign my bean :) Thanks for your time, David Delbecq Cosma Colanicchia wrote: I don't have any link at hands, but if you search on google you will easily found some tutorial about implementing a custom property

Re: how do you folks handle a Cancel button?

2006-07-25 Thread Cosma Colanicchia
What page should not get refreshed? Can you try to explain exactly in what context that cancel button is to be places, and what you want to happen when the user press it? Cosma 2006/7/25, Chandra Sekhar [EMAIL PROTECTED]: Hi , Thanks for your good reasoning.But, when I click the Cancel the

Re: how do you folks handle a Cancel button?

2006-07-25 Thread Cosma Colanicchia
to concatenate the form id to the field id to have a valid javascript id (example formId:fieldId). Hope this helps Cosma Colanicchia 2006/7/25, Chandra Sekhar [EMAIL PROTECTED]: Hi, When the User presses the Cancel Button the Page should not refresh, for that I used type = button

Re: newbie question : grabbing another page bean from the session

2006-07-24 Thread Cosma Colanicchia
Exact element names for both methods here: http://wiki.apache.org/myfaces/AccessingOneManagedBeanFromAnother Cosma 2006/7/23, Dennis Byrne [EMAIL PROTECTED]: -Original Message- From: Dennis Byrne [mailto:[EMAIL PROTECTED] Sent: Sunday, July 23, 2006 04:42 AM To: [EMAIL PROTECTED]

Re: expression language and access of collection properties, howto

2006-07-24 Thread Cosma Colanicchia
In JSF it's up to the property resolver to choose a strategy. The default one, AFAIK, first check if it is a List or a Map.. only if this condition isn't satisfied it tries to get the bean property. You could write a PropertyResolver decorator to handle things as you need, for example checking

Re: expression language and access of collection properties, howto

2006-07-24 Thread Cosma Colanicchia
in specification where it is stated this strategy is optional. Also, could you give me some reference on how to change the PropertyResolver used? Cosma Colanicchia wrote: In JSF it's up to the property resolver to choose a strategy. The default one, AFAIK, first check if it is a List or a Map.. only

Re: validation method problem

2006-07-21 Thread Cosma Colanicchia
Usually the type of thing you're trying to do is done this way: 1) Assign an id attribute to each of your input field 2) Place an h:messages forId=yourComponentId instead of your DIV Now, any conversion/validation error will be rendered near the correct field. Remember also to use an h:messages

Re: JSF-RI, ADF, MyFaces, Facelets. I'm lost.

2006-07-20 Thread Cosma Colanicchia
Even if you will not use it, I suggest you to spend some minutes in the Shale site looking at the patterns they're implementing. It helped me to better understand some design issues in JSF web application and their possible solution. Regards Cosma 2006/7/20, Cyrille37 [EMAIL PROTECTED]:

Re: Displaying data from a map

2006-07-19 Thread Cosma Colanicchia
Maybe you could do like this: c:forEach items=#{sessionScope.request.details.entrySet} var=entry tr td#{entry.key}/td td#{entry.value}/ td /tr /c:forEach Cosma 2006/7/19, Shibi Thomas [EMAIL PROTECTED]: Hi I have a map called details with key as and values. i would like to retrieve the

Re: JSF-RI, ADF, MyFaces, Facelets. I'm lost.

2006-07-19 Thread Cosma Colanicchia
They are not concurrents. MyFaces provides a JSF implementation (as the Sun RI does), while ADF Faces/Trinidad is a library of components with some added services. If you are talking about MyFaces Tomahawk , then yes, there is some overlap with Trinidad, but they are probably going to be merged

Re: JSF-RI, ADF, MyFaces, Facelets. I'm lost.

2006-07-19 Thread Cosma Colanicchia
indipendently on both projects, so they will likely diverge in the future. Cosma 2006/7/19, Cyrille37 [EMAIL PROTECTED]: Cosma Colanicchia a écrit : They are not concurrents. MyFaces provides a JSF implementation (as the Sun RI does), while ADF Faces/Trinidad is a library of components

Re: [OT] Mailing list Support in other languages, was Re: question

2006-07-19 Thread Cosma Colanicchia
2006/7/19, Jesse Alexander (KSFD 121) [EMAIL PROTECTED]: And there are often people around speaking exotic languages like German, Spanish, Italian and others. Are they exotic languages?? ;-) Cosma

Re: Displaying data from a map

2006-07-19 Thread Cosma Colanicchia
I haven't tried it myself so I can't help.. try to understand where is it failing. Cosma 2006/7/19, Shibi Thomas [EMAIL PROTECTED]: hi Cosma I have tried what u suggested but without any fruit. I do no get anything displayed. Do u have any other suggestion ? On 7/19/06, Cosma Colanicchia

Re: validation method problem

2006-07-19 Thread Cosma Colanicchia
I think this is the normal behaviour. Required validation is handled in a special way in JSF.. if the field has to be required, you should use the required attribute, and AFAIK there's now way to plug-in a custom required logic. Cosma 2006/7/19, array [EMAIL PROTECTED]: I have an input field

Re: validation method problem

2006-07-19 Thread Cosma Colanicchia
2006/7/19, array [EMAIL PROTECTED]: thanks for quick answer! I would like to perform some operations during the validation. Furthermore I would like to render an internalized error message. However the built-in ?required? validator uses the field id in his error message. How can I achieve

Re: JSF-RI, ADF, MyFaces, Facelets. I'm lost.

2006-07-19 Thread Cosma Colanicchia
2006/7/19, Matthias Wessendorf [EMAIL PROTECTED]: But to comeback to your problem, what to use My suggestion is: MyFaces 1.1.4 (will be out soon ;)) as Runtime Trinidad for the component set Facelets as View instead of JSP. This is exactly what we will be using for next projects, with a

Re: JSCookMenu with Frames

2006-07-18 Thread Cosma Colanicchia
I'm using JSCookMenu and frames, but it is possible thanks to the Trinidad af:form. The Trinidad form has a targetFrame attribute that allows actions results to be loaded in a window/frame different from itself, so it will be only required to put the JSCookMenu in such a form. Note that I have

Re: dataTable with dropdowns

2006-07-17 Thread Cosma Colanicchia
Looks good :) Cosma 2006/7/17, Mert Çalışkan [EMAIL PROTECTED]: EasySI component can be used to populate SelectItem objects from types like Collection, Map and etc. http://www.jroller.com/page/mert?entry=easysi_to_ease_the_pain Regards, Mert On 7/14/06, Cosma Colanicchia [EMAIL

Re: Process scope

2006-07-17 Thread Cosma Colanicchia
Trinidad has a pageFlowScope. There is also a conversation component, you may want to take a look at it. Cosma 2006/7/17, Aleksei Valikov [EMAIL PROTECTED]: Hi. In web applications, it is often desirable to have a process scope of beans. Process-scoped beans are retained between sessions, but

Re: dataTable with dropdowns

2006-07-14 Thread Cosma Colanicchia
I think that the row object has to return a List or an array of javax.faces.model.SelectItem objects, then your view can point it using a selectItems component nested inside the selectOneMenu. Anyway, me neither like it.. the list usually comes from the model layer, thus it cannot depends on

Re: does adf:table load all items ?

2006-07-10 Thread Cosma Colanicchia
It depends on how you use it.. you can implement a custom CollectionModel to load rows as requested. As a guideline, you can read the wiki entry [1], altought it is referred to the standard table component. [1] http://wiki.apache.org/myfaces/WorkingWithLargeTables Bye Cosma 2006/7/10,

Re: tree 2 is not a dynamic tree

2006-07-07 Thread Cosma Colanicchia
As Andrew said, you can always use a single node type (only one facet), and inside of it apply your presentation logic looking at the node properties. Cosma 2006/7/7, sarma [EMAIL PROTECTED]: Hi, the facet are for node types, not for nodes . but i am getting date from databases and as

Re: tree 2 is not a dynamic tree

2006-07-06 Thread Cosma Colanicchia
Hi Sarma, the facet are for node types, not for nodes. This way, you define in your view how a node type has to be displayed (which is the right place to do that IMO). For example, you can have two node type, person and department, and use a different icon for the two. The correct facet will be

Re: Shale / MyFaces / Facelets is possible?

2006-07-06 Thread Cosma Colanicchia
I'm using exactly that configuration plus Trinidad ;) Cosma 2006/7/6, Rogerio Pereira [EMAIL PROTECTED]: Hi guys! This combination is possible or i must use Clay? -- Yours truly (Atenciosamente), Rogério

Re: Backing Bean in Request Scope Persists Beyond Request

2006-07-05 Thread Cosma Colanicchia
I think the problem is using outputLink instead of commandLink components.outputLink simply generates an a tag.. and it is intended for building links that go outside of the JSF scope (a link to another website or to a file on disk, for example). Are you using outputLink for some particular

Re: Shale and Trinidad

2006-07-04 Thread Cosma Colanicchia
I was trying with the init() method but it was never called.. I'm now trying with prerender() and it works. Thank you Cosma 2006/7/3, Craig McClanahan [EMAIL PROTECTED]: On 7/3/06, Cosma Colanicchia [EMAIL PROTECTED] wrote: I can see that the shale filtered and viewhandler are triggered

Re: explanation of DataTable

2006-07-04 Thread Cosma Colanicchia
Hi Alexandre, it's simple, JSF defines a DataModel class that is used by UIData componentes (like the data table). Note that it is allowed the usage of some other types (for example java.util.List) because DataModel implementations that wraps it are available automatically picked. Basically,

Re: explanation of DataTable

2006-07-04 Thread Cosma Colanicchia
of a paged dataTable). Cosma 2006/7/4, Alexandre Jaquet [EMAIL PROTECTED]: Well Cosma first thanks for your explanation, if I understand well, all components have to extend UIData and we can set to every components a dataModel? Cosma Colanicchia wrote: Hi Alexandre, it's simple, JSF

Re: explanation of DataTable

2006-07-04 Thread Cosma Colanicchia
: Well Cosma first thanks for your explanation, if I understand well, all components have to extend UIData and we can set to every components a dataModel? Cosma Colanicchia wrote: Hi Alexandre, it's simple, JSF defines a DataModel class that is used by UIData

Re: explanation of DataTable

2006-07-04 Thread Cosma Colanicchia
2006/7/4, Alexandre Jaquet [EMAIL PROTECTED]: Well I'm been working with a datatable and a datascroller, what I want is to load only 5 rows by time. Cosma Colanicchia wrote: Alexandre, can you specify some more details about what you're trying to do? Cosma 2006/7/4, Alexandre Jaquet [EMAIL

Re: Shale and Trinidad

2006-07-03 Thread Cosma Colanicchia
PhaseListener that create a ViewControllerCallbacks instance, but I can't find where its metodhs are invoked. If I knew it, maybe I could find where the problem is.. Thank you Cosma 2006/6/22, Cosma Colanicchia [EMAIL PROTECTED]: Thank you Craig, at first I followed the configuration steps listed

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]

Re: Problem building myfaces

2006-06-29 Thread Cosma Colanicchia
is what I usualy run, is that what you did also? hth, Catalin Cosma Colanicchia [EMAIL PROTECTED] wrote: Probably you're right, I tought it was a dev issue too at first.. I just wanted to know if someone else is getting the same problem. Thank you anyway Cosma 2006/6/29, Wendy Smoak

Re: Problem building myfaces

2006-06-29 Thread Cosma Colanicchia
, Catalin Cosma Colanicchia [EMAIL PROTECTED] wrote: Hi Catalin, I've downloaded the source from scratch with svn co, installed maven 2.0.4 (so I'm starting with an almost clean m2 repo) and tried mvn install. mvn clean install gives me the same error.. Cosma 2006/6/29, Catalin Kormos

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

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: 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: 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

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: 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

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: 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: 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

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

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

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

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: 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: 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: 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: 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: 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 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

  1   2   >