AW: InputCalendar does not work as popup

2005-10-07 Thread Daniel.Loebbe
Hi Martin,

nice to hear. The onchange attribute already exists, like all the other 
javascript related ones. But the submit is not executed right now if one select 
a new date. Although I do not know whether any kind of javascript is executed. 
I did not test that yet.

Bye, Daniel



-Ursprüngliche Nachricht-
Von: Martin Marinschek [mailto:[EMAIL PROTECTED] 
Gesendet: Donnerstag, 6. Oktober 2005 17:48
An: MyFaces Discussion
Betreff: Re: InputCalendar does not work as popup

Bug # 1 and 2 are already fixed in the current head version

#3  4 are about to be fixed.

onchange should exist as an attribute in inputCalendar, right?

regards,

Martin

On 10/6/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:



 Hi,

 I am having trouble using the input calendar component as popup. The effects
 described below can be reproduced with version 1.1.0 in our production
 environment (OC4J, Java 1.5) and in several Tomcat versions (4.1, 5.0, 5.1,
 deploying myfaces examples) using IE, Firefox and Opera.



 When the Button is clicked and the popup opens, the icons / symbols for
 switching the month back and forward (the arrows) are rendered only when
 the mouse has been moved over them.
 Selecting a month from the dropdown list works fine, selecting a year from
 the dropdown list simply closes the complete popup, no new year is selected.
 The Today is pattern cannot be localized / customized. Same to the week
 number (Wk in English).
 The Click to select pattern in the status bar of the browser cannot be
 localized / customized
 Maybe I am blind, but I am not able to make a submit after selecting a new
 value e.g. by executing submit(); onchange.



 As I expect the calendar component to have been tested and for others it
 works properly, I have no idea why it does not here. Any ideas?



 Thanks, Daniel


--

http://www.irian.at
Your JSF powerhouse -
JSF Trainings in English and German


Re: RE: tree2 leaf nodes always have navigation link in server side togg

2005-10-07 Thread Nicolas Viollin (sent by Nabble.com)

I have already checked, and isLeaf in thoses cases gives a true result.
This bug is present in the simple project from the myfaces-examples when you choose tree2 server side toggle.

nicolas

Sent from the MyFaces - Users forum at Nabble.com.


inputDate

2005-10-07 Thread shed
Hello!

Is it possible that if i use the component inputDate type=time that it shows 
only hours and minutes? I don't want to show the user the seconds.

Thanks!
regards,
Conny

--
Ein Service von http://www.sms.at



Combining components

2005-10-07 Thread Udo Schnurpfeil

I've found a way to combine components to new tags.

There was already some discussion on a similar topic:
http://www.mail-archive.com/users@myfaces.apache.org/msg06438.html
http://www.mail-archive.com/users@myfaces.apache.org/msg06369.html

My first approach was to write a tag file (JSP 2.0) like
(this is a non-working short-sample):

file: inWithLabel.tag

%@ attribute name=label %
%@ attribute name=value %
%@ attribute name=binding %

t:panel
  t:label value=${label}
  t:in value=${value} binding=${binding}
/t:panel

The first tests with label and value run well.
But I found a big problem: If I want more advanced features like 
binding I have a problem: If the binding is not set the container will 
call setBinding() with an empty string, which  is not  allowed.


So I write the Tag by hand:
int doStartTag() {
  PanelTag panel = new PanelTag();
  panel.setPageContext(pageContext);
  panel.doStartTag();
  ...
}
You can see a real sample here:
http://www.atanion.net/repos/asf/tobago/trunk/core/src/main/org/apache/myfaces/tobago/taglib/extension/InExtensionTag.java

advantage of tag as java class:
  * Works with JSP 1.2
  * not need rtexpression (JSP EL) inside of JSF tags, which is in
common not allowed.
  * setter only will be called, if the value != null

advantage of tag file:
  * the tag file looks much more tidy

Regards,

Udo


Re: inputDate

2005-10-07 Thread Volker Weber
Hi,

see

http://www.mail-archive.com/users@myfaces.apache.org/msg05715.html

maybe file an jira issue.

regards
 Volker

[EMAIL PROTECTED] wrote:
 Hello!
 
 Is it possible that if i use the component inputDate type=time that it 
 shows only hours and minutes? I don't want to show the user the seconds.
 
 Thanks!
 regards,
 Conny
 
 --
 Ein Service von http://www.sms.at
 

-- 
Don't answer to From: address!
Mail to this account are droped if not recieved via mailinglist.
To contact me direct create the mail address by
concatenating my forename to my senders domain.


[tobago] new TagLib tobago-extension.tld

2005-10-07 Thread Udo Schnurpfeil

Hello,

I've started to split the tobago.tld into 2 pieces:
one for single components (tobago.tld may be renamed to 
tobago-component.tld in the future)

and one for combined components (tobago-extension.tld) which will
contain e.g. tx:in which is an in-tag with a label-tag. Internally the 
tx components are not UIComponentTags, but create a combination of tags 
derived from UIComponentTag.

The implementation based on a technique which I've described here:
http://www.mail-archive.com/users%40myfaces.apache.org/msg09930.html

Migration:
1. Pages which use t:in with a label attribute:
   Please replace t:in by tx:in
   and add this declaration on the top of the page:
   %@ taglib uri=http://www.atanion.com/tobago/extension;
   prefix=tx %
2. Pages which use t:in without a label attribute:
   Nothing to do.

Regards

Udo

--
Dipl.-Math. Udo Schnurpfeil - Executive Officer - Atanion GmbH
Software Development - Bismarckstraße 13 - 26122 Oldenburg - Germany
phone +49 441 4082310 - mobile +49 174 9784746 - fax +49 441 4082333
mailto:[EMAIL PROTECTED] - http://www.atanion.com



Re: [tobago] new TagLib tobago-extension.tld

2005-10-07 Thread Udo Schnurpfeil

P.S.

tx:in label=foo value=bar/

is the same as

t:panel
  f:facet name=layout
t:gridLayout columns=fixed;*/
  /f:facet
  t:label value=foo /
  t:in value=bar/
/t:panel

but shorter, of course.

Udo

Udo Schnurpfeil wrote:


Hello,

I've started to split the tobago.tld into 2 pieces:
one for single components (tobago.tld may be renamed to 
tobago-component.tld in the future)

and one for combined components (tobago-extension.tld) which will
contain e.g. tx:in which is an in-tag with a label-tag. Internally the 
tx components are not UIComponentTags, but create a combination of tags 
derived from UIComponentTag.

The implementation based on a technique which I've described here:
http://www.mail-archive.com/users%40myfaces.apache.org/msg09930.html

Migration:
1. Pages which use t:in with a label attribute:
   Please replace t:in by tx:in
   and add this declaration on the top of the page:
   %@ taglib uri=http://www.atanion.com/tobago/extension;
   prefix=tx %
2. Pages which use t:in without a label attribute:
   Nothing to do.

Regards

Udo



--
Dipl.-Math. Udo Schnurpfeil - Executive Officer - Atanion GmbH
Software Development - Bismarckstraße 13 - 26122 Oldenburg - Germany
phone +49 441 4082310 - mobile +49 174 9784746 - fax +49 441 4082333
mailto:[EMAIL PROTECTED] - http://www.atanion.com


Re: inputDate

2005-10-07 Thread Volker Weber
Hi again,

there is already an issue:

http://issues.apache.org/jira/browse/MYFACES-238

regards

  Volker

Volker Weber wrote:
 Hi,
 
 see
 
 http://www.mail-archive.com/users@myfaces.apache.org/msg05715.html
 
 maybe file an jira issue.
 
 regards
  Volker
 
 [EMAIL PROTECTED] wrote:
 
Hello!

Is it possible that if i use the component inputDate type=time that it 
shows only hours and minutes? I don't want to show the user the seconds.

Thanks!
regards,
Conny

--
Ein Service von http://www.sms.at

 
 

-- 
Don't answer to From: address!
Mail to this account are droped if not recieved via mailinglist.
To contact me direct create the mail address by
concatenating my forename to my senders domain.


t:panelNavigation synamic population How tO

2005-10-07 Thread Luca Conte
Hi,
looking here: http://myfaces.apache.org/tlddoc/tomahawk/ I find
t:panelNavigation2 and in the examples here:
http://www.irian.at/myfaces/home.jsf I see a rendered menu with the
entire menutree set by a backingbean. Now I downloaded the latest
version of tomahawk.jar with its docos and I don't see
t:panelNavigation2 component but only t:panelNavigation. In any example
of t:panelNavigation there in no dynamic menu populated from a BBean...
How con I obtain this: http://www.irian.at/myfaces/panelnavigation_2.jsf
example with the current tomahawk lib?


thx


Re: MyFaces + Shale Clay

2005-10-07 Thread Gary VanMatre

Has anyone been able to utilize myfaces tomahawk components with clay, 
specifically the clay html views. Myfaces core components are working fine for me, 
I have just not yet been able to use tomahawk. 
In my clay-config.xml I have [snippet]Which I thought would enable me to use tomahawk, however I get Undefined 
component type org.apache.myfaces.component.html.ext.HtmlDataTable message 
when I try it. Not really sure if I am doing this correctly, I just followed suit on the examples. 
Any ideas?

You need to add "org.apache.myfaces.HtmlDataTable" for the component type. The componentType attribute corresponds to the "component-type" in the faces config used to register a component verses the "component-class". If you look at the faces-config.xml in the tomahawk jar under the META-INF folder, you can see the logical component types they are registered under.
If you run into any problems with this support, please report it on the struts mailing list and I'll make sure it gets fixed.

component jsfid="dataTableTmk" componentType="org.apache.myfaces.HtmlDataTable" extends="baseHtml"
..
/component

Gary


Layout of EAR file JBoss 4.0.2 with myFaces

2005-10-07 Thread Jeffrey Porter










Im having trouble with class loading  EAR file
layout.



I have the current format



EAR

EAR/Lib

EAR/Lib/myfaces-impl.jar

EAR/Lib/myfaces-api.jar

EAR/META-INF/application.xml

EAR/META-INF/MANIFEST.xml

EAR/workwebpages.war





The WAR file has in its MANIFEST.xml the parameter Class-Path:
lib/myfaces-api.jar lib/myfaces-impl.jar set.



But when I start up I get the following messages when I try
to access a jsf/jsp



org.apache.jasper.JasperException:
The absolute uri: http://java.sun.com/jsf/html cannot be resolved in either web.xml
or the jar files deployed with this application



If I move the myfaces-xxx.jar files into the WAR/WEB-INF/lib/
directory I dont get this.

I get the error message



java.lang.ClassNotFoundException:
org.apache.myfaces.component.html.ext.HtmlSelectManyCheckbox



But Id sooner have all the apis in the lib
directory of the EAR.



Can someone give me an example on how Im meant to
layout the contents of an EAR for JBoss 4.0.2 with MyFaces?



Hope someone can help me. 



Thanks.

Jeff




















Re: Layout of EAR file JBoss 4.0.2 with myFaces

2005-10-07 Thread Grigoras Cristinel
Jeffrey Porter wrote:

 I’m having trouble with class loading  EAR file layout.

 I have the current format…

 EAR

 EAR/Lib

 EAR/Lib/myfaces-impl.jar

 EAR/Lib/myfaces-api.jar

 EAR/META-INF/application.xml

 EAR/META-INF/MANIFEST.xml

 EAR/workwebpages.war

 The WAR file has in its MANIFEST.xml the parameter “Class-Path:
 lib/myfaces-api.jar lib/myfaces-impl.jar” set.

 But when I start up I get the following messages when I try to access
 a jsf/jsp…

 */org.apache.jasper.JasperException: The absolute uri:
 http://java.sun.com/jsf/html cannot be resolved in either web.xml or
 the jar files deployed with this application/*

 If I move the myfaces-xxx.jar files into the WAR/WEB-INF/lib/
 directory I don’t get this.

 I get the error message…

 */java.lang.ClassNotFoundException:
 org.apache.myfaces.component.html.ext.HtmlSelectManyCheckbox/*

 But I’d sooner have all the api’s in the lib directory of the EAR.

 Can someone give me an example on how I’m meant to layout the contents
 of an EAR for JBoss 4.0.2 with MyFaces?

 Hope someone can help me.

 Thanks.

 Jeff

Is about the class loader.
Set attribute name=UseJBossWebLoaderfalse/attribute in
deploy\jbossweb-tomcat55.sar\META-INF\jboss-service.xml
For me was better to use this and put myfaces libs in war.

What is MANIFEST.xml ? Maybe MANIFEST.MF ?

Cristi


Message Panel in JSF/MyFaces

2005-10-07 Thread MarcV
Hello,

we have to implement a message panel where the a-synchronous
messages from the server will be displayed in real-time and avoiding
the usual refresh page.
The messages will be of 3 audience : All, group of user, specific user.

We've saw in the Sandbox the auto-update table with Ajax...

Is it suitable for that ?
Is it compatible with Sun RI
Do you have any other tips/tools/recommendation for that ?

--
A+,
MarcV.


what's up about

2005-10-07 Thread Luca Conte
I can't use t:panelNavigation2 I found it in on-line docs but I can't
find it in the downloaded binaries!




jstl:forEach with facelets

2005-10-07 Thread Gilles Doffe

Hi,

I can't use jstl:forEach with facelets.
The following code just display one time 'test' :

ui:composition
template=/templates/template.jsp
  
 xmlns=http://www.w3.org/1999/xhtml
  
 xmlns:jsp=http://java.sun.com/JSP/Page
version=2.0
  
 xmlns:ui=http://java.sun.com/jsf/facelets
  
 xmlns:c=http://java.sun.com/jsf/core
  
 xmlns:h=http://java.sun.com/jsf/html
  
 xmlns:t=http://myfaces.apache.org/tomahawk
  
 xmlns:jstl=http://java.sun.com/jsp/jstl/core
ui:define
name=c_test

   h:outputText
value=test/
/ui:define
/ui:composition

and template.jsp :
jsp:root
xmlns=http://www.w3.org/1999/xhtml
  
 xmlns:jsp=http://java.sun.com/JSP/Page
version=2.0
  
 xmlns:ui=http://java.sun.com/jsf/facelets
  
 xmlns:c=http://java.sun.com/jsf/core
  
 xmlns:h=http://java.sun.com/jsf/html
  
 xmlns:t=http://myfaces.apache.org/tomahawk
  
 xmlns:jstl=http://java.sun.com/jsp/jstl/core
jsp:text

   html

   head

   title

   
   Critere Test

   /title

   /head

   body

   c:view

   t:panelTabbedPane

   
   jstl:forEach
begin=1
end=10

   
   ui:insert
name=c_testComposant
c_test not defined/ui:insert

   
   /jstl:forEach

   /t:panelTabbedPane

   /c:view

   /body

   /html
/jsp:text
/jsp:root

Do you see something wrong ?

Thanks
Gilles DOFFE

Re: Adding a panelTab to a panelTabbedPane

2005-10-07 Thread Gilles Doffe

Mike,

Yes it is the
general way to add jsf components to the tree
but it was the only solution I found.
There is no similarities between panelTabbedPane
and dataTable, that was what i hoped for.

Thanks
Gilles

Mike Kienenberger [EMAIL PROTECTED] a écrit
sur 30/09/2005 18:58:35 :

 Gilles,
 
 I suspect that you were close to the right solution.
 
 If you use panelTabbedPane.getChildren().add(panelTab), it will
 probably do what you want. However, I'm just guessing based
on my
 experience of adding columns to a dataTable rather than having
 actually looked at the code for panelTabbedPane and panelTab. 
But
 the above code is the general way to add jsf components to the tree.
 
 On 9/30/05, Gilles Doffe [EMAIL PROTECTED] wrote:
 
  Hello,
 
  I became crazy about this problem :
 
  I want to create a panelTabbedPane with a number of panelTab
which differs
  each time I load the page.
  I'm able to create in my java code an HtmlpanelTabbedPane and
some
  HtmlPanelTab but i don't know :
  - how to add my HtmlPanelTab to my HtmlPanelTabbedPane.
  - how to display it.
 
  I tried to bind my JSF panelTabbedPane to my HtmlPanelTabbedPane
and to use
  the method setParent of the HtmlPanelTab class but without success,
it
  displays nothing.
 
  Thanks a lot for help
  Gilles
  PS : Sorry for bad english ;)


adding spaces to the select item label

2005-10-07 Thread sri
Hi

 I have a selectOneListBox with several entries. I need to
organize them by indenting. I have added spaces, but obviously the
spaces are ignored. I have added nbsp; but that was converted to
amp;nbsp; when rendered, so that didn't work either. Is there
any way to ESCAPE the html for selectOneListBox like the escape
attribure for an outputLabel.

I am trying to achieve some thing like below in the list box, I can do this in a static html.


Value Header 1
 Value One1
  Value Two1
Value Header 2
 Value One2
 Value Two2
 Value SubHeader1
 SubValue One
 SubValue Two
.

The follwoing works fine (static html)

select name=templates id=templates

option value='All'All/option

option value=''Public/option

option value='DonationRequest'nbsp;nbsp;Class of
1999/option

option value='SchoolFestival'nbsp;nbsp;Students of
Mrs. XYZ/option

option
value='DeathNotification'nbsp;nbsp;Participants of ABC
Sport Event/option

option value=''Other Queries/option
  
  
 option value=''nbsp;nbsp;BADAMS
(My Queries)/option

option
value='DonationRequest'nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;Class
of 1999/option

option
value='SchoolFestival'nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;Students
of Mrs. XYZ/option

option
value='DeathNotification'nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;Participants
of ABC Sport Event/option
  
  
 option
value=''nbsp;nbsp;HPOTTER/option
  
  
 option
value='DonationRequest'nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;Class
of 1999/option
  
  
 option
value='SchoolFestival'nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;Students
of Mrs. XYZ/option

option
value='DeathNotification'nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;Participants
of ABC Sport Event/option
  
  
 option
value=''nbsp;nbsp;JSMITH/option
  
  
 option
value='DonationRequest'nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;Class
of 1999/option
  
  
 option
value='SchoolFestival'nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;Students
of Mrs. XYZ/option

option
value='DeathNotification'nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;Participants
of ABC Sport Event/option

/select

TIA
Srikanth


Re: Recommendations for JDO-Framework

2005-10-07 Thread Keith Lynch
I recently started using JPOX with a memory resident HSQLDB and had no 
problems whatsoever. It actually made life quite easy.


Also they're going to be the JDO 2.0 RI



Hi everybody,

for a new JSF/MyFaces-Project I need to use JDO for my ORM. Has
anybody of you guys already made experiences with several opensource
JDO-Frameworks and MyFaces?

Any commendations or warnings on which framework I should use or better not use?

--
Mit freundlichen Grüßen / Greetings,
Hendrik Neumann; Ruhr-University of Bochum



 






Re: Tree2 and Websphere Portal 5

2005-10-07 Thread Nicolas Viollin (sent by Nabble.com)

Hi sebastien,

 I am currently trying to use a tree2 component with jetspeed2. What i am having is a tree hierarchy that can change between views (i am using server side toggle). The problem is that between the changes of my hierarchy, the tree state is saved somewhere and reused for the new tree, which result in an exception, here is the stack trace:

JetspeedRequestDispatcher failed to include servlet resources. (details below)
Exception: java.lang.IllegalStateException
Message: Encountered a node [0:0] + with an illogical state. Node is expanded but it is also considered a leaf (a leaf cannot be considered expanded.

Stack Trace:
 org.apache.myfaces.custom.tree2.HtmlTreeRenderer.encodeNavigation(HtmlTreeRenderer.java:464)
 org.apache.myfaces.custom.tree2.HtmlTreeRenderer.encodeCurrentNode(HtmlTreeRenderer.java:347)
 org.apache.myfaces.custom.tree2.HtmlTreeRenderer.encodeTree(HtmlTreeRenderer.java:249)
 org.apache.myfaces.custom.tree2.HtmlTreeRenderer.encodeTree(HtmlTreeRenderer.java:277)
 org.apache.myfaces.custom.tree2.HtmlTreeRenderer.encodeChildren(HtmlTreeRenderer.java:201)
 javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:319)
 javax.faces.webapp.UIComponentTag.encodeChildren(UIComponentTag.java:343)
 javax.faces.webapp.UIComponentTag.doEndTag(UIComponentTag.java:251)
 org.apache.jsp.iu.index_jsp._jspx_meth_x_tree2_0(index_jsp.java:651)
 org.apache.jsp.iu.index_jsp._jspx_meth_portail_afficheContexte_1(index_jsp.java:609)
 org.apache.jsp.iu.index_jsp._jspx_meth_f_view_0(index_jsp.java:201)
 org.apache.jsp.iu.index_jsp._jspService(index_jsp.java:115)
 org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
 javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
 org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
 org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
 org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
 javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
 org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:696)
 org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:585)
 org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:510)
 org.apache.jetspeed.dispatcher.JetspeedRequestDispatcher.include(JetspeedRequestDispatcher.java:65)
 org.apache.myfaces.context.portlet.PortletExternalContextImpl.dispatch(PortletExternalContextImpl.java:164)
 org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java:195)
 org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:300)
 org.apache.myfaces.portlet.MyFacesGenericPortlet.facesRender(MyFacesGenericPortlet.java:396)
 fr.odima.fado.pu.Portlet.facesRender(Portlet.java:63)
 org.apache.myfaces.portlet.MyFacesGenericPortlet.doView(MyFacesGenericPortlet.java:266)
 javax.portlet.GenericPortlet.doDispatch(GenericPortlet.java:247)
 javax.portlet.GenericPortlet.render(GenericPortlet.java:175)
 org.apache.jetspeed.factory.JetspeedPortletInstance.render(JetspeedPortletInstance.java:96)
 org.apache.jetspeed.container.JetspeedContainerServlet.doGet(JetspeedContainerServlet.java:224)
 javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
 javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
 org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:696)
 org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:585)
 org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:510)
 org.apache.jetspeed.container.invoker.ServletPortletInvoker.invoke(ServletPortletInvoker.java:212)
 org.apache.jetspeed.container.invoker.ServletPortletInvoker.render(ServletPortletInvoker.java:125)
 sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
 sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
 java.lang.reflect.Method.invoke(Unknown Source)
 org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:284)
 org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:163)
 $Proxy9.render(Unknown Source)
 org.apache.pluto.PortletContainerImpl.renderPortlet(PortletContainerImpl.java:105)
 org.apache.jetspeed.container.JetspeedPortletContainerWrapper.renderPortlet(JetspeedPortletContainerWrapper.java:88)
 org.apache.jetspeed.aggregator.impl.RenderingJob.execute(RenderingJob.java:108)
 

Re: Message Panel in JSF/MyFaces

2005-10-07 Thread Werner Punz
Have not checked Martins code yet for this table
but a data table might be overkill for you
a leaner approach might be a simple
to have some kind of ajaxed div tag or
label, nothing is in the sandbox yet for such
a case...

Have in mind that the ajax support in myfaces is
at a very early stage yet.
All the infrastructure is there (the proto lib, the script.aculo.us
lib and some basic patterns and controls)
but the controls are mostly not done yet or at an early stage.



Werner




MarcV wrote:
 Hello,
 
 we have to implement a message panel where the a-synchronous
 messages from the server will be displayed in real-time and avoiding
 the usual refresh page.
 The messages will be of 3 audience : All, group of user, specific user.
 
 We've saw in the Sandbox the auto-update table with Ajax...
 
 Is it suitable for that ?
 Is it compatible with Sun RI
 Do you have any other tips/tools/recommendation for that ?
 



Re: Message Panel in JSF/MyFaces

2005-10-07 Thread Richard Wallace
Have you taken a look at AjaxAnywhere 
(http://ajaxanywhere.sourceforge.net/)?  I haven't used it yet but I 
plan to for all my data tables that will be sortable and pageable etc.  
The basic principal is that you mark zones of the page as ajax 
reloadable and then you use javascript to reload whichever zone you want 
whenever you want it reloaded.  They don't have true JSF components yet, 
but you can still use it with JSF.  Here's a demo 
http://ajaxanywhere.sweetdev-labs.org:8080/ajaxAnywhereDemo/facesFrame.jsp.  
They plan on adding more JSF capabilities in the next version AFAIK.


Rich

MarcV wrote:

Hello,

we have to implement a message panel where the a-synchronous
messages from the server will be displayed in real-time and avoiding
the usual refresh page.
The messages will be of 3 audience : All, group of user, specific user.

We've saw in the Sandbox the auto-update table with Ajax...

Is it suitable for that ?
Is it compatible with Sun RI
Do you have any other tips/tools/recommendation for that ?

--
A+,
MarcV.
  




Want a Default Selected Radio Button. What to Do?

2005-10-07 Thread Caroline Jen
I want to show a default selected radio button when
the web page is loaded for the first time.  Normally,
I create a set of radio buttons this way:

[code]
h:selectOneRadio
value=#{dataManagementBean.dataTransferType}
layout=pageDirection 
 f:selectItems
value=#{dataManagementBean.dataTransferTypeItems}/
/h:selectOneRadio
[/code]

To show a default selection, I can add a statement in
my backing bean
 
[code]
String defaultSelectedDataTransferType =
imports;[/code] 
where imports is the value of one of my buttons. 
Then, I display the web page this way:

[code]
h:selectOneRadio
value=#{dataManagementBean.defaultSelectedDataTransferType}
layout=pageDirection 
 f:selectItems
value=#{dataManagementBean.dataTransferTypeItems}/
/h:selectOneRadio
[/code]

The problem is that whatever the radio button that
users actually select, its value is assigned to the
[b]defaultSelectedDataTransferType[/b].

I want the [b]dataTransferType[/b] gets the value of
the button that users select.  What should I do?



__ 
Yahoo! Mail - PC Magazine Editors' Choice 2005 
http://mail.yahoo.com


Re: adding spaces to the select item label

2005-10-07 Thread Dennis Byrne
try using various padding and width styles w/ CSS .

 Original message 
Date: Fri, 7 Oct 2005 13:50:13 -0400
From: sri [EMAIL PROTECTED]  
Subject: Re: adding spaces to the select item label  
To: users@myfaces.apache.org

   Anybody has any ideas ?

   On 10/7/05, sri [EMAIL PROTECTED] wrote:

 Hi

   I have a selectOneListBox with several entries.
 I need to organize them by indenting. I have added
 spaces, but obviously the spaces are ignored. I
 have added nbsp; but that was converted to
 amp;nbsp; when rendered, so that didn't work
 either. Is there any way to ESCAPE the html for
 selectOneListBox like the escape attribure for an
 outputLabel.

  I am trying to achieve some thing like below in
 the list box, I can do this in a static html.

 Value Header 1
 Value One1
 Value Two1
 Value Header 2
 Value One2
 Value Two2
 Value SubHeader1
 SubValue One
 SubValue Two
 .

 The follwoing works fine (static html)
 select name=templates
 id=templates
 option
 value='All'All/option
 option
 value=''Public/option
 option
 value='DonationRequest'nbsp;nbsp;Class of
 1999/option
 option
 value='SchoolFestival'nbsp;nbsp;Students of
 Mrs. XYZ/option
 option
 value='DeathNotification'nbsp;nbsp;Participants
 of ABC Sport Event/option
 option value=''Other
 Queries/option
 option
 value=''nbsp;nbsp;BADAMS (My Queries)/option
 option
 
value='DonationRequest'nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;Cl
ass
 of 1999/option
 option
 
value='SchoolFestival'nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;Stu
dents
 of Mrs. XYZ/option
 option
 
value='DeathNotification'nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;
Participants
 of ABC Sport Event/option
 option
 value=''nbsp;nbsp;HPOTTER/option
 option
 
value='DonationRequest'nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;Cl
ass
 of 1999/option
 option
 
value='SchoolFestival'nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;Stu
dents
 of Mrs. XYZ/option
 option
 
value='DeathNotification'nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;
Participants
 of ABC Sport Event/option
 option
 value=''nbsp;nbsp;JSMITH/option
 option
 
value='DonationRequest'nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;Cl
ass
 of 1999/option
 option
 
value='SchoolFestival'nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;Stu
dents
 of Mrs. XYZ/option
 option
 
value='DeathNotification'nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;
Participants
 of ABC Sport Event/option
 /select

 TIA
 Srikanth
Dennis Byrne


myfaces + Spring + Acegi Problem

2005-10-07 Thread Peter Cheung
I was having problem to get Acegi 0.8.3 to work with myfaces 1.1 and Spring 1.2.5 in Tomcat 5.5.9 running 1.5.0_2. I modified myfaces_tiles_examples from myfaces 1.0.9, so that I created a new directory called mine, and inside there was a jsp called my_page.jsp. In the Spring configuration file, I specified anyone who accesses page with my_* have to be prompted for userid/password, see below: 

bean id=filterInvocationInterceptor class=net.sf.acegisecurity.intercept.web.FilterSecurityInterceptorproperty name=authenticationManagerref local=authenticationManager/
/propertyproperty name=accessDecisionManagerref local=accessDecisionManager//propertyproperty name=runAsManager
ref bean=runAsManager//propertyproperty name=objectDefinitionSourcevalue CONVERT_URL_TO_LOWERCASE_BEFORE_COMPARISONPATTERN_TYPE_APACHE_ANT
/**/my_*=ROLE_ADMIN/value/property/bean
When I clicked the My Page link on the following navigation jsp, the my_page.jsp was displayed without prompting for the userid/password, but the second time, the login page was displayed. I think it had to do with tiles, because I tried a non-tiles example, and the result was the same. It might be due to the fact that the URL was on the browser was still showing the URL of the navigation jsp after the first click.

%@ taglib uri=http://myfaces.apache.org/extensions prefix=x%%@ taglib uri=http://java.sun.com/jsf/html
 prefix=h%%@ taglib uri=http://java.sun.com/jsf/core prefix=f%
h:panelGrid columns=1  h:commandLink action=""> h:outputText value=Page1 / /h:commandLink h:commandLink action=""
 h:outputText value=Page2 / /h:commandLink h:commandLink action=""> h:outputText value=My Page / /h:commandLink
 h:commandLink action=""> h:outputText value=non-tiles page / /h:commandLinkf:verbatima href="" non-tiles page/a
/f:verbatim/h:panelGrid
I have the following 2 questions:1. Is there any way to get the login page to display the first time when My Page link is clicked, not the second time?2. I tried to use My non-tiles page HTML link to access the my_page.jsp, this way, the login page was displayed after the first click, but after I logged in, I got the following exception:

java.lang.NullPointerExceptionjavax.faces.webapp.UIComponentTag.setupResponseWriter(UIComponentTag.java:615)javax.faces.webapp.UIComponentTag.doStartTag(UIComponentTag.java:217)org.apache.jsp.mine.my_005fpage_jsp._jspx_meth_h_outputText_0
(org.apache.jsp.mine.my_005fpage_jsp:77)org.apache.jsp.mine.my_005fpage_jsp._jspService(org.apache.jsp.mine.my_005fpage_jsp:54)org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)javax.servlet.http.HttpServlet.service
(HttpServlet.java:802)org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)org.apache.jasper.servlet.JspServlet.service
(JspServlet.java:241)javax.servlet.http.HttpServlet.service(HttpServlet.java:802)net.sf.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:292)net.sf.acegisecurity.intercept.web.FilterSecurityInterceptor.invoke
(FilterSecurityInterceptor.java:74)net.sf.acegisecurity.intercept.web.SecurityEnforcementFilter.doFilter(SecurityEnforcementFilter.java:182)net.sf.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(
FilterChainProxy.java:303)net.sf.acegisecurity.ui.basicauth.BasicProcessingFilter.doFilter(BasicProcessingFilter.java:206)net.sf.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java
:303)net.sf.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:305)net.sf.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:303)net.sf.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter
(HttpSessionContextIntegrationFilter.java:152)net.sf.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:303)net.sf.acegisecurity.util.FilterChainProxy.doFilter(FilterChainProxy.java
:173)net.sf.acegisecurity.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.java:125)net.sf.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:292)net.sf.acegisecurity.intercept.web.FilterSecurityInterceptor.invoke
(FilterSecurityInterceptor.java:84)net.sf.acegisecurity.intercept.web.SecurityEnforcementFilter.doFilter(SecurityEnforcementFilter.java:182)net.sf.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(
FilterChainProxy.java:303)net.sf.acegisecurity.ui.basicauth.BasicProcessingFilter.doFilter(BasicProcessingFilter.java:206)net.sf.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java
:303)net.sf.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:305)net.sf.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:303)net.sf.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter

