Trinidad / ADF: How do I set a property in a bean when commandLink is pressed?

2006-12-05 Thread Marcus Bond
Hi, I'm trying out Trinidad / ADF Faces rewriting a small app previously done with tomahawk. Is there an equivalent of t:updateActionListener? I have a table where each row is produced as a link, when a user clicks the link they are redirected to another page which holds more comprehensive

Trinidad and Facelets

2006-12-05 Thread Meyer, Stefan
Hi, I have configured facelets and trinidad according to the wiki on myfaces.apache.org. It seems to work unless I use ui-Tags. This is the simple template: tr:document xmlns:ui=http://java.sun.com/jsf/facelets; xmlns:h=http://java.sun.com/jsf/html;

How can i disable the exception Detected cyclic reference to managedBean mybean?

2006-12-05 Thread Rogerio Pereira
Hi guys! One of guys that works with me in a project wrote a set of classes to be used in search engines, this set of classes uses the concept of publisher/listener to exchange some info between these beans, now we found a situation where: - beanA is publisher and beanB is listerner of

wrong submittedValue of selectOneMenu

2006-12-05 Thread Rumiana Todorova
We have a managed bean (mProbe) in session scope. In the jsp we build a simple panelTabbedPane component in which we have a selectOneMenu component. Out of the panelTabbedPane there are 2 buttons that hide and show the panelTabbedPane component. We select a value from the selectOneMenu

[Tobago] Why no markup for tc:textarea?

2006-12-05 Thread H. Swaczinna
Hi, I can see no reason, why there's a markup attribute for tc:in, but no for tc:textarea. There's no logical difference between both components. Regards Helmut

Re: Trinidad and Facelets

2006-12-05 Thread Matthias Wessendorf
Hello Stefan, I am using it and it works for me I have something like ui:include src=page.xhtml / note that page.xhtml is in the directory (here in my case) als the *master* page. -Matthias On 12/5/06, Meyer, Stefan [EMAIL PROTECTED] wrote: Hi, I have configured facelets and trinidad

How to get ColIndex in t:dataTable

2006-12-05 Thread Strittmatter, Stephan
Hi all, one question: How could I get the colIndex within a Tomahawk datatable? I use included t:columns to add some lists, but there in the implementation I neet the index of the current column. The current row is no problem, I get it via rowIndexVar=rowIndex within the datatable, but there is

AW: Trinidad / ADF: How do I set a property in a bean when commandLink is pressed?

2006-12-05 Thread Böhringer Jochen
I'm trying out Trinidad / ADF Faces rewriting a small app previously done with tomahawk. Is there an equivalent of t:updateActionListener? This can easily be done using the tr:setActionListener Tag in Trinidad (see

AW: Trinidad / ADF: How do I set a property in a bean when commandLink is pressed?

2006-12-05 Thread Meyer, Stefan
I'm trying out Trinidad / ADF Faces rewriting a small app previously done with tomahawk. Is there an equivalent of t:updateActionListener? Can this be used with facelets?

Re: Trinidad / ADF: How do I set a property in a bean when commandLink is pressed?

2006-12-05 Thread Matthias Wessendorf
Hello, tr:setActionListener can be used with Facelets (see clazz org.apache.myfaces.trinidadinternal.facelets.SetActionListenerTag) the updateActionListener has also support for that (note on jsf-comp.sf.net there is the special taghandler clazz) Btw. in jsf 1.2 this tag made it to the spec It

getters/setters ordering

2006-12-05 Thread Renzo Tomaselli
Hi all, I use saveState component to transmit persistent values across requests. This implies that a proper bean setter is invoked while restoring a view. Now, it happens that the restored value might influence other tags, both in terms of value model and rendering. The question is: can I

RE: packe structure question

2006-12-05 Thread Nebinger, David
Well, since no one jumped in with an opinion, I'll share our methodology... i am currently programming a jsf application and i found out that i have 2 different things in every package .beans (jsf beans) .action(jsf action) Now how should i structure my packages. First, we're not

conversation-tag

2006-12-05 Thread Martin Marinschek
Hi, I'm using the conversation tag on a jsp-page like this: s:startConversation name=pageDemand/ s:conversation value=#{documentBean} name=pageDemand/ and am encountering the following stack-trace on postbacks (not on the first request) of pages which

Re: getters/setters ordering

2006-12-05 Thread Gerald Müllan
Hi, you can also put the whole bean in t:saveState. This may prevent you from running into these problems. cheers, Gerald On 12/5/06, Renzo Tomaselli [EMAIL PROTECTED] wrote: Hi all, I use saveState component to transmit persistent values across requests. This implies that a proper bean

