Dependant selectOne* and input* components in PPR Trinidad

2008-01-08 Thread eavilesa
Hi, I am trying Trinidad PPR component facility to create dependant input fields. My objective is to create a selectOneChoice that its data is updated when a previous selectOneChoice value is selected. The sample code is at the bottom. The problem is that the first time you choose the

Re: Call a backing bean before show a JSP

2008-01-08 Thread Volker Weber
Hi Daniel, its simple, you need to render a faces response for a non faces request: use the NonFacesRequestServlet : http://wiki.apache.org/myfaces/InvokingJsfPagesWithStandardUrls#head-6c1aaf488d48f938896da962aaa4361ec3ffaf70 this Servlet implements the needed steps (jsf-1.1-spec 2.1.1).

[Trinidad] Dependant selectOne* and input* components in PPR Trinidad

2008-01-08 Thread eavilesa
I am trying Trinidad PPR component facility to create dependant input fields. My objective is to create a selectOneChoice that its data is updated when a previous selectOneChoice value is selected. The sample code is at the bottom. The problem is that the first time you choose the first

AW: Call a backing bean before show a JSP

2008-01-08 Thread Rottstock, Sven
Why don't you use managed-properties for this scenario? You can call your action method in App1; put some parameters in the URL and forward to App2. If you use a request bean in your index.jsp (App2) then you can initialize your bean with the paramaters from App1 like this: managed-bean

Re: Dependant selectOne* and input* components in PPR Trinidad

2008-01-08 Thread Gerhard Petracek
hello esteve, please have a look at: http://www.nabble.com/-Trinidad--valueChangeListener-called-too-often--to14098783.html#a14098783 regards, gerhard 2008/1/8, [EMAIL PROTECTED] [EMAIL PROTECTED]: Hi, I am trying Trinidad PPR component facility to create dependant input fields. My

Re: (Trinidad) Tabindex for input fields

2008-01-08 Thread Gerhard Petracek
hello sandeep, please have a look at: http://myfaces.apache.org/trinidad/spec-diff.html regards, gerhard 2008/1/8, sandeep gururaj [EMAIL PROTECTED]: Hello All, Trinidad has no tabindex attribute available on the input fields. Does anybody know if we have any alternative attribute for

RE: Dependant selectOne* and input* components in PPR Trinidad

2008-01-08 Thread eavilesa
Hello Gerhard, Thank you very much for your rapid response. I've been looking for a long time this functionality but I used bad keys. When you talk about extended request scope, what are you talking about? How do you set it up. Where can I get more information? Thanks once more.

Re: howto put inline javascript rendered by myfacestomahawk into CDATA-section

2008-01-08 Thread R. Müller
hi, thanks for your replies. you're right - modifying the tomahawk sources would be the fastest (in terms of rendering-perfomance) and cleanest way, but i don't like 'custom' libraries for future compatibility. it has to be done by the project, if it is common position. so as a workaround,

RE: (Trinidad) Tabindex for input fields