tree2 back bean example

2005-10-07 Thread Anu Padki

Hello,
I am new to myfaces and also to JSF. I am planning to use Tree2 component.
I read the myfaces documentation and the examples. However, I did not see 
any backbean examples.

I dont really understand how to make a backbean for tree2.
Can someone please give me some backbean code for tree2?
I would really appreciate the help.
Thanks
- Anu




RE: tree2 back bean example

2005-10-07 Thread gvial
In the sources for MyFaces, the examples include a file called
TreeBacker.java. This is the back bean for the tree2 example. Basically
the tree2 component will ask you to provide it with a var parameter that
consists in a tree node, which contains children nodes, all in a
hierarchical way (so that the tree can be built).

I am currently experimenting with this component myself so feel free to
ask any questions, I'll probably be interested :)

Hope this helps,

Greg

-Original Message-
From: Anu Padki [mailto:[EMAIL PROTECTED] 
Sent: Friday, October 07, 2005 2:22 PM
To: users@myfaces.apache.org
Subject: tree2 back bean example

Hello,
I am new to myfaces and also to JSF. I am planning to use Tree2
component.
I read the myfaces documentation and the examples. However, I did not
see 
any backbean examples.
I dont really understand how to make a backbean for tree2.
Can someone please give me some backbean code for tree2?
I would really appreciate the help.
Thanks
- Anu




RE: tree2 back bean example

2005-10-07 Thread Anu Padki
yes, I have a stupid question, where do I find this example? Could you 
please specify the URL?

I had no success.
- Anu

At 02:30 PM 10/7/2005 -0400, you wrote:

In the sources for MyFaces, the examples include a file called
TreeBacker.java. This is the back bean for the tree2 example. Basically
the tree2 component will ask you to provide it with a var parameter that
consists in a tree node, which contains children nodes, all in a
hierarchical way (so that the tree can be built).

I am currently experimenting with this component myself so feel free to
ask any questions, I'll probably be interested :)

Hope this helps,

Greg

-Original Message-
From: Anu Padki [mailto:[EMAIL PROTECTED]
Sent: Friday, October 07, 2005 2:22 PM
To: users@myfaces.apache.org
Subject: tree2 back bean example

Hello,
I am new to myfaces and also to JSF. I am planning to use Tree2
component.
I read the myfaces documentation and the examples. However, I did not
see
any backbean examples.
I dont really understand how to make a backbean for tree2.
Can someone please give me some backbean code for tree2?
I would really appreciate the help.
Thanks
- Anu





RE: tree2 and nodes

2005-10-07 Thread CONNER, BRENDAN \(SBCSI\)
Yes.  We just created an object, TreeNodeImpl, which extended
TreeNodeBase, and which defined the DTO (and associated methods) in that
class.

- Brendan

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Friday, October 07, 2005 1:34 PM
To: users@myfaces.apache.org
Subject: tree2 and nodes


Hi,

I am currently trying out the tree2 component. I'm just wondering if
it's possible to include some sort of object in the model in the backing
bean. From the examples, I know you create a hierarchy of node, which is
fine, but I'm wondering if there is a way to link the node with an
object, like a typical DTO or something else, that is serializable of
course. 

The reason I'm asking is because I'm gonna have to first get my node and
then retrieve the object using the node's identifier if i understand
what this can do. I'm not gonna argue over the whole bandwidth/memory
space of having objects linked like that because my tree will always be
reasonably be small, I'm just wondering if it's feasible right now.

Thanks,

Greg


Re: myfaces + Spring + Acegi Problem

2005-10-07 Thread Julián García
I have used myfaces and acegi with no problems so far. However, I try 
not to use a JSF page as my login page, I use a plain jsp.  If using a 
jsf page is a requirement, check this blog entry: 
http://www.jroller.com/page/vtatai/20050505


In regard to the code below: what for do you use runAsManager? I'd 
suggest to start the project with plain jsp pages, then introduce 
myfaces when it works. I have found somehow difficult to make acegi work 
from scratch.


Julian

Peter Cheung wrote:


I was having problem to get Acegi 0.8.3 to work with myfaces 1.1 and Spring
1.2.5 in Tomcat 5.5.9 running 1.5.0_2. I modified myfaces_tiles_examples
from myfaces 1.0.9, so that I created a new directory called mine, and
inside there was a jsp called my_page.jsp. In the Spring configuration file,
I specified anyone who accesses page with my_* have to be prompted for
userid/password, see below:

bean id=filterInvocationInterceptor class=
net.sf.acegisecurity.intercept.web.FilterSecurityInterceptor
property name=authenticationManager
ref local=authenticationManager/
/property
property name=accessDecisionManager
ref local=accessDecisionManager/
/property
property name=runAsManager
ref bean=runAsManager/
/property
property name=objectDefinitionSource
value
CONVERT_URL_TO_LOWERCASE_BEFORE_COMPARISON
PATTERN_TYPE_APACHE_ANT
/**/my_*=ROLE_ADMIN
/value
/property
/bean

When I clicked the My Page link on the following navigation jsp, the
my_page.jsp was displayed without prompting for the userid/password, but the
second time, the login page was displayed. I think it had to do with
tiles, because I tried a non-tiles example, and the result was the same.
It might be due to the fact that the URL was on the browser was still
showing the URL of the navigation jsp after the first click.

%@ taglib uri=http://myfaces.apache.org/extensions; prefix=x%
%@ taglib uri=http://java.sun.com/jsf/html; prefix=h%
%@ taglib uri=http://java.sun.com/jsf/core; prefix=f%

h:panelGrid columns=1 
h:commandLink action=nav_page1
h:outputText value=Page1 /
/h:commandLink
h:commandLink action=nav_page2
h:outputText value=Page2 /
/h:commandLink
h:commandLink action=my_page
h:outputText value=My Page /
/h:commandLink
h:commandLink action=nav_page3
h:outputText value=non-tiles page /
/h:commandLink
f:verbatim
a href=mine/my_page.jspMy non-tiles page/a
/f:verbatim
/h:panelGrid

I have the following 2 questions:
1. Is there any way to get the login page to display the first time when My
Page link is clicked, not the second time?
2. I tried to use My non-tiles page HTML link to access the my_page.jsp,
this way, the login page was displayed after the first click, but after I
logged in, I got the following exception:

java.lang.NullPointerException
javax.faces.webapp.UIComponentTag.setupResponseWriter(UIComponentTag.java
:615)
javax.faces.webapp.UIComponentTag.doStartTag(UIComponentTag.java:217)
org.apache.jsp.mine.my_005fpage_jsp._jspx_meth_h_outputText_0(
org.apache.jsp.mine.my_005fpage_jsp:77)
org.apache.jsp.mine.my_005fpage_jsp._jspService(
org.apache.jsp.mine.my_005fpage_jsp:54)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java
:322)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
net.sf.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(
FilterChainProxy.java:292)
net.sf.acegisecurity.intercept.web.FilterSecurityInterceptor.invoke(
FilterSecurityInterceptor.java:74)
net.sf.acegisecurity.intercept.web.SecurityEnforcementFilter.doFilter(
SecurityEnforcementFilter.java:182)
net.sf.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(
FilterChainProxy.java:303)
net.sf.acegisecurity.ui.basicauth.BasicProcessingFilter.doFilter(
BasicProcessingFilter.java:206)
net.sf.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(
FilterChainProxy.java:303)
net.sf.acegisecurity.ui.AbstractProcessingFilter.doFilter(
AbstractProcessingFilter.java:305)
net.sf.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(
FilterChainProxy.java:303)
net.sf.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(
HttpSessionContextIntegrationFilter.java:152)
net.sf.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(
FilterChainProxy.java:303)
net.sf.acegisecurity.util.FilterChainProxy.doFilter(FilterChainProxy.java
:173)
net.sf.acegisecurity.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.java
:125)
net.sf.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(
FilterChainProxy.java:292)
net.sf.acegisecurity.intercept.web.FilterSecurityInterceptor.invoke(
FilterSecurityInterceptor.java:84)
net.sf.acegisecurity.intercept.web.SecurityEnforcementFilter.doFilter(
SecurityEnforcementFilter.java:182)