Re: getters/setters ordering

2006-12-05 Thread Renzo Tomaselli
Gerald, in my case things are a bit more complex. I have a dataTable and I don't want to save the entire state to avoid overloading communications. But I have columns which are rendered conditionally, depending on a checkbox located in the table header. I discovered that the checkbox setter is

Beans in session scope lifecycle

2006-12-05 Thread Charbel Abdul-Massih
Hello, I have a wizard flow that utilizes a backing bean in session scope...if a user should cancel out of the wizard at any point, is there a way to reset the backing bean and its properties??? Or better yet, is there a way to completely remove the bean from the session so that next time the

Re: Beans in session scope lifecycle

2006-12-05 Thread Gerald Müllan
Hi, sounds that you need t:saveState in this case. It pushes the bean in a special kind of scope, which durates it longer than request and shorter than session. Means it is an ideal choice for all kind of page-scope stuff, such as a wizard. Usage: t:saveState value=#{wizardBean}/ cheers,

RE: Beans in session scope lifecycle

2006-12-05 Thread mario.buonopane
Try this: FacesContext.getCurrentInstance().getApplication().createValueBinding(# {ManagedBeanName} ).setValue(FacesContext.getCurrentInstance(), null); From: Charbel Abdul-Massih [mailto:[EMAIL PROTECTED] Sent: 5 dicembre 2006 16.26 To:

Re: h:message tooltip

2006-12-05 Thread Andrew Robinson
If you read the JavaDoc you will see that the summary is rendered in the tooltip and the detail in the main text. I always thought that was backwards, but Sun apparently didn't. Just create your own renderer that switches them. -Andrew On 12/5/06, Marko Asplund [EMAIL PROTECTED] wrote: hi I'm

Cascading enableOnUserRole

2006-12-05 Thread Raj Patel
I'm looking for a tag that would cascade the enableOnUserRole tag to all nested tags- such as input fields. Is such a thing possible?

Re: Cascading enableOnUserRole

2006-12-05 Thread Andrew Robinson
I don't know an automated way, but you could write a custom component that iterates over its children (and grandchildren, etc). You could just apply the enabledOnUserRole during encodeBegin. This new component would just have which ever properties you need (visible on user role, enable on user

RE: Error using inputFileUpload component.

2006-12-05 Thread Jorge Vásquez
The cause of the error has nothing to do with the inputFileUpload component, it is related with the SelectItems Iterator, please help me with this!!! I have no idea what is happening, I read that it was probably due to JVM compatibility issues. I am using JVM 1.4 and

Re: packe structure question

2006-12-05 Thread Holger Prause
Nebinger, David schrieb: Well, since no one jumped in with an opinion, I'll share our methodology... i am currently programming a jsf application and i found out that i have 2 different things in every package .beans (jsf beans) .action(jsf action) Now how should i structure my

2 beans used on one page - order of calling

2006-12-05 Thread Charbel Abdul-Massih
I have 2 beans on one page (one session scope, one request scope) My first ever request in the session, the request scoped bean's constructor gets called before the session scoped bean's...Is there a way to reverse that order??? Thx, Charbel

Tobago maxFileSize

2006-12-05 Thread jrenck
I'm trying to check the file size that is going to be submitted through t:inputFileUpload... and I have set for the ExtensionsFilter: filter filter-nameMyFacesExtensionsFilter/filter-name filter-classorg.apache.myfaces.webapp.filter.ExtensionsFilter/filter-class init-param

Re: 2 beans used on one page - order of calling

2006-12-05 Thread Jeff Bischoff
Charbel, I would avoid putting much, if anything, in the constructor of a managed bean - especially if you are worried about the order! Please see this previous thread [1] for some thoughts and options. [1] http://www.nabble.com/Backing-Bean-Constructor-tf2371791.html#a6608331 Regards,

Re: packe structure question

2006-12-05 Thread Jeff Bischoff
Holgar, I think this approach is a better choice than your original option #2. This would have been a potential organizational nightmare. :) Putting the actions and data in the same class or not is really just a matter of preference. Putting them together is more OO design, while separating

RE: AW: Trinidad / ADF: How do I set a property in a bean when commandLink is pr

2006-12-05 Thread Marcus Bond
Fair enough, Unfortunately, I am using the oracle implementation of ADF faces not the trinidad incubation version... I guess I will have to set myself up some beans with action listeners and get to the required parameters the old fashioned way :o) This leads me to another question regarding