2008-01-08 Thread sandeep gururaj
Thanks Gerhard, I did have a look at the spec-diff page. I would like to know if I can do something to overcome this problem without having to re-design my page for sake of correct tab-order. ~Sandeep From: Gerhard Petracek [mailto:[EMAIL PROTECTED]

Re: [Tobago] table scroller

2008-01-08 Thread Zied Hamdi
Hi Volker, Thanks a lot for your answer, sorry for the late answer I wasn't here yesterday. Your mail explains lots of things. I agree with you that the presence of a property rowHeight could help. *what is the colums attribute of the sheet ? I would expect something like 20px;1*;1*, * **

Re: How to use one subview more than once in one page

2008-01-08 Thread Mario Ivankovits
Hi! % String beanName = request.getParameter(beanName); % tc:panel f:facet name=layout tc:gridLayout rows=fixed columns=1*;1*;1*/ /f:facet tc:out id=out value='%= #{ + beanName + .value} %'/ tc:in id=in value='%= #{ + beanName + .value2} %'/ Woho would never have

Re: Dependant selectOne* and input* components in PPR Trinidad

2008-01-08 Thread Gerhard Petracek
hello esteve, there are several possibilities in place to use scopes which lasts longer than the request scope and shorter than the session scope. e.g. you can use mechanisms which are provided by: - myfaces tomahawk, trinidad and orchestra - the spring project (custom scopes - which are also

Re: How to use one subview more than once in one page

2008-01-08 Thread Helmut Swaczinna
Hi Mario, thanks for the hint. This is what I was looking for. But unfortunately t:aliasBean does not work with component bindings and I need them. There's a workaround mentoined in the t:aliasBean wiki but I don't understand it right know. Hm, maybe I should use my own solution which works

Re: How to use one subview more than once in one page

2008-01-08 Thread Volker Weber
Hi, we are using a similar code in our project in the subview.jsp: tc:out id=out value=#{${beanName}.value}/ tc:in id=in value=#{${beanName}.value2}/ tc:button id=button label=${beanName} action=#{${beanName}.subviewAction}/ The tomahawk aliasBean stuff did not work in tobago if you

Re: [Tobago] table scroller

2008-01-08 Thread Volker Weber
Hi, I agree with you that the presence of a property rowHeight could help. please add a jira feature request. Regards, Volker 2008/1/8, Zied Hamdi [EMAIL PROTECTED]: Hi Volker, Thanks a lot for your answer, sorry for the late answer I wasn't here yesterday. Your mail explains lots

Re: How to use one subview more than once in one page

2008-01-08 Thread Helmut Swaczinna
Hi Volker, this looks nice. How do you set the beanName in subview.jsp? I do this: % String beanName = request.getParameter(beanName); request.setAttribute(beanName, beanName); % This works fine when I navigate for the first time to the page. But when I navigate to another page and

Re: How to use one subview more than once in one page

2008-01-08 Thread Volker Weber
Hi Helmut, we use jsp tags instead of jsp:include. In tags you can define attributes e.g: WEB-INF/tags/userList.tag: --- %@ attribute name=controller % %@ taglib uri=http://myfaces.apache.org/tobago/component; prefix=tc %

Re: (Trinidad) Tabindex for input fields

2008-01-08 Thread Gerhard Petracek
hello sandeep, there are at least four possibilities: 1) extend the functionality of trinidad and provide an implementation to support the tabindex attribute 2) implement a custom mechanism (with the usage of javascript - and e.g. a hidden field to store all mappings: id - tabindex + process

Re: [Tobago] table scroller

2008-01-08 Thread Zied Hamdi
Ok, https://issues.apache.org/jira/browse/TOBAGO-585 Regards, Zied 2008/1/8, Volker Weber [EMAIL PROTECTED]: Hi, I agree with you that the presence of a property rowHeight could help. please add a jira feature request. Regards, Volker 2008/1/8, Zied Hamdi [EMAIL PROTECTED]:

Re: Call a backing bean before show a JSP

2008-01-08 Thread daniel ccss
Ok Andrew I will try it and tell you, thanks On Jan 7, 2008 3:47 PM, Andrew Robinson [EMAIL PROTECTED] wrote: Runs fine on JBoss if you aren't using Seam. If you are using seam use the action attribute in the pages.xml. It is basically the same thing. My on-load is nice for ppl. who want the

[Trinidad] How to get Buttons in place of hyper links in a selectManyShuttle?

2008-01-08 Thread Samba
Hi! all, I'm wondering how can I get buttons in place of Hyperlinks for the Trinidad's sleectManyShuttle component's move ,move all , remove , remove all properties! ADF has the buttons by default for those properties, but trinidad is having links. Is there a way to show Buttons for this

Re: (Trinidad) Tabindex for input fields

2008-01-08 Thread Andrew Robinson
Submit an enhancement jira to add tabindex. It will be very easy to implement and I think worth the time. I may do the fix as I am using #2 in one of my projects (using a custom component that uses javascript to set the tabindex) which is not ideal. -Andrew On Jan 8, 2008 6:08 AM, Gerhard

Re: (Trinidad) Tabindex for input fields

2008-01-08 Thread Rafa Pérez
I also think that it would be very useful. On Jan 8, 2008 5:29 PM, Matthias Wessendorf [EMAIL PROTECTED] wrote: +1 to such an enhancement. -M On Jan 8, 2008 8:09 AM, Andrew Robinson [EMAIL PROTECTED] wrote: Submit an enhancement jira to add tabindex. It will be very easy to implement

How to distinguish between Form loading and submiting in JSF?

2008-01-08 Thread Zheng, Xiahong
Hi all, I have a form that is wired with a backing bean. On the initial loading, I need to load the backing properties from the DB to be displayed on the page, then persist into the DB on submission after user edited the form. I only want to preload the bean from DB on the initial form loading

Re: (Trinidad) Tabindex for input fields

2008-01-08 Thread Matthias Wessendorf
+1 to such an enhancement. -M On Jan 8, 2008 8:09 AM, Andrew Robinson [EMAIL PROTECTED] wrote: Submit an enhancement jira to add tabindex. It will be very easy to implement and I think worth the time. I may do the fix as I am using #2 in one of my projects (using a custom component that

RE: How to distinguish between Form loading and submiting in JSF?

2008-01-08 Thread Zheng, Xiahong
Thanks for your quick response. I will try the 2nd approach. The first approach, I am also aware of, is not acceptable as I try to avoid Servlet API in my bean class. _ From: Andrew Robinson [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 08, 2008 12:09 PM

Re: How to distinguish between Form loading and submiting in JSF?

2008-01-08 Thread Simon Kitching
If you are using JSF1.2, then I believe this will tell you whether this is a return to an existing view (ie not the first render of a view): FacesContext.getRenderKit().getResponseStateManager().isPostBack(). Regards, Simon Andrew Robinson [EMAIL PROTECTED] schrieb: Not sure about a way

Re: How to distinguish between Form loading and submiting in JSF?

2008-01-08 Thread Andrew Robinson
Not sure about a way with portlets, but this should work with a servlet environment: POST.equals(((HttpServletRequest)FacesContext.getCurrentInstance().getExternalContext().getRequest()).getMethod()) Note that all command* components post, so this will not tell you if the page is new or not.

RE: How to distinguish between Form loading and submiting in JSF?

2008-01-08 Thread Zheng, Xiahong
Thanks, that worked. -Original Message- From: Simon Kitching [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 08, 2008 12:25 PM To: MyFaces Discussion Subject: Re: How to distinguish between Form loading and submiting in JSF? If you are using JSF1.2, then I believe this will tell you

Re: [Trinidad] How to get Buttons in place of hyper links in a selectManyShuttle?

2008-01-08 Thread Matthias Wessendorf
I don't know why it was changed to a instead of button. but you could create an own version of the renderer and just overrride the protected renderButton() -M On Jan 8, 2008 6:33 AM, Samba [EMAIL PROTECTED] wrote: Hi! all, I'm wondering how can I get buttons in place of Hyperlinks for the

Re: Call a backing bean before show a JSP

2008-01-08 Thread daniel ccss
Sven this looks pretty easy i'm gonna try it and let you know thanks. On Jan 8, 2008 9:36 AM, Rottstock, Sven [EMAIL PROTECTED] wrote: Why don't you use managed-properties for this scenario? You can call your action method in App1; put some parameters in the URL and forward to App2. If you

Re: Call a backing bean before show a JSP

2008-01-08 Thread daniel ccss
What Im missing, this is what I do: 1- In the web.xml: context-param param-nameonload-config/param-name param-value/WEB-INF/onload-config.xml/param-value /context-param 2- In the faces-config.xml lifecycle ...

Re: Call a backing bean before show a JSP

2008-01-08 Thread daniel ccss
humm :( the problem is that my bean`s scope is session and not request, so Ì`m can´t use the managed-property :( Any other solution? Andrew what´s wrong with my jsf-comp implementation? Need help with this plz. On Jan 8, 2008 7:49 PM, daniel ccss [EMAIL PROTECTED] wrote: Sven this looks pretty

Re: Call a backing bean before show a JSP

2008-01-08 Thread Andrew Robinson
Download the newest onload code (jsfExt.0.9.0): http://sourceforge.net/project/showfiles.php?group_id=137466package_id=168611 (Sorry for the confusing release names) Other than that: limpiarFormulario should have a String, not void return type as it is being used as an action. If that doesn't

Re: Call a backing bean before show a JSP

2008-01-08 Thread daniel ccss
Andrew this new jar depends of the class: SAXReader?? I recived this error: * Falta la clase: org.dom4j.io.SAXReader* ** *Clase Dependiente: net.sf.jsfcomp.ext.onload.OnLoadPhaseListener* * Cargador: current-workspace-app.web.SiacAgenda:0.0.0* *

Re: Call a backing bean before show a JSP

2008-01-08 Thread daniel ccss
All works great know thanks Andrew On Jan 8, 2008 10:42 PM, daniel ccss [EMAIL PROTECTED] wrote: Andrew this new jar depends of the class: SAXReader?? I recived this error: * Falta la clase: org.dom4j.io.SAXReader* ** * Clase Dependiente:

Re: (Trinidad) Tabindex for input fields

2008-01-08 Thread Andrew Robinson
https://issues.apache.org/jira/browse/TRINIDAD-888 On Jan 8, 2008 9:09 AM, Andrew Robinson [EMAIL PROTECTED] wrote: Submit an enhancement jira to add tabindex. It will be very easy to implement and I think worth the time. I may do the fix as I am using #2 in one of my projects (using a

trinidad trunk_1.2.x and jetty?

2008-01-08 Thread Andrew Robinson
Has anyone been able to get the Trinidad 1.2 trunk to run in maven using jetty? Exception: java.lang.NoClassDefFoundError: javax/servlet/jsp/jstl/core/Config at org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView( JspViewHandlerImpl.java:249) at