[Tomahawk] Using inputCalendar component

2006-07-20 Thread Marcus Schmidke
Hello again, quite beginner, I am tumbling from one problem into the next. I'm trying to use the inputCalendar component (non-popup). It displays fine. The value binding works fine. The page containing displays a set of records corresponding to the currently selected date. In the future, data

Re: Conditional working for dynamic components

2006-07-20 Thread Martin Grotzke
Hello Stefan, i do not have the right and complete answer, but one or two hints: - have a look at the facelets FAQ (http://wiki.java.net/bin/view/Projects/FaceletsFAQ), there's an entry about build-time and render-time tags, and the difference on c:forEach and ui:repeat - on this list there

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

2006-07-20 Thread Martin Beránek
My suggestion is: MyFaces 1.1.4 (will be out soon ;)) as Runtime Trinidad for the component set Facelets as View instead of JSP. looks good, but where is any distribution package for Trinidad. original ADF faces is only for non-comercial usage. -- Martin Beránek http://www.i.cz smime.p7s

Re: JSF and custom design

2006-07-20 Thread Cyrille37
Ian Hlavats a écrit : Hi Cyrille, You mentioned you are looking for JSF support in Dreamweaver. Did you try JSFToolbox? If so, did you find any issues with the tool? We are always looking for feedback from users on how to improve the software. Hello Ian. I did not try JSFToolbox. At this

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

2006-07-20 Thread Cyrille37
Matthias Wessendorf a écrit : sorry, I forgot to mention Shale. In MyFaces 1.2 we started to use Shale for testing In Trinidad as well. ;) so my suggestion needs a and shale :) Thanks to all for your help. Just about Shale : I think it is to young to be used by a newbie like me ;o) I've to

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: HtmlTableRendererBase Error: Row is not available. Rowindex = 0

2006-07-20 Thread Michael Heinen
I tried also to fix this issue. The index of the last row is set to uiData.getRowCount() if it was bigger before. Empty rows without cells are not rendered anymore. I didn't test this with the newspaper stuff. Hope this helps. Regards, Michael -Original Message- From: Martin

tobago: page width

2006-07-20 Thread Martin Beránek
tc:page width attribute isn't required, but many things doesn't work without setting it (e.g. margin inside tc:gridLayout, tc:sheet, ...). setting in % doesn't work. only fixed pixel size works good. is any way, how to set it to 100% or more (if content is larger than window). thanks for help

Component tag with variable componenttype, howto?

2006-07-20 Thread David Delbecq
Hello, I am in a situation where i need to write such a tab: custom:parameter value=parameterBean/ The jsf component is to be created using parameterBean.createComponent (). My first thought was to create an empty Component whose sole role was to ass the result of

RE: Component tag with variable componenttype, howto?