RE: tree2 and nodes

2005-10-07 Thread gvial
So you basically have to extend the default TreeNodeBase yourself to add
whatever other methods you need then. That's what i was thinking
about... 

Thanks,

Greg

-Original Message-
From: CONNER, BRENDAN (SBCSI) [mailto:[EMAIL PROTECTED] 
Sent: Friday, October 07, 2005 2:44 PM
To: MyFaces Discussion
Subject: RE: tree2 and nodes

Yes.  We just created an object, TreeNodeImpl, which extended
TreeNodeBase, and which defined the DTO (and associated methods) in that
class.

- Brendan

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Friday, October 07, 2005 1:34 PM
To: users@myfaces.apache.org
Subject: tree2 and nodes


Hi,

I am currently trying out the tree2 component. I'm just wondering if
it's possible to include some sort of object in the model in the backing
bean. From the examples, I know you create a hierarchy of node, which is
fine, but I'm wondering if there is a way to link the node with an
object, like a typical DTO or something else, that is serializable of
course. 

The reason I'm asking is because I'm gonna have to first get my node and
then retrieve the object using the node's identifier if i understand
what this can do. I'm not gonna argue over the whole bandwidth/memory
space of having objects linked like that because my tree will always be
reasonably be small, I'm just wondering if it's feasible right now.

Thanks,

Greg


Re: adding spaces to the select item label

2005-10-07 Thread Mathias Brökelmann
Try using SelectItemGroup. You can use it for nesting select items
hierarchically.

2005/10/7, Dennis Byrne [EMAIL PROTECTED]:
 try using various padding and width styles w/ CSS .

  Original message 
 Date: Fri, 7 Oct 2005 13:50:13 -0400
 From: sri [EMAIL PROTECTED]
 Subject: Re: adding spaces to the select item label
 To: users@myfaces.apache.org
 
Anybody has any ideas ?
 
On 10/7/05, sri [EMAIL PROTECTED] wrote:
 
  Hi
 
I have a selectOneListBox with several entries.
  I need to organize them by indenting. I have added
  spaces, but obviously the spaces are ignored. I
  have added nbsp; but that was converted to
  amp;nbsp; when rendered, so that didn't work
  either. Is there any way to ESCAPE the html for
  selectOneListBox like the escape attribure for an
  outputLabel.
 
   I am trying to achieve some thing like below in
  the list box, I can do this in a static html.
 
  Value Header 1
  Value One1
  Value Two1
  Value Header 2
  Value One2
  Value Two2
  Value SubHeader1
  SubValue One
  SubValue Two
  .
 
  The follwoing works fine (static html)
  select name=templates
  id=templates
  option
  value='All'All/option
  option
  value=''Public/option
  option
  value='DonationRequest'nbsp;nbsp;Class of
  1999/option
  option
  value='SchoolFestival'nbsp;nbsp;Students of
  Mrs. XYZ/option
  option
  value='DeathNotification'nbsp;nbsp;Participants
  of ABC Sport Event/option
  option value=''Other
  Queries/option
  option
  value=''nbsp;nbsp;BADAMS (My Queries)/option
  option
 
 value='DonationRequest'nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;Cl
 ass
  of 1999/option
  option
 
 value='SchoolFestival'nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;Stu
 dents
  of Mrs. XYZ/option
  option
 
 value='DeathNotification'nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;
 Participants
  of ABC Sport Event/option
  option
  value=''nbsp;nbsp;HPOTTER/option
  option
 
 value='DonationRequest'nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;Cl
 ass
  of 1999/option
  option
 
 value='SchoolFestival'nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;Stu
 dents
  of Mrs. XYZ/option
  option
 
 value='DeathNotification'nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;
 Participants
  of ABC Sport Event/option
  option
  value=''nbsp;nbsp;JSMITH/option
  option
 
 value='DonationRequest'nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;Cl
 ass
  of 1999/option
  option
 
 value='SchoolFestival'nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;Stu
 dents
  of Mrs. XYZ/option
  option
 
 value='DeathNotification'nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;
 Participants
  of ABC Sport Event/option
  /select
 
  TIA
  Srikanth
 Dennis Byrne



--
Mathias


Re: adding spaces to the select item label

2005-10-07 Thread sri
Excellent, ThanksOn 10/7/05, Mathias Brökelmann [EMAIL PROTECTED] wrote:
Try using SelectItemGroup. You can use it for nesting select itemshierarchically.2005/10/7, Dennis Byrne [EMAIL PROTECTED]: try using various padding and width styles w/ CSS .
  Original message  Date: Fri, 7 Oct 2005 13:50:13 -0400 From: sri [EMAIL PROTECTED] Subject: Re: adding spaces to the select item label
 To: users@myfaces.apache.org   Anybody has any ideas ?   On 10/7/05, sri 
[EMAIL PROTECTED] wrote:   Hi   I have a selectOneListBox with several entries.  I need to organize them by indenting. I have added  spaces, but obviously the spaces are ignored. I
  have added nbsp; but that was converted to  amp;nbsp; when rendered, so that didn't work  either. Is there any way to ESCAPE the html for
  selectOneListBox like the escape attribure for an  outputLabel.  I am trying to achieve some thing like below in  the list box, I can do this in a static html.
   Value Header 1  Value One1  Value Two1  Value Header 2  Value One2  Value Two2  Value SubHeader1
  SubValue One  SubValue Two  .   The follwoing works fine (static html)

select name=templates  id=templates

option  value='All'All/option

option  value=''Public/option

option  value='DonationRequest'nbsp;nbsp;Class of  1999/option

option  value='SchoolFestival'nbsp;nbsp;Students of  Mrs. XYZ/option

option  value='DeathNotification'nbsp;nbsp;Participants  of ABC Sport Event/option

option value=''Other  Queries/option

option  value=''nbsp;nbsp;BADAMS (My Queries)/option

option  value='DonationRequest'nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;Cl ass  of 1999/option

option  value='SchoolFestival'nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;Stu dents  of Mrs. XYZ/option

option  value='DeathNotification'nbsp;nbsp;nbsp;nbsp;nbsp;nbsp; Participants  of ABC Sport Event/option

option  value=''nbsp;nbsp;HPOTTER/option

option  value='DonationRequest'nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;Cl ass  of 1999/option

option  value='SchoolFestival'nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;Stu dents  of Mrs. XYZ/option

option  value='DeathNotification'nbsp;nbsp;nbsp;nbsp;nbsp;nbsp; Participants  of ABC Sport Event/option

option  value=''nbsp;nbsp;JSMITH/option

option  value='DonationRequest'nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;Cl ass  of 1999/option

option  value='SchoolFestival'nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;Stu dents  of Mrs. XYZ/option

option  value='DeathNotification'nbsp;nbsp;nbsp;nbsp;nbsp;nbsp; Participants  of ABC Sport Event/option

/select   TIA  Srikanth Dennis Byrne--Mathias


how to prevent automatic user registration

2005-10-07 Thread Dave
some webs show up an image that has some numbers/letters on it, and let user to type them to prevent automatic registration. Is there library to generate such images? Thanks.
		Yahoo! for Good 
Click here to donate to the Hurricane Katrina relief effort. 


Uh oh, upgrading to 1.1 broke my app

2005-10-07 Thread James Reynolds

I've replaced my 1.0.9 jar with the 1.1 myfaces-all, then I went through
getting started list and ensured that I have all the the necessary
libraries.

Now, when I run the app.  It doesn't load and I get this stack trace.
What have I missed?

Thanks for your help!

javax.faces.el.PropertyNotFoundException: Base is null: login
at
org.apache.myfaces.el.ValueBindingImpl.resolveToBaseAndProperty(ValueBin
dingImpl.java:457)
at
org.apache.myfaces.el.ValueBindingImpl.setValue(ValueBindingImpl.java:24
2)
at
org.apache.myfaces.application.ApplicationImpl.createComponent(Applicati
onImpl.java:433)
at
javax.faces.webapp.UIComponentTag.createComponent(UIComponentTag.java:10
09)
at
javax.faces.webapp.UIComponentTag.createChild(UIComponentTag.java:1036)
at
javax.faces.webapp.UIComponentTag.findComponent(UIComponentTag.java:749)
at
javax.faces.webapp.UIComponentTag.doStartTag(UIComponentTag.java:429)
at
com.sun.faces.taglib.html_basic.FormTag.doStartTag(FormTag.java:345)
at
org.apache.jsp.includes.header_jsp._jspx_meth_h_form_0(org.apache.jsp.in
cludes.header_jsp:214)
at
org.apache.jsp.includes.header_jsp._jspService(org.apache.jsp.includes.h
eader_jsp:116)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja
va:322)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:252)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:173)
at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatc
her.java:672)
at
org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDisp
atcher.java:574)
at
org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispat
cher.java:499)
at
org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.ja
va:966)
at
org.apache.jsp.index_jsp._jspx_meth_f_subview_0(org.apache.jsp.index_jsp
:318)
at
org.apache.jsp.index_jsp._jspx_meth_f_view_0(org.apache.jsp.index_jsp:14
1)
at
org.apache.jsp.index_jsp._jspService(org.apache.jsp.index_jsp:77)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja
va:322)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:252)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:173)
at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatc
her.java:672)
at
org.apache.catalina.core.ApplicationDispatcher.processRequest(Applicatio
nDispatcher.java:463)
at
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDisp
atcher.java:398)
at
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispat
cher.java:301)
at
com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.j
ava:322)
at
com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.jav
a:130)
at
org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:300
)
at
javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:252)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:173)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
e.java:213)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
e.java:178)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
:126)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
:105)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.
java:107)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:1
48)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:85
6)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processC
onnection(Http11Protocol.java:744)
at

