problems writing new jsf component ..

2006-06-13 Thread Hansjörg Meuschel
Hi, I'm currently writing on a component and I need to pass a TITLE attribute string into it. My problem: everything works fine except one thing: if I want to use bundles (or any other bean values) for the TITLE attribute, the title is not set in my UI Class. What's wrong here, how can I

new component proposal

2006-06-13 Thread Hansjörg Meuschel
Hello guys, I'm currently needing a component serving me any raw content, something like tool:serveContent data=#{Bean.rawData} contentType=image/png/ Does anybody know if there is such a component? Would be very useful for example to dynamically generate images, pdf etc. If there is no such

probems getting the remote ip address in a bean

2006-06-01 Thread Hansjörg Meuschel
Hello, in a bean, how can I extract the IP adress of a user? I tried HttpServletRequest request = (HttpServletRequest)((ServletContext) FacesContext.getCurrentInstance().getExternalContext().getRequest()); String IP = request.getRemoteHost(); but whatever I did I got

Re: probems getting the remote ip address in a bean

2006-06-01 Thread Hansjörg Meuschel
Thank you Matthias! Greets, Hans Matthias Wessendorf wrote: Why are you casting against ServletContext? HttpServletReq should be enough. com.sun.faces. is code from the RI, shipped under the sun ;-) Regards, Matthias On 6/1/06, Hansjörg Meuschel [EMAIL PROTECTED] wrote: Hello, in a bean

What tool do you use for creating diagrams (database, beans, 3-layer architecture, etc.)

2006-05-31 Thread Hansjörg Meuschel
Hello, can anybody give me a hint for a tool to create diagrams of my 3-layer architecture including beans, databases, etc.? - Viso does not model beans etc.

Re: What tool do you use for creating diagrams (database, beans, 3-layer architecture, etc.)

2006-05-31 Thread Hansjörg Meuschel
on the market (I used it for .NET design and had no language issues). -Andrew [1] http://www.magicdraw.com/ On 5/31/06, Hansjörg Meuschel [EMAIL PROTECTED] wrote: Hello, can anybody give me a hint for a tool to create diagrams of my 3-layer architecture including beans, databases, etc.? - Viso does

conditional file include %@ include file=...

2006-05-29 Thread Hansjörg Meuschel
Hello, is it possible to determine in what page an included jsp file is put? I want to have something like %@ include file=/pdca/include/all_page_headers.jsp container=page1 % ... in all_page_headers.jsp: (pseudocode) if (page1): h:panelGrid... ... if (page2): h:panelGroup... ...

css problem with default input type=text