Re: AW: Trinidad / ADF: How do I set a property in a bean when commandLink is pr

2006-12-05 Thread Matthias Wessendorf
This leads me to another question regarding the current stability of the project in incubation.. but I will post this as a seperate topic. would be cool if users here use the Trinidad list for questions like that. Trinidad is sorta stable. It is used in projects. Incubation is not reflecting a

How to fix header columns of dataTable

2006-12-05 Thread mario.buonopane
I have a dataTable that shows a lot of rows but I don't want the dataScroller. Is there a way to fix the header columns and put the body of the table in a div with scrollbars? ___ Buonopane Mario Accenture Insurance Services Systems Via C. Colombo 112,

Migration from ADF to Trinidad and current stability

2006-12-05 Thread Marcus Bond
Currently I'm using the oracle version of ADF but would like to know if there are any serious issues to be aware of if I were to migrate to Trinidad. Ideally it would be perfect if it were possible to simply switch the ADF jars for Trinidad ones, - is this likely to be possible? Have all

Re: AW: Trinidad / ADF: How do I set a property in a bean when commandLink is pr

2006-12-05 Thread Marcus Bond
Ok fair enough, I wasn't sure if it was more to do with integrating the tag libraries so they can be intermixed etc. I'll hunt out the trinidad list, didnt realise there was a specific one for it. Thanks Marcus. PS. I posted the other question before getting chance to read this, so it's not

selectBooleanCheckbox not calling the listener

2006-12-05 Thread Renzo Tomaselli
Hi, I have a selectBooleanCheckbox inside the "header" facet of a Tomahawk DataTable, which itself is enclosed in a form. It is written like: t:selectBooleanCheckbox value="#{resultBean.uiCheckedSelector}" immediate="true" valueChangeListener="#{resultBean.checkedChanged}"/ now I

Re: Migration from ADF to Trinidad and current stability

2006-12-05 Thread Matthias Wessendorf
On 12/5/06, Marcus Bond [EMAIL PROTECTED] wrote: Currently I'm using the oracle version of ADF but would like to know if there are any serious issues to be aware of if I were to migrate to Trinidad. Ideally it would be perfect if it were possible to simply switch the ADF jars for Trinidad ones,

Re: packe structure question

2006-12-05 Thread Holger Prause
Jeff Bischoff schrieb: Holgar, I think this approach is a better choice than your original option #2. This would have been a potential organizational nightmare. :) What does mean would ^^, why do u think i am making a redesign and asking this questions =P. Putting the actions and data in

Interest in knowing benefits of myfaces+shale

2006-12-05 Thread Jorge Vásquez
Hello, I have been reading lately lots of answers that recommend an integration of faces with shale but I really can´t imagine what specific benefits can this bring to a project. Is there some document or reference that anyone knows that clearly illustrates this benefits, something like what can

RE: packe structure question

2006-12-05 Thread Nebinger, David
Putting the actions and data in the same class or not is really just a matter of preference. Ah ok, i also saw designs where a bean had an action method. I didnt liked this.I think actions should go into an own class (Action class) This is one point i dont want to change. This goes

Re: Interest in knowing benefits of myfaces+shale

2006-12-05 Thread Craig McClanahan
On 12/5/06, Jorge Vásquez [EMAIL PROTECTED] wrote: Hello, I have been reading lately lots of answers that recommend an integration of faces with shale but I really can´t imagine what specific benefits can this bring to a project. Is there some document or reference that anyone knows that

Re: sandbox selectItems component

2006-12-05 Thread Cagatay Civici
Hi, It's fixed, thanks for reporting. http://issues.apache.org/jira/browse/TOMAHAWK-817 Regards, Cagatay On 12/5/06, Gerald Müllan [EMAIL PROTECTED] wrote: The common way is to open a corresponding jira issue and apply the patch to it as an attachement. As a recent example see:

Re: Interest in knowing benefits of myfaces+shale

2006-12-05 Thread Jeff Bischoff
You know, when our project began, we dismissed Shale simply because there was no official release yet. Good to see that it is making progress. *Very* glad to see the modular nature of Shale. Regards, Jeff Bischoff Kenneth L Kurz Associates, Inc. Craig McClanahan wrote: On 12/5/06, Jorge

Re: selectBooleanCheckbox not calling the listener

2006-12-05 Thread Simon Kitching
Hi Renzo, My guess is that on postback, calling resultBean.getUiCheckedSelector() is always returning false. Because of this, if the chekcbox value being posted from the browser is true (checked), then myfaces thinks value is changed, etc. Perhaps resultBean is request-scoped, ie a new

