Re: Tobago t:sheet and pagingStart attribute

2006-04-18 Thread Nazar Stasiv
I set pagingStart to 0 in filter action. And 
InstancesBean.getPagingStart() returns 0 after filter has been changed. 
Can anyone help?


Nazar Stasiv wrote:

Hi all
There is an issue with t:sheet I came across in my project.
There's a t:sheet component on the page and it displays a collection 
of items. There is also drop-down list component above sheet. If I 
change value of drop-down list t:sheet displays new collection of 
items. It's sort of filter functionality.


Then I've got 60  items (25 per page) for 3 pages. And filter which 
filters out all but one item from the list.
When I apply filter number of pages should change from 1,2,3 to 1 
and Page 1 of 1 but it won't


See screen shot attached

Here goes the jsp code

t:sheet value=#{instances.processInstances} id=instances_sheet
columns=25px;370px;85px;145px;145px var=instance
showRowRange=none showPageRange=right 
showDirectLinks=center
directLinkCount=10 forceVerticalScrollbar=false 
pagingLength=#{instances.pagingLength}

stateChangeListener=#{instances.stateChangeListener}
pagingStart=#{instances.pagingStart}
sortActionListener=#{instances.onSort}

   t:column label=#{msgs.columns_selection}
 sortable=false align=center
   t:selectBooleanCheckbox value=#{instance.selected} 
id=selected_instance/

   /t:column
   t:column label=#{msgs.columns_processName}
 sortable=true align=left 
   rest:RESTWrapper 
submitURI=InstanceDetails?id=#{instance.iid}
   t:link action=#{instance.details} 
label=#{instance.processName}/

   /rest:RESTWrapper
   /t:column
   t:column label=#{msgs.columns_state}
 sortable=true align=left
   t:out value=#{instance.status}/
   /t:column
   t:column label=#{msgs.columns_started}
 sortable=true align=center
   t:out value=#{instance.started}
   f:convertDateTime pattern=-MM-dd hh:mm:ssa 
type=both/

   /t:out
   /t:column
   t:column label=#{msgs.columns_lastActive}
 sortable=true align=center
   t:out value=#{instance.lastActive}
   f:convertDateTime pattern=-MM-dd hh:mm:ssa 
type=both/

   /t:out
   /t:column
   /t:sheet

And action called with t:selectOne onchange attribute

   public void setCurrentFilter(String currentFilter) throws 
ConnectivityException {
   state.setInstancesPagingStart(0);// this is value 
binding to sheet pagingStart attribute
   state.setInstancesCurrentFilter(currentFilter);  
populateInstances(_sortBy + _orderBy); // updates collection of items 
in collection displayed by sheet component.

   populateProperties();
   }

Nazar








Re: Welcome Gerald Müllan to the team!

2006-04-18 Thread Martin Marinschek
Yes!

Now we need someone who knows something properly, too.

We'd call him Mr. Proper then ;)

regards,

Martin