2006-07-20 Thread Julian Ray
Is is a container such as a gridPanel that you need? If so, you could probably subclass the gridpanel and use a backing bean to add other components on demand. We do this for our tab menus. -Original Message- From: David Delbecq [mailto:[EMAIL PROTECTED] Sent: Thursday, July 20, 2006

SelectItems Rendering problem

2006-07-20 Thread ldr
I dont know what Im doing wrong, but when I want to show my created selectitems the rendering fails - nullpointer. There is nothing wrong with the creation, that is there are no error and the structure and data looks fine. I have below added my code and errors and hope that there are someone who

Issues with Tomahawk Schedule component

2006-07-20 Thread Ivaylo Kabakov
Hello, all! I trying to use the schedule component with the MyFaces implementation 1.1.3, Tomahawk 1.1.4 snapshot, Jboss Seam and Facelets. What's good is that the entries are rendered ok, adding/removing of entries and linking with a calendar component work as expected, but I'm having

Re: Component tag with variable componenttype, howto?

2006-07-20 Thread David Delbecq
No, i try to remove the need of an empty container. For now i am in such situation Tag A create component X which itself has only one child, the result of bean.createComponent() (let's name it Y) X does not render anything, it has only one child, it is there only because i need a UI class to

Can I set default f:convertDateTime dateStyle?

2006-07-20 Thread Adam Brod
Hi- We display dates all over our site with a short dateStyle. Is there a way I can change the default value for the f:convertDateTime dateStyle? I really don't want to have to put f:convertDateTime type=date dateStyle=short / in lots of places all over my pages. Thanks for any tips! Adam Brod

javax.servlet.ServletException using Tree2

2006-07-20 Thread Hendrik Neumann
Hi everybody,I try to develop my own component which renders a Tree2 component within the encodeBegin(FacesContext myContext)-Method of my own UIComponent.For this purpose I use the following code-snippet: public void encodeBegin(FacesContext myContext) throws IOException { ResponseWriter

Re: HtmlTableRendererBase Error: Row is not available. Rowindex = 0

2006-07-20 Thread Mike Kienenberger
On 7/17/06, Martin Marinschek [EMAIL PROTECTED] wrote: I committed a quickfix to this, where I do not return, but break if a row is not available. This is not the final solution, though. Mike, you committed the original patch for merging newspaperdatatable and datatable - anything you can say

Re: t:validateRegExpr

2006-07-20 Thread Jeff Bischoff
Yes, that's the documentation webpage I was speaking of... Thanks, though Jeff Bischoff Kenneth L Kurz Associates, Inc. Matthias Wessendorf wrote: here is a small docu on that tag http://myfaces.apache.org/tomahawk/validateRegExpr.html On 7/19/06, Jeff Bischoff [EMAIL PROTECTED] wrote:

Re: validation method problem

2006-07-20 Thread array
hi, What I would like to do during the validation is to add a div where the error message has to be rendered. I have several divs on the page under each input field which at first are not visible. The corresponding ?rendered? attributes should to be set to true only if the validation fails. I

Re: question

2006-07-20 Thread Dave Brondsema
Quizas cellpadding=0 en su tc:gridLayout Hay poco documentacion en http://wiki.apache.org/myfaces/ y http://myfaces.apache.org/ Tambien hay ejemplos en http://svn.apache.org/viewvc/myfaces/tobago/trunk/example/ No se' si son incluidos en los downloads o solamente in el fuente. wdiaz wrote:

Re: Needed Example on File Upload

2006-07-20 Thread Dave Brondsema
Chandra Sekhar wrote: Hi, Image upload in Myfaces Examples giving a Null pointer Exception. Regards, Chandru. Have you read http://wiki.apache.org/myfaces/Setup_For_File_Uploads ? If that doesn't help, please post the full stacktrace and a more complete description of what you're doing

Re: [Tomahawk] Using inputCalendar component

2006-07-20 Thread Mike Kienenberger
On 7/20/06, Marcus Schmidke [EMAIL PROTECTED] wrote: For the moment I am trying to implement the logic to load new records when another day is selected. I've added a valueChangeListener to the inputCalendar component. This works fine, but valueChangeListeners are called before the values are

outputLink, graphicImage portlet

2006-07-20 Thread Storm Spire
from the jetspeed jpetstore demo, I can see struts demo works well with links, like the one inside /index.jsp, it writes html:link href=""> html:img border=0 imageName=img_cart src="" /html:linkinside the jsf-demo, the image link works ok as well, like:h:graphicImage id=waveImg url="" /but it

can i use sandbox selectItems with an converter?

2006-07-20 Thread Rogerio Pereira
Hi!Can i use the brand new selectItems tag in tomahawk sandbox with an converter?-- Yours truly (Atenciosamente),Rogério

Re: Issues with Tomahawk Schedule component

2006-07-20 Thread Mike Kienenberger
On 7/20/06, Ivaylo Kabakov [EMAIL PROTECTED] wrote: Oh, yes, one more question, regarding the Calendar component - how can I redirect to another page when a date was selected? As simple as that :-) http://wiki.apache.org/myfaces/SubmitPageOnValueChange if you want to do it in server-side java

Re: Conditional working for dynamic components

2006-07-20 Thread Mike Kienenberger
On 7/19/06, Stefan Neumann [EMAIL PROTECTED] wrote: But next try, using the jsf rendered attribute: tr jsfc=ui:repeat value=#{controller.profileStructure} var=prop h:panelGroup rendered=#{prop.isString} !-- display label -- td span jsfc=h:outputLabel value=#{prop.name} /

ALLOW_JAVASCRIPT

2006-07-20 Thread ragsta
hi all, a simple question: does the ALLOW_JAVASCRIPT parameter work? Is very important for me that my site work even if the javascript is disabled on the user browser but turnig off the param outputlink doesn't work more...even if the primary goal of turning off the param is to change the

Re: Displaying data from a map

2006-07-20 Thread jsf ster
Hi Shibi, try this: c:forEach items=${sessionScope.request.details .entrySet} var=entrytrtdc:out value=${entry.key} //tdtdc:out value=${entry.value} // td /tr/c:forEach -Rajiv

Re: [OT?] Where can I find the Facelets taglib.xml file for htmLib ?

2006-07-20 Thread Raj Rajendran
Okay. so I followed these steps:1. Looked at the getComponentType and getRendererType methods in the tag class:package com.exadel.htmLib.tags ;// Referenced classes of package com.exadel.htmLib.tags:// HtmLibBaseTagpublic class DivTag extends HtmLibBaseTag{ public DivTag() { } public String

Re: t:validateRegExpr

2006-07-20 Thread Mike Kienenberger
On 7/19/06, Jeff Bischoff [EMAIL PROTECTED] wrote: In the t:validateRegExpr tag's 'message' attribute: is there any kind of wildcards that may be used? (i.e. to display the id of the parent component being validated) I went through and added support for message for all of the validators, but I

Re: MyFaces Tomahawk ignores checkbox in dataList on first submission

2006-07-20 Thread Mike Kienenberger
Try using preserveRowStates=true on your t:dataList and see if that fixes the problem. There's some odd behavior of UIData component state saving that still needs to be addressed for JSF 1.1. On 7/19/06, Wally Hartshorn [EMAIL PROTECTED] wrote: We're using MyFaces with Tomahawk and are seeing

Re: HtmlTableRendererBase Error: Row is not available. Rowindex = 0

2006-07-20 Thread Mike Kienenberger
Ok. I'm now seeing this problem as well (don't know how I missed it before). I think Michael is correct in that this is caused by the combination of newspaperTable and dataScroller. I've been able to reproduce it by having a dataTable with one item, but a rows value of 10. The newspaperRows

[OT] Logout Page

2006-07-20 Thread Dennis Gesker
Could someone point to an example of how to have a user directed to a page when their session ends? -- Dennis R. Gesker email: [EMAIL PROTECTED] Key Id: 0xEFA10A51

Re: validation method problem

2006-07-20 Thread Mike Kienenberger
The ability to customize the required message was provided for JSF 1.2. https://javaserverfaces-spec-public.dev.java.net/issues/show_bug.cgi?id=81 There's no easy way to do it in JSF 1.1. It can be done if you want to spend processing time on it. The last section of this page will show you

org.apache.myfaces.secret.CACHE

2006-07-20 Thread Mike Kienenberger
Hey Dennis, I just started getting a new error message. This wasn't happening to me in my pre-June MyFaces snapshot but is happening in the 1.1.5 snapshots. The context parameter 'org.apache.myfaces.secret.CACHE' is not set to false, yet there is nothing stored in the application map w/ the

Re: can i use sandbox selectItems with an converter?

2006-07-20 Thread Cagatay Civici
Hi Rogerio,Yes sure,CagatayOn 7/20/06, Rogerio Pereira [EMAIL PROTECTED] wrote: Hi!Can i use the brand new selectItems tag in tomahawk sandbox with an converter? -- Yours truly (Atenciosamente),Rogério

Re: [OT?] Where can I find the Facelets taglib.xml file for htmLib ?

2006-07-20 Thread Mike Kienenberger
2. Created a htmLib.taglib.xml, which looks like this: (am using only the div tag) ?xml version=1.0? !DOCTYPE facelet-taglib PUBLIC -//Sun Microsystems, Inc.//DTD Facelet Taglib 1.0//EN http://java.sun.com/dtd/facelet-taglib_1_0.dtd; facelet-taglib namespace

Re: MyFaces Tomahawk ignores checkbox in dataList on first submission

2006-07-20 Thread Wally Hartshorn
I tried that, but got this error: "Attribute preserveRowStates invalid for tag dataList according to TLD". Apparently preserveRowStates is defined for t:dataTable, but not t:dataList. Any other ideas? (Incidentally, we've upgraded to Tomahawk 1.3, just in case, but have the same problem.) [EMAIL

one step delayed url

2006-07-20 Thread Jan Zach
Hi, don't you have anobody idea why url is laggin one step behind the actual url of the application? For example the app is in /page1.jsf with navigation control pointing to /page2.jsf. After firing the control the navigation properly handles the request and /page2.jsf is displayed, however, in

Re: Displaying data from a map

2006-07-20 Thread Mike Kienenberger
Note that you'll be safer using t:dataList or ui:repeat unless you're sure that these values will never change during the lifetime of the session. On 7/20/06, jsf ster [EMAIL PROTECTED] wrote: Hi Shibi, try this: c:forEach items=${sessionScope.request.details .entrySet} var=entry tr

Re: ALLOW_JAVASCRIPT

2006-07-20 Thread Matthias Wessendorf
If you set that parameter for false commandLink's wont't work any more. JSF / HTML require that JavaScript to submit a form by a link. also some of the custom features might not work, like sortable table... (commandSortHeader) -Matthias On 7/20/06, ragsta [EMAIL PROTECTED] wrote: hi all, a

Re: MyFaces Tomahawk ignores checkbox in dataList on first submission

2006-07-20 Thread Mike Kienenberger
On 7/20/06, Wally Hartshorn [EMAIL PROTECTED] wrote: I tried that, but got this error: Attribute preserveRowStates invalid for tag dataList according to TLD. Apparently preserveRowStates is defined for t:dataTable, but not t:dataList. Any other ideas? (Incidentally, we've upgraded to Tomahawk

Re: MyFaces Tomahawk ignores checkbox in dataList on first submission

2006-07-20 Thread Mike Kienenberger
On 7/20/06, Mike Kienenberger [EMAIL PROTECTED] wrote: On 7/20/06, Wally Hartshorn [EMAIL PROTECTED] wrote: I tried that, but got this error: Attribute preserveRowStates invalid for tag dataList according to TLD. Apparently preserveRowStates is defined for t:dataTable, but not t:dataList. Any

Re: ALLOW_JAVASCRIPT

2006-07-20 Thread Mike Kienenberger
On 7/20/06, ragsta [EMAIL PROTECTED] wrote: a simple question: does the ALLOW_JAVASCRIPT parameter work? Is very important for me that my site work even if the javascript is disabled on the user browser but turnig off the param outputlink doesn't work more...even if the primary goal of turning

RE: one step delayed url

2006-07-20 Thread David Friedman
Jan, That is the way myfaces works. If you want the URLs to match you'll probably have to add the redirect / tag/parameter/attribute to your navigation rules plus make sure that you put your beans in a scope where you can use them in the next request if you need them such as a flash scope (oops,

Yet Another dataTable Sorting Issue - setSort() not called?!

2006-07-20 Thread mjovanov
I am working with a very complex scenario using Tomahawk dataTable component, requiring paging (through sub-selects), sorting, dynamic columns (number and type)... I originally had the managed bean scoped to session but am now trying to change that to request since I am working with large data

Re: Sortable DataTable in Tomahawk...

2006-07-20 Thread mjovanov
I am experiencing a very similar issue; I am working with a very complex scenario using Tomahawk dataTable component, requiring paging (through sub-selects), sorting, dynamic columns (number and type)... I originally had the managed bean scoped to session but am now trying to change that to

RE: [OT] Logout Page

2006-07-20 Thread David Friedman
Just add a Servlet Filter class that checks for the session. When then come in each time, see if the cookie for the JSESSIONID matches the session using HttpServletRequest methods like request.isRequestedSessionIdFromCookie() or request.isRequestedSessionIdFromURL() WITH and

NoSuchMethodError: .... ViewHandler.initView

2006-07-20 Thread octoberdan
I'm trying to use Sun RI with tomahawk and sandbox, but I'm having the following problem: 17:18:37,748 INFO [STDOUT] Jul 20, 2006 5:18:37 PM com.sun.faces.lifecycle.LifecycleImpl phase WARNING: phase(RESTORE_VIEW(1),[EMAIL PROTECTED]) threw exception: java.lang.NullPointerException null

Re: NoSuchMethodError: .... ViewHandler.initView

2006-07-20 Thread octoberdan
I have the following Jars: common-annotations.jar commons-beanutils, collections, digester, lang, logging, validator el-api.jar el-rit.jar jsf-api jsf-facelets.jar jsf-impl.jar jsf-tlds.jar jstl.jar standard.jar myfaces-shared-tomahawk-2.0.4-snapshot.jar tomahawk-sandbox-1.1.4-snapshot.jar

Re: [OT] Logout Page

2006-07-20 Thread Dennis Gesker
My current plan was to add a bit of java script that would just redirect to a logout message after the the session timeout period was reached (say 30 minutes). I guess I was wondering if there was already a standard way that this kind of scenario should be handled kind of like error pages in

RE: one step delayed url

2006-07-20 Thread Jan Zach
Hi David, thanks for explaining. I was writing my own security filter (I did not want to use the tomcat one because I'm unable to set up pricipal programatically and probably it would not solve the problem) and this delay complicates the thing. If I would like to handle access restriction

myfaces works under OC4J 10.1.3, but not under OAS 10.1.3??

2006-07-20 Thread John Francis
Hello Myfaces users I've been able to get myfaces versions from 1.1.1 thru 1.1.3 to work on a variety of appservers without too much trouble, but am stumped as to why it works under OC4J standalone, but not under OC4J when integrated with the rest of OAS. The app seems to startup

Re: NoSuchMethodError: .... ViewHandler.initView

2006-07-20 Thread Matthias Wessendorf
never tried tomahawk for JSF 1.2 RI. sorry (initView() on ViewHandler) On 7/20/06, octoberdan [EMAIL PROTECTED] wrote: I have the following Jars: common-annotations.jar commons-beanutils, collections, digester, lang, logging, validator el-api.jar el-rit.jar jsf-api jsf-facelets.jar

Re: NoSuchMethodError: .... ViewHandler.initView

2006-07-20 Thread octoberdan
I'm going back to pure myfaces... it's a decision I'm sure that my doctor would agree with. -- View this message in context: http://www.nabble.com/NoSuchMethodError%3A--ViewHandler.initView-tf1977390.html#a5425439 Sent from the MyFaces - Users forum at Nabble.com.

Re: java.lang.NoSuchMethodError: .DummyFormUtils.isWriteDummyForm...

2006-07-20 Thread octoberdan
There were no jsf or myfaces jars or folders anywhere (asides for my deployed projects) and I'm still getting this problem. The current set of jars: tomahawk-sandbox, myfaces-shared-tomahawk, myfaces-api, myfaces-imp, latest nightlies commons collections, digester, lang, logging, and validator

Re: org.apache.myfaces.secret.CACHE

2006-07-20 Thread Dennis Byrne
I can't deal with this for a day or so, but look here. It appears as though the context parameters were recently changed. Matthias, do you have an ETA for the release? I would really like to get a handle on this first.

RE: one step delayed url

2006-07-20 Thread David Friedman
You could always check out the source code for the OSS project http://securityfilter.sourceforge.net to get you started. You might even be able to drop it in to quickly use it. If I had thought of it before I would have mentioned it. It is around 2 years old but I believe it is still relevant.

Re: org.apache.myfaces.secret.CACHE

2006-07-20 Thread Matthias Wessendorf
Hi Dennis, what is an ETA ? Thanks, Matthias On 7/20/06, Dennis Byrne [EMAIL PROTECTED] wrote: I can't deal with this for a day or so, but look here. It appears as though the context parameters were recently changed. Matthias, do you have an ETA for the release? I would really like to get

Re: NoSuchMethodError: .... ViewHandler.initView

2006-07-20 Thread Matthias Wessendorf
I'm going back to pure myfaces... it's a decision I'm sure that my doctor would agree with :) that sounds funny. So less pain with *pure* MyFaces ? Great to hear! -Matthias . -- View this message in context:

Re: [OT] Logout Page

2006-07-20 Thread Matthias Wessendorf
check http://irian.at/myfaces-sandbox/timedNotifier.jsf but I guess it is buggy :) On 7/20/06, Dennis Gesker [EMAIL PROTECTED] wrote: My current plan was to add a bit of java script that would just redirect to a logout message after the the session timeout period was reached (say 30 minutes).

query about f:facet

2006-07-20 Thread Alan Lewis
Hi I am trying to get a myfaces/tomahawk app. working, following the tree2 example. I have hit a problem i dont know how to correct. Running the page in local tomcat instance in eclipse (3.2) I get := java.lang.IllegalArgumentException: Unable to locate facet with the name: FirstBranch =:

Re: org.apache.myfaces.secret.CACHE

2006-07-20 Thread Dennis Byrne
Estimated Time Arrival. It just means when it will be done. This looks kind of non-trivial, so I may want to push back the release until some more tests get written for StateUtils. Dennis Byrne -Original Message- From: Matthias Wessendorf [mailto:[EMAIL PROTECTED] Sent: Thursday,

Re: org.apache.myfaces.secret.CACHE

2006-07-20 Thread Matthias Wessendorf
I am definitly +1 on waiting for that. 1.1.3 was already sort of a nightmare. When we again introduce crazy issues in 1.1.4 we never will have a *trustful* base, you know what I mean, right ? -Matthias On 7/20/06, Dennis Byrne [EMAIL PROTECTED] wrote: Estimated Time Arrival. It just means

Re: myfaces works under OC4J 10.1.3, but not under OAS 10.1.3??

2006-07-20 Thread Mike Kienenberger
See http://wiki.apache.org/myfaces/Installation_and_Configuration This entry is mine. Oracle Application Server Containers for J2EE 10g (10.1.2.0.0) There are other entries for other versions. On 7/20/06, John Francis [EMAIL PROTECTED] wrote: Hello Myfaces users I've been able to

getSession() thread-safe? User A can see user B's account

2006-07-20 Thread Dave
Is the following method thread-safe? After authenticated, a user info is put into session, whenlogout, callsession.invalidate();The way to get session: is it thread-safe? public static HttpSession getHttpSession(boolean create) { FacesContext context = FacesContext.getCurrentInstance();

Re: Can I set default f:convertDateTime dateStyle?

2006-07-20 Thread Matthias Wessendorf
You can extend JSF's DateTimeConverter, overwrite dateStyle. Then you must config it in your faces-config. like converter converter-for-class java.util.Date /converter-for-class converter-class com.mybiz.MyDateTimeConverter /converter-class /converter -Matthias On

Re: Errors using schedule

2006-07-20 Thread Matthias Wessendorf
can you add that to the jira? On 7/19/06, davy wang [EMAIL PROTECTED] wrote: i am using schedule and when i insert many entries in to the schedule i always got the errors below who knows why? --- Caused by:

RE: getSession() thread-safe? User A can see user B's account

2006-07-20 Thread Dhananjay Prasanna
A session is specific to a user-cookie, there is no way they can get crossed unless the cookies get crossed or somehow the sessions can interact with each other (say with the use of a static or threadlocal object). Plus you defeat the purpose of the framework by working directly with the

Re: Problems with tree2 in Windows,...

2006-07-20 Thread Matthias Wessendorf
@second problem; may I ask you to try a more recent version of MyFaces? Thanks, Matthias On 7/18/06, Johnny Gonzalez [EMAIL PROTECTED] wrote: Hello Everybody, I'm having two big problems using tree2 within windows, I have a page with 3 frames: Top-Frame: just a banner lef-frame: tree2