Re: getters/setters ordering

2006-12-05 Thread Simon Kitching
Hi Renzo, MyFaces certainly performs a depth-first walk of the component tree when processing any JSF phase. This effectively means that components are processed in the order they are defined in your page layout. I would expect that every JSF implementation will do the same, though if you

Re: popup component

2006-12-05 Thread Simon Kitching
Song Haojie-a23023 wrote: I failed to try the below example with a JavaScript error: Object doesn't support this property or method. Is it because of my browser version issue? I'm using IE6.0 xpsp2. Any hint will be welcome!!! Have you configured the ExtensionsFilter correctly? Instructions

Making a UICommand component when capturing keys

2006-12-05 Thread Mike Kienenberger
I've created a component that captures function keys (IE only, it appears) and then executes javascript. (With thanks to David McTavish for the tag syntax). However, what I'd really like to do is have it behave like a UICommand component and support action, actionListener, immediate, etc.

Re: conversation-tag

2006-12-05 Thread Mario Ivankovits
Hi Martin! java.lang.IllegalStateException: Null request object org.apache.catalina.connector.RequestFacade.getAttribute(RequestFacade.java:256) org.apache.myfaces.context.servlet.RequestMap.getAttribute(RequestMap.java:44)

Re: Making a UICommand component when capturing keys

2006-12-05 Thread Mike Kienenberger
Ok. To answer my own question, it's a bit tricker than that. You have to create a hidden input field, stuff your key name into it, and then submit the enclosing form. I used this method: document.getElementById('_id490:_id491::keycode').value = '113';

Re: packe structure question

2006-12-05 Thread Holger Prause
Nebinger, David schrieb: Putting the actions and data in the same class or not is really just a matter of preference. Ah ok, i also saw designs where a bean had an action method. I didnt liked this.I think actions should go into an own class (Action class) This is one

update treemodel

2006-12-05 Thread Sebastian Menge
Hi I want to edit the weights of a weighted tree using a treetable where each node has a selectOneMenu with the weights. The problem is, that the setter of the DefaultTreeModel is never called. Any ideas? Sebastian -- /** simple setter */ public void

Using PanelGroup with facelets

2006-12-05 Thread Dudu
PanelGroup doesn't not work with facelets, like other several components... I need to add all manually in the tomahawk.taglib.xml file? why some so stable components weren't there? thanks

[Tobago] no onchange for tc:selectBooleanCheckbox

2006-12-05 Thread H. Swaczinna
Hello, the onchange attribute of the tc:selectBooleanCheckbox is not rendered into the HTML code. Example: JSP tc:selectBooleanCheckbox label=Test onchange=javascript:alert('Hello');/ HTML input type=checkbox value=true name=gena:_idJsp0 class=tobago-selectBooleanCheckbox-default

Re: conversation-tag

2006-12-05 Thread Thomas Spiegl
2) is an absolute must. That's why the FacesServlet releases the FacesContext at the end of each request. Martin, are you bypassing the FacesServlet? On 12/5/06, Mario Ivankovits [EMAIL PROTECTED] wrote: Hi Martin! java.lang.IllegalStateException: Null request object

org/apache/myfaces/custom/dojo/DojoUtils NOT FOUND

2006-12-05 Thread Dave
I am using sandbox 1.1.5 for modelDialog. But I got the following error: java.lang.NoClassDefFoundError: org/apache/myfaces/custom/dojo/DojoUtils I looked at the sandbox jar file. It did not have the class. Which jar file has it? Thanks for help.

Re: org/apache/myfaces/custom/dojo/DojoUtils NOT FOUND

2006-12-05 Thread Wendy Smoak
On 12/5/06, Dave [EMAIL PROTECTED] wrote: I am using sandbox 1.1.5 for modelDialog. But I got the following error: java.lang.NoClassDefFoundError: org/apache/myfaces/custom/dojo/DojoUtils I looked at the sandbox jar file. It did not have the class. Which jar file has it?

selectOneRadios in TreeTable

2006-12-05 Thread Sebastian Menge
Hi Im still struggling with the TreeTable. I want a selectOne control next to each of my nodes in a tree. When MyFaces renders the tree everything looks good, but when we try to save the changed data in the select-controls, nothing happens. The problem seems to be that for each select-control

Re: 2 beans used on one page - order of calling

2006-12-05 Thread Mr Arvind Pandey
Hi, I think you are accessing request bean's data first in your page then you would be accessing session bean's data later in the page. Anyway I don't think order of constructors being invoked really matters untill unless they have some internal relation. Regards Arvind --- Charbel