[OT] Generic search in Hibernate

2005-10-07 Thread Richard Wallace

Hey all,

I'm just wondering how anyone has implemented like a generic search 
using Hibernate as a backend.  More specifically, when the data access 
layer (Hibernate) is abstracted away from the presentation layer (JSF).


I I'm trying to find some way of creating some kind of search ability 
that can have a user defined number and type of parameters.  The problem 
I'm running into is that the data access library being used is 
completely abstracted from JSF so I need some neutral type of criteria 
or query to pass to the underlying system. 

I've toyed with creating a custom criteria API that can then be 
translated into whatever backend criteria API is in use, whether it's 
Hibernate, EJB 3 or something else.  But it's a complicated issue even 
for some of the seemingly simple things that I'm trying to do.



How do you guys approach this kind of problem?

Thanks,
Rich


URL, Action Strings, JsCook Menu and Security

2005-10-07 Thread Julián García
Is there any way to put the JsCook menu to work with url's instead of 
actions? I want to use JsCook menu for my app, however, my security API 
requires me to associate tasks to usrl's and not actions. This is 
because my security API uses a filter.


Please, any help or opinion is highly appreciated.

Julian


Re: [OT] Generic search in Hibernate

2005-10-07 Thread Werner Punz
Richard Wallace wrote:
 Hey all,
 
 I'm just wondering how anyone has implemented like a generic search
 using Hibernate as a backend.  More specifically, when the data access
 layer (Hibernate) is abstracted away from the presentation layer (JSF).
 
 I I'm trying to find some way of creating some kind of search ability
 that can have a user defined number and type of parameters.  The problem
 I'm running into is that the data access library being used is
 completely abstracted from JSF so I need some neutral type of criteria
 or query to pass to the underlying system.
 I've toyed with creating a custom criteria API that can then be
 translated into whatever backend criteria API is in use, whether it's
 Hibernate, EJB 3 or something else.  But it's a complicated issue even
 for some of the seemingly simple things that I'm trying to do.
 
 