2006-05-24 Thread Hansjörg Meuschel
Hello, how do I define a default background color for text input elements only(!) in css? Defining something like input { background-color: #EFEFEF; } makes all buttons look ugly so I'm searching for a way to define this for text type inputs only... any ideas? greets hans

Re: css problem with default input type=text

2006-05-24 Thread Hansjörg Meuschel
requirement a little bit like yours. In html, input type=text class=mytext ... In CSS, input.mytext { background-color: #EFEFEF; } Hope it helps. Zhi - Original Message - From: Hansjörg Meuschel [EMAIL PROTECTED] To: MyFaces Discussion users@myfaces.apache.org Sent: Wednesday, May

Re: css problem with default input type=text

2006-05-24 Thread Hansjörg Meuschel
thank you david - works great David Friedman wrote: Try this: input[type=text] { color: #EFEFEF; } input[type=submit] { color: yellow; } Regards, David -Original Message- From: Hansjörg Meuschel [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 24, 2006 2:26 AM To: MyFaces Discussion

inputcalendar - date conversion bug found

2006-05-24 Thread Hansjörg Meuschel
Hi, I'm facing the following problem: t:inputCalendar id=calendar value=#{toDoBean.deadlineDate} renderPopupButtonAsImage=true renderAsPopup=true popupDateFormat =#{bundle.dateformat} / where bundle.dateformat = dd/MM/ -- When I enter a date (using either the popup or the

Re: Alternative to tree2

2006-05-24 Thread Hansjörg Meuschel
Hi you could take a look at http://www.ourfaces.net or http://www.jamesholmes.com/JavaServerFaces/#software-comp (a list of jsf comp.) I'm not sure if there is a tree meeting your requirements ... maybe this helps... greets hans Hans Sowa wrote: Hi all We had a lot of problems with the

strange https problem using tomcat5

2006-05-19 Thread Hansjörg Meuschel
Hi guys, i have a problem with https on tomcat5: accessing https://localhost:8080 works fine, using http://localhost:8080 prompts me a download of a crypted file ?! Instead, I want to have some kind of redirection to https - how do you do this? Thanks for answers, regards Hans

Re: strange https problem using tomcat5

2006-05-19 Thread Hansjörg Meuschel
Thanks for your answers, i now have two connectors, one for http (port 8080) and one for https (port 8081)! Hans Mirek B. wrote: Hansjörg Meuschel wrote: Hi guys, i have a problem with https on tomcat5: accessing http://localhost:8080 works fine, using http://localhost:8080 prompts me

escaping '\n' in bundle -- ReducedHTMLParser warning

2006-05-05 Thread Hansjörg Meuschel
Hi folks, I want to store messages for javascript alert(); within my bundle files. Sometimes, these messages need to break into a new line (using \n). How do I store this in my bundle file? i tried key=messagepart1\nmessagepart2 - does not work... key=messagepart1\\nmessagepart2 - works, but

Re: Prevent CommandLink from submitting a form

2006-02-01 Thread Hansjörg Meuschel
Hi, leave out the javascript: and it will work fine: x:commandLink onclick=showPopup('popupConfirmReview');return false; ... Jecker Frédéric (LFR) wrote: Thanks for this hint but it doesn't work I've tried x:commandLink onclick=javascript:showPopup('popupConfirmReview');return false; And

Re: how do I prevent nervous users starting actions more than once???

2006-01-25 Thread Hansjörg Meuschel
Hi Steffen, thanks for this great information, the filter works perfectly and solved one of my biggest problems with my application ! Steffen Hankiewicz wrote: Hi Hansjörg, how can I prevent impatient users of my webapp to perform actions twice by clicking serveral times on the

Re: Custom table component.

2006-01-24 Thread Hansjörg Meuschel
Hi, try the af:table from oracle adf http://www.oracle.com/technology/products/jdev/htdocs/partners/addins/exchange/jsf/doc/tagdoc/core/imageIndex.html (Attention: the component is not available for free for production environements - maybe in the near future when adf is merged into myfaces

Re: File upload with ADF not working

2006-01-24 Thread Hansjörg Meuschel
Hi, you probably have to copy the apache commons fileupload jar into your application - available from apache org ... Julien Martin wrote: Hello, I am trying to get af:inputFile to work. It does not upload any file in the directory I specified here: context-param !-- directory to store

Re: Problems using MyFaces with ADF Faces..

2006-01-24 Thread Hansjörg Meuschel
Hi, you probably forgot to copy the adf share library into the application??! [EMAIL PROTECTED] wrote: Hi all, I am trying to use the ADF Faces with MyFaces. To install the ADF Faces I strictly followed the description at

Re: wildcard navigation

2006-01-24 Thread Hansjörg Meuschel
/navigation-case /navigation-rule but it do not work at all... the page in the wildcard scope just reload instead of routing to the right view-id any clues? thanks -- ::SammyRulez:: http://sammyprojectz.blogspot.com -- Mit freundlichen Grüßen, -- Hansjörg Meuschel

Re: Custom validator.

2006-01-24 Thread Hansjörg Meuschel
Hi, I did that the following way: on submit of the form i call a javascript function submitValues() which stores all values of the forms input components into a hidden input value (for example as a comma separated list), which is located in annother form. after submitting that form all data

Re: Panel Tabs Displayed as buttons

2006-01-24 Thread Hansjörg Meuschel
You have to install the myfaces filter to use file uploads ... and the stylesheet! (otherwise the stylesheet is not put into your page). The error you get means you did not install the apache commons fileupload - download the jar from apache.org, put it in your lib dir and install the myfaces

Re: File upload with ADF not working

2006-01-24 Thread Hansjörg Meuschel
Hi Julien, the specified directory is a tempdir, which might be used to temporarily store large files only. The usual manner to retrieve a file is via a value binding in a bean. look at

how do I prevent nervous users starting actions more than once???

2006-01-24 Thread Hansjörg Meuschel
Hi, how can I prevent impatient users of my webapp to perform actions twice by clicking serveral times on the commandbuttons ?? - I've tried a (client-side) solution like the following, but that does not seem to be too good :-) Is there any better possibility? Greets Hans --

Re: Full path to webapp?

2006-01-24 Thread Hansjörg Meuschel
cet e-mail a ete controle par l'anti-virus mail. Aucun virus connu a ce jour par nos services n'a ete detecte. -- Mit freundlichen Grüßen, -- Hansjörg Meuschel Martin-Treu-Str. 40 90403 Nürnberg Tel. +49 (0)911 274 278 1 mobil: +49 (1)60 725 3479 mail

iText: how to create an outer table border ??

2006-01-22 Thread Hansjörg Meuschel
Hi, I know this is the myfaces forum but perhaps sb. of you has an idea about this issue: How can I add an outer border to a table (here: rowDescriptionTable) in iText? I have a big table with several rows, all cells in the first column should contain two texts vertically aligned. So I

Re: Myfaces and javascript

2006-01-22 Thread Hansjörg Meuschel
Hi, I have something like f:verbatim script language='text/javascript' src='%=request.getContextPath()%/path/to/your/script.js'/ /f:verbatim or link rel=stylesheet type=text/css href=%=request.getContextPath()%/myfaces.css / For localized javascript popup messages I have for example

Re: easiest way to get a jsf page as pdf download

2006-01-17 Thread Hansjörg Meuschel
generated (such as an HTTP redirect), and that the request processing lifecycle should be terminated as soon as the current phase is completed. /from_java_doc and yes... it's getResponseComplete() instead of isResponseComplete() HTH, Matthias On 1/15/06, Hansjörg Meuschel [EMAIL PROTECTED] wrote: Hi

Re: easiest way to get a jsf page as pdf download

2006-01-17 Thread Hansjörg Meuschel
but it's manual. The FOP project is here: http://xmlgraphics.apache.org/fop/ Regards, Simon On Tue, 2006-01-17 at 09:58 +0100, Hansjörg Meuschel wrote: Hi Matthias, thanks for your help... a friend of mine also recommended FOP in between. I took a look at the api but it seems to me

Re: easiest way to get a jsf page as pdf download

2006-01-17 Thread Hansjörg Meuschel
Wow, birt looks interesting too! I'm actually using Eclipse for development... thanks! Werner Punz wrote: Hansjörg Meuschel schrieb: Hi folks, does anybody know what is the easiest way to get a jsf page as pdf download? Are there any libraries available for free? standard reporting

Re: easiest way to get a jsf page as pdf download

2006-01-17 Thread Hansjörg Meuschel
I'm just looking ... and getting convinced :-) Simon Kitching wrote: If you want to specifically generate a report, another option to look at is jasper: http://jasperreports.sourceforge.net/ On Tue, 2006-01-17 at 10:30 +0100, Hansjörg Meuschel wrote: Hi again, actually what I want

Re: character encoding

2006-01-15 Thread Hansjörg Meuschel
Hi, just to complete the posting: i found a solution for this: now I write to a bufferedwriter(new outputstreamwriter(response.getoutputstream())) - this does it :-) Hi, a simple question but I can't find the answer - How can I convert my data to utf-8 encoding?? I have an

easiest way to get a jsf page as pdf download

2006-01-15 Thread Hansjörg Meuschel
Hi folks, does anybody know what is the easiest way to get a jsf page as pdf download? Are there any libraries available for free?

character encoding

2006-01-14 Thread Hansjörg Meuschel
Hi, a simple question but I can't find the answer - How can I convert my data to utf-8 encoding?? I have an outputstream (out of JAXB) and I want to write it as servlet response: FacesContext faces = FacesContext.getCurrentInstance(); HttpServletResponse response

commandlink/button client-id bug

2006-01-12 Thread Hansjörg Meuschel
Hi guys, the following jsf code: h:form id=theForm h:dataTable value=#{myBean.allXYBeans} var=myBeanXYBean id=table1 h:column h:dataTable value=#{myBeanXYBean.allZBeans} var=ZBean id=table2 h:column h:input type=text value=#{ZBean.username} id=username/ h:commandButton value=SAVE

Re: Urgent: Collapsible Panel with data table not working IllegalStateException: Client-id : _id3ToggleCollapsed

2006-01-10 Thread Hansjörg Meuschel
(Thread.java:595) Best Regards, *Saurabh Raisinghaney * -- Mit freundlichen Grüßen, -- Hansjörg Meuschel Martin-Treu-Str. 40 90403 Nürnberg Tel. +49 (0)911 274 278 1 mobil: +49 (1)60 725 3479 mail: [EMAIL PROTECTED] http

Re: Urgent: Collapsible Panel with data table not working IllegalStateException: Client-id : _id3ToggleCollapsed

2006-01-10 Thread Hansjörg Meuschel
Simon Kitching wrote: Hansjörg Meuschel wrote: Hi, the problem is the surrounding t:datatable: Children of this component all get the same id as the component does not create new objects for each iteration. That's just not true. Both the h:dataTable and t:dataTable components use

Re: Urgent: Collapsible Panel with data table not working IllegalStateException: Client-id : _id3ToggleCollapsed

2006-01-10 Thread Hansjörg Meuschel
Simon Kitching wrote: Hansjörg Meuschel wrote: Simon Kitching wrote: Hansjörg Meuschel wrote: Hi, the problem is the surrounding t:datatable: Children of this component all get the same id as the component does not create new objects for each iteration. That's just not true. Both

tree2 - onclick node description expand/collapse node

2005-12-11 Thread Hansjörg Meuschel
Hi, a simple question about the tree2: what action do I have to call to toggle the expand state of a tree node when clicking on the treenode description I have something like t:tree2 binding=#{targetsTreeBaker.tree} value=#{targetsTreeBaker.expandedTreeData}

sessionhandling question

2005-12-06 Thread Hansjörg Meuschel
Hi there, I've a very special question: I need to make sure that, after going to an overview page, the user can't go back to the previous pages and perform actions there. I thought about invalidating the user's session and assigning a new one (I've a filter which redirects invalid sessions

WARN ReducedHTMLParser:558 - Invalid tag found: unexpected input while looking for attr name or '/' at line 6091

2005-11-24 Thread Hansjörg Meuschel
Hi, since I updated to the last nightly built, i get the following error on almost every page: WARN ReducedHTMLParser:558 - Invalid tag found: unexpected input while looking for attr name or '/' at line 6091 What's the reason for this?? Is there a problem with the last built? see you guys!

Re: WARN ReducedHTMLParser:558 - Invalid tag found: unexpected input while looking for attr name or '/' at line 6091

2005-11-24 Thread Hansjörg Meuschel
Hello Simon, I'll try tomorrow and will post results! Thanks for your reply! Hans Simon Kitching wrote: Hi, Hansjörg Meuschel wrote: Hi, since I updated to the last nightly built, i get the following error on almost every page: WARN ReducedHTMLParser:558 - Invalid tag found: unexpected

jscookmenu bug in current nightly built?

2005-11-23 Thread Hansjörg Meuschel
Hi, the current nightliy built version of myfaces (http://cvs.apache.org/builds/myfaces/nightly/myfaces-20051122.zip) does not take actions for the jscookmenu: clicking such an item results in an Error calling action method of component with id _id45 exception! The last release also has this

Re: best way to turn off the UnknownHostException on tomcat startup

2005-11-23 Thread Hansjörg Meuschel
-resolver. On 11/23/05, Hansjörg Meuschel [EMAIL PROTECTED] wrote: Hi, since I've copied the myfaces jars into my project, I get an unknownhostexception (java.sun.com) each time starting my tomcat when I'm not connected to the internet. How can I turn of the schema validation or is there annother

problem using actions in jscookmenu #

2005-11-22 Thread Hansjörg Meuschel
, the only working way so far is using navigation rules?! Any ideas? Thanks, Hans -- Mit freundlichen Grüßen, Hansjörg Meuschel Hansjörg Meuschel Martin-Treu-Straße 40 90403 Nürnberg / Seebald Tel:+49 (0)911 / 274 278 1 Mobil: +49 (0)160 / 7253 479 Mail: + [EMAIL PROTECTED] Web: http

t:datatable and t:datalist child component ID bug!

2005-11-13 Thread Hansjörg Meuschel
Hi, both components seem to have a problem with the IDs for their children (here: id of the form is the same for each iteration!) I just wonder if the problem could be that I'm currently using jsf 1.0 with the myfaces components? t:datalist... h:form h:inputText.../ /h:form /t:datalist

Re: myFaces and Oracle ADF merging in the future??

2005-11-12 Thread Hansjörg Meuschel
appservers (or equal 5k to get the appserver :) are a little expensive, don't you think? Cheers Rafael Mauricio Nami 2005/11/10, Hansjörg Meuschel [EMAIL PROTECTED]: Hi, a colleague of mine told me that the myFaces project and the Oracle ADF project are planned to get merged

datalist component - problem when iterating components with facet inside!?

2005-11-10 Thread Hansjörg Meuschel
Hi, I've a problem with the datalist component: The Code: t:dataList value=#{projectBenefitBean.data11} var=benefit x:popup ... h:outputText value=#{benefit.description}/ f:facet name=popup h:outputText value=#{benefit.description} / /f:facet /x:popup /t:dataList

Re: datalist component - problem when iterating components with facet inside!?

2005-11-10 Thread Hansjörg Meuschel
case I was having two dataTables with the same id. The second dataTable is wrong in the same way that you described. Hope this help! Regards Yee -Original Message- From: Hansjörg Meuschel [mailto:[EMAIL PROTECTED] Sent: Thursday, 10 November 2005 5:07 PM To: users@myfaces.apache.org

Re: datalist component - problem when iterating components with facet inside!?

2005-11-10 Thread Hansjörg Meuschel
with EL foreach - without success. Does anybody have a workarround for that issue? Thank you... Hans -- Mit freundlichen Grüßen, -- Hansjörg Meuschel Martin-Treu-Str. 40 90403 Nürnberg Tel. +49 (0)911 274 278 1 mobil: +49 (1)60 725 3479 mail: [EMAIL

Re: datalist component - problem when iterating components with facet inside!?

2005-11-10 Thread Hansjörg Meuschel
Hi, I'm using the myfaces implementation ... Martin Marinschek wrote: Do you use the RI or MyFaces as implementation? regards, Martin On 11/10/05, Hansjörg Meuschel [EMAIL PROTECTED] wrote: Yea thats it... generated popup-ids with h:datatable '_id70:HANSJ:0:_id107' '_id70:HANSJ:1

myFaces and Oracle ADF merging in the future??

2005-11-10 Thread Hansjörg Meuschel
Hi, a colleague of mine told me that the myFaces project and the Oracle ADF project are planned to get merged in the future?! Does anybody know more about that or is it rubbish? I started developping with ADF - it's a great implementation but free for prototyping only Greets, Hans