Re: [Trinidad] design components with using css files

2007-07-25 Thread Burghard Britzke
have a look at this http://www.oracle.com/technology/products/adf/adffaces/11/doc/skin- selectors.html Am 26.07.2007 um 08:09 schrieb Okan Çetin: Hi, I am trying to create styles with using css files. I am trouble with outputText component. This code is working : af | inputText::content {

[Trinidad] design components with using css files

2007-07-25 Thread Okan Çetin
Hi, I am trying to create styles with using css files. I am trouble with outputText component. This code is working : af | inputText::content { background-image: url(../images/output.PNG); } But same code for outputText is not working : af | outputText::content { background-imag

Dynamic tree - page should not refresh

2007-07-25 Thread bala_in4u
my page gets refreshed when i click a node, i jus want 2 know d node tht is selected and d page should not refresh on selectin a node, if d page gets submitted r refreshed, al d values turns null, which should not happen. kindly assist me on tis issue bala -- View this message in context: h

Re: [Trinidad] when it decides to render xhtml and when to render html 4.01?

2007-07-25 Thread Burghard Britzke
yes, I missed it. another thing is, that the rendered xhtml is not w3c conform. this may be the reason why I noticed a missfunction of the paging and sorting controls of the (see [Trinidad] sorting table, table range navigation...) if I let it render html 4.01 the table controls behave

Re: Trinidad Table question

2007-07-25 Thread Adam Winer
You can use forEach, but not iterator. (I'd really like to see support for iterator added by some intrepid developer.) Alternatively, you can use the binding attribute and manually add column children, which is a good fallback. -- Adam On 7/25/07, Ray Clough <[EMAIL PROTECTED]> wrote: Lookin

h:CommandLink Action Event not triggered after cluster restart

2007-07-25 Thread Duncan Simpson
Has anyone come across a problem with MyFaces appplications in clustered environments where action events are not queued when another cluster node picks up the next request for a given session? I'm having a problem with MyFaces 1.1.1 (and Tomahawk 1.1.1) in a Websphere 6.0 environment that is clu

Trinidad Table question

2007-07-25 Thread Ray Clough
Looking at the documentation of the Trinidad 'tr:table' component, it seems that each direct child of the tr:table must be a tr:column, you can't put an iterator or forEach tag there, which would allow an unspecified number of columns to be rendered. Is this correct? Is there some alternative so

Tomahawk DataScroller

2007-07-25 Thread Ray Clough
We have a t:dataList which contains a t:dataTable which contains a t:dataScroller. In one particular case, the table collection being iterated over contains 2 tables, the first of which needs to be 'pageable', and the second which should not. (The 1st table contains multiple pages, and the 2nd d

Re: [Trinidad] when it decides to render xhtml and when to render html 4.01?

2007-07-25 Thread Adam Winer
In Facelets, use contentType on f:view. In JSP, use the contentType directive. -- Adam On 7/25/07, Matthias Wessendorf <[EMAIL PROTECTED]> wrote: https://facelets.dev.java.net/source/browse/facelets/src/java/com/sun/facelets/tag/jsf/core/ViewHandler.java?rev=1.4&view=markup public ViewHandle

Re: [Trinidad] How to check if file exists using InputFile compon ent?

2007-07-25 Thread Adam Winer
This sounds like a bug - you should get setFile(null) called on your bean. -- Adam On 7/25/07, Piotr Pikusa <[EMAIL PROTECTED]> wrote: Unfotunately not. If the existing file is empty the getLength() method returns 0 too. So the problem isn't still solved. Matthias Wessendorf wrote: hi piot

Re: facelets 7 MyFaces error: javax/el/ELResolver

2007-07-25 Thread rlubke
I'd guess removing the el-api JAR from you webapp will do the trick. Wolf Benz-2 wrote: > > Hi all, > > I am trying to get MF & faclets to work together. > 1/ I followed the advice on the site, but I get this error: > > EVERE: Exception sending context initialized event to listener > instan

Re: t:schedule patch

2007-07-25 Thread Gus
Hi Michal, I tested the month view, and it works great. Thank you s much! BTW, I have two issues: 1). How to add Week Header (Mon, Tue, ...) on the top of month view. 2). Cursor display a pointer in FF, but it display "I" in IE. How to let cursor display a pointer in IE. Thanks again for yo

Re: t:schedule patch

2007-07-25 Thread Michał 'Gandalf' Stawicki
The week-view patch was applied today, so it should work with the next nightly-build. The month view patch was applied some time ago, so it should be working already. Check if you are really using the new jar and that you have added splitWeekend="false" attribute to . Let me know if you succeed,

facelets 7 MyFaces error: javax/el/ELResolver

2007-07-25 Thread Wolf Benz
Hi all, I am trying to get MF & faclets to work together. 1/ I followed the advice on the site, but I get this error: EVERE: Exception sending context initialized event to listener instance of class org.apache.myfaces.webapp.StartupServletContextListener java.lang.LinkageError: loader constr

[Trinidad] JS Resources

2007-07-25 Thread William Hoover
Since Trinidad version 1.0.1 I noticed that the js resources append the version "1_0_1" (prior versions append 11-m3) to the end of all of the js resources. I have a Trinidad extension jar that uses a js resource under "META-INF/adf/jsLibs/myJsResource.js" (I know this will be changing to trini

Re: [Trinidad] JSF components and div scroll position

2007-07-25 Thread Simon Lessard
Hello, It's probably not the problem, but do you have a default constructor in your component class? On 7/25/07, Bertrand, Shawn R <[EMAIL PROTECTED]> wrote: Sounds good - a very cool extension indeed. So for the time being, I'm trying to implement a custom component that extends CorePanel

Validators not being called.

2007-07-25 Thread sushma sharma
Hi, I have got this problem. My custom validator is not being called in only one of my JSPs. I have not set immediate to true and I tried to use a phase listener to check if it goes through PROCESS_VALIDATIONS phase and it does. But it would not call any validatiors. My field is not required, b

RE: [Trinidad] JSF components and div scroll position

2007-07-25 Thread Bertrand, Shawn R
Sounds good - a very cool extension indeed. So for the time being, I'm trying to implement a custom component that extends CorePanelGroupLayout with the ability to specify an onscroll handler. I have all the necessary parts (component, renderer, taglib, and entries, with first 3 subclassi

Re: type problems with t:selectOneMenu / f:selectItem

2007-07-25 Thread Marcus Beyer
Am 25.07.2007 um 16:56 schrieb Andrew Robinson: If you are using facelets no, I am not yet using facelets. But thank you anyway! I tried which works with entries like new SelectItem(2007,"2007") … OK :) >> Please see the WIKI as it is documented there. > > Where?

Re: Simple Question SelectOneMenu

2007-07-25 Thread daniel ccss
Got it I change all the Patient Objects for a SelectItem Object in a for for... SelectItem si = new SelectItem(Integer.valueOf( patient.getPatientId()),patient.getPatientDsc()); patients.set(i,si); On 7/25/07, daniel ccss <[EMAIL PROTECT

Re: Simple Question SelectOneMenu

2007-07-25 Thread daniel ccss
my mistake, an error on the arraylist name Now i recived this: javax.faces.FacesException: javax.servlet.ServletException: Collection referenced by UISelectItems with binding ... does not contain Objects of type SelectItem My arryaList have Objects of type Patient, and not SelectItem, which is

Re: Simple Question SelectOneMenu

2007-07-25 Thread daniel ccss
I got this exception: javax.faces.FacesException: javax.servlet.ServletException: Value binding 'null'of UISelectItems with component-path {Component-Path : [Class: org.ajax4jsf.framework.ajax.AjaxViewRoot,ViewId: /JSP/Seguridad/LoginPaso2.jsp][Class: javax.faces.component.html.HtmlForm,Id: _idJs

Re: Simple Question SelectOneMenu

2007-07-25 Thread Andrew Robinson
It would be the same type as what the converter returns from the selectOneMenu control. In your case, you will need to convert Strings to Integer so that the submitted value can be converted into the same type as your bean field. On 7/25/07, daniel ccss <[EMAIL PROTECTED]> wrote: Hi all, I have

Re: type problems with t:selectOneMenu / f:selectItem

2007-07-25 Thread Andrew Robinson
If you are using facelets, you could create EL casting functions. Example: public static Integer getInteger(Object value) { if (value == null) { return null; } else if (value instanceof Number) { return new Integer(((Number)value).intValue()); } else { try { return Integer.parseI

Re: HTML inside commandLink or -button

2007-07-25 Thread Andrew Robinson
Yes, that is why my example used commandLink On 7/25/07, phelix01 <[EMAIL PROTECTED]> wrote: With that the outputText is rendered outside. Seems that it is not supposed to work :) Andrew Robinson-5 wrote: > > > > This works just fine. But, note that what you are trying to do is > illegal.

Simple Question SelectOneMenu

2007-07-25 Thread daniel ccss
Hi all, I have a Simple question of SelectOneMenu In my bean I have an ArrayList with Patients, that is fill with an EJB method. Patient object have the patientId and the patientName Now how I can display it on a SelectOneMenu?? I searched and saw something like the following code, what I didn´t

Re: t:schedule patch

2007-07-25 Thread Gus
Hi Michal, Thank you very much for your modification. I tried to test it, but when I run the war from tomahawk-1.1.7-SNAPSHOT(20070724), it still displayed the old style. Did I download correctly? Thank you. Best regards, Gus Michał 'Gandalf' Stawicki wrote: > > I have uploaded a patch that

Re: JSF Portlet: NPE in DefaultViewHandlerSupport

2007-07-25 Thread Gert Vanthienen
L.S., Apparently, this exception is raised because DefaultViewHandlerSupport tries to work with getRequestServletPath(), which explicitly returns null in the PortletExternalContextImpl class. Happy to provide a fix for it, but I don't have clue where to start. Can anyone give me hint on how to

Re: [Trinidad] breadcrumbs

2007-07-25 Thread Kevin R. Gutch
Ok Thanks for the information! Simon Lessard wrote: Hello Kevin, You can also set the breadcrumb with a MenuModel object set as the breadcrumb's value and a nodeStamp facet. If you want to have the breadcrumb display the real navigation the user made you'll have to create your own implemen

tree2 - backing bean gets called twice

2007-07-25 Thread kewldude
Here is my tree2 code (it is rendered inside a component):

RE: [Trinidad] How to check if file exists using InputFile compon ent?

2007-07-25 Thread Piotr Pikusa
Unfotunately not. If the existing file is empty the getLength() method returns 0 too. So the problem isn't still solved. Matthias Wessendorf wrote: hi piotr, the UploadedFile interfaces has a getLength() method it's 0, when the file isn't there.. -M On 7/25/07, Piotr Pikusa <[EMAIL PROTECTE

Re: [Trinidad] breadcrumbs

2007-07-25 Thread Simon Lessard
Hello Kevin, You can also set the breadcrumb with a MenuModel object set as the breadcrumb's value and a nodeStamp facet. If you want to have the breadcrumb display the real navigation the user made you'll have to create your own implementation of MenuModel for that purpose and it will most likel

Re: [Trinidad] How to check if file exists using InputFile component?

2007-07-25 Thread Matthias Wessendorf
hi piotr, the UploadedFile interfaces has a getLength() method it's 0, when the file isn't there.. -M On 7/25/07, Piotr Pikusa <[EMAIL PROTECTED]> wrote: Hey! As it is mentioned in the subject I wonder if there is any possibility to check file existence. I got this code on my jsp page: [cod

Re: myFaces 1.2 problem

2007-07-25 Thread Wolf Benz
Exactly my thoughts. I'd feel very much for such approach.Simplicity to get you started. Full complexity when you need it. -Wolf On 7/25/07, Jesse Alexander (KSFD 121) <[EMAIL PROTECTED]> wrote: Or remove them from the "simple" sample and document them in the setup-document. The people for wh

[Trinidad] breadcrumbs

2007-07-25 Thread Kevin R. Gutch
Hello, Can the Trinidad breadcrumb component dynamically display a breadcrumb based on navigation or must a breadcrumb be hard coded? The example I have seen seems to only show tr:commandNavigationItem inside the breadcrumb component. action="guide.table"/>

How to disable Freemarker from current Sandbox?

2007-07-25 Thread Svilen Ivanov
I've just upgraded to latest Myfaces/Tomahawk/Sandbox and I noticed that when JSF application starts there is exception that Freemarker cannot be found. I don't intend to use it and I wish to disable support for freemarker and suppress this error. Here is the error: [System][ERROR] Class : org.a

RE: myFaces 1.2 problem

2007-07-25 Thread Jesse Alexander (KSFD 121)
Or remove them from the "simple" sample and document them in the setup-document. The people for whom the defaults are ok, and that anyway wouldn't read the docs, they have a seed which is simple. For the others... they usually read the doc... regards Alexander

Re: myFaces 1.2 problem

2007-07-25 Thread Werner Punz
ncheltsov schrieb: > By the way. Strange enough, but this with the jetty version solved the > problem :) > Well from what I could gather the past few days all the JEE5 stuff is a little bit flakey in some details, (I ran into an issue with JEE 5 servlet bean injection which worked on Tomcat but fa

Re: myFaces 1.2 problem

2007-07-25 Thread Martin Marinschek
You mean we should get those parameter out of the web.xml simple examples? Yes, that might be an option. I generally thought it helps people if they see the possibilities there are right in the examples. Maybe a marker "optional" would help. regards, Martin On 7/25/07, Wolf Benz <[EMAIL PROTECT

[Trinidad] How to check if file exists using InputFile component?

2007-07-25 Thread Piotr Pikusa
Hey! As it is mentioned in the subject I wonder if there is any possibility to check file existence. I got this code on my jsp page: [code] [/code] which bind the value to the file property. The type of file is UploadFile. In backingBean I have this code: [code] UploadFile file;

Re: [Trinidad] sorting table, table range navigation...

2007-07-25 Thread Burghard Britzke
This behaviour is found with firefox 2.0.0.5 on Mac OS X Am 25.07.2007 um 13:07 schrieb Burghard Britzke: may be this comes out of invalid xhtml I let w3c.org check the xhtml output and it found two errors that lets me suspect this. there are multible "required attribute "type" not specifie

Re: [Trinidad] sorting table, table range navigation...

2007-07-25 Thread Burghard Britzke
may be this comes out of invalid xhtml I let w3c.org check the xhtml output and it found two errors that lets me suspect this. there are multible "required attribute "type" not specified" for the

Re: myFaces 1.2 problem

2007-07-25 Thread Wolf Benz
That's true Martin - there is a lot defaulted. Yet, if it's almost all defaulted, I think there's a case for leaving the web.xml much cleaner. Certainly the obvious ones could be better left out, it makes the web.xmlonly more verbose. It gives people the impression there's a lot to configure befor

Re: HTML inside commandLink or -button

2007-07-25 Thread phelix01
Thanks, for the answers. Extending the renderer would be too much effort. I will solve it another way. Sochor Zdeněk wrote: > > Hi, > commandButton tag is rendered as html > element, which must not contain inner elements. (both definitions from > respective specs for JSF, HTML 4) > If y

Re: type problems with t:selectOneMenu / f:selectItem

2007-07-25 Thread Svilen Ivanov
Marcus Beyer wrote: [...] Please see the WIKI as it is documented there. Where? ? I cannot find anything about it. Check this wiki page: http://wiki.apache.org/myfaces/Tomahawk_1%2e1%2e4_to_1%2e1%2e5 Regards -- Svilen Ivanov http://svilen-online.blogspot.c

Re: [Trinidad] sorting table, table range navigation...

2007-07-25 Thread Burghard Britzke
did you test if this page works fine for you if you surround your in template.xhtml with a element? for me it does not! if I force xhtml output for my pages the trinidad table paging and sorting controls does not work properly. can anybody repeat this observation? Am 21.07.2007 um 12:2

Re: HTML inside commandLink or -button

2007-07-25 Thread Sochor Zdeněk
Hi, commandButton tag is rendered as html element, which must not contain inner elements. (both definitions from respective specs for JSF, HTML 4) If you want to have inner tags in buttons, you have to extend renderer for button and rewrite its encoding to use html element along with en

Re: type problems with t:selectOneMenu / f:selectItem

2007-07-25 Thread Marcus Beyer
Hello Andrew, thanks for answering! item value must be the exact same type as the backing bean getter/setter. A converter will not help! In your example, itemValue is a string (use EL to use other types) I tried this without success: , so therefore getYear/se

Re: myFaces 1.2 problem

2007-07-25 Thread Martin Marinschek
I believe your statement is entirely wrong. None of the MyFaces-web.xml parameter is necessary - they are all optional, with default values if they are not provided. For MyFaces - the implementation - you got nothing to configure additionally in comparison to the RI. The StartupServletContextLis

Re: myFaces 1.2 problem

2007-07-25 Thread Wolf Benz
Perhaps I better started a new thread on this but as this is a good example: Wouldn't it be a good idea for much more and aggressive defaulting from MyFaces? Take the web.xml: merely using myfaces makes the poor thing go through the roof! There are a few Context pars you can't do without but... th

JSF Portlet: NPE in DefaultViewHandlerSupport

2007-07-25 Thread Gert Vanthienen
L.S., I'm trying to embed a JSF portlet in a web application using the Pluto driver implementation. Does anyone recognize the exception below? How can I resolve it? Thank you for any help, Gert java.lang.NullPointerException at org.apache.myfaces.application.DefaultViewHandlerSuppor

Re: myFaces 1.2 problem

2007-07-25 Thread Martin Marinschek
Yeah, as I said - with the workarounds, and after clearing up lib-directory, work-directory and temp-directory, it generally works for me as well. regards, Martin On 7/25/07, Matthias Wessendorf <[EMAIL PROTECTED]> wrote: tomcat 6.x works for me as well. On 7/25/07, Matthias Wessendorf <[EM

Re: HTML inside commandLink or -button

2007-07-25 Thread phelix01
With that the outputText is rendered outside. Seems that it is not supposed to work :) Andrew Robinson-5 wrote: > > > > This works just fine. But, note that what you are trying to do is > illegal. It is not valid HTML to have a DIV tag inside of an INPUT > element. > > If you want an HTM

Re: [Trinidad] when it decides to render xhtml and when to render html 4.01?

2007-07-25 Thread Matthias Wessendorf
https://facelets.dev.java.net/source/browse/facelets/src/java/com/sun/facelets/tag/jsf/core/ViewHandler.java?rev=1.4&view=markup public ViewHandler(TagConfig config) { super(config); ... this.encoding = this.getAttribute("encoding"); ... } ... if (this.contentType != null) {

Re: [Trinidad] Web services data

2007-07-25 Thread Matthias Wessendorf
I think, the design should be the following. connect your web-service (see CXF, XFire or Axis doc) and use the result data (like an array of Workers) to display all workers inside a table. Not sure on the specific relationship to Trinidad here. Perhaps the question is more, how to access your we

Re: [Trinidad] when it decides to render xhtml and when to render html 4.01?

2007-07-25 Thread Burghard Britzke
but it is true: http://java.sun.com/jsf/core"; xmlns:tr="http://myfaces.apache.org/trinidad";> renders as http://java.sun.com/jsf/core"; xmlns:tr="http://myfaces.apache.org/trinidad";> renders as does not have an attribute contentType. for the RI. does it have such

RE: [Trinidad] Web services data

2007-07-25 Thread Darren McEntee
Hi Guys, Has anyone info on this? I'm interested in getting info how to get Trinidad retrieving and displaying data from web services. I would like to hook up Trinidad components with these external web services. Is there a public example I could see? I'd appreciate anything on this.

Re: myFaces 1.2 problem

2007-07-25 Thread Matthias Wessendorf
tomcat 6.x works for me as well. On 7/25/07, Matthias Wessendorf <[EMAIL PROTECTED]> wrote: the mentioned jetty version is fine ;-) On 7/25/07, Martin Marinschek <[EMAIL PROTECTED]> wrote: > Hi guys, > > the StartupServletContextListener should automatically be run by the servlet > container w

Re: myFaces 1.2 problem

2007-07-25 Thread Matthias Wessendorf
the mentioned jetty version is fine ;-) On 7/25/07, Martin Marinschek <[EMAIL PROTECTED]> wrote: Hi guys, the StartupServletContextListener should automatically be run by the servlet container when it parses the tld. What you can do as a workaround: - declare the context-listener as explained

Re: myFaces 1.2 problem

2007-07-25 Thread Martin Marinschek
Hi guys, the StartupServletContextListener should automatically be run by the servlet container when it parses the tld. What you can do as a workaround: - declare the context-listener as explained in the stacktrace in your web.xml - use the MyFacesServlet instead of the FacesServlet In any cas

Re: myFaces 1.2 problem

2007-07-25 Thread ncheltsov
By the way. Strange enough, but this with the jetty version solved the problem :) Matthias Wessendorf wrote: can you try this jetty version: 6.1.2rc0 On 7/24/07, ncheltsov <[EMAIL PROTECTED]> wrote: Hi, I am trying to use myfaces 1.2 and I have the following error: No Factories configu

Re: [Trinidad] when it decides to render xhtml and when to render html 4.01?

2007-07-25 Thread Burghard Britzke
does not have an attribute contentType. for the RI. does it have such an attribute in MyFaces? Am 23.07.2007 um 23:23 schrieb noah: I can confirm that it does. seems to be a necessity if you want Dojo to work. On 7/23/07, Adam Winer <[EMAIL PROTECTED]> wrote: In Facelets, setting contentT

Re: myFaces 1.2 problem

2007-07-25 Thread Wolf Benz
Indeed - and this is what made things already better for me - before (2.5 & 1.2 versions), I had weird startup errors. --> for the time being: better stick with versions 2.4 & 1.1 :-)-Wolf On 7/25/07, ncheltsov <[EMAIL PROTECTED]> wrote: Hi, as much as I see, both documents are, like you say:

Re: myFaces 1.2 problem

2007-07-25 Thread ncheltsov
Hi, as much as I see, both documents are, like you say: 2.4 & 1.1? Wolf Benz wrote: Sorry - Look at the top of the 2 docs you cite: it refers to the version the document conforms to. At first I thought: I'm building a JSF1.2 app so I state: servlet v. 2.5(web.xml) & JSF-version 1.2 (in faces-