Well abstracting the already abstracted hibernate query api does not really
make that much sense unless you plan to switch the db access layers.
All I can say is, dont do it and even if you try to do it, it is not worth
the effort.

But as for crtieria queries, you can go for the Hibernate criteria queries
to get a dynamic query behavior.



Re: [OT] Generic search in Hibernate

2005-10-07 Thread Richard Wallace
How do you normally do search functionality like this?  Do you expose 
the Hibernate query API to the JSF layer? 

The main reason I wanted to try and abstract it was in case we did see 
some need in the future to swtich to a different ORM tool like EJB 3 or 
whatever else is the latest greatest.  I mean, in theory, the 
presentation layer shouldn't care one wit what the data access layer 
uses to get it's job done.  That's the whole reason for abstracting the 
Hibernate stuff in DAOs. 

I don't think my situation is all that different from others that are 
out there.  I have Hibernate at the lowest level doing data access, 
spring in the middle managing services which use the data access layer 
and then JSF at the presentation layer utilizing the APIs the services 
expose.  I guess I'm just curious about what the best practices are and 
what people would think if I exposed the fact that the data layer is 
using Hibernate at the presentation layer by using the Hibernate 
criteria API.


Werner Punz wrote:

Richard Wallace wrote:
  

Hey all,

I'm just wondering how anyone has implemented like a generic search
using Hibernate as a backend.  More specifically, when the data access
layer (Hibernate) is abstracted away from the presentation layer (JSF).