On 4/18/06, Stan Silvert [EMAIL PROTECTED] wrote:
 Welcome Gerald!  Good to have someone who knows about mildly abrasive 
 household cleansers.

 Stan Silvert
 JBoss, Inc.
 [EMAIL PROTECTED]
 callto://stansilvert

  -Original Message-
  From: Martin Marinschek [mailto:[EMAIL PROTECTED]
  Sent: Monday, April 17, 2006 6:27 PM
  To: MyFaces Development; MyFaces Discussion
  Subject: Welcome Gerald Müllan to the team!
 
  Hi *,
 
  and the MyFaces PMC is also proud to add Gerald Müllan to the MyFaces
  team - another very active MyFaces contributor, who is specialized on
  everything AJAX related.
 
  Welcome Gerald!
 
  regards,
 
  Martin



--

http://www.irian.at

Your JSF powerhouse -
JSF Consulting, Development and
Courses in English and German

Professional Support for Apache MyFaces


Re: Missing tomahawk.jar in MyFaces1.2

2006-04-18 Thread Dennis Byrne
You may want to check your inbox for the announcement notes.  Tomahawk is now 
released seperately.

Dennis Byrne

-Original Message-
From: Balaji Kalyansundaram [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 18, 2006 03:11 AM
To: dev@myfaces.apache.org, users@myfaces.apache.org
Subject: Missing tomahawk.jar in MyFaces1.2


Hi All

Glad to hear that the new verison is available.

I cannot find the the tomahawk.jar @ 
http://www.apache.org/dyn/closer.cgi/myfaces/binaries/myfaces-core-1.1.2-bin.zip

But it has myfaces-impl.jar, etc.

Am I lloking at the wrong place?

Thanks in advance.

Balaji


This correspondence is for the named persons only.
It may contain confidential or privileged information or both.
No confidentiality or privilege is waived or lost by any mis transmission.
If you receive this correspondence in error please delete it from your system 
immediately and notify the sender.
You must not disclose, copy or relay on any part of this correspondence, if 
you are not the intended recipient.
Any opinions expressed in this message are those of the individual sender 
except where the sender expressly,
and with the authority, states them to be the opinions of the Department of 
Emergency Services, Queensland.




Re: Faces Trace

2006-04-18 Thread Martin Marinschek
Yes.

That's the other thing I'd like to have - automatic client-side
validation happening with the server side validation in place. It
would be good to have something like a hook in the extended validators
- with this hook, they are asked to render out their client-side
validation javascript.

Using this, separate validators wouldn't be necessary.

Still, I think that the rendering question is very important. In the
current state when working with ADF, I wished I could disable client
side validation in ADF faces alltogether (I'm sure there is a way to
do so, didn't look deeper into it so far). The popup box is just not
context sensitive enough.

regards,

Martin

On 4/18/06, Adam Winer [EMAIL PROTECTED] wrote:
  On 4/17/06, Martin Marinschek [EMAIL PROTECTED] wrote:
   What I like about ADF faces is that it uses existing validators for
   the client side validation. What I don't like is that it notifies the
   user with a popup box - not very interactive IMHO.

 I agree too - I'd like to feed that it into better schemes,
 which I think is doable given the current APIs, esp.
 popups floating by existing components.

 But to me, the really important issues aren't so much how it gets
 rendered (which can be massaged down the line), but the
 basic architectural ones, most particularly, how do you attach
 client-side validation?  For that, the only really clean answer
 is that it should happen implicitly as a result of adding a
 server-side validation, so that client-side validation is always
 a strict subset of server-side validation.  Any client-side validation
 scheme that doesn't follow this pattern is a security risk.

 -- Adam




   How do you tell the users that validation failed?




--

http://www.irian.at

Your JSF powerhouse -
JSF Consulting, Development and
Courses in English and German

Professional Support for Apache MyFaces


Missing tomahawk.jar in MyFaces1.2

2006-04-18 Thread Balaji Kalyansundaram
Title: Missing tomahawk.jar in MyFaces1.2






Hi All


Glad to hear that the new verison is available.


I cannot find the the tomahawk.jar @ http://www.apache.org/dyn/closer.cgi/myfaces/binaries/myfaces-core-1.1.2-bin.zip


But it has myfaces-impl.jar, etc. 


Am I lloking at the wrong place?


Thanks in advance.


Balaji




This correspondence is for the named persons only. 
It may contain confidential or privileged information or both. 
No confidentiality or privilege is waived or lost by any mis transmission. 
If you receive this correspondence in error please delete it from your system immediately and notify the sender. 
You must not disclose, copy or relay on any part of this correspondence, if you are not the intended recipient. 
Any opinions expressed in this message are those of the individual sender except where the sender expressly, 
and with the authority, states them to be the opinions of the Department of Emergency Services, Queensland.


RE: Missing tomahawk.jar in MyFaces1.2

2006-04-18 Thread Balaji Kalyansundaram

Hi Dennis

Thanks for the reply.

Please pay attention to the fact that you cannot use this release of
MyFaces Core with the MyFaces Tomahawk library in version 1.1.1 - it
will only work with the Tomahawk library in version 1.1.2 and onward.
- I cannot find the new version of tomahawk separately @ 
http://myfaces.apache.org/download.html

Only the old 1.1.1 is available. But it is mentioned above that this will not 
work with new verion of myfaces core.


Balaji


-Original Message-
From: Dennis Byrne [mailto:[EMAIL PROTECTED]
Sent: Tuesday, 18 April 2006 5:13 PM
To: MyFaces Discussion
Subject: Re: Missing tomahawk.jar in MyFaces1.2


You may want to check your inbox for the announcement notes.  Tomahawk is now 
released seperately.

Dennis Byrne

-Original Message-
From: Balaji Kalyansundaram [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 18, 2006 03:11 AM
To: dev@myfaces.apache.org, users@myfaces.apache.org
Subject: Missing tomahawk.jar in MyFaces1.2


Hi All

Glad to hear that the new verison is available.

I cannot find the the tomahawk.jar @ 
http://www.apache.org/dyn/closer.cgi/myfaces/binaries/myfaces-core-1.1.2-bin.zip

But it has myfaces-impl.jar, etc.

Am I lloking at the wrong place?

Thanks in advance.

Balaji


This correspondence is for the named persons only.
It may contain confidential or privileged information or both.
No confidentiality or privilege is waived or lost by any mis transmission.
If you receive this correspondence in error please delete it from your system 
immediately and notify the sender.
You must not disclose, copy or relay on any part of this correspondence, if 
you are not the intended recipient.
Any opinions expressed in this message are those of the individual sender 
except where the sender expressly,
and with the authority, states them to be the opinions of the Department of 
Emergency Services, Queensland.



This correspondence is for the named persons only.
It may contain confidential or privileged information or both.
No confidentiality or privilege is waived or lost by any mis transmission.
If you receive this correspondence in error please delete it from your system 
immediately and notify the sender.
You must not disclose, copy or relay on any part of this correspondence, if you 
are not the intended recipient.
Any opinions expressed in this message are those of the individual sender 
except where the sender expressly,
and with the authority, states them to be the opinions of the Department of 
Emergency Services, Queensland.


Re: Welcome Dennis Byrne as a MyFaces committer!

2006-04-18 Thread Werner Punz
Martin Marinschek schrieb:
 Wow, a lot of welcome mails tonight!
 
 Welcome Dennis Byrne as a very active MyFaces contributor and now
 committer. Ok, he's been for a while, but can you imagine, we forgot
 to send out a welcome mail. So there it is. Dennis, it's great to have
 you aboard!
 
Congratulations



Re: Missing tomahawk.jar in MyFaces1.2

2006-04-18 Thread Werner Punz
Hi Balaji, sorry to say that, but the Tomahawk release cycles are now
decoupled due to the addition of the Tobago component set and soon also
the ADF Faces framework to the myfaces mix.

So currently there first was the core released and soon also a stable
Tomahawk 1.1.2 will be released (the fork for stable is imminent as we
speak), in the meantime I only can recommend to revert to the nighlies
until the stable Tomahawk is in sync.

In the future there will be decoupled releases of the core and the
component sets, with a much higher release frequency.

Werner



Balaji Kalyansundaram schrieb:
 Hi Dennis
 
 Thanks for the reply.
 
 Please pay attention to the fact that you cannot use this release of
 MyFaces Core with the MyFaces Tomahawk library in version 1.1.1 - it
 will only work with the Tomahawk library in version 1.1.2 and onward.
   - I cannot find the new version of tomahawk separately @ 
 http://myfaces.apache.org/download.html
 
 Only the old 1.1.1 is available. But it is mentioned above that this will not 
 work with new verion of myfaces core.
 
 
 Balaji
 
 
 -Original Message-
 From: Dennis Byrne [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, 18 April 2006 5:13 PM
 To: MyFaces Discussion
 Subject: Re: Missing tomahawk.jar in MyFaces1.2
 
 
 You may want to check your inbox for the announcement notes.  Tomahawk is now 
 released seperately.
 
 Dennis Byrne
 
 -Original Message-
 From: Balaji Kalyansundaram [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, April 18, 2006 03:11 AM
 To: dev@myfaces.apache.org, users@myfaces.apache.org
 Subject: Missing tomahawk.jar in MyFaces1.2


 Hi All

 Glad to hear that the new verison is available.

 I cannot find the the tomahawk.jar @ 
 http://www.apache.org/dyn/closer.cgi/myfaces/binaries/myfaces-core-1.1.2-bin.zip

 But it has myfaces-impl.jar, etc.

 Am I lloking at the wrong place?

 Thanks in advance.

 Balaji


 This correspondence is for the named persons only.
 It may contain confidential or privileged information or both.
 No confidentiality or privilege is waived or lost by any mis transmission.
 If you receive this correspondence in error please delete it from your 
 system immediately and notify the sender.
 You must not disclose, copy or relay on any part of this correspondence, if 
 you are not the intended recipient.
 Any opinions expressed in this message are those of the individual sender 
 except where the sender expressly,
 and with the authority, states them to be the opinions of the Department of 
 Emergency Services, Queensland.
 
 
 
 This correspondence is for the named persons only.
 
 It may contain confidential or privileged information or both.
 
 No confidentiality or privilege is waived or lost by any mis transmission.
 
 If you receive this correspondence in error please delete it from your system 
 immediately and notify the sender.
 
 You must not disclose, copy or relay on any part of this correspondence, if 
 you are not the intended recipient.
 
 Any opinions expressed in this message are those of the individual sender 
 except where the sender expressly,
 
 and with the authority, states them to be the opinions of the Department of 
 Emergency Services, Queensland.
 



Re: [ANNOUNCE] MyFaces 1.1.2

2006-04-18 Thread Martin Marinschek
Clarification: This release notification is only for MyFaces Core, not
for MyFaces Tomahawk yet. MyFaces Tomahawk will release soon.

regards,

Martin

On 4/18/06, Martin Marinschek [EMAIL PROTECTED] wrote:
 Hi *,

 the MyFaces PMC is proud to announce a new and great release of the
 MyFaces Core Implementation.

 Please pay attention to the fact that you cannot use this release of
 MyFaces Core with the MyFaces Tomahawk library in version 1.1.1 - it
 will only work with the Tomahawk library in version 1.1.2 and onward.

 From the release 1.1.2 on, you can use any Tomahawk release with a
 release number greater than 1.1.2 with any MyFaces Implementation
 release - we have taken special care to enable this.

 Find below a list of bugs that have been fixed in this release
 (caveat: this list contains both core and tomahawk bug items).

 regards,

 Martin

 P.S.: Many thanks to all the MyFaces team for enabling this release,
 especially to Sean Schofield, who has been working very hard on
 getting this done.

 Release Notes - MyFaces Core - Version 1.1.2

 ** Bug
 * [MYFACES-27] - JSCookmenu cannot be used for storing data
 * [MYFACES-32] - Multiple browser window problem with server state saving
 * [MYFACES-154] - checkbox and listbox do not handler converters well
 * [MYFACES-210] - Undesired dependency on ApplicationImpl in
 FacesConfigurator
 * [MYFACES-290] - x:datascroller does not have the immediate
 attribute to by pass the validation and update model phase
 * [MYFACES-320] - selectOneRadio does not properly persist its value
 * [MYFACES-351] - [tree2] Cannot dynamically add or delete nodes
 * [MYFACES-394] - Using /faces/* path mapping and connectiong to
 faces causes stack overflow
 * [MYFACES-428] - InputDate(s) within dataTable submitting incorrect dates
 * [MYFACES-430] - inputDate (calendar) and French Locale
 * [MYFACES-438] - [tree2] Selected node is lost when navigating to
 another page
 * [MYFACES-443] - javax.faces.render.Renderer.encodeChildren()
 should encode children
 * [MYFACES-450] - Can't use h:outputLabel against a Tomahawk component
 * [MYFACES-476] - commandButton doesn't renders well the
 application-dependent image urls
 * [MYFACES-488] - Weird re-rendered in tagfiles tags inside
 subviews inside aliasbean inside panelgrid.
 * [MYFACES-543] - Problems handling simultaneous request from the
 same session
 * [MYFACES-568] - tree2 TreeState wrong after node
 deletion/reposition, causes Servlet Exception
 * [MYFACES-581] - Frames
 * [MYFACES-588] - JSCookMenu separator bug - phantom item
 * [MYFACES-589] - inputCalendar localized month names problem
 * [MYFACES-595] - Context Problems when using target option in commandLink
 * [MYFACES-599] - Potential NullPointerException from
 HtmlResponseWriterImpl.writeAttribute()
 * [MYFACES-605] - FacesContext.getResponseStream/getResponseWriter
 unimplemented
 * [MYFACES-609] - t:dataScroller fires unnecessary ScrollerActionEvents
 * [MYFACES-610] - Getting IllegalStateException exception when
 setting javax.faces.STATE_SAVING_METHOD to server
 * [MYFACES-618] - Tree2 Expand/Collapse Handled By Server does not
 work (old opened issue MYFACES-291 still here)
 * [MYFACES-622] - HtmlSelectManyCheckbox rendering is flawed
 * [MYFACES-626] - org.apache.myfaces.el.getType(Object base, int
 index) return null if base instanceof Object[]
 * [MYFACES-627] - valueChangeListener not called for elements in
 HtmlDataTable
 * [MYFACES-630] - StartupServletContextListener should ignore
 missing web.xml
 * [MYFACES-635] - Calendar popup is incorrectly positioned inside
 scrolling div
 * [MYFACES-637] - x:commandLink/ Atrribute  'value' is not
 rendered in combination with 'enabledOnUserRole'
 * [MYFACES-639] - wrong renderer for HtmlCommandSortHeader
 * [MYFACES-642] - t:commandSortHeader is not disabled if
 attribute 'enabledOnUserRole' is used and user isn't in role
 * [MYFACES-643] - InputSuggestAjax does not work when
 javax.faces.STATE_SAVING_METHOD=server
 * [MYFACES-644] - InputDate doesn't parses submitted seconds
 * [MYFACES-646] - x:inputDate accepts invalid date input
 * [MYFACES-649] - Possible NPE in ViewTag.setProperties
 * [MYFACES-651] -
 DigesterFacesConfigDispenserImpl.feedFacesContextFactory() broken
 * [MYFACES-653] -
 org.apache.myfaces.renderkit.html.HTML.AUTOCOMPLETE_ATTR has private
 visibility
 * [MYFACES-656] - data conversion problems???
 * [MYFACES-662] - displayValueOnly property on
 HtmlSelectBooleanCheckbox throws ClassCastException during rendering
 * [MYFACES-665] - StartupServletContextListener crashes if all
 jars placed in webapp
 * [MYFACES-669] - Validation error
 * [MYFACES-671] - Component  t:collapsiblePanel , on open action
 will submit the form and call validators
 * [MYFACES-676] - DataScroller: Wrong infos with an empty collection
  

Re: Welcome Jurgen Lust to the team!

2006-04-18 Thread Matthias Wessendorf
welocme jurgen!

On 4/18/06, Stan Silvert [EMAIL PROTECTED] wrote:
 Welcome Jurgen!

 Stan Silvert
 JBoss, Inc.
 [EMAIL PROTECTED]
 callto://stansilvert

  -Original Message-
  From: Martin Marinschek [mailto:[EMAIL PROTECTED]
  Sent: Monday, April 17, 2006 6:25 PM
  To: MyFaces Development; MyFaces Discussion
  Subject: Welcome Jurgen Lust to the team!
 
  Hi *,
 
  The MyFaces PMC is pleased to announce that we've added Jurgen Lust to
  the team - Jurgen has been an active MyFaces contributor for a long
  time now, and it's a pleasure to have him aboard.
 
  @Jurgen: sorry for the delayed welcome mail - we somehow forgot about
  this.
 
  regards,
 
  Martin



--
Matthias Wessendorf
Aechterhoek 18
48282 Emsdetten
http://jroller.com/page/mwessendorf
mwessendorf-at-gmail-dot-com


Re: Source for Examples

2006-04-18 Thread Matthias Wessendorf
Sean pointed something like this out,
that we are currently not able to do *source* releases

-Matthias

On 4/17/06, Martin Marinschek [EMAIL PROTECTED] wrote:
 I think the source code is currently missing from the downloads. All
 you can do is to checkout the sources from our svn repository.

 regards,

 Martin

 On 4/17/06, Michael Baranov [EMAIL PROTECTED] wrote:
  Hi!
  Actually all the paths lead to
 
  http://www.irian.at/myfaces/home.jsf
 
  but there are only sources of JSPs, not java backing beans...
 
  Still looking...
  Michael.
   I was wondering if there is a download package for the Tomahawk
   examples zip that includes the source.  The only place on the project
   website I could find led me to a dead page:
  
   http://myfaces.apache.org/gettingstarted.html reads:
  
   MyFaces examples. Latest milestone webapp archive
   (myfaces-X.X.X-app.zip or myfaces-X.X.X-app.tgz) is here
   http://myfaces.apache.org/binary.cgi.
   But the link leads to a dead page: http://myfaces.apache.org/binary.cgi
  
   I'd really like to download the examples distribution *with* the
   source code and I think a lot of other people would find that helpful
   as well.
  
 
 


 --

 http://www.irian.at

 Your JSF powerhouse -
 JSF Consulting, Development and
 Courses in English and German

 Professional Support for Apache MyFaces



--
Matthias Wessendorf
Aechterhoek 18
48282 Emsdetten
http://jroller.com/page/mwessendorf
mwessendorf-at-gmail-dot-com


Re: Tobago t:sheet and pagingStart attribute

2006-04-18 Thread Bernd Bohmann

Can you try a update, please.

Regards

Bernd

Nazar Stasiv schrieb:
I set pagingStart to 0 in filter action. And 
InstancesBean.getPagingStart() returns 0 after filter has been changed. 
Can anyone help?


Nazar Stasiv wrote:


Hi all
There is an issue with t:sheet I came across in my project.
There's a t:sheet component on the page and it displays a collection 
of items. There is also drop-down list component above sheet. If I 
change value of drop-down list t:sheet displays new collection of 
items. It's sort of filter functionality.


Then I've got 60  items (25 per page) for 3 pages. And filter which 
filters out all but one item from the list.
When I apply filter number of pages should change from 1,2,3 to 1 
and Page 1 of 1 but it won't


See screen shot attached

Here goes the jsp code

t:sheet value=#{instances.processInstances} id=instances_sheet
columns=25px;370px;85px;145px;145px var=instance
showRowRange=none showPageRange=right 
showDirectLinks=center
directLinkCount=10 forceVerticalScrollbar=false 
pagingLength=#{instances.pagingLength}

stateChangeListener=#{instances.stateChangeListener}
pagingStart=#{instances.pagingStart}
sortActionListener=#{instances.onSort}

   t:column label=#{msgs.columns_selection}
 sortable=false align=center
   t:selectBooleanCheckbox value=#{instance.selected} 
id=selected_instance/

   /t:column
   t:column label=#{msgs.columns_processName}
 sortable=true align=left 
   rest:RESTWrapper 
submitURI=InstanceDetails?id=#{instance.iid}
   t:link action=#{instance.details} 
label=#{instance.processName}/

   /rest:RESTWrapper
   /t:column
   t:column label=#{msgs.columns_state}
 sortable=true align=left
   t:out value=#{instance.status}/
   /t:column
   t:column label=#{msgs.columns_started}
 sortable=true align=center
   t:out value=#{instance.started}
   f:convertDateTime pattern=-MM-dd hh:mm:ssa 
type=both/

   /t:out
   /t:column
   t:column label=#{msgs.columns_lastActive}
 sortable=true align=center
   t:out value=#{instance.lastActive}
   f:convertDateTime pattern=-MM-dd hh:mm:ssa 
type=both/

   /t:out
   /t:column
   /t:sheet

And action called with t:selectOne onchange attribute

   public void setCurrentFilter(String currentFilter) throws 
ConnectivityException {
   state.setInstancesPagingStart(0);// this is value 
binding to sheet pagingStart attribute
   state.setInstancesCurrentFilter(currentFilter);  
populateInstances(_sortBy + _orderBy); // updates collection of items 
in collection displayed by sheet component.

   populateProperties();
   }

Nazar









--
Dipl.-Ing. Bernd Bohmann - Atanion GmbH - Software Development
Bismarckstr. 13, 26122 Oldenburg, http://www.atanion.com
phone: +49 441 4082312, mobile: +49 173 8839471, fax: +49 441 4082333


Re: indeciperable Errors in Tobabgo app

2006-04-18 Thread Bernd Bohmann

Can you remove the include in the main tag file, please.

Can you send me the full Stacktrace?

Regards

Bernd



John schrieb:

Replacing the deprecated t:include with jsp:include (with corresponding
parameter change), didn't have any effect on the error. Line 4 is
definitely where the tag file is referenced.

John 


-Original Message-
From: Bernd Bohmann [mailto:[EMAIL PROTECTED] 
Sent: Monday, April 17, 2006 1:28 PM

To: MyFaces Discussion
Subject: Re: indeciperable Errors in Tobabgo app

Hello John,

the include tag in main.tag is deprecated please use jsp:include
instead. Because the pageparts/header.jsp is missing I remove it from
the main.tag.
I have not the time to setup all the required Objects for the sheet so i
remove the sheet too.

The page seems to be ok.

See the attached file.

Regards

Bernd



John schrieb:


Here they are...

-Original Message-
From: Bernd Bohmann [mailto:[EMAIL PROTECTED]
Sent: Monday, April 17, 2006 10:10 AM
To: MyFaces Discussion
Subject: Re: indeciperable Errors in Tobabgo app

Hello John,

can you send the jsp page and the layout tag file, please.

Regards

Bernd

John schrieb:



How to make sense of this
Line 4 is simply the inclusion of a tag file ( layout:main ), which 
has been working fine for quite a while.


An error occurred in the bean. Error Message is: 
javax.faces.FacesException: Exception in JSP: 
/pageparts/quarantinelist.jsp:4 1: %@ taglib 
uri=http://myfaces.apache.org/tobago/component; prefix=t %2: %@ 
taglib uri=http://java.sun.com/jsf/core; prefix=f %3: %@ taglib 
tagdir=/WEB-INF/tags/layout prefix=layout %4: 5: 6: 7:


Stacktrace:



Stack Trace is :

javax.faces.FacesException: javax.faces.FacesException: Exception in
JSP: /pageparts/quarantinelist.jsp:4

1: %@ taglib uri=http://myfaces.apache.org/tobago/component; 
prefix=t %

2: %@ taglib uri=http://java.sun.com/jsf/core; prefix=f %
3: %@ taglib tagdir=/WEB-INF/tags/layout prefix=layout %
4: 
5:   
6: 
7:   



Stacktrace:
at


org.apache.myfaces.tobago.application.ViewHandlerImpl.renderView(ViewH
an
dlerImpl.java:152)



at


org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:3
72
)



at


javax.faces.webapp.FacesServlet.service(FacesServlet.java:109)



at


org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appli
ca
tionFilterChain.java:252)



at


org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFi
lt
erChain.java:173)



at


org.apache.myfaces.tobago.webapp.TobagoMultipartFormdataFilter.doFilte
r(
TobagoMultipartFormdataFilter.java:81)



at


org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appli
ca
tionFilterChain.java:202)



at


org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFi
lt
erChain.java:173)



at


org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperVa
lv
e.java:213)



at


org.apache.catalina.core.StandardContextValve.invoke(StandardContextVa
lv
e.java:178)



at


org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.ja
va
:126)



at


org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.ja
va
: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:
86
9)



at


org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.pr
oc
essConnection(Http11BaseProtocol.java:667)



at


org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoi
nt
.java:527)



at


org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFoll
ow
erWorkerThread.java:80)



at


org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPo
ol
.java:684)


	at java.lang.Thread.run(Unknown Source) Caused by: 
javax.faces.FacesException: Exception in JSP: 
/pageparts/quarantinelist.jsp:4


1: %@ taglib uri=http://myfaces.apache.org/tobago/component; 
prefix=t %

2: %@ taglib uri=http://java.sun.com/jsf/core; prefix=f %
3: %@ taglib tagdir=/WEB-INF/tags/layout prefix=layout %
4: 
5:   
6: 
7:   



Stacktrace:
at


org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch
(S
ervletExternalContextImpl.java:422)



at


org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspVi
ew
HandlerImpl.java:234)



at


org.apache.myfaces.tobago.application.ViewHandlerImpl.renderView(ViewH
an
dlerImpl.java:120)



... 19 more
Caused by: org.apache.jasper.JasperException: Exception in JSP: 
/pageparts/quarantinelist.jsp:4


1: %@ taglib uri=http://myfaces.apache.org/tobago/component; 
prefix=t %

2: %@ taglib uri=http://java.sun.com/jsf/core; prefix=f %
3: %@ taglib tagdir=/WEB-INF/tags/layout 

Re: [ANNOUNCE] MyFaces 1.1.2

2006-04-18 Thread fschaare

Hi,


Please pay attention to the fact that you cannot use this release of
MyFaces Core with the MyFaces Tomahawk library in version 1.1.1 - it
will only work with the Tomahawk library in version 1.1.2 and onward.


I just downloaded the new core Version (myfaces-core-1.1.2-bin.zip)  
together with the latest Tomahawk  
Snapshot(tomahawk-1.1.2-SNAPSHOT-bin.zip).

During startup, it gives me the following exception:

javax.faces.FacesException: java.lang.NoClassDefFoundError:  
org/apache/myfaces/custom/buffer/HtmlBufferResponseWriterWrapper
	at  
org.apache.myfaces.shared_impl.util.ClassUtils.newInstance(ClassUtils.java:279)
	at  
org.apache.myfaces.shared_impl.util.ClassUtils.newInstance(ClassUtils.java:265)
	at  
org.apache.myfaces.config.FacesConfigurator.configureLifecycle(FacesConfigurator.java:634)
	at  
org.apache.myfaces.config.FacesConfigurator.configure(FacesConfigurator.java:133)
	at  
org.apache.myfaces.webapp.StartupServletContextListener.initFaces(StartupServletContextListener.java:64)
	at  
org.apache.myfaces.webapp.StartupServletContextListener.contextInitialized(StartupServletContextListener.java:47)
	at  
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3727)

at 
org.apache.catalina.core.StandardContext.start(StandardContext.java:4162)
	at  
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)

at 
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
	at  
org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:603)
	at  
org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:535)

at 
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:470)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1118)
at 
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310)
	at  
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)

at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1020)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1012)
at 
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
at 
org.apache.catalina.core.StandardService.start(StandardService.java:450)
at 
org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at  
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at  
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:275)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)

It?s right, there is definetely no  
HtmlBufferResponseWriterWrapper.class in Tomahawk.jar. How do i bring  
it to work ? Any ideas where the missing classes are included ?


Re: Tobago t:sheet and pagingStart attribute

2006-04-18 Thread Nazar Stasiv

Which source files should I update?
Bernd Bohmann wrote:

Can you try a update, please.

Regards

Bernd




Re: Faces Trace

2006-04-18 Thread Cagatay Civici
Hi,After some brainstorming on the discussion here's what I come up with;cv:requiredFieldValidator message=Value is required highlight=true enablePopup=false display=dynamic
 h:message for="" styleClass=someClass //cv:requiredFieldValidatorBy this way the message will be displayed using the message component. Also there are flags like enablePopup, display, highlight and more to provide flexibility. The validators should use commons-validator also.
Another idea will be to use the built-in standart validators rather than seperate client validators above and in this case an attribute like enableClientScript is needed. This will allow the validator validate at client site. Validators than can do both client and server side validation is the approach of Shale and .NET.
Regards,Cagatay CiviciOn 4/18/06, Martin Marinschek [EMAIL PROTECTED] wrote:
Yes.That's the other thing I'd like to have - automatic client-sidevalidation happening with the server side validation in place. It
would be good to have something like a hook in the extended validators- with this hook, they are asked to render out their client-sidevalidation _javascript_.Using this, separate validators wouldn't be necessary.
Still, I think that the rendering question is very important. In thecurrent state when working with ADF, I wished I could disable clientside validation in ADF faces alltogether (I'm sure there is a way to
do so, didn't look deeper into it so far). The popup box is just notcontext sensitive enough.regards,MartinOn 4/18/06, Adam Winer [EMAIL PROTECTED] wrote:
  On 4/17/06, Martin Marinschek [EMAIL PROTECTED] wrote:   What I like about ADF faces is that it uses existing validators for
   the client side validation. What I don't like is that it notifies the   user with a popup box - not very interactive IMHO. I agree too - I'd like to feed that it into better schemes,
 which I think is doable given the current APIs, esp. popups floating by existing components. But to me, the really important issues aren't so much how it gets rendered (which can be massaged down the line), but the
 basic architectural ones, most particularly, how do you attach client-side validation?For that, the only really clean answer is that it should happen implicitly as a result of adding a server-side validation, so that client-side validation is always
 a strict subset of server-side validation.Any client-side validation scheme that doesn't follow this pattern is a security risk. -- Adam   How do you tell the users that validation failed?
--http://www.irian.atYour JSF powerhouse -JSF Consulting, Development andCourses in English and GermanProfessional Support for Apache MyFaces



Re: Faces Trace

2006-04-18 Thread Martin Marinschek
Yes, something like this. Don't know if the message needs to be
included - can we find a way not to do this? What if you have several
validators, but only one message component.

@using the default server side validators:

Due to the reasons Adam has pointed out (potential security risk) it
would be good to have validators which always do server side
validation as well.

regards,

Martin

On 4/18/06, Cagatay Civici [EMAIL PROTECTED] wrote:
 Hi,

 After some brainstorming on the discussion here's what I come up with;

 cv:requiredFieldValidator message=Value is required highlight=true
 enablePopup=false display=dynamic
  h:message for=someInputTextToBeValidated
 styleClass=someClass /
 /cv:requiredFieldValidator

 By this way the message will be displayed using the message component. Also
 there are flags like enablePopup, display, highlight and more to provide
 flexibility. The validators should use commons-validator also.

 Another idea will be to use the built-in standart validators rather than
 seperate client validators above and in this case an attribute like
 enableClientScript is needed. This will allow the validator validate at
 client site. Validators than can do both client and server side validation
 is the approach of Shale and .NET.

 Regards,

 Cagatay Civici


 On 4/18/06, Martin Marinschek [EMAIL PROTECTED] wrote:
  Yes.
 
  That's the other thing I'd like to have - automatic client-side
  validation happening with the server side validation in place. It
  would be good to have something like a hook in the extended validators
  - with this hook, they are asked to render out their client-side
  validation javascript.
 
  Using this, separate validators wouldn't be necessary.
 
  Still, I think that the rendering question is very important. In the
  current state when working with ADF, I wished I could disable client
  side validation in ADF faces alltogether (I'm sure there is a way to
  do so, didn't look deeper into it so far). The popup box is just not
  context sensitive enough.
 
  regards,
 
  Martin
 
  On 4/18/06, Adam Winer [EMAIL PROTECTED] wrote:
On 4/17/06, Martin Marinschek [EMAIL PROTECTED] wrote:
 What I like about ADF faces is that it uses existing validators for
 the client side validation. What I don't like is that it notifies
 the
 user with a popup box - not very interactive IMHO.
  
   I agree too - I'd like to feed that it into better schemes,
   which I think is doable given the current APIs, esp.
   popups floating by existing components.
  
   But to me, the really important issues aren't so much how it gets
   rendered (which can be massaged down the line), but the
   basic architectural ones, most particularly, how do you attach
   client-side validation?  For that, the only really clean answer
   is that it should happen implicitly as a result of adding a
   server-side validation, so that client-side validation is always
   a strict subset of server-side validation.  Any client-side validation
   scheme that doesn't follow this pattern is a security risk.
  
   -- Adam
  
  
  
  
 How do you tell the users that validation failed?
  
  
 
 
  --
 
  http://www.irian.at
 
  Your JSF powerhouse -
  JSF Consulting, Development and
  Courses in English and German
 
  Professional Support for Apache MyFaces
 




--

http://www.irian.at

Your JSF powerhouse -
JSF Consulting, Development and
Courses in English and German

Professional Support for Apache MyFaces


Re: Tobago t:sheet and pagingStart attribute

2006-04-18 Thread Bernd Bohmann

myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/component/Pager.java

myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/component/UIData.java



Nazar Stasiv schrieb:

Which source files should I update?
Bernd Bohmann wrote:


Can you try a update, please.

Regards

Bernd






--
Dipl.-Ing. Bernd Bohmann - Atanion GmbH - Software Development
Bismarckstr. 13, 26122 Oldenburg, http://www.atanion.com
phone: +49 441 4082312, mobile: +49 173 8839471, fax: +49 441 4082333


HTML Editor - JSF 1.2 roadmap

2006-04-18 Thread Philippe Lamote

Hi,

I've got 2 less-related questions:

1/ I've seen various HTML editor pass the revue (Dojo, TinyMCE, Kupu)
-- Any advice on which to use best? Apparently Kupu has Win IE  
integration issues, yet I guess it was chosen for Tomahawk over some  
others for a good reason(s)? (perhaps valid back then anymore but not  
anymore?)
Also, if one of the core devs is listening: which one will future  
Tomahawk releases embrace? Will T stick to Kupu and improve it, or  
switch to one of the others?


2/ Is there a (more or less vague, unofficial) timeframe for a  
MyFaces impl release in line ith JSF 1.2? (June/...?)


Thx for advice,
Philippe



Re: HTML Editor - JSF 1.2 roadmap

2006-04-18 Thread Werner Punz
Philippe Lamote schrieb:
 Hi,
 
 I've got 2 less-related questions:
 
 1/ I've seen various HTML editor pass the revue (Dojo, TinyMCE, Kupu)
 -- Any advice on which to use best? Apparently Kupu has Win IE
 integration issues, yet I guess it was chosen for Tomahawk over some
 others for a good reason(s)? (perhaps valid back then anymore but not
 anymore?)
 Also, if one of the core devs is listening: which one will future
 Tomahawk releases embrace? Will T stick to Kupu and improve it, or
 switch to one of the others?
 
Actually the easiest replacement currently probably is to use the
dojoInitializer to get it, the tomahawk sandbox has a full dojo in there
and the editor can be reached via a textarea and the dojo initializer

In the long run there will be a full blown dojo html editor, it is just
a matter of personal time why this thing has not been implemented
(crossported, there is at least one other attempt at it)

I think being able to settle down on the dojo editor currently is our
best option licenswise. Most html editors (TinyMCE for instance) are
either LGPL or GPL.

Also really soon now there will be a pagelet editor available as tag
which I had to develop for another project (and the main reason why the
dojo integration has stalled somewhat from my side)

This can serve as full html editor replacement.
I am speaking of a checkin timeframe of within the next two weeks.

http://wuerg.kicks-ass.net:8080/spellchecker/example.jsf

works best in ie, but it works with some glitches in moz already








Re: HTML Editor - JSF 1.2 roadmap

2006-04-18 Thread Matthias Wessendorf
 Actually the easiest replacement currently probably is to use the
 dojoInitializer to get it, the tomahawk sandbox has a full dojo in there
 and the editor can be reached via a textarea and the dojo initializer

Philippe-

you may also take a look at [1]

-Matthias

[1] http://tinyurl.com/cp9jm


Re: [ANNOUNCE] MyFaces 1.1.2

2006-04-18 Thread Martin Marinschek
Don't know where this reference comes from - it's not there anymore in
the current MyFaces sources.

Did you get rid of the commons jar file? There is none in the new
MyFaces-release.

regards,

Martin

On 4/18/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 Hi,

  Please pay attention to the fact that you cannot use this release of
  MyFaces Core with the MyFaces Tomahawk library in version 1.1.1 - it
  will only work with the Tomahawk library in version 1.1.2 and onward.

 I just downloaded the new core Version (myfaces-core-1.1.2-bin.zip)
 together with the latest Tomahawk
 Snapshot(tomahawk-1.1.2-SNAPSHOT-bin.zip).
 During startup, it gives me the following exception:

 javax.faces.FacesException: java.lang.NoClassDefFoundError:
 org/apache/myfaces/custom/buffer/HtmlBufferResponseWriterWrapper
 at
 org.apache.myfaces.shared_impl.util.ClassUtils.newInstance(ClassUtils.java:279)
 at
 org.apache.myfaces.shared_impl.util.ClassUtils.newInstance(ClassUtils.java:265)
 at
 org.apache.myfaces.config.FacesConfigurator.configureLifecycle(FacesConfigurator.java:634)
 at
 org.apache.myfaces.config.FacesConfigurator.configure(FacesConfigurator.java:133)
 at
 org.apache.myfaces.webapp.StartupServletContextListener.initFaces(StartupServletContextListener.java:64)
 at
 org.apache.myfaces.webapp.StartupServletContextListener.contextInitialized(StartupServletContextListener.java:47)
 at
 org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3727)
 at 
 org.apache.catalina.core.StandardContext.start(StandardContext.java:4162)
 at
 org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
 at 
 org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
 at 
 org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
 at
 org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:603)
 at
 org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:535)
 at 
 org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:470)
 at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1118)
 at 
 org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310)
 at
 org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
 at 
 org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1020)
 at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
 at 
 org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1012)
 at 
 org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
 at 
 org.apache.catalina.core.StandardService.start(StandardService.java:450)
 at 
 org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
 at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:585)
 at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:275)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)

 It?s right, there is definetely no
 HtmlBufferResponseWriterWrapper.class in Tomahawk.jar. How do i bring
 it to work ? Any ideas where the missing classes are included ?




--

http://www.irian.at

Your JSF powerhouse -
JSF Consulting, Development and
Courses in English and German

Professional Support for Apache MyFaces


Re: Faces Trace

2006-04-18 Thread Cagatay Civici
Hi,Then design maybe changed like;cv:requiredFieldValidator for="" msg=msg1 error=Value is required highlight=true enablePopup=false / 
h:message id=msg1 styleClass=someClass /This way there is no need to include the message component as a child. The validator knows what to validate and what to use the display the error message. If the msg attribute is not provided than the validation error is displayed at main h:messages which acts like validation summary.
Regards,Cagatay Civici,On 4/18/06, Martin Marinschek 
[EMAIL PROTECTED] wrote:
Yes, something like this. Don't know if the message needs to beincluded - can we find a way not to do this? What if you have several
validators, but only one message component.@using the default server side validators:Due to the reasons Adam has pointed out (potential security risk) itwould be good to have validators which always do server side
validation as well.regards,MartinOn 4/18/06, Cagatay Civici [EMAIL PROTECTED]
 wrote: Hi, After some brainstorming on the discussion here's what I come up with;
 cv:requiredFieldValidator message=Value is required highlight=true enablePopup=false display=dynamich:message for=""
 styleClass=someClass / /cv:requiredFieldValidator By this way the message will be displayed using the message component. Also there are flags like enablePopup, display, highlight and more to provide
 flexibility. The validators should use commons-validator also. Another idea will be to use the built-in standart validators rather than seperate client validators above and in this case an attribute like
 enableClientScript is needed. This will allow the validator validate at client site. Validators than can do both client and server side validation is the approach of Shale and .NET.

 Regards, Cagatay Civici On 4/18/06, Martin Marinschek 
[EMAIL PROTECTED] wrote:  Yes. 
  That's the other thing I'd like to have - automatic client-side  validation happening with the server side validation in place. It  would be good to have something like a hook in the extended validators
  - with this hook, they are asked to render out their client-side  validation _javascript_.   Using this, separate validators wouldn't be necessary.   Still, I think that the rendering question is very important. In the
  current state when working with ADF, I wished I could disable client  side validation in ADF faces alltogether (I'm sure there is a way to  do so, didn't look deeper into it so far). The popup box is just not
  context sensitive enough.   regards,   Martin   On 4/18/06, Adam Winer 
[EMAIL PROTECTED] wrote:
On 4/17/06, Martin Marinschek [EMAIL PROTECTED] wrote:
 What I like about ADF faces is that it uses existing validators for
 the client side validation. What I don't like is that it notifies the user with a popup box - not very interactive IMHO. I agree too - I'd like to feed that it into better schemes,
   which I think is doable given the current APIs, esp.   popups floating by existing components. But to me, the really important issues aren't so much how it gets
   rendered (which can be massaged down the line), but the   basic architectural ones, most particularly, how do you attach   client-side validation?For that, the only really clean answer
   is that it should happen implicitly as a result of adding a   server-side validation, so that client-side validation is always   a strict subset of server-side validation.Any client-side validation
   scheme that doesn't follow this pattern is a security risk. -- Adam How do you tell the users that validation failed?
--   http://www.irian.at
   Your JSF powerhouse -  JSF Consulting, Development and
  Courses in English and German   Professional Support for Apache MyFaces --
http://www.irian.at
Your JSF powerhouse -JSF Consulting, Development andCourses in English and GermanProfessional Support for Apache MyFaces


Re: Faces Trace

2006-04-18 Thread Martin Marinschek
@Catagay: forget my offlist question

The central messages element we could find by going through the tree
and finding the first instance of the messages component. Would that
be ok?

regards,

Martin

On 4/18/06, Cagatay Civici [EMAIL PROTECTED] wrote:
 Hi,

 Then design maybe changed like;

 cv:requiredFieldValidator for=text1 msg=msg1 error=Value is required
 highlight=true enablePopup=false /
 h:message id=msg1 styleClass=someClass /

 This way there is no need to include the message component as a child. The
 validator knows what to validate and what to use the display the error
 message. If the msg attribute is not provided than the validation error is
 displayed at main h:messages which acts like validation summary.


 Regards,

 Cagatay Civici,

 On 4/18/06, Martin Marinschek  [EMAIL PROTECTED] wrote:
  Yes, something like this. Don't know if the message needs to be
  included - can we find a way not to do this? What if you have several
  validators, but only one message component.
 
  @using the default server side validators:
 
  Due to the reasons Adam has pointed out (potential security risk) it
  would be good to have validators which always do server side
  validation as well.
 
  regards,
 
  Martin
 
  On 4/18/06, Cagatay Civici [EMAIL PROTECTED]  wrote:
   Hi,
  
   After some brainstorming on the discussion here's what I come up with;
  
   cv:requiredFieldValidator message=Value is required highlight=true
   enablePopup=false display=dynamic
h:message for=someInputTextToBeValidated
   styleClass=someClass /
   /cv:requiredFieldValidator
  
   By this way the message will be displayed using the message component.
 Also
   there are flags like enablePopup, display, highlight and more to provide
   flexibility. The validators should use commons-validator also.
  
   Another idea will be to use the built-in standart validators rather than
   seperate client validators above and in this case an attribute like
   enableClientScript is needed. This will allow the validator validate
 at
   client site. Validators than can do both client and server side
 validation
   is the approach of Shale and .NET.
  
   Regards,
  
   Cagatay Civici
  
  
   On 4/18/06, Martin Marinschek  [EMAIL PROTECTED] wrote:
Yes.
   
That's the other thing I'd like to have - automatic client-side
validation happening with the server side validation in place. It
would be good to have something like a hook in the extended validators
- with this hook, they are asked to render out their client-side
validation javascript.
   
Using this, separate validators wouldn't be necessary.
   
Still, I think that the rendering question is very important. In the
current state when working with ADF, I wished I could disable client
side validation in ADF faces alltogether (I'm sure there is a way to
do so, didn't look deeper into it so far). The popup box is just not
context sensitive enough.
   
regards,
   
Martin
   
On 4/18/06, Adam Winer  [EMAIL PROTECTED] wrote:
  On 4/17/06, Martin Marinschek [EMAIL PROTECTED] wrote:
   What I like about ADF faces is that it uses existing validators
 for
   the client side validation. What I don't like is that it
 notifies
   the
   user with a popup box - not very interactive IMHO.

 I agree too - I'd like to feed that it into better schemes,
 which I think is doable given the current APIs, esp.
 popups floating by existing components.

 But to me, the really important issues aren't so much how it gets
 rendered (which can be massaged down the line), but the
 basic architectural ones, most particularly, how do you attach
 client-side validation?  For that, the only really clean answer
 is that it should happen implicitly as a result of adding a
 server-side validation, so that client-side validation is always
 a strict subset of server-side validation.  Any client-side
 validation
 scheme that doesn't follow this pattern is a security risk.

 -- Adam




   How do you tell the users that validation failed?


   
   
--
   
http://www.irian.at
   
Your JSF powerhouse -
JSF Consulting, Development and
Courses in English and German
   
Professional Support for Apache MyFaces
   
  
  
 
 
  --
 
  http://www.irian.at
 
  Your JSF powerhouse -
  JSF Consulting, Development and
  Courses in English and German
 
  Professional Support for Apache MyFaces
 




--

http://www.irian.at

Your JSF powerhouse -
JSF Consulting, Development and
Courses in English and German

Professional Support for Apache MyFaces


Forced to use session bean for datatable

2006-04-18 Thread 101questionjsf

hi all,

I'm using datatable with sorting option for quite a number of pages, with
session beans for nearly all beans.

If I switch to use request scope bean, the sorting will not work for the
datatable.

Is it alright that nearly all my beans are session scoped? Or is there any
other option such that i can have sorting option and also request scoped?

Thanks
--
View this message in context: 
http://www.nabble.com/Forced-to-use-session-bean-for-datatable-t1467150.html#a3965215
Sent from the MyFaces - Users forum at Nabble.com.



Re: Welcome Jurgen Lust to the team!

2006-04-18 Thread Bruno Aranda
Wellcome!

Bruno

On 4/18/06, Matthias Wessendorf [EMAIL PROTECTED] wrote:
 welocme jurgen!

 On 4/18/06, Stan Silvert [EMAIL PROTECTED] wrote:
  Welcome Jurgen!
 
  Stan Silvert
  JBoss, Inc.
  [EMAIL PROTECTED]
  callto://stansilvert
 
   -Original Message-
   From: Martin Marinschek [mailto:[EMAIL PROTECTED]
   Sent: Monday, April 17, 2006 6:25 PM
   To: MyFaces Development; MyFaces Discussion
   Subject: Welcome Jurgen Lust to the team!
  
   Hi *,
  
   The MyFaces PMC is pleased to announce that we've added Jurgen Lust to
   the team - Jurgen has been an active MyFaces contributor for a long
   time now, and it's a pleasure to have him aboard.
  
   @Jurgen: sorry for the delayed welcome mail - we somehow forgot about
   this.
  
   regards,
  
   Martin
 


 --
 Matthias Wessendorf
 Aechterhoek 18
 48282 Emsdetten
 http://jroller.com/page/mwessendorf
 mwessendorf-at-gmail-dot-com



Re: Welcome Dennis Byrne as a MyFaces committer!

2006-04-18 Thread Bruno Aranda
Wellcome again!

Bruno

On 4/18/06, Werner Punz [EMAIL PROTECTED] wrote:
 Martin Marinschek schrieb:
  Wow, a lot of welcome mails tonight!
 
  Welcome Dennis Byrne as a very active MyFaces contributor and now
  committer. Ok, he's been for a while, but can you imagine, we forgot
  to send out a welcome mail. So there it is. Dennis, it's great to have
  you aboard!
 
 Congratulations




Re: HTML Editor - JSF 1.2 roadmap

2006-04-18 Thread Philippe Lamote

Thanks Matthias  Werner,

Has dojo been tested for compliance with IE/Moz/Safari(OSX)... ?
(this currently is the main problem - Kupu just doesn't work on IE)
Phil

On 18 Apr 2006, at 11:20, Matthias Wessendorf wrote:


Actually the easiest replacement currently probably is to use the
dojoInitializer to get it, the tomahawk sandbox has a full dojo in  
there

and the editor can be reached via a textarea and the dojo initializer


Philippe-

you may also take a look at [1]

-Matthias

[1] http://tinyurl.com/cp9jm



RE: How to fire an Action in x:panelTab

2006-04-18 Thread Jesse Alexander \(KSFD 121\)
Do you have server- or client-state?

I think that I remeber some issues with server-state and that
tabchange-listener

hth
Alexander

 -Original Message-
 From: MYyfaces Chaminda Siyasin [mailto:[EMAIL PROTECTED] 
 Sent: Sunday, April 16, 2006 9:34 AM
 To: users@myfaces.apache.org
 Subject: How to fire an Action in x:panelTab
 
 
 I am using myfaces s x:panelTabbedPane Tag in a Tab Pane of my
 application.but I want to fire a action event in side the 
 Tab.So I used
 Myfaces x:tabChangeListener type attribute but there is no 
 action firing.
 And I tried to use 
 
  x:panelTab id=tab4 label=CCC
 rendered=#{tabbedPaneBean._tab4Visible}
 
  h:form
   h:commandLink id =tab4
 actionListener=#{tabPaneListenerBean.listen}
   h:outputText value=2005-02-03/
   /h:commandLink
   /h:form
 
  f:verbatim/p/f:verbatim
   
   h:outputText 
 value=#{exampleTabbedPane.selectedIndexT}/
 /x:panelTab
 
 Even h:commandLink id is not working inside the  x:panelTab id
 Could you please give me a hint regarding on action firing in 
 this Tab Pane.
 
 Thanks,
 
 chaminda
 --
 View this message in context: 
 http://www.nabble.com/How-to-fire-an-Action-in-%3Cx%3ApanelTab
-t1456923.html#a3937410
 Sent from the MyFaces - Users forum at Nabble.com.
 
 


Re: HTML Editor - JSF 1.2 roadmap

2006-04-18 Thread Werner Punz
Philippe Lamote schrieb:
 Thanks Matthias  Werner,
 
 Has dojo been tested for compliance with IE/Moz/Safari(OSX)... ?
 (this currently is the main problem - Kupu just doesn't work on IE)
 Phil
 
The dojo editor at least works on mozilla and ie, I think also on
safari, there might be some issues with opera though.



Re: Forced to use session bean for datatable

2006-04-18 Thread Murat Hazer
Hi,You can save your lists (datatable uses) with t:saveState, this is a better approach then session scoped beans as i know.regards...On 4/18/06, 
101questionjsf [EMAIL PROTECTED] wrote:
hi all,I'm using datatable with sorting option for quite a number of pages, withsession beans for nearly all beans.If I switch to use request scope bean, the sorting will not work for thedatatable.
Is it alright that nearly all my beans are session scoped? Or is there anyother option such that i can have sorting option and also request scoped?Thanks--View this message in context: 
http://www.nabble.com/Forced-to-use-session-bean-for-datatable-t1467150.html#a3965215Sent from the MyFaces - Users forum at Nabble.com.
-- Murat HAZERElektrik-Elektronik Mühendisi - Electrical-Electronics EngineerTel - Phone: +90 222 335 05 80 - 1395Cep Tel - Mobile Phone: +90 532 472 00 63Blog URL: 
http://www.projedunyasi.orgYahoo Group: http://groups.yahoo.com/group/malatyafenlisesi/


Re: HTML Editor - JSF 1.2 roadmap

2006-04-18 Thread Werner Punz
Matthias Wessendorf schrieb:
 Actually the easiest replacement currently probably is to use the
 dojoInitializer to get it, the tomahawk sandbox has a full dojo in there
 and the editor can be reached via a textarea and the dojo initializer
 
 Philippe-
 
 you may also take a look at [1]
 
 -Matthias
 
 [1] http://tinyurl.com/cp9jm
 
Well one warning though, with this method you cannot adjust the buttons
the better way currently is to use the dojoinitilizer for the requires
statements and then use standard javascripts for initializing the editor.
AFAIR there is an example in the somewhat hidden dojo subdir of the
myfaces-sandbox examples where exactly that is done.
If not please drop a message here and I will post some code.



Re: HTML Editor - JSF 1.2 roadmap

2006-04-18 Thread Philippe Lamote

Hi Werner,

Did I understood well that the timeframe to promote it from the  
sandbox(s:) to t:(plain Tomahawk) is about 2 weeks?


Philippe
On 18 Apr 2006, at 12:43, Werner Punz wrote:

Philippe Lamote schrieb:

Thanks Matthias  Werner,

Has dojo been tested for compliance with IE/Moz/Safari(OSX)... ?
(this currently is the main problem - Kupu just doesn't work on IE)
Phil


The dojo editor at least works on mozilla and ie, I think also on
safari, there might be some issues with opera though.




Re: HTML Editor - JSF 1.2 roadmap

2006-04-18 Thread Werner Punz
Werner Punz schrieb:
 Matthias Wessendorf schrieb:
 Actually the easiest replacement currently probably is to use the
 dojoInitializer to get it, the tomahawk sandbox has a full dojo in there
 and the editor can be reached via a textarea and the dojo initializer
 Philippe-

 you may also take a look at [1]

 -Matthias

 [1] http://tinyurl.com/cp9jm

 Well one warning though, with this method you cannot adjust the buttons
 the better way currently is to use the dojoinitilizer for the requires
 statements and then use standard javascripts for initializing the editor.
 AFAIR there is an example in the somewhat hidden dojo subdir of the
 myfaces-sandbox examples where exactly that is done.
 If not please drop a message here and I will post some code.
 
 
Sorry to answer here again, the affected file can be found in
myfaces-examples-sandbox/dojo/textareatestjsfonly.jsp (jsf)


this is a small demo on how to initialize the editor

http://wuerg.kicks-ass.net:8080/myfaces-example-sandbox/dojo/textareatestjsfonly.jsf

here is a small demo.
If you need the text edtor limited into a smaller area, wrap it into a div.

Note it is important that you use a textarea as a starting base, due to
the form handling, if you use a div as a starting base for the dojo
editor the form values will be lost.

here is a general description:
http://dojotoolkit.org/docs/rich_text.html




Re: HTML Editor - JSF 1.2 roadmap

2006-04-18 Thread Werner Punz
Philippe Lamote schrieb:
 Hi Werner,
 
 Did I understood well that the timeframe to promote it from the
 sandbox(s:) to t:(plain Tomahawk) is about 2 weeks?
 
No sorry I was unclear, the timeframe for the pagelet component to hit
the sandbox will be around two weeks, depending on how much time I can
spend on it.

The promotion of dojo from the sandbox to Tomahawk is not decided yet.
I probably will wait for the dojo 0.3 release and the component fixup
which has to be done before we move forward with that one, unless there
are imminent reasons for doing that sooner.

The main reason why I am holding off, besides the obvious lack of time
(and the myfaces 1.1.2 release), is that we have some very complicated
components in the sandbox which rely on some dojo internals which might
be broken. And the 0.3 release should have a stable enough API so that
we do not run into those issues in the immediate future once we start to
move core code towards dojo, tomahawk wise.



Re: HTML Editor - JSF 1.2 roadmap

2006-04-18 Thread Werner Punz
Another thing I forgot, you can use the dojo rich edit as is, I doubht
anything will be broken in this regard.
As long as you use the initializer apis and do not start to mess around
with some internals, like I had to do, you are safe anyway.



Re: [ANNOUNCE] MyFaces 1.1.2

2006-04-18 Thread Matthias Wessendorf
ConvertDateTimeTagBase  is inside of SHARED

On 4/18/06, Vesa Lindfors [EMAIL PROTECTED] wrote:
 Hi,

 Many thanks of 1.1.2 core.

 I have understood that we should still build the sandbox jar with maven
 (until official 1.1.2 versions available).
 I tried twice: I took svn update, then I gave maven clean and maven
 install - but both times the result was:

 Compiling 150 source files to
 C:\Myfaces-1.1.2\current\core\impl\target\classes
 [INFO]
 -
 ---
 [ERROR] BUILD FAILURE
 [INFO]
 -
 ---
 [INFO] Compilation failure

 C:\Myfaces-1.1.2\current\core\impl\src\main\java\org\apache\myfaces\taglib\core\
 ConvertDateTimeTag.java:[21,50] cannot resolve symbol
 symbol  : class ConvertDateTimeTagBase
 location: package core

 C:\Myfaces-1.1.2\current\core\impl\src\main\java\org\apache\myfaces\taglib\core\
 ConvertDateTimeTag.java:[29,16] cannot resolve symbol
 symbol  : class ConvertDateTimeTagBase
 location: class
 org.apache.myfaces.taglib.core.ConvertDateTimeTag

 C:\Myfaces-1.1.2\current\core\impl\src\main\java\org\apache\myfaces\taglib\core\
 ConvertDateTimeTag.java:[40,8] cannot resolve symbol
 symbol  : variable super
 location: class
 org.apache.myfaces.taglib.core.ConvertDateTimeTag

 C:\Myfaces-1.1.2\current\core\impl\src\main\java\org\apache\myfaces\taglib\core\
 ConvertDateTimeTag.java:[41,8] cannot resolve symbol
 symbol  : method setConverterId ( java.lang.String)
 location: class
 org.apache.myfaces.taglib.core.ConvertDateTimeTag


  br,
  --- VLi ---



 On 4/18/06, Martin Marinschek [EMAIL PROTECTED] wrote:
  Don't know where this reference comes from - it's not there anymore in
  the current MyFaces sources.
 
  Did you get rid of the commons jar file? There is none in the new
  MyFaces-release.
 
  regards,
 
  Martin
 
  On 4/18/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
   Hi,
  
Please pay attention to the fact that you cannot use this release of
MyFaces Core with the MyFaces Tomahawk library in version 1.1.1 - it
will only work with the Tomahawk library in version 1.1.2 and onward.
  
   I just downloaded the new core Version ( myfaces-core-1.1.2-bin.zip)
   together with the latest Tomahawk
   Snapshot(tomahawk-1.1.2-SNAPSHOT-bin.zip).
   During startup, it gives me the following exception:
  
   javax.faces.FacesException : java.lang.NoClassDefFoundError:
  
 org/apache/myfaces/custom/buffer/HtmlBufferResponseWriterWrapper
   at
  
 org.apache.myfaces.shared_impl.util.ClassUtils.newInstance(ClassUtils.java:279)
   at
  
 org.apache.myfaces.shared_impl.util.ClassUtils.newInstance(ClassUtils.java:265)
   at
  
 org.apache.myfaces.config.FacesConfigurator.configureLifecycle(FacesConfigurator.java:634)
   at
  
 org.apache.myfaces.config.FacesConfigurator.configure(FacesConfigurator.java:133)
   at
  
 org.apache.myfaces.webapp.StartupServletContextListener.initFaces(StartupServletContextListener.java:64)
   at
  
 org.apache.myfaces.webapp.StartupServletContextListener.contextInitialized(StartupServletContextListener.java:47)
   at
   org.apache.catalina.core.StandardContext.listenerStart
 (StandardContext.java:3727)
   at
 org.apache.catalina.core.StandardContext.start(StandardContext.java:4162)
   at
  
 org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java
 :759)
   at
 org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
   at
 org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
   at
   org.apache.catalina.startup.HostConfig.deployDescriptor
 (HostConfig.java:603)
   at
  
 org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:535)
   at
 org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:470)
   at
 org.apache.catalina.startup.HostConfig.start(HostConfig.java:1118)
   at
 org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310)
   at
  
 org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent
 (LifecycleSupport.java:119)
   at
 org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1020)
   at
 org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
   at
 org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1012)
   at
 org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
   at
 org.apache.catalina.core.StandardService.start
 (StandardService.java:450)
   at
 org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
   at
 org.apache.catalina.startup.Catalina.start(Catalina.java:551)
   at sun.reflect.NativeMethodAccessorImpl.invoke0
 (Native Method)
   at
  
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
   

Re: [ANNOUNCE] MyFaces 1.1.2

2006-04-18 Thread Vesa Lindfors
Thanks, 
Yes I can see that it is inside shared - I just don't know what I should do 
my knowledge of maven/svn environment is limited to lines told in Myfaces Wiki.
So, for me the only way to build the sandbox has been mvn install and that fails now.
--- VLi ---On 4/18/06, Matthias Wessendorf [EMAIL PROTECTED] wrote:
ConvertDateTimeTagBaseis inside of SHAREDOn 4/18/06, Vesa Lindfors [EMAIL PROTECTED] wrote: Hi, Many thanks of 1.1.2 core.
 I have understood that we should still build the sandbox jar with maven (until official 1.1.2 versions available). I tried twice: I took svn update, then I gave maven clean and maven
 install - but both times the result was: Compiling 150 source files to C:\Myfaces-1.1.2\current\core\impl\target\classes [INFO] -
 --- [ERROR] BUILD FAILURE [INFO] - --- [INFO] Compilation failure C:\Myfaces-1.1.2\current\core\impl\src\main\java\org\apache\myfaces\taglib\core\
 ConvertDateTimeTag.java:[21,50] cannot resolve symbol symbol: class ConvertDateTimeTagBase location: package core C:\Myfaces-1.1.2\current\core\impl\src\main\java\org\apache\myfaces\taglib\core\
 ConvertDateTimeTag.java:[29,16] cannot resolve symbol symbol: class ConvertDateTimeTagBase location: class org.apache.myfaces.taglib.core.ConvertDateTimeTag C:\Myfaces-1.1.2\current\core\impl\src\main\java\org\apache\myfaces\taglib\core\
 ConvertDateTimeTag.java:[40,8] cannot resolve symbol symbol: variable super location: class org.apache.myfaces.taglib.core.ConvertDateTimeTag C:\Myfaces-1.1.2\current\core\impl\src\main\java\org\apache\myfaces\taglib\core\
 ConvertDateTimeTag.java:[41,8] cannot resolve symbol symbol: method setConverterId ( java.lang.String) location: class org.apache.myfaces.taglib.core.ConvertDateTimeTag
br,--- VLi --- On 4/18/06, Martin Marinschek [EMAIL PROTECTED] wrote:  Don't know where this reference comes from - it's not there anymore in
  the current MyFaces sources.   Did you get rid of the commons jar file? There is none in the new  MyFaces-release.   regards,   Martin
   On 4/18/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:   Hi,  Please pay attention to the fact that you cannot use this release of
MyFaces Core with the MyFaces Tomahawk library in version 1.1.1 - itwill only work with the Tomahawk library in version 1.1.2 and onward. I just downloaded the new core Version ( 
myfaces-core-1.1.2-bin.zip)   together with the latest Tomahawk   Snapshot(tomahawk-1.1.2-SNAPSHOT-bin.zip).   During startup, it gives me the following exception:  
   javax.faces.FacesException : java.lang.NoClassDefFoundError:   org/apache/myfaces/custom/buffer/HtmlBufferResponseWriterWrapper   at  
 org.apache.myfaces.shared_impl.util.ClassUtils.newInstance(ClassUtils.java:279)   at   org.apache.myfaces.shared_impl.util.ClassUtils.newInstance(ClassUtils.java:265)
   at   org.apache.myfaces.config.FacesConfigurator.configureLifecycle(FacesConfigurator.java:634)   at   org.apache.myfaces.config.FacesConfigurator.configure
(FacesConfigurator.java:133)   at   org.apache.myfaces.webapp.StartupServletContextListener.initFaces(StartupServletContextListener.java:64)   at
   org.apache.myfaces.webapp.StartupServletContextListener.contextInitialized(StartupServletContextListener.java:47)   at   org.apache.catalina.core.StandardContext.listenerStart
 (StandardContext.java:3727)   at org.apache.catalina.core.StandardContext.start(StandardContext.java:4162)   at   org.apache.catalina.core.ContainerBase.addChildInternal
(ContainerBase.java :759)   at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)   at org.apache.catalina.core.StandardHost.addChild
(StandardHost.java:524)   at   org.apache.catalina.startup.HostConfig.deployDescriptor (HostConfig.java:603)   at   org.apache.catalina.startup.HostConfig.deployDescriptors
(HostConfig.java:535)   at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:470)   at org.apache.catalina.startup.HostConfig.start(HostConfig.java
:1118)   at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310)   at   org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent
 (LifecycleSupport.java:119)   at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1020)   at org.apache.catalina.core.StandardHost.start
(StandardHost.java:718)   at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1012)   at org.apache.catalina.core.StandardEngine.start(StandardEngine.java
:442)   at org.apache.catalina.core.StandardService.start (StandardService.java:450)   at org.apache.catalina.core.StandardServer.start(StandardServer.java
:700)   at org.apache.catalina.startup.Catalina.start(Catalina.java:551)   at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)   at
   sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)   at   

Re: Missing tomahawk.jar in MyFaces1.2

2006-04-18 Thread Sean Schofield
I'm not sorry to say it ;-)  This is a good thing.  It should mean
more frequent releases of tomahawk which changes often as opposed to
the core which is stable but requires lots of testing before a
release.

Sean

On 4/18/06, Werner Punz [EMAIL PROTECTED] wrote:
 Hi Balaji, sorry to say that, but the Tomahawk release cycles are now
 decoupled due to the addition of the Tobago component set and soon also
 the ADF Faces framework to the myfaces mix.

 So currently there first was the core released and soon also a stable
 Tomahawk 1.1.2 will be released (the fork for stable is imminent as we
 speak), in the meantime I only can recommend to revert to the nighlies
 until the stable Tomahawk is in sync.

 In the future there will be decoupled releases of the core and the
 component sets, with a much higher release frequency.

 Werner



 Balaji Kalyansundaram schrieb:
  Hi Dennis
 
  Thanks for the reply.
 
  Please pay attention to the fact that you cannot use this release of
  MyFaces Core with the MyFaces Tomahawk library in version 1.1.1 - it
  will only work with the Tomahawk library in version 1.1.2 and onward.
- I cannot find the new version of tomahawk separately @ 
  http://myfaces.apache.org/download.html
 
  Only the old 1.1.1 is available. But it is mentioned above that this will 
  not work with new verion of myfaces core.
 
 
  Balaji
 
 
  -Original Message-
  From: Dennis Byrne [mailto:[EMAIL PROTECTED]
  Sent: Tuesday, 18 April 2006 5:13 PM
  To: MyFaces Discussion
  Subject: Re: Missing tomahawk.jar in MyFaces1.2
 
 
  You may want to check your inbox for the announcement notes.  Tomahawk is 
  now released seperately.
 
  Dennis Byrne
 
  -Original Message-
  From: Balaji Kalyansundaram [mailto:[EMAIL PROTECTED]
  Sent: Tuesday, April 18, 2006 03:11 AM
  To: dev@myfaces.apache.org, users@myfaces.apache.org
  Subject: Missing tomahawk.jar in MyFaces1.2
 
 
  Hi All
 
  Glad to hear that the new verison is available.
 
  I cannot find the the tomahawk.jar @ 
  http://www.apache.org/dyn/closer.cgi/myfaces/binaries/myfaces-core-1.1.2-bin.zip
 
  But it has myfaces-impl.jar, etc.
 
  Am I lloking at the wrong place?
 
  Thanks in advance.
 
  Balaji
 
 
  This correspondence is for the named persons only.
  It may contain confidential or privileged information or both.
  No confidentiality or privilege is waived or lost by any mis transmission.
  If you receive this correspondence in error please delete it from your 
  system immediately and notify the sender.
  You must not disclose, copy or relay on any part of this correspondence, 
  if you are not the intended recipient.
  Any opinions expressed in this message are those of the individual sender 
  except where the sender expressly,
  and with the authority, states them to be the opinions of the Department 
  of Emergency Services, Queensland.
 
 
 
  This correspondence is for the named persons only.
 
  It may contain confidential or privileged information or both.
 
  No confidentiality or privilege is waived or lost by any mis transmission.
 
  If you receive this correspondence in error please delete it from your 
  system immediately and notify the sender.
 
  You must not disclose, copy or relay on any part of this correspondence, if 
  you are not the intended recipient.
 
  Any opinions expressed in this message are those of the individual sender 
  except where the sender expressly,
 
  and with the authority, states them to be the opinions of the Department of 
  Emergency Services, Queensland.
 




Tomahawk dataTable dubt. How to handle each row differently

2006-04-18 Thread Sergio Flor
Hi all, I'm currrently develping a simple web page that shows
informations through a tomahawk dataTable.

I'd like to don't render a single row of my table when, for instance,
a property of my currentObject be false.

Ps.: I can't remove this entry from my collection before rendering my
page because when I'm going to save this collection in the database,
this record shall be persisted even so not rendered on my page.

Thanks and best regards.

Sergio Flor.


Question About Loading Items Into/ From Beans

2006-04-18 Thread Troy Bull

Greetings:

I will start out by saying I am coming from a struts background.  When I 
program struts every one of my applications started out with kicker.do.  
This action is where I loaded up collections of DTO's (ejb 2).  Then in 
my jsp pages I would use these collections to display menus (drop downs) 
and other things. 

Now that I have switched to (or am trying to) JSF, I dont understand how 
I can access my database data.  For example, I have a page main.jsp and 
on that page I want to have a JSF data table.  I have a session facade 
bean that returns a collection of DTO's that I want in the table, how do 
I access this collection from my  page?  In the old scheme I would load 
the collection into a session scoped variable and then just iterate over 
it.  Is there some way I can tell my data table to invoke my session ejb 
facade bean?  I am really confused.


Thanks in advance for any pointers
troy


Sortable tables dataTable and commandSortHeader

2006-04-18 Thread Sasa Milosavljevic
I need to render different title on commandSortHeader link regarding
is it current  column equal to sort column. So I need to check for
every header something like this  commandSortHeader.columnName ==
sortColumn. I suppose i can find component via context , perform
conversion and check condition, but I am not sure is this the best way
to do that?
Thanks in advance.
Sasha


Re: Question About Loading Items Into/ From Beans

2006-04-18 Thread Matthias Wessendorf
use in main.jsp h:dataTable value=#{bean.list} ...

and in constructor of your backing bean bean popluate the propery list .

list can be any of these *types*:
-  Arrays
- java.util.List
- java.sql.ResultSet
- javax.servlet.jsp.jstl.sql.Result

JSF isn't an action based framework.

Btw. if you don't know how to define a backing bean, which is a normal
JvaBean, please go ahead and read some *introductions* ;-)

HTH,
Matthias

On 4/18/06, Troy Bull [EMAIL PROTECTED] wrote:
 Greetings:

 I will start out by saying I am coming from a struts background.  When I
 program struts every one of my applications started out with kicker.do.
 This action is where I loaded up collections of DTO's (ejb 2).  Then in
 my jsp pages I would use these collections to display menus (drop downs)
 and other things.

 Now that I have switched to (or am trying to) JSF, I dont understand how
 I can access my database data.  For example, I have a page main.jsp and
 on that page I want to have a JSF data table.  I have a session facade
 bean that returns a collection of DTO's that I want in the table, how do
 I access this collection from my  page?  In the old scheme I would load
 the collection into a session scoped variable and then just iterate over
 it.  Is there some way I can tell my data table to invoke my session ejb
 facade bean?  I am really confused.

 Thanks in advance for any pointers
 troy



--
Matthias Wessendorf
Aechterhoek 18
48282 Emsdetten
http://jroller.com/page/mwessendorf
mwessendorf-at-gmail-dot-com


Char Encoding

2006-04-18 Thread Murat Hazer
Hi,I see this line(s) at the output console after each page render completed17:16:09,796 DEBUG HtmlResponseWriterImpl:97 - No character encoding given, using default character encoding ISO-8859-1i am using spring's 
CharacterEncodingFilter to solve this problem as below; 
filter 
filter-nameencodingFilter/filter-name 
filter-classorg.springframework.web.filter.CharacterEncodingFilter/filter-class 
init-param 
param-nameencoding/param-name 
param-valueUTF-8/param-value 
/init-param 
init-param 
param-nameforceEncoding/param-name 
param-valuetrue/param-value 
/init-param 
/filtershould i do something different in order to change default char encoding to utf-8?-- Murat HAZERElektrik-Elektronik Mühendisi - Electrical-Electronics Engineer
Tel - Phone: +90 222 335 05 80 - 1395Cep Tel - Mobile Phone: +90 532 472 00 63
Blog URL: http://www.projedunyasi.orgYahoo Group: 
http://groups.yahoo.com/group/malatyafenlisesi/



Re: Question About Loading Items Into/ From Beans

2006-04-18 Thread Matthias Wessendorf
btw. [1] shows the complete value of UIData.getValue().
More on DataModel see [2]



[1] http://tinyurl.com/nnsg8
[2] http://tinyurl.com/moy8b

On 4/18/06, Matthias Wessendorf [EMAIL PROTECTED] wrote:
 use in main.jsp h:dataTable value=#{bean.list} ...

 and in constructor of your backing bean bean popluate the propery list .

 list can be any of these *types*:
 -  Arrays
 - java.util.List
 - java.sql.ResultSet
 - javax.servlet.jsp.jstl.sql.Result

 JSF isn't an action based framework.

 Btw. if you don't know how to define a backing bean, which is a normal
 JvaBean, please go ahead and read some *introductions* ;-)

 HTH,
 Matthias

 On 4/18/06, Troy Bull [EMAIL PROTECTED] wrote:
  Greetings:
 
  I will start out by saying I am coming from a struts background.  When I
  program struts every one of my applications started out with kicker.do.
  This action is where I loaded up collections of DTO's (ejb 2).  Then in
  my jsp pages I would use these collections to display menus (drop downs)
  and other things.
 
  Now that I have switched to (or am trying to) JSF, I dont understand how
  I can access my database data.  For example, I have a page main.jsp and
  on that page I want to have a JSF data table.  I have a session facade
  bean that returns a collection of DTO's that I want in the table, how do
  I access this collection from my  page?  In the old scheme I would load
  the collection into a session scoped variable and then just iterate over
  it.  Is there some way I can tell my data table to invoke my session ejb
  facade bean?  I am really confused.
 
  Thanks in advance for any pointers
  troy
 


 --
 Matthias Wessendorf
 Aechterhoek 18
 48282 Emsdetten
 http://jroller.com/page/mwessendorf
 mwessendorf-at-gmail-dot-com



--
Matthias Wessendorf
Aechterhoek 18
48282 Emsdetten
http://jroller.com/page/mwessendorf
mwessendorf-at-gmail-dot-com


Re: Char Encoding

2006-04-18 Thread Cagatay Civici
Hi,What about the filter mapping, are you sure the filter does it's job. Also you can do the same thing with a custom filter like;import java.io.IOException;import javax.servlet.Filter;import 
javax.servlet.FilterChain;import javax.servlet.FilterConfig;import javax.servlet.ServletException;import javax.servlet.ServletRequest;import javax.servlet.ServletResponse;public class YourCharEncodingFilter implements Filter {
 public void init(FilterConfig arg0) throws ServletException { } public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain) throws IOException, ServletException {
 servletRequest.setCharacterEncoding(UTF-8); servletResponse.setCharacterEncoding(UTF-8); filterChain.doFilter(servletRequest, servletResponse); } public void destroy() {
 }}Regards,CagatayOn 4/18/06, Murat Hazer [EMAIL PROTECTED] wrote:
Hi,I see this line(s) at the output console after each page render completed
17:16:09,796 DEBUG HtmlResponseWriterImpl:97 - No character encoding given, using default character encoding ISO-8859-1i am using spring's 
CharacterEncodingFilter to solve this problem as below; 
filter 
filter-nameencodingFilter/filter-name 
filter-classorg.springframework.web.filter.CharacterEncodingFilter/filter-class 
init-param 
param-nameencoding/param-name 
param-valueUTF-8/param-value 
/init-param 
init-param 
param-nameforceEncoding/param-name 
param-valuetrue/param-value 
/init-param 
/filtershould i do something different in order to change default char encoding to utf-8?-- Murat HAZERElektrik-Elektronik Mühendisi - Electrical-Electronics Engineer
Tel - Phone: +90 222 335 05 80 - 1395Cep Tel - Mobile Phone: +90 532 472 00 63
Blog URL: http://www.projedunyasi.orgYahoo Group: 

http://groups.yahoo.com/group/malatyafenlisesi/





JSF and Portlets commandbutton path to my pic

2006-04-18 Thread Benjamin Bratkus

Hello all,

i want to display a pic above my commandButton but i cant find a 
resolution because
org.apache.jasper.JasperException: /index.jsp(18,0) According to TLD or 
attribute directive in tag file, attribute image does not accept any 
expressions


h:commandButton value=gt; 
image=%=renderResponse.encodeURL(renderRequest.getContextPath() + 
/path/to/pic.gif)% action=#{Overview.createEmpty} /



any suggestions ? hints?

best regards,

ben


Re: Question About Loading Items Into/ From Beans

2006-04-18 Thread Troy Bull




Thanks for the push in the right direction. This worked perfectly!

Troy

Matthias Wessendorf said the following on 4/18/2006 9:25 AM:

  use in main.jsp h:dataTable value="#{bean.list}" ...

and in constructor of your backing bean "bean" popluate the propery "list" .

list can be any of these *types*:
-  Arrays
- java.util.List
- java.sql.ResultSet
- javax.servlet.jsp.jstl.sql.Result

JSF isn't an action based framework.

Btw. if you don't know how to define a backing bean, which is a normal
JvaBean, please go ahead and read some *introductions* ;-)

HTH,
Matthias

On 4/18/06, Troy Bull [EMAIL PROTECTED] wrote:
  
  
Greetings:

I will start out by saying I am coming from a struts background.  When I
program struts every one of my applications started out with kicker.do.
This action is where I loaded up collections of DTO's (ejb 2).  Then in
my jsp pages I would use these collections to display menus (drop downs)
and other things.

Now that I have switched to (or am trying to) JSF, I dont understand how
I can access my database data.  For example, I have a page main.jsp and
on that page I want to have a JSF data table.  I have a session facade
bean that returns a collection of DTO's that I want in the table, how do
I access this collection from my  page?  In the old scheme I would load
the collection into a session scoped variable and then just iterate over
it.  Is there some way I can tell my data table to invoke my session ejb
facade bean?  I am really confused.

Thanks in advance for any pointers
troy


  
  

--
Matthias Wessendorf
Aechterhoek 18
48282 Emsdetten
http://jroller.com/page/mwessendorf
mwessendorf-at-gmail-dot-com
  






Re: JSF and Portlets commandbutton path to my pic

2006-04-18 Thread Matthias Wessendorf
have you tried something like

#{facesContext.externalContext.requestContextPath}

another thing might be using binding attribute. With that you'll get
java based access to the component inside of your managed bean

Regards,
Matthias

On 4/18/06, Benjamin Bratkus [EMAIL PROTECTED] wrote:
 Hello all,

 i want to display a pic above my commandButton but i cant find a
 resolution because
 org.apache.jasper.JasperException: /index.jsp(18,0) According to TLD or
 attribute directive in tag file, attribute image does not accept any
 expressions

 h:commandButton value=gt;
 image=%=renderResponse.encodeURL(renderRequest.getContextPath() +
 /path/to/pic.gif)% action=#{Overview.createEmpty} /


 any suggestions ? hints?

 best regards,

 ben



--
Matthias Wessendorf
Aechterhoek 18
48282 Emsdetten
http://jroller.com/page/mwessendorf
mwessendorf-at-gmail-dot-com


Re: Sortable tables dataTable and commandSortHeader

2006-04-18 Thread Andrew Robinson
Is this what you want?t:dataTable sortColumn=#{bean.sortby} t:column t:commandSortHeader column=COLUMN1 t:outputText value=#{'COLUMN1' eq 
bean.sortby ? 'SORTED' : 'NOTSORTED'} / /t:commandSortHeader /t:column/t:dataTable-AndrewOn 4/18/06, 
Sasa Milosavljevic [EMAIL PROTECTED] wrote:
I need to render different title on commandSortHeader link regardingis it currentcolumn equal to sort column. So I need to check forevery header something like thiscommandSortHeader.columnName ==sortColumn. I suppose i can find component via context , perform
conversion and check condition, but I am not sure is this the best wayto do that?Thanks in advance.Sasha


Re: JSF and Portlets commandbutton path to my pic

2006-04-18 Thread Matthias Wessendorf
btw. there is also an *interesting* util clazz inside of MyFaces
([1])

[1] 
http://myfaces.apache.org/impl/apidocs/org/apache/myfaces/portlet/PortletUtil.html

On 4/18/06, Matthias Wessendorf [EMAIL PROTECTED] wrote:
 have you tried something like

 #{facesContext.externalContext.requestContextPath}

 another thing might be using binding attribute. With that you'll get
 java based access to the component inside of your managed bean

 Regards,
 Matthias

 On 4/18/06, Benjamin Bratkus [EMAIL PROTECTED] wrote:
  Hello all,
 
  i want to display a pic above my commandButton but i cant find a
  resolution because
  org.apache.jasper.JasperException: /index.jsp(18,0) According to TLD or
  attribute directive in tag file, attribute image does not accept any
  expressions
 
  h:commandButton value=gt;
  image=%=renderResponse.encodeURL(renderRequest.getContextPath() +
  /path/to/pic.gif)% action=#{Overview.createEmpty} /
 
 
  any suggestions ? hints?
 
  best regards,
 
  ben
 


 --
 Matthias Wessendorf
 Aechterhoek 18
 48282 Emsdetten
 http://jroller.com/page/mwessendorf
 mwessendorf-at-gmail-dot-com



--
Matthias Wessendorf
Aechterhoek 18
48282 Emsdetten
http://jroller.com/page/mwessendorf
mwessendorf-at-gmail-dot-com


Re: Sortable tables dataTable and commandSortHeader

2006-04-18 Thread Catalin Kormos
Hi Sasha,Well, one solution would be to add an new attribute similar to "rowIndexVar", probably named "currentColumnVar" that will act as parameter name, under  which a boolean is set in request scope, set to true for the currently sorted column, and false for the others.I'm planning to provide a patch for this in the next couple of days, if this sounds good to others too, or somebody else is not faster than me :).Regards,CatalinSasa Milosavljevic [EMAIL PROTECTED] wrote: I need to render different title on commandSortHeader link regardingis it current  column equal to sort column. So I need to check forevery header something like this  commandSortHeader.columnName ==sortColumn. I suppose i can find component via context , performconversion and check
 condition, but I am not sure is this the best wayto do that?Thanks in advance.Sasha
		Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls.  Great rates starting at 1/min.

Faces context is null

2006-04-18 Thread Hasnain Badami
Hi

I am trying to implement a security filter. In the doFilter method if I am trying to get the faces context using FacesContext.getCurrentInstance() but this instruction returns null.
Any idea of why this is happening?

Actually on authentication failure I would like to reload the login page and the main purpose of getting the facescontext is to get the navigationhandler and load the login page. Any alternative ideas would be highly appreciated.


Thanks

Hassnain


RE: Faces context is null

2006-04-18 Thread Dennie de Lange








Best practice is to use
the default security mechanism of your container. 



Something like: 

[code]

 login-config

 auth-methodFORM/auth-method

 realm-namemyRealm/realm-name

 form-login-config

 form-login-page/login.jsf/form-login-page

 form-error-page/login-error.jsf/form-error-page

 /form-login-config

 /login-config

[/code]



Check your
applicationserver descriptor how to set an authenticator. 



Greets Dennie









From:
Hasnain Badami [mailto:[EMAIL PROTECTED] 
Sent: dinsdag 18 april 2006 17:18
To: MyFaces Discussion
Subject: Faces context is null







Hi











I am trying to implement a security filter. In the doFilter method if I
am trying to get the faces context using FacesContext.getCurrentInstance() but
this instruction returns null.





Any idea of why this is happening?











Actually on authentication failure I would like to reload the login
page and the main purpose of getting the facescontext is to get the
navigationhandler and load the login page. Any alternative ideas would be
highly appreciated. 











Thanks











Hassnain










Re: Faces context is null

2006-04-18 Thread Matthias Wessendorf
 I am trying to implement a security filter. In the doFilter method if I am
 trying to get the faces context using FacesContext.getCurrentInstance() but
 this instruction returns null.

Right!

 Any idea of why this is happening?

FacesContext is setup inside of FacesServlet.service() ([1]) for each request.
So your filter is called before service() is call. That's why you get
a null value.


 Actually on authentication failure I would like to reload the login page and
 the main purpose of getting the facescontext is to get the navigationhandler
 and load the login page. Any alternative ideas would be highly appreciated.

J2EE based security might be usful. Or ou may try a PhaseListener
instead, which is called *inside* the Faces framework.

[1] http://tinyurl.com/ha6s5

 Thanks

 Hassnain


--
Matthias Wessendorf
Aechterhoek 18
48282 Emsdetten
http://jroller.com/page/mwessendorf
mwessendorf-at-gmail-dot-com


Re: Sortable tables dataTable and commandSortHeader

2006-04-18 Thread Sasa Milosavljevic
Thanks Adrew that works.
I looked for more general solution but forget this simple one.
Regards Sasha.

On 4/18/06, Andrew Robinson [EMAIL PROTECTED] wrote:
 Is this what you want?

 t:dataTable sortColumn=#{bean.sortby}
   t:column
 t:commandSortHeader column=COLUMN1
   t:outputText value=#{'COLUMN1' eq bean.sortby ? 'SORTED' :
 'NOTSORTED'} /
 /t:commandSortHeader
   /t:column
 /t:dataTable

 -Andrew


 On 4/18/06, Sasa Milosavljevic [EMAIL PROTECTED] wrote:
  I need to render different title on commandSortHeader link regarding
  is it current  column equal to sort column. So I need to check for
  every header something like this  commandSortHeader.columnName ==
  sortColumn. I suppose i can find component via context , perform
  conversion and check condition, but I am not sure is this the best way
  to do that?
  Thanks in advance.
  Sasha
 




h:messages to display bean messages?

2006-04-18 Thread Michael Baranov

Hello!
Save my poor soul!!! :-)

I'm seeking a way to be able to report high-level bean messages back to 
the user (e.g. password-confirmation mismatch etc.), not only field 
validation messages summary.
Please, tell me how to do it... I cant find a way to use HtmlMessages 
class (and h:messages tag) properly... No addMessage(...) -like methods.


Thank you!!!
   Michael.



Re: JSF and Portlets commandbutton path to my pic

2006-04-18 Thread Benjamin Bratkus

hello matthias,

thanks for your fast reply,

could you give me more details for this sollution ? should my 
commandButton look like :


h:commandButton value=gt;
image=#{facesContext.externalContext.requestContextPath} +
/path/to/pic.gif action=#{Overview.createEmpty} /  



?

best regards,

ben


Matthias Wessendorf schrieb:

btw. there is also an *interesting* util clazz inside of MyFaces
([1])

[1] 
http://myfaces.apache.org/impl/apidocs/org/apache/myfaces/portlet/PortletUtil.html
  

thanks for this hint

On 4/18/06, Matthias Wessendorf [EMAIL PROTECTED] wrote:
  

have you tried something like

#{facesContext.externalContext.requestContextPath}

another thing might be using binding attribute. With that you'll get

java based access to the component inside of your managed bean


certainly i could try this one but i want to avoid it


Regards,
Matthias

On 4/18/06, Benjamin Bratkus [EMAIL PROTECTED] wrote:


Hello all,

i want to display a pic above my commandButton but i cant find a
resolution because
org.apache.jasper.JasperException: /index.jsp(18,0) According to TLD or
attribute directive in tag file, attribute image does not accept any
expressions

h:commandButton value=gt;
image=%=renderResponse.encodeURL(renderRequest.getContextPath() +
/path/to/pic.gif)% action=#{Overview.createEmpty} /


any suggestions ? hints?

best regards,

ben

  

--
Matthias Wessendorf
Aechterhoek 18
48282 Emsdetten
http://jroller.com/page/mwessendorf
mwessendorf-at-gmail-dot-com





--
Matthias Wessendorf
Aechterhoek 18
48282 Emsdetten
http://jroller.com/page/mwessendorf
mwessendorf-at-gmail-dot-com


  




Re: JSF and Portlets commandbutton path to my pic

2006-04-18 Thread Matthias Wessendorf
hey,

 commandButton look like :

 h:commandButton value=gt;
 image=#{facesContext.externalContext.requestContextPath} +
 /path/to/pic.gif action=#{Overview.createEmpty} /

please try

image=#{facesContext.externalContext.requestContextPath}/path/to/pic.gif

if this isn't good for you, bind the component to a backing bean by using

binding=#{mybean.button}

The property button must be type of HtmlCommandButton
there you can use something like

button.setImage(foo.gif);


HTH,
Matthias


 ?

 best regards,

 ben


 Matthias Wessendorf schrieb:
  btw. there is also an *interesting* util clazz inside of MyFaces
  ([1])
 
  [1] 
  http://myfaces.apache.org/impl/apidocs/org/apache/myfaces/portlet/PortletUtil.html
 
 thanks for this hint
  On 4/18/06, Matthias Wessendorf [EMAIL PROTECTED] wrote:
 
  have you tried something like
 
  #{facesContext.externalContext.requestContextPath}
 
  another thing might be using binding attribute. With that you'll get
  java based access to the component inside of your managed bean
 
 certainly i could try this one but i want to avoid it

  Regards,
  Matthias
 
  On 4/18/06, Benjamin Bratkus [EMAIL PROTECTED] wrote:
 
  Hello all,
 
  i want to display a pic above my commandButton but i cant find a
  resolution because
  org.apache.jasper.JasperException: /index.jsp(18,0) According to TLD or
  attribute directive in tag file, attribute image does not accept any
  expressions
 
  h:commandButton value=gt;
  image=%=renderResponse.encodeURL(renderRequest.getContextPath() +
  /path/to/pic.gif)% action=#{Overview.createEmpty} /
 
 
  any suggestions ? hints?
 
  best regards,
 
  ben
 
 
  --
  Matthias Wessendorf
  Aechterhoek 18
  48282 Emsdetten
  http://jroller.com/page/mwessendorf
  mwessendorf-at-gmail-dot-com
 
 
 
 
  --
  Matthias Wessendorf
  Aechterhoek 18
  48282 Emsdetten
  http://jroller.com/page/mwessendorf
  mwessendorf-at-gmail-dot-com
 
 
 




--
Matthias Wessendorf
Aechterhoek 18
48282 Emsdetten
http://jroller.com/page/mwessendorf
mwessendorf-at-gmail-dot-com


Re: Sortable tables dataTable and commandSortHeader

2006-04-18 Thread Sasa Milosavljevic
Thanks Catalin,

That may be solution.

Regards, Sasha


On 4/18/06, Catalin Kormos [EMAIL PROTECTED] wrote:
 Hi Sasha,

 Well, one solution would be to add an new attribute similar to
 rowIndexVar, probably named currentColumnVar that will act as parameter
 name, under which a boolean is set in request scope, set to true for the
 currently sorted column, and false for the others.

 I'm planning to provide a patch for this in the next couple of days, if this
 sounds good to others too, or somebody else is not faster than me :).

 Regards,
 Catalin


 Sasa Milosavljevic [EMAIL PROTECTED] wrote:
  I need to render different title on commandSortHeader link regarding
 is it current column equal to sort column. So I need to check for
 every header something like this commandSortHeader.columnName ==
 sortColumn. I suppose i can find component via context , perform
 conversion and check condition, but I am not sure is this the best way
 to do that?
 Thanks in advance.
 Sasha



  
 Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great rates
 starting at 1¢/min.




Re: h:messages to display bean messages?

2006-04-18 Thread vace117

h:messages will print all global FacesMessage instances found in the
FacesContext. If you want to add a message from your Invoke Application
phase (an actionListener method, for example), just do this:

if ( passwords don't match ) {
  
MessageUtils.addMessage(FacesMessage.SEVERITY_ERROR,message.key.passwords.nomatch,
null);
}

This message will be displayed by the h:messages tag.
--
View this message in context: 
http://www.nabble.com/%3Ch%3Amessages%3E-to-display-bean-messages--t1468904.html#a3970818
Sent from the MyFaces - Users forum at Nabble.com.



Re: Faces context is null

2006-04-18 Thread Hasnain Badami
Thanks for your reply guys.

I also tried to use request.getRequestDispatcher(./login.jsf).forward(request, response) instruction to forward to the login page incase of authentication failure. But when this instruction gets executed instead of loading the login page, the first page of the website (only accessible to logged in users) is shown, which is strange. I added system println statements to my code. When 
login.jsf is loaded for the first time the output appears, but later when i am forwarding to it after login failure it isnt.

Any idea of what might be the problem.

once again thanks for your replies

Hassnain

On 4/18/06, Matthias Wessendorf [EMAIL PROTECTED] wrote:
 I am trying to implement a security filter. In the doFilter method if I am trying to get the faces context using 
FacesContext.getCurrentInstance() but this instruction returns null.Right! Any idea of why this is happening?FacesContext is setup inside of FacesServlet.service() ([1]) for each request.
So your filter is called before service() is call. That's why you geta null value. Actually on authentication failure I would like to reload the login page and the main purpose of getting the facescontext is to get the navigationhandler
 and load the login page. Any alternative ideas would be highly appreciated.J2EE based security might be usful. Or ou may try a PhaseListenerinstead, which is called *inside* the Faces framework.
[1] http://tinyurl.com/ha6s5 Thanks Hassnain--Matthias WessendorfAechterhoek 1848282 Emsdetten
http://jroller.com/page/mwessendorfmwessendorf-at-gmail-dot-com


RE: Faces context is null

2006-04-18 Thread Rhys Parry
Why do you need faces?  Whats the business?

Rhys

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of
Matthias Wessendorf
Sent: April 18, 2006 11:28 AM
To: MyFaces Discussion
Subject: Re: Faces context is null


 I am trying to implement a security filter. In the doFilter method if I am
 trying to get the faces context using FacesContext.getCurrentInstance() but
 this instruction returns null.

Right!

 Any idea of why this is happening?

FacesContext is setup inside of FacesServlet.service() ([1]) for each request.
So your filter is called before service() is call. That's why you get
a null value.


 Actually on authentication failure I would like to reload the login page and
 the main purpose of getting the facescontext is to get the navigationhandler
 and load the login page. Any alternative ideas would be highly appreciated.

J2EE based security might be usful. Or ou may try a PhaseListener
instead, which is called *inside* the Faces framework.

[1] http://tinyurl.com/ha6s5

 Thanks

 Hassnain


--
Matthias Wessendorf
Aechterhoek 18
48282 Emsdetten
http://jroller.com/page/mwessendorf
mwessendorf-at-gmail-dot-com


RE: Faces context is null

2006-04-18 Thread Frank Felix Debatin



Hasnain, 

try a redirect like this:

httpResponse.sendRedirect(
 
httpResponse.encodeRedirectURL(LOGIN_URL) 
);
HTH 
Frank 
Felix

  
  
  From: Hasnain Badami 
  [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 18, 2006 5:50 
  PMTo: MyFaces DiscussionSubject: Re: Faces context is 
  null
  
  Thanks for your reply guys.
  
  I also tried to use 
  request.getRequestDispatcher("./login.jsf").forward(request, response) 
  instruction to forward to the login page incase of authentication failure. But 
  when this instruction gets executed instead of loading the login page, the 
  first page of the website (only accessible to logged in users) is shown, which 
  is strange. I added system println statements to my code. When login.jsf is 
  loaded for the first time the output appears, but later when i am forwarding 
  to it after login failure it isnt.
  
  Any idea of what might be the problem.
  
  once again thanks for your replies
  
  Hassnain
  
  On 4/18/06, Matthias 
  Wessendorf [EMAIL PROTECTED] wrote: 
   
I am trying to implement a security filter. In the doFilter method if I 
am trying to get the faces context using 
FacesContext.getCurrentInstance() but this instruction returns 
null.Right! Any idea of why this is 
happening?FacesContext is setup inside of FacesServlet.service() 
([1]) for each request. So your filter is called before service() is 
call. That's why you geta null value. Actually on 
authentication failure I would like to reload the login page and the 
main purpose of getting the facescontext is to get the navigationhandler 
 and load the login page. Any alternative ideas would be highly 
appreciated.J2EE based security might be usful. Or ou may try a 
PhaseListenerinstead, which is called *inside* the Faces 
framework.[1] http://tinyurl.com/ha6s5 
Thanks Hassnain--Matthias 
WessendorfAechterhoek 1848282 Emsdettenhttp://jroller.com/page/mwessendorfmwessendorf-at-gmail-dot-com


Converter with parameters

2006-04-18 Thread Massimiliano Cantoni
I am trying to develop an application using Myfaces and now I am facing 
this problem:


I am trying to develop a custom converter using the converter tag.
To be more concrete I am trying to convert the name of a document given 
the id.
Unfortunately the name of the document is not depending only on the id 
but also on another customization number and

I do not know how to pass it to the converter.

I tried the following

h:outputText value=#{obj.id} 
   f:converter converterId=MyConverter
  f:attribute name=custom value=#{obj.custom}/
   /f:converter
/h:outputText

But unfortunately it says that converter must be empty according to TLD.

I tried also the follwing
h:outputText value=#{obj.id} 
   f:attribute name=custom value=#{obj.custom}/
   f:converter converterId=MyConverter/
/h:outputText

and tried to get custom from MyConverter code without any success.

Am I using the correct approach?

Can someone point me on the right direction?

JSF newbie but not too much

--
--
Cantoni Massimiliano

CED Assicom S.p.a. 
email: [EMAIL PROTECTED]

Indirizzo: Via De Cocule 33030 BUIA(UD)
Telefono: 0432/9683
--



Re: Faces context is null

2006-04-18 Thread Hasnain Badami
Thanks Frank, it works :)

Hassnain
On 4/18/06, Frank Felix Debatin [EMAIL PROTECTED] wrote:


Hasnain, 

try a redirect like this:

httpResponse.sendRedirect(
 httpResponse.encodeRedirectURL(LOGIN_URL) );
HTH 
Frank Felix




From: Hasnain Badami [mailto:[EMAIL PROTECTED]] 

Sent: Tuesday, April 18, 2006 5:50 PM
To: MyFaces DiscussionSubject: Re: Faces context is null



Thanks for your reply guys.

I also tried to use request.getRequestDispatcher(./login.jsf).forward(request, response) instruction to forward to the login page incase of authentication failure. But when this instruction gets executed instead of loading the login page, the first page of the website (only accessible to logged in users) is shown, which is strange. I added system println statements to my code. When 
login.jsf is loaded for the first time the output appears, but later when i am forwarding to it after login failure it isnt.

Any idea of what might be the problem.

once again thanks for your replies

Hassnain

On 4/18/06, Matthias Wessendorf [EMAIL PROTECTED]
 wrote: 
 I am trying to implement a security filter. In the doFilter method if I am trying to get the faces context using 
FacesContext.getCurrentInstance() but this instruction returns null.Right! Any idea of why this is happening?FacesContext is setup inside of FacesServlet.service() ([1]) for each request. 
So your filter is called before service() is call. That's why you geta null value. Actually on authentication failure I would like to reload the login page and the main purpose of getting the facescontext is to get the navigationhandler 
 and load the login page. Any alternative ideas would be highly appreciated.J2EE based security might be usful. Or ou may try a PhaseListenerinstead, which is called *inside* the Faces framework.
[1] http://tinyurl.com/ha6s5 Thanks Hassnain--Matthias Wessendorf
Aechterhoek 1848282 Emsdettenhttp://jroller.com/page/mwessendorfmwessendorf-at-gmail-dot-com





Re: Faces context is null

2006-04-18 Thread Hasnain Badami
Sorry it didnt worked :-(

Hassnain
On 4/18/06, Hasnain Badami [EMAIL PROTECTED] wrote:


Thanks Frank, it works :)

Hassnain

On 4/18/06, Frank Felix Debatin [EMAIL PROTECTED] wrote:
 


Hasnain, 

try a redirect like this:

httpResponse.sendRedirect(
 httpResponse.encodeRedirectURL(LOGIN_URL) );
HTH 
Frank Felix




From: Hasnain Badami [mailto:[EMAIL PROTECTED]] 

Sent: Tuesday, April 18, 2006 5:50 PM
To: MyFaces DiscussionSubject: Re: Faces context is null



Thanks for your reply guys.

I also tried to use request.getRequestDispatcher(./login.jsf).forward(request, response) instruction to forward to the login page incase of authentication failure. But when this instruction gets executed instead of loading the login page, the first page of the website (only accessible to logged in users) is shown, which is strange. I added system println statements to my code. When 
login.jsf is loaded for the first time the output appears, but later when i am forwarding to it after login failure it isnt.

Any idea of what might be the problem.

once again thanks for your replies

Hassnain

On 4/18/06, Matthias Wessendorf [EMAIL PROTECTED] 
 wrote: 
 I am trying to implement a security filter. In the doFilter method if I am trying to get the faces context using 
FacesContext.getCurrentInstance() but this instruction returns null.Right! Any idea of why this is happening?FacesContext is setup inside of FacesServlet.service() ([1]) for each request. 
So your filter is called before service() is call. That's why you geta null value. Actually on authentication failure I would like to reload the login page and the main purpose of getting the facescontext is to get the navigationhandler 
 and load the login page. Any alternative ideas would be highly appreciated.J2EE based security might be usful. Or ou may try a PhaseListenerinstead, which is called *inside* the Faces framework.
[1] http://tinyurl.com/ha6s5 Thanks Hassnain--Matthias Wessendorf
Aechterhoek 1848282 Emsdettenhttp://jroller.com/page/mwessendorfmwessendorf-at-gmail-dot-com 





Re: Faces context is null

2006-04-18 Thread Hasnain Badami
Actually when I modified the code to 

HttpServletResponse httpResponse = (HttpServletResponse)response; httpResponse.sendRedirect(login.jsf);

the server entersan infinite loop.

On 4/18/06, Hasnain Badami [EMAIL PROTECTED] wrote:


Sorry it didnt worked :-(

Hassnain

On 4/18/06, Hasnain Badami [EMAIL PROTECTED]
 wrote: 


Thanks Frank, it works :)

Hassnain

On 4/18/06, Frank Felix Debatin [EMAIL PROTECTED] wrote: 



Hasnain, 

try a redirect like this:

httpResponse.sendRedirect(
 httpResponse.encodeRedirectURL(LOGIN_URL) );
HTH 
Frank Felix




From: Hasnain Badami [mailto:[EMAIL PROTECTED]] 

Sent: Tuesday, April 18, 2006 5:50 PM
To: MyFaces DiscussionSubject: Re: Faces context is null



Thanks for your reply guys.

I also tried to use request.getRequestDispatcher(./login.jsf).forward(request, response) instruction to forward to the login page incase of authentication failure. But when this instruction gets executed instead of loading the login page, the first page of the website (only accessible to logged in users) is shown, which is strange. I added system println statements to my code. When 
login.jsf is loaded for the first time the output appears, but later when i am forwarding to it after login failure it isnt.

Any idea of what might be the problem.

once again thanks for your replies

Hassnain

On 4/18/06, Matthias Wessendorf [EMAIL PROTECTED] 
 wrote: 
 I am trying to implement a security filter. In the doFilter method if I am trying to get the faces context using 
FacesContext.getCurrentInstance() but this instruction returns null.Right! Any idea of why this is happening?FacesContext is setup inside of FacesServlet.service() ([1]) for each request. 
So your filter is called before service() is call. That's why you geta null value. Actually on authentication failure I would like to reload the login page and the main purpose of getting the facescontext is to get the navigationhandler 
 and load the login page. Any alternative ideas would be highly appreciated.J2EE based security might be usful. Or ou may try a PhaseListenerinstead, which is called *inside* the Faces framework.
[1] http://tinyurl.com/ha6s5 Thanks Hassnain--Matthias Wessendorf
Aechterhoek 1848282 Emsdettenhttp://jroller.com/page/mwessendorfmwessendorf-at-gmail-dot-com 





RE: indeciperable Errors in Tobabgo app

2006-04-18 Thread John
Ok - removed the jsp:include - the stack trace is the same as before -
no change that I can see...


An error occurred in the bean. Error Message is:
javax.faces.FacesException: Exception in JSP:
/pageparts/quarantinelist.jsp:4 1: 2: 3: 4: 5: 6: 7: Stacktrace:
Stack Trace is : 
javax.faces.FacesException: javax.faces.FacesException: Exception in
JSP: /pageparts/quarantinelist.jsp:4

1: 
2: 
3: 
4: 
5:   
6: 
7:   


Stacktrace:
at
org.apache.myfaces.tobago.application.ViewHandlerImpl.renderView(ViewHan
dlerImpl.java:152)
at
org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:372
)
at
javax.faces.webapp.FacesServlet.service(FacesServlet.java:109)
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.myfaces.tobago.webapp.TobagoMultipartFormdataFilter.doFilter(
TobagoMultipartFormdataFilter.java:81)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:202)
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:86
9)
at
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.proc
essConnection(Http11BaseProtocol.java:667)
at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint
.java:527)
at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollow
erWorkerThread.java:80)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool
.java:684)
at java.lang.Thread.run(Unknown Source)
Caused by: javax.faces.FacesException: Exception in JSP:
/pageparts/quarantinelist.jsp:4

1: 
2: 
3: 
4: 
5:   
6: 
7:   


Stacktrace:
at
org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(S
ervletExternalContextImpl.java:422)
at
org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspView
HandlerImpl.java:234)
at
org.apache.myfaces.tobago.application.ViewHandlerImpl.renderView(ViewHan
dlerImpl.java:120)
... 19 more
Caused by: org.apache.jasper.JasperException: Exception in JSP:
/pageparts/quarantinelist.jsp:4

1: 
2: 
3: 
4: 
5:   
6: 
7:   


Stacktrace:
at
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServle
tWrapper.java:504)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja
va:375)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
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
org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(S
ervletExternalContextImpl.java:416)
... 21 more


 

-Original Message-
From: Bernd Bohmann [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 18, 2006 1:26 AM
To: MyFaces Discussion
Subject: Re: indeciperable Errors in Tobabgo app

Can you remove the include in the main tag file, please.

Can you send me the full Stacktrace?

Regards

Bernd



John schrieb:
 Replacing the deprecated t:include with jsp:include (with 
 corresponding parameter change), didn't have any effect on the error. 
 Line 4 is definitely where the tag file is referenced.
 
 John
 
 -Original Message-
 From: Bernd Bohmann [mailto:[EMAIL PROTECTED]
 Sent: Monday, April 17, 2006 1:28 PM
 To: MyFaces Discussion
 Subject: Re: indeciperable Errors in Tobabgo app
 
 Hello John,
 
 the include tag in main.tag is deprecated please use jsp:include 
 instead. Because 

RE: Converter with parameters

2006-04-18 Thread Lindholm, Greg
Hello Massimiliano,

You need you write a custom tag, you can't do it with 
the f:converter tag.

If you look at this thread it's got source code for creating 
a custom tag for a converter.

You will need to pay attention to when the attributes from 
the tag get evaluated (when the valueBinding getValue() occurs).
The example shown will evaluate the attributes when the
converter is created.  Further down the thread there is 
a discussion of how to evaluate the attributes when the 
converter getAsString() is called.

http://thread.gmane.org/gmane.comp.jakarta.myfaces.user/17632/focus=1781
9
 

Greg

-Original Message-
From: Massimiliano Cantoni [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 18, 2006 11:58 AM
To: users@myfaces.apache.org
Subject: Converter with parameters

I am trying to develop an application using Myfaces and now I am facing 
this problem:

I am trying to develop a custom converter using the converter tag.
To be more concrete I am trying to convert the name of a document given 
the id.
Unfortunately the name of the document is not depending only on the id 
but also on another customization number and
I do not know how to pass it to the converter.

I tried the following

h:outputText value=#{obj.id} 
f:converter converterId=MyConverter
   f:attribute name=custom value=#{obj.custom}/
/f:converter
/h:outputText

But unfortunately it says that converter must be empty according to TLD.

I tried also the follwing
h:outputText value=#{obj.id} 
f:attribute name=custom value=#{obj.custom}/
f:converter converterId=MyConverter/
/h:outputText

and tried to get custom from MyConverter code without any success.

Am I using the correct approach?

Can someone point me on the right direction?

JSF newbie but not too much

-- 
--
Cantoni Massimiliano

CED Assicom S.p.a. 
email: [EMAIL PROTECTED]
Indirizzo: Via De Cocule 33030 BUIA(UD)
Telefono: 0432/9683
--



RE: Faces context is null

2006-04-18 Thread Rhys Parry



Hasnain, 
The bottom will work 
however, a common mistake is to redirect but not exit the method. Method 
execution continues ( I just went through this). My code for forwarding an 
error is beloow

((HttpServletRequest)request).getRequestDispatcher("/error.jsf").forward(request, 
response);return;

Rhys

  -Original Message-From: Frank Felix Debatin 
  [mailto:[EMAIL PROTECTED]Sent: April 18, 2006 11:55 AMTo: 
  'MyFaces Discussion'Subject: RE: Faces context is 
  null
  Hasnain, 
  
  try a redirect like this:
  
  httpResponse.sendRedirect(
   
  httpResponse.encodeRedirectURL(LOGIN_URL) 
  );
  HTH 
  
  Frank 
  Felix
  


From: Hasnain Badami 
[mailto:[EMAIL PROTECTED] Sent: Tuesday, April 18, 2006 
5:50 PMTo: MyFaces DiscussionSubject: Re: Faces 
context is null

Thanks for your reply guys.

I also tried to use 
request.getRequestDispatcher("./login.jsf").forward(request, response) 
instruction to forward to the login page incase of authentication failure. 
But when this instruction gets executed instead of loading the login page, 
the first page of the website (only accessible to logged in users) is shown, 
which is strange. I added system println statements to my code. When 
login.jsf is loaded for the first time the output appears, but later when i 
am forwarding to it after login failure it isnt.

Any idea of what might be the problem.

once again thanks for your replies

Hassnain

On 4/18/06, Matthias 
Wessendorf [EMAIL PROTECTED] wrote: 
 
  I am trying to implement a security filter. In the doFilter method if I 
  am trying to get the faces context using 
  FacesContext.getCurrentInstance() but this instruction returns 
  null.Right! Any idea of why this is 
  happening?FacesContext is setup inside of FacesServlet.service() 
  ([1]) for each request. So your filter is called before service() is 
  call. That's why you geta null value. Actually on 
  authentication failure I would like to reload the login page and 
  the main purpose of getting the facescontext is to get the 
  navigationhandler  and load the login page. Any alternative ideas 
  would be highly appreciated.J2EE based security might be usful. Or 
  ou may try a PhaseListenerinstead, which is called *inside* the Faces 
  framework.[1] http://tinyurl.com/ha6s5 
  Thanks Hassnain--Matthias 
  WessendorfAechterhoek 1848282 Emsdettenhttp://jroller.com/page/mwessendorfmwessendorf-at-gmail-dot-com


RE: Converter with parameters

2006-04-18 Thread Rhys Parry
j4j:param tag:
http://www.jsftutorials.net/param.html

Rhys
-Original Message-
From: Lindholm, Greg [mailto:[EMAIL PROTECTED]
Sent: April 18, 2006 12:32 PM
To: MyFaces Discussion
Subject: RE: Converter with parameters


Hello Massimiliano,

You need you write a custom tag, you can't do it with 
the f:converter tag.

If you look at this thread it's got source code for creating 
a custom tag for a converter.

You will need to pay attention to when the attributes from 
the tag get evaluated (when the valueBinding getValue() occurs).
The example shown will evaluate the attributes when the
converter is created.  Further down the thread there is 
a discussion of how to evaluate the attributes when the 
converter getAsString() is called.

http://thread.gmane.org/gmane.comp.jakarta.myfaces.user/17632/focus=1781
9
 

Greg

-Original Message-
From: Massimiliano Cantoni [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 18, 2006 11:58 AM
To: users@myfaces.apache.org
Subject: Converter with parameters

I am trying to develop an application using Myfaces and now I am facing 
this problem:

I am trying to develop a custom converter using the converter tag.
To be more concrete I am trying to convert the name of a document given 
the id.
Unfortunately the name of the document is not depending only on the id 
but also on another customization number and
I do not know how to pass it to the converter.

I tried the following

h:outputText value=#{obj.id} 
f:converter converterId=MyConverter
   f:attribute name=custom value=#{obj.custom}/
/f:converter
/h:outputText

But unfortunately it says that converter must be empty according to TLD.

I tried also the follwing
h:outputText value=#{obj.id} 
f:attribute name=custom value=#{obj.custom}/
f:converter converterId=MyConverter/
/h:outputText

and tried to get custom from MyConverter code without any success.

Am I using the correct approach?

Can someone point me on the right direction?

JSF newbie but not too much

-- 
--
Cantoni Massimiliano

CED Assicom S.p.a. 
email: [EMAIL PROTECTED]
Indirizzo: Via De Cocule 33030 BUIA(UD)
Telefono: 0432/9683
--



Re: Faces Trace

2006-04-18 Thread Mike Kienenberger
On 4/18/06, Cagatay Civici [EMAIL PROTECTED] wrote:
 Another idea will be to use the built-in standart validators rather than
 seperate client validators above and in this case an attribute like
 enableClientScript is needed.

We now have a ValidatorBase class that all Tomahawk and Sandbox
validators inherit from.   This is the perfect place to add an
enableClientScript attribute, and it'll automatically be picked up
by all of the other validators.


How is clustering supposed to work??

2006-04-18 Thread Denis Hennessy
I'm confused about clustering faces apps. Here's my understanding -
maybe someone can correct me or point me in the right direction:

1. Application logic is implemented in a backing bean, including
application 'state' like current objects, selected items, etc.

2. In faces-config, this bean is flagged as session scope so it's
available to subsequent calls (which update its state).

3. To support session replication, you mark the app as 'distributable'
and make sure the backing bean implements Serializable and only
contain serializable non-transient attributes.

Now, in my testing, this doesn't work. The main reason it doesn't work
is that there's no call to setAttribute() when the bean is updated (so
changes never propagate to other servers). So, am I missing something
or is this a really big problem?

Thanks,
Denis


Syntax Question

2006-04-18 Thread Kevin
If I attempt to use jsp:root for my app that uses tiles I get the 
following error when I attempt to load a any page with a form in it:



Location: http://localhost:8989/myfaces-4-18/pages/login.faces
Line Number 249, Column 27:

/body
/html
form id=linkDummyForm name=linkDummyForm style=display:inline



The problem is obviously the form being generated after the html/ 
element. Is there any way to prevent this? until then I will just not 
use jsp:root.


Sorry if this is a very basic question, I am a little new to JSF.






Using Eclipse Maven2 plugin with MyFaces

2006-04-18 Thread Rogerio Pereira
Hi,Somebody could compile myfaces sources from eclipse using maven plugin?-- Yours truly (Atenciosamente),Rogério


RE: Converter with parameters

2006-04-18 Thread Gary VanMatre

From: "Lindholm, Greg" [EMAIL PROTECTED]  Hello Massimiliano,   You need you write a custom tag, you can't do it with  the f:converter tag. 

You could also bind the target component to a managed bean and manually register a converter. Then you could use transparent attributes on the component to pass on to the converter. A custom tag would be the better approach.

h:outputText value="#{obj.id}" binding="obj.idCmp" f:attribute name="custom" value="#{obj.custom}"//h:outputTextThe custom attribute would be added to the component.

private HtmlOutputText idCmp = null;

public HtmlOutputText getIdCmp() {
 if (idCmp == null) {
 idCmp = new HtmlOutputText();
 }
 
 if (idCmp.getConverter() == null) {

 MyConverter converter = new MyConverter();
 converter.setCustom((String) idCmp.getAttributes("custom"));
 idCmp.setConverter(converter);
 }
 
}

public void setIdCmp(HtmlOutputText id).



Gary
 If you look at this thread it's got source code for creating  a custom tag for a converter.   You will need to pay attention to when the attributes from  the tag get evaluated (when the valueBinding getValue() occurs).  The example shown will evaluate the attributes when the  converter is created. Further down the thread there is  a discussion of how to evaluate the attributes when the  converter getAsString() is called.   http://thread.gmane.org/gmane.comp.jakarta.myfaces.user/17632/focus=1781  9Greg   -Original Message-  From: Massimiliano Cantoni [mailto:[EMAIL PROTECTED]  Sent: Tuesday, April 18, 2006 11:58 AM  To: users@myfaces.apache.org  Subject: Converter with parameters   I am trying to develop an application using Myfaces and now I am facing  t
 his pr
oblem:   I am trying to develop a custom converter using the converter tag.  To be more concrete I am trying to convert the name of a document given  the id.  Unfortunately the name of the document is not depending only on the id  but also on another customization number and  I do not know how to pass it to the converter.   I tried the following But unfortunately it says that converter must be empty according to TLD.   I tried also the follwing   and tried to get custom from MyConverter code without any success.   Am I using the correct approach?   Can someone point me on the right direction?   JSF newbie but not too much   --  --  Cantoni Massimiliano   CED Assicom S.p.a.  email: [EMAIL PROTECTED]  Indirizzo: Via De Cocule 33030 BUIA(UD)  Telefono: 0432/9683  --  



Re: Converter with parameters

2006-04-18 Thread Matthias Wessendorf
MyConverter converter = new MyConverter();
converter.setCustom((String) idCmp.getAttributes(custom));
idCmp.setConverter(converter);

getAttributes().get(custom);

;-)

-Matthias


Re: Faces Trace

2006-04-18 Thread Adam Winer
Why would developers want to enable client-side validation one-by-one?
I'd think this would nearly always want to be a global setting.

-- Adam


On 4/18/06, Mike Kienenberger [EMAIL PROTECTED] wrote:
 On 4/18/06, Cagatay Civici [EMAIL PROTECTED] wrote:
  Another idea will be to use the built-in standart validators rather than
  seperate client validators above and in this case an attribute like
  enableClientScript is needed.

 We now have a ValidatorBase class that all Tomahawk and Sandbox
 validators inherit from.   This is the perfect place to add an
 enableClientScript attribute, and it'll automatically be picked up
 by all of the other validators.



Re: Faces Trace

2006-04-18 Thread Adam Winer
On 4/18/06, Martin Marinschek [EMAIL PROTECTED] wrote:
 Yes.

 That's the other thing I'd like to have - automatic client-side
 validation happening with the server side validation in place. It
 would be good to have something like a hook in the extended validators
 - with this hook, they are asked to render out their client-side
 validation javascript.

 Using this, separate validators wouldn't be necessary.

Exactly.

 Still, I think that the rendering question is very important. In the
 current state when working with ADF, I wished I could disable client
 side validation in ADF faces alltogether (I'm sure there is a way to
 do so, didn't look deeper into it so far). The popup box is just not
 context sensitive enough.

Yep, you can disable it altogether - there's a WEB-INF/web.xml flag.

-- Adam


Re: Converter with parameters

2006-04-18 Thread Gary VanMatre

From: "Matthias Wessendorf" [EMAIL PROTECTED]   MyConverter converter = new MyConverter();   converter.setCustom((String) idCmp.getAttributes("custom"));   idCmp.setConverter(converter);   getAttributes().get("custom");  

Oh yeah, that's the ticket. Thanks Matthias.
 ;-)   -Matthias 



Tobago DateUnitTest failure

2006-04-18 Thread Rogerio Pereira
Hi,I have a test failure on Tobago build process, is there any workaround?-- Yours truly (Atenciosamente),Rogério


styleClass attribute on t:column having no effect when columnClasses attribute is present on t:dataTable

2006-04-18 Thread Matt Hughes

If you have a dataTable as such:

t:dataTable
   columnClasses=colClassOne, colClassTwo, colClassThree
   value=.. 

   t:column styleClass=editMode/t:column
   t:column styleClass=viewModet:column
/t:dataTable


The rendered HTML only has the style classes specified in the 
columnClasses attribute.  Is this the desired effect?  I was not able to 
find any documentation specifying what was supposed to happen if you had 
both of them.  I believe that the styleClass attribute on the t:column 
element should be *added* not ignored.  So the resulting HTML *should* 
IMHO look like this.


table
   tr
   td class=colClassOne editMode/td
   td class=colClassTwo viewMode/td
   td class=colClassThree/td
   /tr
/table

Instead of:

table
   tr
   td class=colClassOne/td
   td class=colClassTwo/td
   td class=colClassThree/td
   /tr
/table


Re: Tobago DateUnitTest failure

2006-04-18 Thread Volker Weber
Hi Rogerio,

the DateUnitTest again :-(.

Can you please post the test results from 'target/surefire-reports/'.

You can skip the tests with

'mvn -Dmaven.test.skip=true'



Regards,
  Volker

Rogerio Pereira wrote:
 Hi,
 
 I have a test failure on Tobago build process, is there any workaround?
 
 --
 Yours truly (Atenciosamente),
 
 Rogério
 

-- 
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.


Re: sql in validator

2006-04-18 Thread Joel Wilson
I frequently use hql in my validators. And if you aren't a Hibernate User, HQL is the hibernate extension of SQL.On Mar 10, 2006, at 5:30 PM, Lance Frohman wrote:  Is there a reason not to use sql in a validator? I have never seen this, but it would obviously be useful. I have an application where users choose an id, and I could create a validator with sql to see if that user id is already taken. Or are there better ways to do things like this?   Thanks, Lance Joel WilsonWeb Application Developer/ArchitectD E V O T I O N-Skype: Jesfrk7Skype: 321.285.7470Cell: 321-332.4654Office: 407.677.8514Fax: 407.677.8610-1964 Howell Branch RoadSuite 102Winter Park, Florida 32792-Changing the world, one byte at a time . . . 

Dynamic data table components

2006-04-18 Thread Frank Russo



I have an app that 
I'm rewritting using JSF with Facelets. The app currently has tables of data 
with editable fields, but also, the table is ordered and has _javascript_ that 
allows for drag and drop ordering of rows. 

Are there any 
external components already built that do this?Just thought I'd check 
before I write one myself. 

Thanks...

Frank 
RussoSenior DeveloperFX Alliance, LLC


Re: Dynamic data table components

2006-04-18 Thread Matthias Wessendorf
Frank,

you might take a look at dojo toolkit.
There a dnd facility inside. Also I think I have seen some editable
table stuff in their demo.

Best would be to write a custom renderer for UIData, using that dojo stuff.

-Matthias

On 4/18/06, Frank Russo [EMAIL PROTECTED] wrote:

 I have an app that I'm rewritting using JSF with Facelets. The app currently
 has tables of data with editable fields, but also, the table is ordered and
 has javascript that allows for drag and drop ordering of rows.

 Are there any external components already built that do this? Just thought
 I'd check before I write one myself.

 Thanks...



 Frank Russo
 Senior Developer
 FX Alliance, LLC


--
Matthias Wessendorf
Aechterhoek 18
48282 Emsdetten
http://jroller.com/page/mwessendorf
mwessendorf-at-gmail-dot-com


Re: Dynamic data table components

2006-04-18 Thread Matthias Wessendorf
Since

a) dojo makes it easy to do all that stuff
b) I don't know a Faces component you need

;-)

-Matthias

On 4/18/06, Matthias Wessendorf [EMAIL PROTECTED] wrote:
 Frank,

 you might take a look at dojo toolkit.
 There a dnd facility inside. Also I think I have seen some editable
 table stuff in their demo.

 Best would be to write a custom renderer for UIData, using that dojo stuff.

 -Matthias

 On 4/18/06, Frank Russo [EMAIL PROTECTED] wrote:
 
  I have an app that I'm rewritting using JSF with Facelets. The app currently
  has tables of data with editable fields, but also, the table is ordered and
  has javascript that allows for drag and drop ordering of rows.
 
  Are there any external components already built that do this? Just thought
  I'd check before I write one myself.
 
  Thanks...
 
 
 
  Frank Russo
  Senior Developer
  FX Alliance, LLC


 --
 Matthias Wessendorf
 Aechterhoek 18
 48282 Emsdetten
 http://jroller.com/page/mwessendorf
 mwessendorf-at-gmail-dot-com



--
Matthias Wessendorf
Aechterhoek 18
48282 Emsdetten
http://jroller.com/page/mwessendorf
mwessendorf-at-gmail-dot-com


Re: Tobago DateUnitTest failure

2006-04-18 Thread Arvid Hülsebus

Hello,

until we have a solution for the problems with DateUnitTest, I excluded 
the test.


Regards,
Arvid

Volker Weber wrote:


Hi Rogerio,

the DateUnitTest again :-(.

Can you please post the test results from 'target/surefire-reports/'.

You can skip the tests with

'mvn -Dmaven.test.skip=true'



Regards,
 Volker

Rogerio Pereira wrote:
 


Hi,

I have a test failure on Tobago build process, is there any workaround?

--
Yours truly (Atenciosamente),

Rogério

   



 



Re: styleClass attribute on t:column having no effect when columnClasses attribute is present on t:dataTable

2006-04-18 Thread Mike Kienenberger
I've never used the css styling attributes, but it makes sense to me
that a column style would either replace or add to a table style
specification.

Perhaps you could open a Jira issue and submit a patch providing this
functionality?

On 4/18/06, Matt Hughes [EMAIL PROTECTED] wrote:
 If you have a dataTable as such:

 t:dataTable
 columnClasses=colClassOne, colClassTwo, colClassThree
 value=.. 

 t:column styleClass=editMode/t:column
 t:column styleClass=viewModet:column
 /t:dataTable


 The rendered HTML only has the style classes specified in the
 columnClasses attribute.  Is this the desired effect?  I was not able to
 find any documentation specifying what was supposed to happen if you had
 both of them.  I believe that the styleClass attribute on the t:column
 element should be *added* not ignored.  So the resulting HTML *should*
 IMHO look like this.

 table
 tr
 td class=colClassOne editMode/td
 td class=colClassTwo viewMode/td
 td class=colClassThree/td
 /tr
 /table

 Instead of:

 table
 tr
 td class=colClassOne/td
 td class=colClassTwo/td
 td class=colClassThree/td
 /tr
 /table



Re: Char Encoding

2006-04-18 Thread Mert Çalışkan

You should also convert your application resource bundles to UTF-8.
Here is a blogpost contains necessary steps..

http://www.jroller.com/page/mert?entry=utf_8_encoding_with_jsf

Cheers,

Mert.
On 4/18/06, Cagatay Civici [EMAIL PROTECTED] wrote:

Hi,What about the filter mapping, are you sure the filter does it's job. Also you can do the same thing with a custom filter like;import java.io.IOException;import 
javax.servlet.Filter;import javax.servlet.FilterChain;import javax.servlet.FilterConfig;import javax.servlet.ServletException;import javax.servlet.ServletRequest;import javax.servlet.ServletResponse;
public class YourCharEncodingFilter implements Filter {  public void init(FilterConfig arg0) throws ServletException { } public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain)
 throws IOException, ServletException {  servletRequest.setCharacterEncoding(UTF-8); servletResponse.setCharacterEncoding(UTF-8); filterChain.doFilter
(servletRequest, servletResponse); } public void destroy() {  }}Regards,
Cagatay

On 4/18/06, Murat Hazer [EMAIL PROTECTED]
 wrote: 

Hi,I see this line(s) at the output console after each page render completed 17:16:09,796 DEBUG HtmlResponseWriterImpl:97 - No character encoding given, using default character encoding ISO-8859-1
i am using spring's CharacterEncodingFilter to solve this problem as below;filterfilter-nameencodingFilter/filter-namefilter-classorg.springframework.web.filter.CharacterEncodingFilter
/filter-classinit-paramparam-nameencoding/param-nameparam-valueUTF-8/param-value/init-paraminit-paramparam-nameforceEncoding/param-name
param-valuetrue/param-value/init-param/filtershould i do something different in order to change default char encoding to utf-8?
-- Murat HAZERElektrik-Elektronik Mühendisi - Electrical-Electronics Engineer Tel - Phone: +90 222 335 05 80 - 1395Cep Tel - Mobile Phone: +90 532 472 00 63 
Blog URL: http://www.projedunyasi.orgYahoo Group: 
http://groups.yahoo.com/group/malatyafenlisesi/ 


Re: indeciperable Errors in Tobabgo app

2006-04-18 Thread Bernd Bohmann

ok, can you temporary remove the sheet for a test.

If the page is working the error can be caused by a value binding of the 
sheet.

Or can you try to use a debugger to find the cause of the error?

If this not help. You can send me all your code.

Regards

Bernd

John schrieb:

Ok - removed the jsp:include - the stack trace is the same as before -
no change that I can see...


An error occurred in the bean. Error Message is:
javax.faces.FacesException: Exception in JSP:
/pageparts/quarantinelist.jsp:4 1: 2: 3: 4: 5: 6: 7: Stacktrace:
Stack Trace is : 
javax.faces.FacesException: javax.faces.FacesException: Exception in

JSP: /pageparts/quarantinelist.jsp:4

1: 
2: 
3: 
4: 
5:   
6: 
7:   



Stacktrace:
at
org.apache.myfaces.tobago.application.ViewHandlerImpl.renderView(ViewHan
dlerImpl.java:152)
at
org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:372
)
at
javax.faces.webapp.FacesServlet.service(FacesServlet.java:109)
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.myfaces.tobago.webapp.TobagoMultipartFormdataFilter.doFilter(
TobagoMultipartFormdataFilter.java:81)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:202)
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:86
9)
at
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.proc
essConnection(Http11BaseProtocol.java:667)
at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint
.java:527)
at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollow
erWorkerThread.java:80)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool
.java:684)
at java.lang.Thread.run(Unknown Source)
Caused by: javax.faces.FacesException: Exception in JSP:
/pageparts/quarantinelist.jsp:4

1: 
2: 
3: 
4: 
5:   
6: 
7:   



Stacktrace:
at
org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(S
ervletExternalContextImpl.java:422)
at
org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspView
HandlerImpl.java:234)
at
org.apache.myfaces.tobago.application.ViewHandlerImpl.renderView(ViewHan
dlerImpl.java:120)
... 19 more
Caused by: org.apache.jasper.JasperException: Exception in JSP:
/pageparts/quarantinelist.jsp:4

1: 
2: 
3: 
4: 
5:   
6: 
7:   



Stacktrace:
at
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServle
tWrapper.java:504)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja
va:375)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
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
org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(S
ervletExternalContextImpl.java:416)
... 21 more


 


-Original Message-
From: Bernd Bohmann [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 18, 2006 1:26 AM

To: MyFaces Discussion
Subject: Re: indeciperable Errors in Tobabgo app

Can you remove the include in the main tag file, please.

Can you send me the full Stacktrace?

Regards

Bernd



John schrieb:

Replacing the deprecated t:include with jsp:include (with 
corresponding parameter change), didn't have any effect on the error. 
Line 4 is definitely where the tag file is referenced.


John


updateActionListener questions (re: Shale Clay mostly)

2006-04-18 Thread Richard Wallace
I'm trying to make use of the Tomahawk updateActionListener action 
listener in a Shale Clay based app and was having problems getting it to 
work properly.  After doing some debugging I realized that the problem 
was that I was trying to map to the property property on the 
UpdateActionListener class thinking that the tag property attribute 
just passed the value through. 

On closer inspection I realized this isn't the case and that the 
UpdateActionListenerTag itself takes the value set for the property 
attribute and creates a value binding which is passed to the 
UpdateActionListener with the setPropertyBinding() method.  Similarly, 
the UpdateActionListenerTag also figures out if the value attribute is 
supposed to be an actual value object or a value binding.


I searched this list and this was also a problem when trying to 
integrate with Facelets.  So my question is why is all this work done in 
the UpdateActionListenerTag class instead of in the UpdateActionListener 
class itself?  Then the tag class would just pass the values through 
like all the other tags in JSF.


Rich


RE: Missing tomahawk.jar in MyFaces1.2

2006-04-18 Thread Balaji Kalyansundaram

Thanks everyone for the reply. I'll wait for tomahawk 1.2.

If tomahawk1.2 is not released yet, whey does the relase notes for MyFaces Core 
1.2, have details of bug fixes, in Tomahawk components, like 
t:commandSortHeader,etc.??? This is misleading/confusing me.

Balaji



-Original Message-
From: news [mailto:[EMAIL PROTECTED] Behalf Of Werner Punz
Sent: Tuesday, 18 April 2006 5:30 PM
To: users@myfaces.apache.org
Subject: Re: Missing tomahawk.jar in MyFaces1.2


Hi Balaji, sorry to say that, but the Tomahawk release cycles are now
decoupled due to the addition of the Tobago component set and soon also
the ADF Faces framework to the myfaces mix.

So currently there first was the core released and soon also a stable
Tomahawk 1.1.2 will be released (the fork for stable is imminent as we
speak), in the meantime I only can recommend to revert to the nighlies
until the stable Tomahawk is in sync.

In the future there will be decoupled releases of the core and the
component sets, with a much higher release frequency.

Werner



Balaji Kalyansundaram schrieb:
 Hi Dennis

 Thanks for the reply.

 Please pay attention to the fact that you cannot use this release of
 MyFaces Core with the MyFaces Tomahawk library in version 1.1.1 - it
 will only work with the Tomahawk library in version 1.1.2 and onward.
   - I cannot find the new version of tomahawk separately @ 
 http://myfaces.apache.org/download.html

 Only the old 1.1.1 is available. But it is mentioned above that this will not 
 work with new verion of myfaces core.


 Balaji


 -Original Message-
 From: Dennis Byrne [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, 18 April 2006 5:13 PM
 To: MyFaces Discussion
 Subject: Re: Missing tomahawk.jar in MyFaces1.2


 You may want to check your inbox for the announcement notes.  Tomahawk is now 
 released seperately.

 Dennis Byrne

 -Original Message-
 From: Balaji Kalyansundaram [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, April 18, 2006 03:11 AM
 To: dev@myfaces.apache.org, users@myfaces.apache.org
 Subject: Missing tomahawk.jar in MyFaces1.2


 Hi All

 Glad to hear that the new verison is available.

 I cannot find the the tomahawk.jar @ 
 http://www.apache.org/dyn/closer.cgi/myfaces/binaries/myfaces-core-1.1.2-bin.zip

 But it has myfaces-impl.jar, etc.

 Am I lloking at the wrong place?

 Thanks in advance.

 Balaji


 This correspondence is for the named persons only.
 It may contain confidential or privileged information or both.
 No confidentiality or privilege is waived or lost by any mis transmission.
 If you receive this correspondence in error please delete it from your 
 system immediately and notify the sender.
 You must not disclose, copy or relay on any part of this correspondence, if 
 you are not the intended recipient.
 Any opinions expressed in this message are those of the individual sender 
 except where the sender expressly,
 and with the authority, states them to be the opinions of the Department of 
 Emergency Services, Queensland.



 This correspondence is for the named persons only.

 It may contain confidential or privileged information or both.

 No confidentiality or privilege is waived or lost by any mis transmission.

 If you receive this correspondence in error please delete it from your system 
 immediately and notify the sender.

 You must not disclose, copy or relay on any part of this correspondence, if 
 you are not the intended recipient.

 Any opinions expressed in this message are those of the individual sender 
 except where the sender expressly,

 and with the authority, states them to be the opinions of the Department of 
 Emergency Services, Queensland.



This correspondence is for the named persons only.
It may contain confidential or privileged information or both.
No confidentiality or privilege is waived or lost by any mis transmission.
If you receive this correspondence in error please delete it from your system 
immediately and notify the sender.
You must not disclose, copy or relay on any part of this correspondence, if you 
are not the intended recipient.
Any opinions expressed in this message are those of the individual sender 
except where the sender expressly,
and with the authority, states them to be the opinions of the Department of 
Emergency Services, Queensland.


Re: Faces Trace

2006-04-18 Thread Cagatay Civici
Hi,I guess the optimal solution is as follows;Client side validation feature is added to Tomahawk and Sandbox validators using an attribute(client=true). If this flag is true then validation takes place at client otherwise regular server side validation happens. There should be other attributes to customize the client validation like enablePopup, highlight and etc.
What do you think? I'm eagerly waiting to create patches that would enable these validators to validate at client side.Regards,CagatayOn 4/18/06, 
Adam Winer [EMAIL PROTECTED] wrote:On 4/18/06, Martin Marinschek 
[EMAIL PROTECTED] wrote: Yes. That's the other thing I'd like to have - automatic client-side validation happening with the server side validation in place. It
 would be good to have something like a hook in the extended validators - with this hook, they are asked to render out their client-side validation _javascript_. Using this, separate validators wouldn't be necessary.
Exactly. Still, I think that the rendering question is very important. In the current state when working with ADF, I wished I could disable client side validation in ADF faces alltogether (I'm sure there is a way to
 do so, didn't look deeper into it so far). The popup box is just not context sensitive enough.Yep, you can disable it altogether - there's a WEB-INF/web.xml flag.-- Adam



Re: Faces Trace

2006-04-18 Thread Mike Kienenberger
On 4/18/06, Adam Winer [EMAIL PROTECTED] wrote:
 Why would developers want to enable client-side validation one-by-one?
 I'd think this would nearly always want to be a global setting.

Adam has a good point in that client-side validation settings would
nearly-always be configured as a global setting.

But I still think ValidatorBase is the best place to put the code --
just have it read and provide the default configuration settings from
the web.xml file settings.   Then for the nearly never cases, we can
still allow per-validator configuration to override the global
settings.


anyone has experience of ICEFaces?

2006-04-18 Thread terry zhou
Hi all,

I wonder if any one has some experience of using ICEFaces? I need your advice.
Is it valuable to learn?
I have tried the demo of ICEFaces, and found that sometimes the app is really slow and even worse not work.-- regards,Terry 


Re: Faces Trace

2006-04-18 Thread Alexandre Poitras
And you might check what Struts Shale already does. From what I know
it integrates commons-validator.

On 4/18/06, Cagatay Civici [EMAIL PROTECTED] wrote:
 Hi,

 I guess the optimal solution is as follows;

 Client side validation feature is added to Tomahawk and Sandbox validators
 using an attribute(client=true). If this flag is true then validation
 takes place at client otherwise regular server side validation happens.
 There should be other attributes to customize the client validation like
 enablePopup, highlight and etc.

 What do you think? I'm eagerly waiting to create patches that would enable
 these validators to validate at client side.

 Regards,

 Cagatay


 On 4/18/06, Adam Winer [EMAIL PROTECTED] wrote:
  On 4/18/06, Martin Marinschek  [EMAIL PROTECTED] wrote:
   Yes.
  
   That's the other thing I'd like to have - automatic client-side
   validation happening with the server side validation in place. It
   would be good to have something like a hook in the extended validators
   - with this hook, they are asked to render out their client-side
   validation javascript.
  
   Using this, separate validators wouldn't be necessary.
 
  Exactly.
 
   Still, I think that the rendering question is very important. In the
   current state when working with ADF, I wished I could disable client
   side validation in ADF faces alltogether (I'm sure there is a way to
   do so, didn't look deeper into it so far). The popup box is just not
   context sensitive enough.
 
  Yep, you can disable it altogether - there's a WEB-INF/web.xml flag.
 
  -- Adam
 




--
Alexandre Poitras
Québec, Canada


Re: Faces Trace

2006-04-18 Thread Cagatay Civici
Shale comes with it's own validators that can do both client side and server side. Each validator has flags like client=true server=true. The disadvantage is that client side validation uses popus that is not favored much.
A central mechanism to control validation setting should be good but also it would be flexible if a validator can override the global setting.On 4/19/06, 
Alexandre Poitras [EMAIL PROTECTED] wrote:
And you might check what Struts Shale already does. From what I knowit integrates commons-validator.On 4/18/06, Cagatay Civici [EMAIL PROTECTED] wrote:
 Hi, I guess the optimal solution is as follows; Client side validation feature is added to Tomahawk and Sandbox validators using an attribute(client=true). If this flag is true then validation
 takes place at client otherwise regular server side validation happens. There should be other attributes to customize the client validation like enablePopup, highlight and etc. What do you think? I'm eagerly waiting to create patches that would enable
 these validators to validate at client side. Regards, Cagatay On 4/18/06, Adam Winer [EMAIL PROTECTED] wrote:
  On 4/18/06, Martin Marinschek  [EMAIL PROTECTED] wrote:   Yes. That's the other thing I'd like to have - automatic client-side
   validation happening with the server side validation in place. It   would be good to have something like a hook in the extended validators   - with this hook, they are asked to render out their client-side
   validation _javascript_. Using this, separate validators wouldn't be necessary.   Exactly.Still, I think that the rendering question is very important. In the
   current state when working with ADF, I wished I could disable client   side validation in ADF faces alltogether (I'm sure there is a way to   do so, didn't look deeper into it so far). The popup box is just not
   context sensitive enough.   Yep, you can disable it altogether - there's a WEB-INF/web.xml flag.   -- Adam --Alexandre Poitras
Québec, Canada


Re: findComponenet problem

2006-04-18 Thread Mike Kienenberger
On 4/15/06, Arash Bijanzadeh [EMAIL PROTECTED] wrote:
 I am trying to do a :
 UIOutput c= (UIOutput)
 facesContext.getViewRoot().findComponent(main:bscName);
 And my page looks like:
 ..
   h:form id=main 
 h:panelGrid id=myvar columns=4
 columnClasses=label,nothing,label,nothing 
[...]
 c:choose
 c:when test=#{neBean.neType.name == 'BTS'}
[...]
 h:inputText id =bscName value=#{ neBean.bsc.name}
 disabled=true/
[...]

 /c:when
 /c:choose
 /h:panelGrid
[...]
 /h:form
 .

 But getting null instead of thre component.
 What is wrong here?

Either you've specified an id on an unshown naming container (f:view,
f:subview), or your c:choose statement didn't evaluate to true.  My
understanding is that #{neBean.neType.name == 'BTS'} is only
evaluated with the page is initially compiled (first request).   You
probably should be using h:panelGroup rendered=#{neBean.neType.name
== 'BTS'} instead.


  1   2   >