I I'm trying to find some way of creating some kind of search ability
that can have a user defined number and type of parameters.  The problem
I'm running into is that the data access library being used is
completely abstracted from JSF so I need some neutral type of criteria
or query to pass to the underlying system.
I've toyed with creating a custom criteria API that can then be
translated into whatever backend criteria API is in use, whether it's
Hibernate, EJB 3 or something else.  But it's a complicated issue even
for some of the seemingly simple things that I'm trying to do.




Well abstracting the already abstracted hibernate query api does not really
make that much sense unless you plan to switch the db access layers.
All I can say is, dont do it and even if you try to do it, it is not worth
the effort.

But as for crtieria queries, you can go for the Hibernate criteria queries
to get a dynamic query behavior.

  




Re: [OT] Generic search in Hibernate

2005-10-07 Thread Julián García
I use a very similar arquitechture. I use Hibernate Criteria  hidden in 
DAOs' implementations. I code my services to DAO interfaces. Changing my 
 data access layer is just coding different implementations to the same 
interfaces.



Richard Wallace wrote:
How do you normally do search functionality like this?  Do you expose 
the Hibernate query API to the JSF layer?
The main reason I wanted to try and abstract it was in case we did see 
some need in the future to swtich to a different ORM tool like EJB 3 or 
whatever else is the latest greatest.  I mean, in theory, the 
presentation layer shouldn't care one wit what the data access layer 
uses to get it's job done.  That's the whole reason for abstracting the 
Hibernate stuff in DAOs.
I don't think my situation is all that different from others that are 
out there.  I have Hibernate at the lowest level doing data access, 
spring in the middle managing services which use the data access layer 
and then JSF at the presentation layer utilizing the APIs the services 
expose.  I guess I'm just curious about what the best practices are and 
what people would think if I exposed the fact that the data layer is 
using Hibernate at the presentation layer by using the Hibernate 
criteria API.


Werner Punz wrote:


Richard Wallace wrote:
 


Hey all,

I'm just wondering how anyone has implemented like a generic search
using Hibernate as a backend.  More specifically, when the data access
layer (Hibernate) is abstracted away from the presentation layer (JSF).

I I'm trying to find some way of creating some kind of search ability
that can have a user defined number and type of parameters.  The problem
I'm running into is that the data access library being used is
completely abstracted from JSF so I need some neutral type of criteria
or query to pass to the underlying system.
I've toyed with creating a custom criteria API that can then be
translated into whatever backend criteria API is in use, whether it's
Hibernate, EJB 3 or something else.  But it's a complicated issue even
for some of the seemingly simple things that I'm trying to do.





Well abstracting the already abstracted hibernate query api does not 
really

make that much sense unless you plan to switch the db access layers.
All I can say is, dont do it and even if you try to do it, it is not 
worth

the effort.

But as for crtieria queries, you can go for the Hibernate criteria 
queries

to get a dynamic query behavior.