RE: Java Script error with My Faces

2006-03-28 Thread Yura.Tkachenko
Hi,
I guess this function is used by JSF to clear all form's elements for
submit. I've never used this function before.

Regards.

-Original Message-
From: Le Van [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 29, 2006 8:57 AM
To: MyFaces Discussion
Subject: Re: Java Script error with My Faces

Thank Yura, but clear_form use for what ?. You think it generates by 
JSF, but it just generate when I use t:commandButton instead of using 
h:commandButton. And is it important to using it. Could I control it 
???. Cause I can't control it now so I create a clear_form() function 
that do nothing. Coudl you tell me more clearly about clear_form().
Yura.Tkachenko wrote:

> Hi, Le Van
>
> Actually why are you using clear_form() function? Is it just training? 
> Actually this function generates by JSF it can include something like 
> that:
>
> function clear_form() {
>
> var f = document.forms['form'];
>
> f.elements['prevSort'].value='';
>
> f.elements['prev'].value='';
>
> f.elements['prevItemId'].value='';
>
> f.elements['prevAsc'].value='';
>
> f.elements['prevItemName'].value='';
>
> f.elements['ret'].value='';
>
> f.elements['roleid'].value='';
>
> f.elements['form:_link_hidden_'].value='';
>
> f.elements['itemid'].value='';
>
> f.target='';
>
> }
>
> If you need button which will reset form's values you can use this 
> script:
>
> 
>
> -Original Message-
> From: Le Van [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, March 29, 2006 7:50 AM
> To: users@myfaces.apache.org
> Subject: Java Script error with My Faces
>
> Dear all,
>
> Now , I face with the problem is: Browser render the component:
>
>  and we view source code
>
> (After rendered) We recorgnized that IE also render the t:commandButton
>
> like :.
>
> But We do not see the function clear_form() anywhere, so when we click
>
> the that button, Browser will raise an javascript error.
>
> Anyone got that problem could help me.
>
> Thanks.
>



Re: [ANNOUNCE] Struts Shale Framework 1.0.2 Alpha

2006-03-28 Thread Werner Punz
Congratulations Craig, Wendy and the others...



Wendy Smoak schrieb:
> The Struts team is pleased to announce the release of Struts Shale 1.0.2 
> Alpha.
> 
>  http://struts.apache.org/downloads.html
> 
> The Struts Shale Framework is a set of loosely coupled services,
> fundamentally based on JavaServer Faces, which may be combined as
> needed to meet particular application requirements.
> 
> Compared to version 1.0.0, (version 1.0.1 was retired due to packaging
> issues,) this version includes a substantial number of bugfixes and
> enhancements -- details are in the Release Notes -- and the following
> major new features:
> 
>  * Shale Remoting is a complete overhaul of the remoting support in
> 1.0.0, providing support for application or component developers who
> need to implement the server side behavior for AJAX callbacks. It is
> packaged as a small (40k) JAR that has no dependencies on the rest of
> Shale.
> 
>  * Tiger Extensions is an optional add-on layer for those running on
> Java SE 5 (code named "Tiger").  The extensions let you use Java
> annotations to declare managed beans or register JSF components,
> without needing entries in a faces-config.xml file.
> 
>  * A new "blank" starter application to get you up and running with a
> new project quickly.
> 
>  * A new "mailreader" demo application that duplicates the
> functionality of the Struts 1.x version of this app, so you can
> compare implementation approaches.
> 
> * A new "SQL Browser" demo application that illustrates use of the
> Tiger Extensions, as well as the ability to modify JSF component trees
> on the fly.
> 
> Although this is considered an alpha release, various developer APIs
> should be considered at a more stable (in terms of assurances of
> backwards compatibility in future releases) point than might otherwise
> be expected.  Please see the following web page for more details:
> 
>  http://struts.apache.org/struts-shale/api-stability.html
> 
> Your comments and questions are welcome on the Struts User list. 
> Subscription information can be found on the following web page:
> 
>  http://struts.apache.org/mail.html
> 
> --
> Wendy Smoak
> 



Illegal to flush within a custom tag

2006-03-28 Thread Ramazan VARLIKLI
Why this error occurred?

javax.faces.FacesException: javax.servlet.jsp.JspException:
ServletException in '/page/index.jsp': Illegal to flush within a custom
tag
at
org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(S
ervletExternalContextImpl.java:422)
at
org.apache.shale.tiles.TilesViewHandler.dispatchToTile(TilesViewHandler.
java:318)
at
org.apache.shale.tiles.TilesViewHandler.renderView(TilesViewHandler.java
:159)
at
org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:367
)
at
javax.faces.webapp.FacesServlet.service(FacesServlet.java:138)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:252)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:173)
at
oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._invokeDoFilter(
AdfFacesFilterImpl.java:367)
at
oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._doFilterImpl(Ad
fFacesFilterImpl.java:336)
at
oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl.doFilter(AdfFace
sFilterImpl.java:196)
at
oracle.adf.view.faces.webapp.AdfFacesFilter.doFilter(AdfFacesFilter.java
:87)
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:85
6)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processC
onnection(Http11Protocol.java:744)
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(Thread.java:595)
Caused by: javax.servlet.ServletException:
javax.servlet.jsp.JspException: ServletException in '/page/index.jsp':
Illegal to flush within a custom tag
at
org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageCont
extImpl.java:844)
at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContex
tImpl.java:781)
at
org.apache.jsp.page.layout_jsp._jspService(org.apache.jsp.page.layout_js
p:77)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja
va:322)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:252)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:173)
at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatc
her.java:672)
at
org.apache.catalina.core.ApplicationDispatcher.processRequest(Applicatio
nDispatcher.java:463)
at
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDisp
atcher.java:398)
at
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispat
cher.java:301)
at
org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(S
ervletExternalContextImpl.java:416)
... 24 more



Enviroment:
Tiles-core
Shale-tiles
Myfaces 1.1.3 snapshot

<[EMAIL PROTECTED] uri="http://java.sun.com/jsf/core"; prefix="f"%>
<[EMAIL PROTECTED] uri="http://java.sun.com/jsf/html"; prefix="h"%>
<[EMAIL PROTECTED] uri="http://xmlns.oracle.com/adf/faces"; prefix="af"%>
<[EMAIL PROTECTED] uri="http://xmlns.oracle.com/adf/faces/html"; prefix="afh"%>
<[EMAIL PROTECTED] uri="http://struts.apache.org/tags-tiles"; prefix="tiles"%>

Tiles-definitions



  
 
  

  

Layout.jsp
---

  

  

  

  


Index.jsp
--
  

  

 

RE: Troubleshooting notes: ADF + Facelets + MyFaces Tomahawk + JSF

2006-03-28 Thread Frank Felix Debatin
Hi Murray, 

in order to add "on-demand" attributes to the form tag in my template page,
I did the following

(template)



...



(template client)






 
Page body


Maybe you can use a similar pattern  to add the encType attribute.

Frank Felix

-Original Message-
From: Murray Brandon [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 29, 2006 3:55 AM
To: 'MyFaces Official List'
Subject: RE: Troubleshooting notes: ADF + Facelets + MyFaces Tomahawk + JSF

Speaking of file uploading...

I have a single form around my entire app of 600 pages (only 1 of which is
'rendered' at any time so this should be fine).
However, to support file uploading I put enctype="multipart/form-data"
in the form definition as below.



And hey presto all my events from action commands stop firing.  Is this a
known side effect?
Does that mean I have to define sub-forms all over the place, each with
different encoding types?

(I'm using MyFaces + Tomahawk + ADF + Facelets, latest builds)

Regards, Murray

-Original Message-
From: Murray Brandon [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 29, 2006 10:16 AM
To: [EMAIL PROTECTED]
Subject: RE: Troubleshooting notes: ADF + Facelets + MyFaces Tomahawk + JSF


I'm pretty sure Tomahawk needs commons-fileupload.jar to get
 working, because you don't just specify a byte array
where the uploaded file has to be put. It has a mime type, filename etc,
all of which is encapsulated in a class
org.apache.myfaces.custom.fileupload.UploadedFile.
Not that I have it working, however - will add to the troubleshooting
guide when it's going. (am trying to get an image editor type component
going)



Re: Java Script error with My Faces

2006-03-28 Thread Le Van
Thank Yura, but clear_form use for what ?. You think it generates by 
JSF, but it just generate when I use t:commandButton instead of using 
h:commandButton. And is it important to using it. Could I control it 
???. Cause I can't control it now so I create a clear_form() function 
that do nothing. Coudl you tell me more clearly about clear_form().

Yura.Tkachenko wrote:


Hi, Le Van

Actually why are you using clear_form() function? Is it just training? 
Actually this function generates by JSF it can include something like 
that:


function clear_form() {

var f = document.forms['form'];

f.elements['prevSort'].value='';

f.elements['prev'].value='';

f.elements['prevItemId'].value='';

f.elements['prevAsc'].value='';

f.elements['prevItemName'].value='';

f.elements['ret'].value='';

f.elements['roleid'].value='';

f.elements['form:_link_hidden_'].value='';

f.elements['itemid'].value='';

f.target='';

}

If you need button which will reset form’s values you can use this 
script:




-Original Message-
From: Le Van [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 29, 2006 7:50 AM
To: users@myfaces.apache.org
Subject: Java Script error with My Faces

Dear all,

Now , I face with the problem is: Browser render the component:

 and we view source code

(After rendered) We recorgnized that IE also render the t:commandButton

like :.

But We do not see the function clear_form() anywhere, so when we click

the that button, Browser will raise an javascript error.

Anyone got that problem could help me.

Thanks.





RE: Java Script error with My Faces

2006-03-28 Thread Yura.Tkachenko








Hi, Le Van

 

Actually why are you using clear_form() function? Is it
just training? Actually this function generates by JSF it can include something
like that:

function clear_form() {

  var f =
document.forms['form'];

 
f.elements['prevSort'].value='';

 
f.elements['prev'].value='';

 
f.elements['prevItemId'].value='';

 
f.elements['prevAsc'].value='';

 
f.elements['prevItemName'].value='';

 
f.elements['ret'].value='';

 
f.elements['roleid'].value='';

 
f.elements['form:_link_hidden_'].value='';

 
f.elements['itemid'].value='';

  f.target='';

}

 

If you need button which will reset form’s
values you can use this script:

 



 

 

 

-Original Message-
From: Le Van [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 29, 2006 7:50 AM
To: users@myfaces.apache.org
Subject: _javascript_ error with My Faces

 

Dear all,

 

Now , I face with the problem is: Browser render the component: 

 and we view source code 

(After rendered) We recorgnized that IE also render the t:commandButton


like :. 

But We do not see the function clear_form() anywhere, so when we click 

the that button, Browser will raise an _javascript_ error.

Anyone got that problem could help me.

Thanks.








Java Script error with My Faces

2006-03-28 Thread Le Van

Dear all,

Now , I face with the problem is: Browser render the component: 
 and we view source code 
(After rendered) We recorgnized that IE also render the t:commandButton 
like :. 
But We do not see the function clear_form() anywhere, so when we click 
the that button, Browser will raise an javascript error.

Anyone got that problem could help me.
Thanks.


[ANNOUNCE] Struts Shale Framework 1.0.2 Alpha

2006-03-28 Thread Wendy Smoak
The Struts team is pleased to announce the release of Struts Shale 1.0.2 Alpha.

 http://struts.apache.org/downloads.html

The Struts Shale Framework is a set of loosely coupled services,
fundamentally based on JavaServer Faces, which may be combined as
needed to meet particular application requirements.

Compared to version 1.0.0, (version 1.0.1 was retired due to packaging
issues,) this version includes a substantial number of bugfixes and
enhancements -- details are in the Release Notes -- and the following
major new features:

 * Shale Remoting is a complete overhaul of the remoting support in
1.0.0, providing support for application or component developers who
need to implement the server side behavior for AJAX callbacks. It is
packaged as a small (40k) JAR that has no dependencies on the rest of
Shale.

 * Tiger Extensions is an optional add-on layer for those running on
Java SE 5 (code named "Tiger").  The extensions let you use Java
annotations to declare managed beans or register JSF components,
without needing entries in a faces-config.xml file.

 * A new "blank" starter application to get you up and running with a
new project quickly.

 * A new "mailreader" demo application that duplicates the
functionality of the Struts 1.x version of this app, so you can
compare implementation approaches.

* A new "SQL Browser" demo application that illustrates use of the
Tiger Extensions, as well as the ability to modify JSF component trees
on the fly.

Although this is considered an alpha release, various developer APIs
should be considered at a more stable (in terms of assurances of
backwards compatibility in future releases) point than might otherwise
be expected.  Please see the following web page for more details:

 http://struts.apache.org/struts-shale/api-stability.html

Your comments and questions are welcome on the Struts User list. 
Subscription information can be found on the following web page:

 http://struts.apache.org/mail.html

--
Wendy Smoak


myfaces scrolling

2006-03-28 Thread Srinivas Surapaneni
getScrolling() _javascript_ function is not being generated in the portal environment?
 
Is this function being generated by the extension filter?


Re: SVN Organization

2006-03-28 Thread Brandon Goodin
Thanks everyone!

This is great! Maven... generate eclipse files... import project and
bam!... in business. To be honest when i first scanned the repo i
thought i was a mess. Glad i was wrong. Thanks a ton for all your
help.

I would recommend putting a link to the multiproject import for
eclipse. This will find all the .project files in one sweep. Saves
some time importing individual projects.

http://eclipse-tools.sourceforge.net/projecttransfer/

Thanks again,
Brandon

On 3/27/06, Wendy Smoak <[EMAIL PROTECTED]> wrote:
> On 3/27/06, Brandon Goodin <[EMAIL PROTECTED]> wrote:
> > What are all the other directories for? The current directory only
> > contains a pom.xml. I'm curious if someone can explain what all the
> > other modules represent.
>
> It's Subversion magic. :)  The 'current' directory has svn:externals
> definitions that will pull in the 'trunk' of the other modules:
>
> /svn/myfaces/current
> $ svn propget svn:externals .
> core https://svn.apache.org/repos/asf/myfaces/core/trunk
> mavenhttps://svn.apache.org/repos/asf/myfaces/maven/trunk
> site https://svn.apache.org/repos/asf/myfaces/site/trunk
> tomahawk https://svn.apache.org/repos/asf/myfaces/tomahawk/trunk
> shared https://svn.apache.org/repos/asf/myfaces/shared/trunk
>
> So when you check out 'current', you'll get everything.
>
> There is some information on the Maven build here:
>http://wiki.apache.org/myfaces/Building_With_Maven
>
> HTH,
> --
> Wendy
>


beehive & JSF

2006-03-28 Thread Srinivas Surapaneni
Has anybody had success using myfaces tamhawk components with Beehive?
 
 


Re: Multiple th class definitions

2006-03-28 Thread Greg
I miss read the specs.

The solution I think is to use the t:column tag which you can then specify like:



RE: Troubleshooting notes: ADF + Facelets + MyFaces Tomahawk + JSF

2006-03-28 Thread Murray Brandon
Speaking of file uploading...

I have a single form around my entire app of 600 pages (only 1 of which
is 'rendered' at any time so this should be fine).
However, to support file uploading I put enctype="multipart/form-data"
in the form definition as below.



And hey presto all my events from action commands stop firing.  Is this
a known side effect?
Does that mean I have to define sub-forms all over the place, each with
different encoding types?

(I'm using MyFaces + Tomahawk + ADF + Facelets, latest builds)

Regards, Murray

-Original Message-
From: Murray Brandon [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 29, 2006 10:16 AM
To: [EMAIL PROTECTED]
Subject: RE: Troubleshooting notes: ADF + Facelets + MyFaces Tomahawk +
JSF


I'm pretty sure Tomahawk needs commons-fileupload.jar to get
 working, because you don't just specify a byte array
where the uploaded file has to be put. It has a mime type, filename etc,
all of which is encapsulated in a class
org.apache.myfaces.custom.fileupload.UploadedFile.
Not that I have it working, however - will add to the troubleshooting
guide when it's going. (am trying to get an image editor type component
going)



Re: error while switching pages in dataTable using dataScroller

2006-03-28 Thread Rogerio Pereira
one more info, there's no stacktrace


Re: Tomahawk and JSF RI

2006-03-28 Thread Mike Kienenberger
On 3/28/06, Frank Russo <[EMAIL PROTECTED]> wrote:
> So I assume that means I need to add the myfaces-impl-1.1.3-SNAPSHOT.jar to 
> my project's WEB-INF/lib as well?

Hey Frank.

It looks like the myfaces-impl dependency is only (incorrectly)
required by the sandbox.jar, but there's a lot of them to fix.

My suggestion would be to pull out only the sandbox component that you
want to use into your own application code rather than trying to get
sandbox.jar working with the JSF RI.Or, if you feel comfortable
doing so, you can use MyFaces instead of the JSF RI.

I've opened an issue to track these.

https://issues.apache.org/jira/browse/TOMAHAWK-220


error while switching pages in dataTable using dataScroller

2006-03-28 Thread Rogerio Pereira
I have a page with one inputText, one commandButton, one dataTable and one dataScroller, when i type the text to be seached in the inputText and click in the commandButton to retrieve a list of matches in dataTable everything works as expected, but when i click in the next page only the column hearders is showed and i must click in commandButton again to do the seach and fill the list to show the second page properly.
i'm using facelets 1.1.1 and myfaces 1.1.2 snapshot and i don't know who causes it.Thanks for any answer. -- Yours truly (Atenciosamente),Rogério


RE: inputCalendar image display

2006-03-28 Thread Murray Brandon
Do you get a calendar icon next to the date text field (to click on)?
If not, you need to define the resources servlet for MyFaces:

The following defines how the MyFaces resources (such as .js files and
images) are provided in web.xml


MyFacesExtensionsFilter
 
org.apache.myfaces.webapp.filter.ExtensionsFilter

maxFileSize
20m
Set the size limit for uploaded files.
Format: 10 - 10 bytes
10k - 10 KB
10m - 10 MB
1g - 1 GB






MyFacesExtensionsFilter
FacesServlet




MyFacesExtensionsFilter
/faces/myFacesExtensionResource/*


-Original Message-
From: Joey Geiger [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 29, 2006 4:35 AM
To: MyFaces Discussion
Subject: t:inputCalendar image display


I'm running into an issue where the t:inputCalendar is working properly,

but the images are not being shown.
The renderPopupButtonAsImage="true" doesn't show an image, and the 
left/right and dropdown arrows do not appear.
The buttons function properly, as does the rest of the calendar. I 
believe this works fine with 1.1.1 release, but as I need a few of the
recent bug fixes, I'm using the currently nightly build.

Anyone have a suggestion/fix?






Re: SVN Organization

2006-03-28 Thread Wendy Smoak
On 3/27/06, Brandon Goodin <[EMAIL PROTECTED]> wrote:
> What are all the other directories for? The current directory only
> contains a pom.xml. I'm curious if someone can explain what all the
> other modules represent.

It's Subversion magic. :)  The 'current' directory has svn:externals
definitions that will pull in the 'trunk' of the other modules:

/svn/myfaces/current
$ svn propget svn:externals .
core https://svn.apache.org/repos/asf/myfaces/core/trunk
mavenhttps://svn.apache.org/repos/asf/myfaces/maven/trunk
site https://svn.apache.org/repos/asf/myfaces/site/trunk
tomahawk https://svn.apache.org/repos/asf/myfaces/tomahawk/trunk
shared https://svn.apache.org/repos/asf/myfaces/shared/trunk

So when you check out 'current', you'll get everything.

There is some information on the Maven build here:
   http://wiki.apache.org/myfaces/Building_With_Maven

HTH,
--
Wendy


Re: Multiple th class definitions

2006-03-28 Thread Greg
http://java.sun.com/javaee/javaserverfaces/1.1_01/docs/tlddocs/index.html

According to the above, and the 1.2 RI:

" Space-separated list of CSS style class(es) that will be applied to
any header generated for this table."

However this does not seem to work in myfaces atm, it just inserts the
entire list as an entire string, e.g. "list-header list-header
list-header list-header list-header"

1.2 RI also does introduce a h:Column headerClass, this would then
allow the tableData UIData to then have individually styled  ?

I.e. trying to put the dataScroller at the top of the dataTable.


RE: disabling logs on myfaces

2006-03-28 Thread Lance Frohman



What is in 
your log4j.properties? You have some setting in it to show the myfaces 
logs.


From: [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED] On Behalf Of DuduSent: 
Monday, March 27, 2006 10:57 AMTo: MyFaces Official 
ListSubject: disabling logs on myfaces
I have a log4j.properties file, but I want it only to logs generated 
by my application...How can I do this... the better way... are there a way 
to disable the logs of myfaces, in the web.xml???Thanks 


Re: Tomahawk and JSF RI

2006-03-28 Thread Mike Kienenberger
On 3/28/06, Frank Russo <[EMAIL PROTECTED]> wrote:
> So I assume that means I need to add the myfaces-impl-1.1.3-SNAPSHOT.jar to 
> my project's WEB-INF/lib as well?

No, you don't want to do that if you're using the JSF RI.

As Matthias states, you only want to add that missing class to your application.

Please open a JIRA issue, and we'll fix this!


RE: Noob question: virtual path mapping

2006-03-28 Thread Carl Sziebert
Tried that already with the same results.  That's what strikes me as
odd.  Why would the app work with .jsf but not /faces ?

Carl
 

-Original Message-
From: Matthias Wessendorf [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 28, 2006 1:05 PM
To: MyFaces Discussion
Subject: Re: Noob question: virtual path mapping

> http://localhost:8080/blank/faces/helloWorld

Aren't you calling "http://localhost:8080/blank/faces/helloWorld.jsp";
?

(Note: .jsp, not jsF)

-Matthias



Inter component communication via events.

2006-03-28 Thread Marcio E Miranda








Hi all,

 

I want to make two custom components communicate through events.
The first component would fire a custom event and a second component would have
a listener (for that same custom event) registered. Can I do that given that
the two components lie in the same level of the component tree?

 

 

 

 








Re: Noob question: virtual path mapping

2006-03-28 Thread Matthias Wessendorf
> http://localhost:8080/blank/faces/helloWorld

Aren't you calling "http://localhost:8080/blank/faces/helloWorld.jsp";   ?

(Note: .jsp, not jsF)

-Matthias


RE: Noob question: virtual path mapping

2006-03-28 Thread Carl Sziebert
Here you go:

http://java.sun.com/dtd/web-app_2_3.dtd";>




debug web.xml


javax.faces.CONFIG_FILES

/WEB-INF/examples-config.xml


Comma separated list of URIs of (additional) faces config files.
(e.g. /WEB-INF/my-config.xml)
See JSF 1.0 PRD2, 10.3.2




javax.faces.STATE_SAVING_METHOD
client

State saving method: "client" or "server" (= default)
See JSF Specification 2.5.2




org.apache.myfaces.ALLOW_JAVASCRIPT
true

This parameter tells MyFaces if javascript code should be allowed 
in the
rendered HTML output.
If javascript is allowed, command_link anchors will have javascript 
code
that submits the corresponding form.
If javascript is not allowed, the state saving info and nested 
parameters
will be added as url parameters.
Default: "true"




org.apache.myfaces.DETECT_JAVASCRIPT
false



org.apache.myfaces.PRETTY_HTML
true

If true, rendered HTML code will be formatted, so that it is "human 
readable".
i.e. additional line separators and whitespace will be written, 
that do not
influence the HTML code.
Default: "true"




org.apache.myfaces.AUTO_SCROLL
true

If true, a javascript function will be rendered that is able to 
restore the
former vertical scroll on every request. Convenient feature if you 
have pages
with long lists and you do not want the browser page to always jump 
to the top
if you trigger a link or button action that stays on the same page.
Default: "false"






tiles-definitions
/WEB-INF/tiles.xml

Tiles configuration
 definition files and a listener need to be defined.
 the listener will initialize JspTilesViewHandlerImpl with tiles 
definitions.





extensionsFilter

org.apache.myfaces.component.html.util.ExtensionsFilter

uploadMaxFileSize
100m
Set the size limit for uploaded files.
Format: 10 - 10 bytes
10k - 10 KB
10m - 10 MB
1g - 1 GB



uploadThresholdSize
100k
Set the threshold size - files
below this limit are stored in memory, files above
this limit are stored on disk.

Format: 10 - 10 bytes
10k - 10 KB
10m - 10 MB
1g - 1 GB






extensionsFilter
*.jsf


extensionsFilter
/faces/*





Faces Servlet
javax.faces.webapp.FacesServlet
1






Faces Servlet
/faces/*







index.jsp
index.html


 

-Original Message-
From: Matthias Wessendorf [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 28, 2006 12:47 PM
To: MyFaces Discussion
Subject: Re: Noob question: virtual path mapping

can you post complete web.xml ?



On 3/28/06, Carl Sziebert <[EMAIL PROTECTED]> wrote:
>
> Hello all:
>
> First, I did STFU with no luck, sorry if this question has been asked 
> and answered a million times before.  I'm new to JSF and am tasked to 
> evaluate it as a replacement for Struts.  I am attempting to run the 
> blank example application using the virtual path mapping enabled 
> (/faces/*) instead of *.jsf.  Unfortunately when I attempt to visit the URL:
> http://localhost:8080/blank/faces/helloWorld the app blows up and I 
> get the error below.  Why does the app work with *.jsf but not 
> /faces/*?  What did I miss during configuration?  Or did I screw 
> something else up?
>  java.lang.IllegalStateException: No Factories configured for this 
> Application - typically this is because a context listener is not 
> setup in your web.xml.
> A typical config looks like this;
> 
>
> org.apache.myfaces.webapp.StartupServletContextListene
> r
> 
>
> javax.faces.FactoryFinder.getFactory(FactoryFinder.java:84)
>  javax.faces.webapp.FacesServlet.init(FacesServlet.java:84)
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.ja
> va:105)
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java
> :148)
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:
> 869)
> org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.pr
> ocessConnection(Http11BaseProtocol.java:664)
> org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoi
> nt.ja

Re: Tomahawk and JSF RI

2006-03-28 Thread Matthias Wessendorf
Using MyFaces as your JSF runtime is always a good decision :-)

If your app depends on the RI, what you can do is putting only
"ComponentNotFoundException" into your applications classpath. For
instance under WEB-INF/classes/

but creating the folder(s) "org/apache/myfaces/application/"

(Just a *quick* hack)

-Matthias

On 3/28/06, Frank Russo <[EMAIL PROTECTED]> wrote:
> So I assume that means I need to add the myfaces-impl-1.1.3-SNAPSHOT.jar to 
> my project's WEB-INF/lib as well?
>
> Thanks...
>
> Frank Russo
> Senior Developer
> FX Alliance, LLC
>
>
> -Original Message-
> From: Matthias Wessendorf [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, March 28, 2006 3:43 PM
> To: MyFaces Discussion
> Subject: Re: Tomahawk and JSF RI
>
> good catch,
>
> the clazz "org/apache/myfaces/application/ComponentNotFoundException"
>
> is currently under "impl" ([1])
>
>
> [1] - http://tinyurl.com/etjd9
>
>
> On 3/28/06, Frank Russo <[EMAIL PROTECTED]> wrote:
> >
> > Sorry if I post this twice. I wasn't subscribed the first time, so I
> > don't know if it made it. I originally was going to send it to the
> > facelets list, but realized this was not a facelets issue.
> >
> > Anyway, I've read that Tomahawk can run with the JSF RI without
> > myfaces, but I'm getting the following exception:
> >
> > 2006-03-28 15:01:28,623 ERROR
> > org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/scadmi
> > n]
> >  - Exception sending context initialized event to listener instance of
> > class com.sun.faces.config.ConfigureListener
> > java.lang.NoClassDefFoundError:
> > org/apache/myfaces/application/ComponentNotFoundException
> > at java.lang.Class.getDeclaredConstructors0(Native
> > Method)
> > at
> > java.lang.Class.privateGetDeclaredConstructors(Class.java:2328)
> > at java.lang.Class.getConstructor0(Class.java:2640)
> > at java.lang.Class.newInstance0(Class.java:321)
> > at java.lang.Class.newInstance(Class.java:303)
> > at
> > com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:711)
> > at
> > com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:398)
> > at
> > com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:328)
> > at
> > org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3729)
> > at
> > org.apache.catalina.core.StandardContext.start(StandardContext.java:4183)
> > 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.deployDirectory(HostConfig.java:904)
> > at
> > org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:867)
> > at
> > org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:474)
> > at
> > org.apache.catalina.startup.HostConfig.start(HostConfig.java:1112)
> > 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:1021)
> > at
> > org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
> > at
> > org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
> > 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:709)
> > 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)
> > I've set up the tomahawk.taglib.xml file and the entry needed in
> > web.xml, but that is the only docs I find. I have both the
> > tomahawk.jar and the jar for the sandbox components.
> >
> > Any ideas on what I am missing?
> >
> >
> >
> > Frank Russo
> > Senior Developer
> > FX Alliance, LLC
> >
>
>
> --
> Matthias Wessendorf
> Zülpicher Wall 12, 239
> 50674 Köln
> http://www.wessendorf.net
> mwessendorf-at-gmail-dot-com
>
>
>
>


--
Matthias Wessendorf
Zülpicher Wall 12, 239
50674 Köln
http://www.wessendorf.net
mwessendorf-at-gmail-dot

RE: Tomahawk and JSF RI

2006-03-28 Thread Frank Russo
That was it... 


Frank Russo
Senior Developer
FX Alliance, LLC


-Original Message-
From: Frank Russo 
Sent: Tuesday, March 28, 2006 3:46 PM
To: MyFaces Discussion
Subject: RE: Tomahawk and JSF RI

So I assume that means I need to add the myfaces-impl-1.1.3-SNAPSHOT.jar to my 
project's WEB-INF/lib as well?

Thanks...

Frank Russo
Senior Developer
FX Alliance, LLC


-Original Message-
From: Matthias Wessendorf [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 28, 2006 3:43 PM
To: MyFaces Discussion
Subject: Re: Tomahawk and JSF RI

good catch,

the clazz "org/apache/myfaces/application/ComponentNotFoundException"

is currently under "impl" ([1])


[1] - http://tinyurl.com/etjd9


On 3/28/06, Frank Russo <[EMAIL PROTECTED]> wrote:
>
> Sorry if I post this twice. I wasn't subscribed the first time, so I 
> don't know if it made it. I originally was going to send it to the 
> facelets list, but realized this was not a facelets issue.
>
> Anyway, I've read that Tomahawk can run with the JSF RI without 
> myfaces, but I'm getting the following exception:
>
> 2006-03-28 15:01:28,623 ERROR
> org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/scadmi
> n]
>  - Exception sending context initialized event to listener instance of 
> class com.sun.faces.config.ConfigureListener
> java.lang.NoClassDefFoundError:
> org/apache/myfaces/application/ComponentNotFoundException
> at java.lang.Class.getDeclaredConstructors0(Native
> Method)
> at
> java.lang.Class.privateGetDeclaredConstructors(Class.java:2328)
> at java.lang.Class.getConstructor0(Class.java:2640)
> at java.lang.Class.newInstance0(Class.java:321)
> at java.lang.Class.newInstance(Class.java:303)
> at
> com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:711)
> at
> com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:398)
> at
> com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:328)
> at
> org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3729)
> at
> org.apache.catalina.core.StandardContext.start(StandardContext.java:4183)
> 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.deployDirectory(HostConfig.java:904)
> at
> org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:867)
> at
> org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:474)
> at
> org.apache.catalina.startup.HostConfig.start(HostConfig.java:1112)
> 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:1021)
> at
> org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
> at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
> 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:709)
> 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)
> I've set up the tomahawk.taglib.xml file and the entry needed in 
> web.xml, but that is the only docs I find. I have both the 
> tomahawk.jar and the jar for the sandbox components.
>
> Any ideas on what I am missing?
>
>
>
> Frank Russo
> Senior Developer
> FX Alliance, LLC
>


--
Matthias Wessendorf
Zülpicher Wall 12, 239
50674 Köln
http://www.wessendorf.net
mwessendorf-at-gmail-dot-com








RE: Tomahawk and JSF RI

2006-03-28 Thread Frank Russo
So I assume that means I need to add the myfaces-impl-1.1.3-SNAPSHOT.jar to my 
project's WEB-INF/lib as well?

Thanks...

Frank Russo
Senior Developer
FX Alliance, LLC


-Original Message-
From: Matthias Wessendorf [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 28, 2006 3:43 PM
To: MyFaces Discussion
Subject: Re: Tomahawk and JSF RI

good catch,

the clazz "org/apache/myfaces/application/ComponentNotFoundException"

is currently under "impl" ([1])


[1] - http://tinyurl.com/etjd9


On 3/28/06, Frank Russo <[EMAIL PROTECTED]> wrote:
>
> Sorry if I post this twice. I wasn't subscribed the first time, so I 
> don't know if it made it. I originally was going to send it to the 
> facelets list, but realized this was not a facelets issue.
>
> Anyway, I've read that Tomahawk can run with the JSF RI without 
> myfaces, but I'm getting the following exception:
>
> 2006-03-28 15:01:28,623 ERROR
> org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/scadmi
> n]
>  - Exception sending context initialized event to listener instance of 
> class com.sun.faces.config.ConfigureListener
> java.lang.NoClassDefFoundError:
> org/apache/myfaces/application/ComponentNotFoundException
> at java.lang.Class.getDeclaredConstructors0(Native
> Method)
> at
> java.lang.Class.privateGetDeclaredConstructors(Class.java:2328)
> at java.lang.Class.getConstructor0(Class.java:2640)
> at java.lang.Class.newInstance0(Class.java:321)
> at java.lang.Class.newInstance(Class.java:303)
> at
> com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:711)
> at
> com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:398)
> at
> com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:328)
> at
> org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3729)
> at
> org.apache.catalina.core.StandardContext.start(StandardContext.java:4183)
> 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.deployDirectory(HostConfig.java:904)
> at
> org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:867)
> at
> org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:474)
> at
> org.apache.catalina.startup.HostConfig.start(HostConfig.java:1112)
> 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:1021)
> at
> org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
> at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
> 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:709)
> 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)
> I've set up the tomahawk.taglib.xml file and the entry needed in 
> web.xml, but that is the only docs I find. I have both the 
> tomahawk.jar and the jar for the sandbox components.
>
> Any ideas on what I am missing?
>
>
>
> Frank Russo
> Senior Developer
> FX Alliance, LLC
>


--
Matthias Wessendorf
Zülpicher Wall 12, 239
50674 Köln
http://www.wessendorf.net
mwessendorf-at-gmail-dot-com





Re: Noob question: virtual path mapping

2006-03-28 Thread Matthias Wessendorf
can you post complete web.xml ?



On 3/28/06, Carl Sziebert <[EMAIL PROTECTED]> wrote:
>
> Hello all:
>
> First, I did STFU with no luck, sorry if this question has been asked and
> answered a million times before.  I'm new to JSF and am tasked to evaluate
> it as a replacement for Struts.  I am attempting to run the blank example
> application using the virtual path mapping enabled (/faces/*) instead of
> *.jsf.  Unfortunately when I attempt to visit the URL:
> http://localhost:8080/blank/faces/helloWorld the app blows
> up and I get the error below.  Why does the app work with *.jsf but not
> /faces/*?  What did I miss during configuration?  Or did I screw something
> else up?
>  java.lang.IllegalStateException: No Factories configured for this
> Application - typically this is because a context listener is not setup in
> your web.xml.
> A typical config looks like this;
> 
>
> org.apache.myfaces.webapp.StartupServletContextListener
> 
>
> javax.faces.FactoryFinder.getFactory(FactoryFinder.java:84)
>  javax.faces.webapp.FacesServlet.init(FacesServlet.java:84)
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
> org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
> org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
> org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
>  java.lang.Thread.run(Thread.java:595)
>
>
> TIA.
>
> Carl
>


--
Matthias Wessendorf
Zülpicher Wall 12, 239
50674 Köln
http://www.wessendorf.net
mwessendorf-at-gmail-dot-com


Re: Tomahawk and JSF RI

2006-03-28 Thread Matthias Wessendorf
good catch,

the clazz "org/apache/myfaces/application/ComponentNotFoundException"

is currently under "impl" ([1])


[1] - http://tinyurl.com/etjd9


On 3/28/06, Frank Russo <[EMAIL PROTECTED]> wrote:
>
> Sorry if I post this twice. I wasn't subscribed the first time, so I don't
> know if it made it. I originally was going to send it to the facelets list,
> but realized this was not a facelets issue.
>
> Anyway, I've read that Tomahawk can run with the JSF RI without myfaces, but
> I'm getting the following exception:
>
> 2006-03-28 15:01:28,623 ERROR
> org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/scadmin]
>  - Exception sending context initialized event to listener instance of class
> com.sun.faces.config.ConfigureListener
> java.lang.NoClassDefFoundError:
> org/apache/myfaces/application/ComponentNotFoundException
> at java.lang.Class.getDeclaredConstructors0(Native
> Method)
> at
> java.lang.Class.privateGetDeclaredConstructors(Class.java:2328)
> at java.lang.Class.getConstructor0(Class.java:2640)
> at java.lang.Class.newInstance0(Class.java:321)
> at java.lang.Class.newInstance(Class.java:303)
> at
> com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:711)
> at
> com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:398)
> at
> com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:328)
> at
> org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3729)
> at
> org.apache.catalina.core.StandardContext.start(StandardContext.java:4183)
> 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.deployDirectory(HostConfig.java:904)
> at
> org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:867)
> at
> org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:474)
> at
> org.apache.catalina.startup.HostConfig.start(HostConfig.java:1112)
> 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:1021)
> at
> org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
> at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
> 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:709)
> 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)
> I've set up the tomahawk.taglib.xml file and the entry needed in web.xml,
> but that is the only docs I find. I have both the tomahawk.jar and the jar
> for the sandbox components.
>
> Any ideas on what I am missing?
>
>
>
> Frank Russo
> Senior Developer
> FX Alliance, LLC
>


--
Matthias Wessendorf
Zülpicher Wall 12, 239
50674 Köln
http://www.wessendorf.net
mwessendorf-at-gmail-dot-com


Tomahawk and JSF RI

2006-03-28 Thread Frank Russo



Sorry if I post this 
twice. I wasn't subscribed the first time, so I don't know if it made it. I 
originally was going to send it to the facelets list, but realized this was not 
a facelets issue. 
 
Anyway, I've read 
that Tomahawk can run with the JSF RI without myfaces, but I'm getting the 
following exception:

  2006-03-28 
  15:01:28,623 ERROR 
  org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/scadmin]  
  - Exception sending context initialized event to listener instance of class 
  com.sun.faces.config.ConfigureListenerjava.lang.NoClassDefFoundError: 
  org/apache/myfaces/application/ComponentNotFoundException    
  at java.lang.Class.getDeclaredConstructors0(Native 
  Method)    at 
  java.lang.Class.privateGetDeclaredConstructors(Class.java:2328)    
  at 
  java.lang.Class.getConstructor0(Class.java:2640)    
  at 
  java.lang.Class.newInstance0(Class.java:321)    
  at 
  java.lang.Class.newInstance(Class.java:303)    
  at 
  com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:711)    
  at 
  com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:398)    
  at 
  com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:328)    
  at 
  org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3729)    
  at 
  org.apache.catalina.core.StandardContext.start(StandardContext.java:4183)    
  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.deployDirectory(HostConfig.java:904)    
  at 
  org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:867)    
  at 
  org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:474)    
  at 
  org.apache.catalina.startup.HostConfig.start(HostConfig.java:1112)    
  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:1021)    
  at 
  org.apache.catalina.core.StandardHost.start(StandardHost.java:718)    
  at 
  org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)    
  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:709)    
  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)
I've set up the tomahawk.taglib.xml file and the entry 
needed in web.xml, but that is the only docs I find. I have both the 
tomahawk.jar and the jar for the sandbox components. 
 
Any ideas on what I 
am missing? 

Frank 
RussoSenior DeveloperFX Alliance, LLC


Noob question: virtual path mapping

2006-03-28 Thread Carl Sziebert



Hello 
all:
 
First, I did STFU 
with no luck, sorry if this question has been asked and answered a million times 
before.  I'm new to JSF and am tasked to evaluate it as a replacement for 
Struts.  I am attempting to run the blank example application using the 
virtual path mapping enabled (/faces/*) instead of *.jsf.  Unfortunately 
when I attempt to visit the URL: http://localhost:8080/blank/faces/helloWorld 
the app blows up and I get the error below.  Why does the app work with 
*.jsf but not /faces/*?  What did I miss during configuration?  Or did 
I screw something else up?  
 java.lang.IllegalStateException: No Factories 
configured for this Application - typically this is because a context listener 
is not setup in your web.xml.A typical config looks like 
this;  
org.apache.myfaces.webapp.StartupServletContextListener	javax.faces.FactoryFinder.getFactory(FactoryFinder.java:84)	javax.faces.webapp.FacesServlet.init(FacesServlet.java:84)	org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)	org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)	org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)	org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)	org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)	org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)	org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)	java.lang.Thread.run(Thread.java:595)
 
 
TIA.
Carl
 


Re: Duplicate id : _id1. Child could not be added - lazy loading xhtml

2006-03-28 Thread Travis Reeder
You could try using s within the if's, that *might* work.TravisOn 3/27/06, Murray Brandon <
[EMAIL PROTECTED]> wrote:






Thanks 
Travis,
 
From 
the sound of it, massive warnings need to be placed around references to the 
 to stop people using it if it doesn't work, or is it just when 
coupled with include type tags?
I'd 
like to read more on the subject if anyone has some doco on how it 
works.
 
With a component tree of some 600 
included panels, I absolutely need the  or similar to ensure lazy compilation 
in Facelets.  Is the alternative to force unique IDs on all 
components within the included 
files?  (seems horrible).
 
I can't change the  to a 
rendered= parameter, because I am lazy loading one of the 600 panels I'm 
using.
 
            
    There is currently not a "rendered" 
property to set on the facelets  tag.  
eg.    
 
Would such a "rendered" property work?  I'm thinking no because the facelets are 
compiled earlier.
 
I want to avoid creation of the 
Facelet until the very last moment, given that 600 panels would make the app 
just sit there for half an hour on startupand at any time only 10% of the 
screens will be in use.
 
If I change the above to 
be:
 
        
    

 
The facelet gets compiled even when 
the panelGrid isn't being rendered:
 
Mar 28, 2006 4:45:11 AM 
com.sun.facelets.impl.DefaultFaceletFactory createFacelet FINE: Creating 
Facelet for: 
file:/devel/playpen/aui/data/screens/userSearchPanel.xhtml
 
Regards, Murray

  
  -Original Message-From: Travis Reeder 
  [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 28, 2006 10:09 
  AMTo: MyFaces DiscussionSubject: Re: Duplicate id : 
  _id1. Child could not be added.Definitely want to use 
  rendered vs c:if.  JSF doesn't see the "if" so it will assign an id to 
  the next component it sees the first time around, and if that changes next 
  reload, the component that JSF hasn't seen will get assigned an id that may 
  have already been used.  Something like that anyways.  ;) 
  Travis
  On 3/27/06, Murray 
  Brandon <[EMAIL PROTECTED]> wrote:
  Hi 
all,I've been thinking about what I might be doing that's different 
fromeveryone else.1) Currently I use a single form for the 
entire application (my form isdefined at the root only) and my 
application is in a single large component tree with many facelet 
includes so the display is controlledby  tags.2) My form 
uses prependId="false" - not sure the signficance of settingthis to 
true. 3) I don't define any components 
IDs at all - after all, why should Idefine an ID unless I specifically 
need to refer to that componentagain?  That would be just 
pointless busy work.4) All my common controls I define in separate 
.xhtml compositions so I can't give them unique IDs without a duplicate 
ID (or does the ID getprepended with the parent component 
ID?).  eg. date.xhtml 
below 
 
 
 
weekRowClass="weekHeader" 
 
currentDayCellClass="currentDayCell" 
popupDateFormat="dd/MM/" 
value="#{property['value']}" 
renderAsPopup="true" 
 
popupTodayString="Today is 
:" 
popupWeekString="Week" 
renderPopupButtonAsImage="true" 
/> 5) I'm 
using a mix of ADF/Facelets/Tomahawk in the MyFaces impl andgiven that 
it happens often but intermittently, perhaps this commentapplies: "Are 
you using the c:if/c:/choose JSTL tags with facelets? That was my 
problem. MyFaces doesn't appreciate my current view changing onpostback 
to the same view (non-navigation)".6) Should I be using 
rendered="#{condition}" instead of the JSTL tags to avoid 
confusing MyFaces?  To preserve memory and performance 
Iactually don't want an include to be compiled at all unless it needs 
tobe displayed.Sorry to post to both groups but it could be 
relevant to both. Regards, MurrayPS. versions of 
libs:10,823 adf-facelets.jar   
683,633 adf-faces-api-ea20-SNAPSHOT.jar3,122,625 
adf-faces-impl-ea20-SNAPSHOT.jar48,742 
common-annotations.jar   188,671 
commons-beanutils-1.7.0.jar46,725 
commons-codec-1.3.jar   559,366 
commons-collections-3.1.jar   168,446 
commons-digester-1.6.jar   112,341 
commons-el-1.0.jar31,825 
commons-fileupload-1.1.jar65,621 
commons-io-1.2.jar   207,723 
commons-lang-2.1.jar38,015 
commons-logging-1.0.4.jar26,089 
el-api.jar96,983 el-ri.jar   
241,801 jsf-facelets1012.jar50,491 
jsp-api.ja

t:inputCalendar image display

2006-03-28 Thread Joey Geiger
I'm running into an issue where the t:inputCalendar is working properly, 
but the images are not being shown.
The renderPopupButtonAsImage="true" doesn't show an image, and the 
left/right and dropdown arrows do not appear.
The buttons function properly, as does the rest of the calendar. I 
believe this works fine with 1.1.1 release, but as I need a few

of the recent bug fixes, I'm using the currently nightly build.

Anyone have a suggestion/fix?





Re: readonly entities no longer pass value back to backing bean?

2006-03-28 Thread Martin Marinschek
I'd add a new option to the inputCalendar.

Allow direct entry or so?

If you program that, Yee, I'll commit it. promised.

regards,

Martin

On 3/28/06, Gerald Müllan <[EMAIL PROTECTED]> wrote:
> On the other way, you can do a quickfix in case of this inputCalendar use 
> case;
>
> As Yura said, you can take a inputHidden and with some js coding on
> every onchange event (to the readonly inputCalendar) push the date
> value to the hidden element.
>
> Maybe a hidden inputCalender too, instead of the "normal" inputHidden,
> and of course the value must be bound to the same model value (sure :)
> )
>
> As mentioned, the hidden value will be posted to server.
>
> regards,
>
> Gerald
>
> On 3/7/06, Yee CN <[EMAIL PROTECTED]> wrote:
> >
> >
> >
> > Hi,
> >
> >
> >
> > I discovered the recent nightly builds has stop sending values back to the
> > backing bean when readonly attribute is set to true. For example:
> >
> >
> >
> > 
> >
> >
> >
> > The totalAmount is meant to be a readonly textbox, whose value is calculated
> > via javascript.
> >
> >
> >
> > Another example is inputCalendar, where the date should only be selected
> > from the popup window, and now key in directly:
> >
> >
> >
> > 
> >
> >
> >
> >
> >
> > I find that all of these entities will no longer pass the input box value to
> > the backing bean. I tested it with the build downloaded today and find it to
> > be so. I have a version downloaded around 10 Feb and that one was working
> > OK.
> >
> >
> >
> > Is this a bug? Or is this a design change?
> >
> >
> >
> > Thanks
> >
> >
> >
> > Yee
> >
> >
>
>
> --
> Gerald Müllan
> Schelleingasse 2/11
> 1040 Vienna, Austria
> 0043 699 11772506
> [EMAIL PROTECTED]
>


--

http://www.irian.at

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

Professional Support for Apache MyFaces


Re: graphicImageDynamic

2006-03-28 Thread Mike Kienenberger
I haven't tried this tag recently, but the original version of it
stored the page state in the url.  Thus it wouldn't work on large
pages.   You might see if there's some error about the URL being
larger than 4096 characters in your logs.

On 3/27/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Hi,
>
> i have problems to implement the sandbox tag graphicImageDynamic.
> I followed the instructions and use the actual subversion version where i 
> found an example.
> But with hibernate and facelets it will not work for me.
>
> I've read a lot, implemented all properly, but the image from the database 
> will not be rendered.
> e.g. i implemented 
> http://wiki.java.net/bin/view/Projects/FaceletsTaglibsMyfacesSandbox - for 
> sandbox-facelets support.
>
> Have somebody implemented this tag or is it possible to render an image from 
> the database with another tag???
>
> Regards,
>
> Udo
>
>
> "Jetzt Handykosten senken mit klarmobil - 14 Ct./Min.! Hier klicken"
> www.klarmobil.de/index.html?pid=73025
>
>


Re: panelTabbedPane - only first tab change works

2006-03-28 Thread Mike Kienenberger
It's possible if you were using serverSideTabSwitching=true that this
bug was fixed earlier this week.   Try it with a nightly build.   The
serverSideTabSwitching state was not being saveState'd.

Another possibility is that you're basing your actions on a
request-scoped bean that no longer exists on the next request.

On 3/28/06, Hennie Brugman <[EMAIL PROTECTED]> wrote:
> Dear all,
>
>  When testing on a local Tomcat my panelTabbedPane works fine. However, when
> running it on Tomcat on our Apache2 server only the first tab change works.
> Subsequent clicks bring me to the default tab, and no events arrive at my
> tabChangeListener anymore.
>
>  Does anyone have an idea what could be wrong?
>
>  best,
>  Hennie Brugman
>


RichList

2006-03-28 Thread sjarlier
Hi!

I got into troubles while using lists in a jsp page.
I have a list of possible pages to load: psLabels groups together all pages
names (page1, page2 etc).
Then I would like to display all this labels and add an action link on them
in order to load the page. Thus I need an action (the link to the page for
example "page1Load" that retrieves which jsp page to load in a XML file) and
I need an actionListener that prepares the page (with an action event).
How could I get the action and actionListener according to the label (I
coded a method that returns the action (String getAction(String label)) and
a method that returns the actionListener (String getActionListener(String
label, ActionEvent event))
But I think I am getting into troubles while calling them or maybe because
of the parameter stored in f:param. Please would you mind telling me what
should I do? Thanks for your help!

Sophie




 
  
  





Re: HtmlSelectOneMenu not serializeable ?

2006-03-28 Thread Mike Kienenberger
On 3/28/06, Michael Heinen <[EMAIL PROTECTED]> wrote:
> I create the component in my bean manually and populate it with SelectItems.
> Do you mean using a managed property and a more complex setter as an 
> alternative? Is this a better approach than the check in the getter?

It's had to say without knowing specifically what you're doing.

Personally, I haven't had the need to manually create a component in the getter.
>From what you've posted so far, it doesn't really sound like you need
that functionality either.   It sounds like all you need is a
reference to your selectOneMenu component.

It also sounds like you have a couple of different issues you're
trying to deal with: Seralization as well as a selectOneMenu that
immediately changes what's displayed on the page.

I've got more experience with the second.   There's no really good way
to handle the second case yet.   Some of the ways I've seen so far are

- OptionalValidationFramework (doesn't work well if you're not using
facelets so I'd only suggest it if you have either a lot of immediate
controls and are using facelets)

- the new sandbox subform stuff (or the ADFFaces equivalent if you're
using ADF),

- manually updating the backing bean from your immediate
actionListener via a component reference

- using the "delayed" valueChangeListener component (I think it's
called ValueChangeNotifier or StateChangeNotifier?)

Again, you might get better advice if you post a bigger picture of
what you're trying to accomplish since some of your reported problems
may be irrelevent with a different approach.


Re: readonly entities no longer pass value back to backing bean?

2006-03-28 Thread Gerald Müllan
On the other way, you can do a quickfix in case of this inputCalendar use case;

As Yura said, you can take a inputHidden and with some js coding on
every onchange event (to the readonly inputCalendar) push the date
value to the hidden element.

Maybe a hidden inputCalender too, instead of the "normal" inputHidden,
and of course the value must be bound to the same model value (sure :)
)

As mentioned, the hidden value will be posted to server.

regards,

Gerald

On 3/7/06, Yee CN <[EMAIL PROTECTED]> wrote:
>
>
>
> Hi,
>
>
>
> I discovered the recent nightly builds has stop sending values back to the
> backing bean when readonly attribute is set to true. For example:
>
>
>
> 
>
>
>
> The totalAmount is meant to be a readonly textbox, whose value is calculated
> via javascript.
>
>
>
> Another example is inputCalendar, where the date should only be selected
> from the popup window, and now key in directly:
>
>
>
> 
>
>
>
>
>
> I find that all of these entities will no longer pass the input box value to
> the backing bean. I tested it with the build downloaded today and find it to
> be so. I have a version downloaded around 10 Feb and that one was working
> OK.
>
>
>
> Is this a bug? Or is this a design change?
>
>
>
> Thanks
>
>
>
> Yee
>
>


--
Gerald Müllan
Schelleingasse 2/11
1040 Vienna, Austria
0043 699 11772506
[EMAIL PROTECTED]


Re: readonly entities no longer pass value back to backing bean?

2006-03-28 Thread Gerald Müllan
Hi,

don`t know if this also meets your requirements, but you can set
disabledOnClientSide="true", the field will be disabled and you can be
sure that the values will be posted back to server.

But as far as i know, this attribute exists only on t:inputText.

regards,

Gerald

On 3/7/06, Yee CN <[EMAIL PROTECTED]> wrote:
>
>
>
> Hi,
>
>
>
> I discovered the recent nightly builds has stop sending values back to the
> backing bean when readonly attribute is set to true. For example:
>
>
>
> 
>
>
>
> The totalAmount is meant to be a readonly textbox, whose value is calculated
> via javascript.
>
>
>
> Another example is inputCalendar, where the date should only be selected
> from the popup window, and now key in directly:
>
>
>
> 
>
>
>
>
>
> I find that all of these entities will no longer pass the input box value to
> the backing bean. I tested it with the build downloaded today and find it to
> be so. I have a version downloaded around 10 Feb and that one was working
> OK.
>
>
>
> Is this a bug? Or is this a design change?
>
>
>
> Thanks
>
>
>
> Yee
>
>


--
Gerald Müllan
Schelleingasse 2/11
1040 Vienna, Austria
0043 699 11772506
[EMAIL PROTECTED]


RE: HtmlSelectOneMenu not serializeable ?

2006-03-28 Thread Michael Heinen
Mike,

thanks for your answer.

I create the component in my bean manually and populate it with SelectItems.
Do you mean using a managed property and a more complex setter as an 
alternative? Is this a better approach than the check in the getter?

Michael

-Original Message-
From: Mike Kienenberger [mailto:[EMAIL PROTECTED] 
Sent: Dienstag, 28. März 2006 18:57
To: MyFaces Discussion
Subject: Re: HtmlSelectOneMenu not serializeable ?

On 3/28/06, Michael Heinen <[EMAIL PROTECTED]> wrote:
> Do you see also any issues when I mark the field transient and check in the
> getter whether the instance is null and reinitialize it if necessary?

Michael,

That is probably a better way to handle this situation.   You could
also skip the getter and simply accept whatever value is provided by
the setter if you are not manually creating the component.


Re: Tobago causes javaScript error

2006-03-28 Thread Volker Weber
Hi Iryna,

this was a problem introduced by the javascript reorg last weeks, i
thought i had fixed this last week, but obviously not :-(.

just commited the fix, please update and try again :-)



Regards,
  Volker


Iryna Stetska wrote:
> Tobago team,
> 
> We are using tobago version dated 03/22/2006 and have lots of javascript
> errors in JavaScript Console while working with toolbars.
> 
> Under Firefox error looks like the following:
> 
> Error: this.images[id] has no properties
> Source File:
> http://nstasiv:8080/bpms-console/tobago/html/standard/standard/script/tobago
> .js
> Line: 312
> 
> (Tobago.toolbarMousesover() function in tobago.js)
> 
> Error also appears under IE and looks like this:
> Line:324
> Char:5
> Error: 'this.images[...].normal' is null or is not an object
> 
> 
> Although this does not affect functionality and the toolbar bahaves
> correctly.
> 
> Can you explain this problem?
> 
> Thanks, 
> Ira
> 
> 

-- 
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: HtmlSelectOneMenu not serializeable ?

2006-03-28 Thread Michael Heinen








Yura,

 

Thanks again for your
sample.

 

This was also my first
approach but I had to discard it.

 

My form has to be
submitted when the value changes by using _javascript_. 

Moreover there are many
input fields on the corresponding screen and I don't want the page to be
validated when the user

selects an other entry in
the selectOneMenu because this makes no sense in my case.

So I set the immediate
flag of my hidden commandButton to true.

The result of this was
that my assignedValueChangeListener was not called at the "right"
time for me.

Due to all these problems
I decided to use a component binding there.

 

Michael

 









From:
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Dienstag, 28. März 2006
18:58
To: 'MyFaces
 Discussion'
Subject: RE: HtmlSelectOneMenu not
serializeable ?



 

As for me I prefer to
create such mapping to SelectOneMenu:

 

  


   
valueChangeListener="#{dsMap.appControlChange}"
style="width:200px;">

   
   

  


  


 Instead of:

  


  


 

I guess you will have some
problems during Session replication in the cluster if you have whole binding to
HtmlSelectOneMenu, because this bean which has mapping to HtmlSelectOneMenu
won’t correctly deserializable this property, if you will use transient
for this property you won’t desialize this at all.

 

Best regards,

Yura.









From: Michael Heinen [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 28, 2006 7:46
PM
To: MyFaces
 Discussion
Subject: RE: HtmlSelectOneMenu not
serializeable ?



 

Yura,

 

Thanks for clarification.

 

What do you exactly mean
with “add a few mappings to SelectOneMenu”?

 

Do you see also any
issues when I mark the field transient and check in the getter whether the
instance is null and reinitialize it if necessary? 

 

I found a hint in the
WIKI regarding serialization and DataModels:

http://wiki.apache.org/myfaces/FAQ

 

I have a complex dynamic
model in the background and some dependencies between my BackingBeans so I
think requestScoped beans are currently not a real/performant alternative for
me.

 

Michael

 









From:
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Dienstag, 28. März 2006
18:34
To: 'MyFaces
 Discussion'
Subject: RE: HtmlSelectOneMenu not
serializeable ?



 

Hi,

 

Well as JSF’s
UIComponent isn’t Seriaizable so all others ui components also
isn’t serializable. I recommended to use request beans instead of
session. If you are using session beans, for example you can try to add a few
mappings to SelectOneMenu, for example:

 

Value

selectItems

Disable

… etc.

 

All these elements are
serializable even  as SelectItem is Serializable.

Using transient to
HtmlSelectOneMenu you will have some issues in future when you will try to
deserializable this object. 

 

Thanks,

Yura.









From: Michael Heinen [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 28, 2006 7:26
PM
To: MyFaces
 Discussion
Subject: HtmlSelectOneMenu not
serializeable ?



 

Hi,

 

I came across the following exception in my log file:

java.io.NotSerializableException:
javax.faces.component.html.HtmlSelectOneMenu

 

The HtmlSelectOneMenu is a property in a session
scoped managed bean.

Does this mean that I have to declare it transient in
order to play it safe?

What about the implemented StateHolder interface?

What about other component bindings?

 

 

Thanks for clarification

Michael








RE: HtmlSelectOneMenu not serializeable ?

2006-03-28 Thread Yura.Tkachenko








As for me I prefer to
create such mapping to SelectOneMenu:

 

  


   
valueChangeListener="#{dsMap.appControlChange}"
style="width:200px;">

       

  


  


 Instead of:

  


  


 

I guess you will have
some problems during Session replication in the cluster if you have whole binding
to HtmlSelectOneMenu, because this bean which has mapping to HtmlSelectOneMenu
won’t correctly deserializable this property, if you will use transient
for this property you won’t desialize this at all.

 

Best regards,

Yura.









From: Michael Heinen
[mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 28, 2006 7:46
PM
To: MyFaces Discussion
Subject: RE: HtmlSelectOneMenu not
serializeable ?



 

Yura,

 

Thanks for clarification.

 

What do you exactly mean
with “add a few mappings to SelectOneMenu”?

 

Do you see also any
issues when I mark the field transient and check in the getter whether the
instance is null and reinitialize it if necessary? 

 

I found a hint in the
WIKI regarding serialization and DataModels:

http://wiki.apache.org/myfaces/FAQ

 

I have a complex dynamic
model in the background and some dependencies between my BackingBeans so I think
requestScoped beans are currently not a real/performant alternative for me.

 

Michael

 









From:
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Dienstag, 28. März 2006
18:34
To: 'MyFaces
 Discussion'
Subject: RE: HtmlSelectOneMenu not
serializeable ?



 

Hi,

 

Well as JSF’s
UIComponent isn’t Seriaizable so all others ui components also
isn’t serializable. I recommended to use request beans instead of
session. If you are using session beans, for example you can try to add a few
mappings to SelectOneMenu, for example:

 

Value

selectItems

Disable

… etc.

 

All these elements are
serializable even  as SelectItem is Serializable.

Using transient to
HtmlSelectOneMenu you will have some issues in future when you will try to
deserializable this object. 

 

Thanks,

Yura.









From: Michael Heinen [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 28, 2006 7:26
PM
To: MyFaces
 Discussion
Subject: HtmlSelectOneMenu not
serializeable ?



 

Hi,

 

I came across the following exception in my log file:

java.io.NotSerializableException:
javax.faces.component.html.HtmlSelectOneMenu

 

The HtmlSelectOneMenu is a property in a session
scoped managed bean.

Does this mean that I have to declare it transient in
order to play it safe?

What about the implemented StateHolder interface?

What about other component bindings?

 

 

Thanks for clarification

Michael








Re: HtmlSelectOneMenu not serializeable ?

2006-03-28 Thread Mike Kienenberger
On 3/28/06, Michael Heinen <[EMAIL PROTECTED]> wrote:
> Do you see also any issues when I mark the field transient and check in the
> getter whether the instance is null and reinitialize it if necessary?

Michael,

That is probably a better way to handle this situation.   You could
also skip the getter and simply accept whatever value is provided by
the setter if you are not manually creating the component.


Re: Content Include with PHP

2006-03-28 Thread Sebastien Boutte
Finally, i found the error for dynamically include php.
I've updated manually the classes from my faces and i've regenerated a
new myfaces jar.

Thanks David (In fact the bug is corrected in myfaces 1.1.2)

Sébastien Boutté


[ 
http://issues.apache.org/jira/browse/MYFACES-1121?page=comments#action_12366451 
\
] 

Ramon Casha commented on MYFACES-1121:
--

Ok here's what I did to fix it. Note that this is a duct tape solution.

Edit HtmlRendererUtils.java, function "public static String 
selectContentType(String \
contentTypeListString)" (line 995 or thereabouts)

Replace the first bit with:

if (contentTypeListString == null)
{
FacesContext context = FacesContext.getCurrentInstance();
if(context == null) {
contentTypeListString = HTML_CONTENT_TYPE;

} else {
contentTypeListString = (String)
\
context.getExternalContext().getRequestHeaderMap().get("Accept");

if(contentTypeListString == null)
{
if (log.isDebugEnabled())
log.debug("No content type list given, creating \
HtmlResponseWriterImpl with default content type.");

contentTypeListString = HTML_CONTENT_TYPE;
}
}
}

The main change is that if FacesContext.getCurrentContext() is null, it uses 
the \
default content type too.

This might not help... but I got i THINK the same error a while ago. It 
happened when I part of my webapp was protected and when I logged in it 
would get this error on the first request after login. (Only the 1st 
page after login.) Anyways I updated to a snapshot of 1.1.2 and it 
stopped happening. For me this error first appeared when I upgraded 
jboss to RC1.

David

Sebastien Boutte wrote:
> Hi All,
>
> I have a little problem and i can't find a way to resolve it.
> My first page is a php page which include content from a remote
> server which has jsf pages.
>
> So on my php page i do :
>
>  include 'http://myserver/mypage.jsf';
> ?> 
>
> I try readfile ; but nothing better.
>
> On my tomcat console, i see this exception.
>
> SEVERE: Servlet.service() for servlet Faces Servlet threw exception
> java.lang.NullPointerException
>   at
> org.apache.myfaces.renderkit.html.HtmlRendererUtils.selectContentType(HtmlRendererUtils.java:919)
>   at
> org.apache.myfaces.component.html.util.AddResource.writeWithFullHeader(AddResource.java:443)
>   at
> org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(ExtensionsFilter.java:132)
>   at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
>   at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>   at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
>   at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.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:148)
>   at
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:868)
>   at org.apache.coyote.http11.Http11BaseProtocol
> $Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:663)
>   at
> org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
>   at
> org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
>   at org.apache.tomcat.util.threads.ThreadPool
> $ControlRunnable.run(ThreadPool.java:684)
>   at java.lang.Thread.run(Thread.java:595)
>
> Could someone help me to find a solution ?
>
> Thank you,
>
> S�bastien Boutt�
>
>
>
>   




Re: MyFaces API SelectItem as an interface rather than a concrete class?

2006-03-28 Thread Mike Kienenberger
On 3/27/06, Murray Brandon <[EMAIL PROTECTED]> wrote:
> SelectItem appears to lend itself well to being an interface (could move
> the default implementation into a DefaultSelectItem class)?

http://wiki.apache.org/myfaces/FAQ#JSFspec


Tobago causes javaScript error

2006-03-28 Thread Iryna Stetska
Title: Tobago causes javaScript error






Tobago team,


We are using tobago version dated 03/22/2006 and have lots of _javascript_ errors in _javascript_ Console while working with toolbars.

Under Firefox error looks like the following:


Error: this.images[id] has no properties

Source File: http://nstasiv:8080/bpms-console/tobago/html/standard/standard/script/tobago.js

Line: 312


(Tobago.toolbarMousesover() function in tobago.js)


Error also appears under IE and looks like this:

Line:324

Char:5

Error: 'this.images[...].normal' is null or is not an object



Although this does not affect functionality and the toolbar bahaves correctly.


Can you explain this problem?


Thanks, 

Ira





RE: HtmlSelectOneMenu not serializeable ?

2006-03-28 Thread Michael Heinen








Yura,

 

Thanks for clarification.

 

What do you exactly mean
with “add a few mappings to SelectOneMenu”?

 

Do you see also any
issues when I mark the field transient and check in the getter whether the
instance is null and reinitialize it if necessary? 

 

I found a hint in the
WIKI regarding serialization and DataModels:

http://wiki.apache.org/myfaces/FAQ

 

I have a complex dynamic model
in the background and some dependencies between my BackingBeans so I think
requestScoped beans are currently not a real/performant alternative for me.

 

Michael

 









From:
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Dienstag, 28. März 2006
18:34
To: 'MyFaces
 Discussion'
Subject: RE: HtmlSelectOneMenu not
serializeable ?



 

Hi,

 

Well as JSF’s
UIComponent isn’t Seriaizable so all others ui components also
isn’t serializable. I recommended to use request beans instead of
session. If you are using session beans, for example you can try to add a few
mappings to SelectOneMenu, for example:

 

Value

selectItems

Disable

… etc.

 

All these elements are
serializable even  as SelectItem is Serializable.

Using transient to
HtmlSelectOneMenu you will have some issues in future when you will try to deserializable
this object. 

 

Thanks,

Yura.









From: Michael Heinen [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 28, 2006 7:26
PM
To: MyFaces
 Discussion
Subject: HtmlSelectOneMenu not
serializeable ?



 

Hi,

 

I came across the following exception in my log file:

java.io.NotSerializableException:
javax.faces.component.html.HtmlSelectOneMenu

 

The HtmlSelectOneMenu is a property in a session
scoped managed bean.

Does this mean that I have to declare it transient in
order to play it safe?

What about the implemented StateHolder interface?

What about other component bindings?

 

 

Thanks for clarification

Michael








Re: SVN Organization

2006-03-28 Thread Mike Kienenberger
On 3/27/06, Dennis Byrne <[EMAIL PROTECTED]> wrote:
> You'll want the current dir .  This information should be on the wiki but I 
> am not sure.

http://wiki.apache.org/myfaces/Building_With_Maven


RE: HtmlSelectOneMenu not serializeable ?

2006-03-28 Thread Yura.Tkachenko








Hi,

 

Well as JSF’s
UIComponent isn’t Seriaizable so all others ui components also isn’t
serializable. I recommended to use request beans instead of session. If you are
using session beans, for example you can try to add a few mappings to
SelectOneMenu, for example:

 

Value

selectItems

Disable

… etc.

 

All these elements are
serializable even  as SelectItem is Serializable.

Using transient to
HtmlSelectOneMenu you will have some issues in future when you will try to
deserializable this object. 

 

Thanks,

Yura.









From: Michael Heinen
[mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 28, 2006 7:26
PM
To: MyFaces Discussion
Subject: HtmlSelectOneMenu not
serializeable ?



 

Hi,

 

I came across the following exception in my log file:

java.io.NotSerializableException:
javax.faces.component.html.HtmlSelectOneMenu

 

The HtmlSelectOneMenu is a property in a session
scoped managed bean.

Does this mean that I have to declare it transient in
order to play it safe?

What about the implemented StateHolder interface?

What about other component bindings?

 

 

Thanks for clarification

Michael








HtmlSelectOneMenu not serializeable ?

2006-03-28 Thread Michael Heinen








Hi,

 

I came across the following exception in my log file:

java.io.NotSerializableException:
javax.faces.component.html.HtmlSelectOneMenu

 

The HtmlSelectOneMenu is a property in a session
scoped managed bean.

Does this mean that I have to declare it transient in
order to play it safe?

What about the implemented StateHolder interface?

What about other component bindings?

 

 

Thanks for clarification

Michael








RE: Apache MyFaces JSF error

2006-03-28 Thread James Reynolds

I would certainly update to JSF 1.1.01.  There are many bug fixes over
the first release.



From: Rashid Asim [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 28, 2006 8:58 AM
To: 'users@myfaces.apache.org'
Subject: Apache MyFaces JSF error



Hello

 

Whilst developing using Apache MyFaces I have come across a problem
which I am trying to troubleshoot. I have had not had any luck at
resolving this issue. I will attempt to describe this:

 

I am developing using JSF version 1.1 and the application server I am
using to deploy to is BEA WebLogic 9.1 

 

I have a situation where some of my JSF pages occasionally misbehave.
For example, sometimes when I click a  (which is
located within a  tag) the action which the button is wired to
is not executed. 

 

Please note that this glitch happens intermittently with no fixed
pattern. It is also interesting to note that the data which the user has
entered (prior to clicking the button) on the JSF page is also lost and
has to be re-entered again by the user.

 

Functionally, this is only a minor problem however from a usability
perspective this is a major problem.

 

I have searched SUN's Java forums and found a useful site at
http://www.jsf-faq.com/faqs/faces-navigation.html#111. Having followed
all the suggestions prescribed on this site, I find that I am still
having the same problem.

 

I have tried setting the javax.faces.STATE_SAVING_METHOD to "client".

 

Should I update to the next JSF version which is 1.1.01?

 

Have you experienced a problem such as this in your team? Do you know if
this is a known JSF bug? 

 

Can you please suggest any appropriate actions to remedy this problem? I
would gladly welcome any input from you.

 

Thanking you in advance,

 

Asim Rashid

Asim Rashid
Software Engineer & Researcher, 

TIM -Trusted Solutions & Services

QinetiQ
Bldg WW Rm B106
Malvern Technology Centre
St. Andrews Road, Malvern
Worcestershire, WR14 3PS

Tel: 

01684 895019 


Email: 

[EMAIL PROTECTED] 


Mobile: 

07961231645 


Web: 

www.QinetiQ.com   



QinetiQ - The Global Defence and Security Experts 

 

The information contained in this E-Mail and any subsequent
correspondence is private and is intended solely for the intended
recipient(s).  The information in this communication may be confidential
and/or legally privileged.  Nothing in this e-mail is intended to
conclude a contract on behalf of QinetiQ or make QinetiQ subject to any
other legally binding commitments, unless the e-mail contains an express
statement to the contrary or incorporates a formal Purchase Order.

For those other than the recipient any disclosure, copying,
distribution, or any action taken or omitted to be taken in reliance on
such information is prohibited and may be unlawful.

Emails and other electronic communication with QinetiQ may be monitored
and recorded for business purposes including security, audit and
archival purposes.  Any response to this email indicates consent to
this.

Telephone calls to QinetiQ may be monitored or recorded for quality
control, security and other business purposes.




Apache MyFaces JSF error

2006-03-28 Thread Rashid Asim








Hello

 

Whilst developing using Apache MyFaces I have come across a
problem which I am trying to troubleshoot. I have had not had any luck at
resolving this issue. I will attempt to describe this:

 

I am developing using JSF version 1.1 and the application
server I am using to deploy to is BEA WebLogic 9.1 

 

I have a situation where some of my JSF pages occasionally
misbehave. For example, sometimes when I click a 
(which is located within a  tag) the action which the button is
wired to is not executed. 

 

Please note that this glitch happens intermittently with no
fixed pattern. It is also interesting to note that the data which the user has
entered (prior to clicking the button) on the JSF page is also lost and has to
be re-entered again by the user.

 

Functionally, this is only a minor problem however from a
usability perspective this is a major problem.

 

I have searched SUN's Java forums and found a useful site at
http://www.jsf-faq.com/faqs/faces-navigation.html#111. Having followed all the
suggestions prescribed on this site, I find that I am still having the same
problem.

 

I have tried setting the javax.faces.STATE_SAVING_METHOD to
"client".

 

Should I update to the next JSF version which is 1.1.01?

 

Have you experienced a problem such as this in your team? Do
you know if this is a known JSF bug? 

 

Can you please suggest any appropriate actions to remedy
this problem? I would gladly welcome any input from you.

 

Thanking you in advance,

 

Asim Rashid

Asim Rashid
Software Engineer & Researcher, 

TIM -Trusted Solutions
& Services

QinetiQ
Bldg WW Rm B106
Malvern Technology Centre
St. Andrews Road, Malvern
Worcestershire, WR14 3PS


 
  
  Tel: 
  
  
  01684 895019 
  
 
 
  
  Email: 
  
  
  [EMAIL PROTECTED] 
  
 
 
  
  Mobile: 
  
  
  07961231645 
  
 
 
  
  Web: 
  
  
  www.QinetiQ.com
  
  
 


QinetiQ - The Global Defence and Security Experts 

 




The information contained in this E-Mail and any 
subsequentcorrespondence is private and is intended solely for the 
intendedrecipient(s).  The information in this communication may be 
confidentialand/or legally privileged.  Nothing in this e-mail is 
intended toconclude a contract on behalf of QinetiQ or make QinetiQ subject 
to anyother legally binding commitments, unless the e-mail contains an 
expressstatement to the contrary or incorporates a formal Purchase 
Order.
For those other than the recipient any disclosure, 
copying,distribution, or any action taken or omitted to be taken in reliance 
onsuch information is prohibited and may be unlawful.
Emails and other electronic communication with 
QinetiQ may be monitoredand recorded for business purposes including 
security, audit andarchival purposes.  Any response to this email 
indicates consent tothis.
Telephone calls to QinetiQ may be monitored or 
recorded for qualitycontrol, security and other business 
purposes.





panelTabbedPane - only first tab change works

2006-03-28 Thread Hennie Brugman
Dear all,

When testing on a local Tomcat my panelTabbedPane works fine. However,
when running it on Tomcat on our Apache2 server only the first tab
change works. Subsequent clicks bring me to the default tab, and no
events arrive at my tabChangeListener anymore.

Does anyone have an idea what could be wrong?

best,
Hennie Brugman


RE: readonly entities no longer pass value back to backing bean?

2006-03-28 Thread Yura.Tkachenko








Hi, All

 

About 

JSF renders this
component into HTML as disabled. It’s not JSF issue to pass values into
request only when control is enable. It’s HTML form logic, if you wish
enable value of the component try this scenario:

 





 

Best wishes,

Yura.

 

 

 

 

 

-Original Message-
From: Martin Marinschek [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 28, 2006 5:42 PM
To: MyFaces Discussion; [EMAIL PROTECTED]
Subject: Re: readonly entities no longer pass value back to backing bean?

 

Well, we're not supposed to take back the value when readonly=true.

 

That's as such in the spec.

 

regards,

 

Martin

 

On 3/28/06, Yee CN <[EMAIL PROTECTED]> wrote:

> I tried the build from yesterday and still find the bug there - so
I am

> still stuck with the build from early Feb. Is this bug meant to be
fixed?

> 

> Regards,

> Yee

> 

> -Original Message-

> From: Martin Marinschek [mailto:[EMAIL PROTECTED]

> Sent: Wednesday, 8 March 2006 4:09 PM

> To: MyFaces Discussion; [EMAIL PROTECTED]

> Subject: Re: readonly entities no longer pass value back to
backing bean?

> 

> Hmm

> 

> there was a fix in MyFaces were the bug was that we wrongly used

> "readOnly" to check if the readonly attribute was set.

> 

> for security considerations, the JSF engine doesn't take over
disabled

> or readOnly attributes to the server, it was a bug that we did.

> 

> regards,

> 

> Martin

> 

> On 3/8/06, Yee CN <[EMAIL PROTECTED]> wrote:

> >

> >

> >

> > Is that me only? Did anybody else observed this problem?

> >

> >

> >

> > For me nightly build around Feb 12 is OK, nightly around feb
25 not OK,

> > currently nightly not OK.

> >

> >

> >

> > Can someone please indicate one way or another so I can know
whether it is

> > the combination of stuffs I used that caused the problem?

> >

> >

> >

> > Many thanks in advance.

> >

> > Yee

> >

> >

> >

> >

> >

> >  

> >

> >

> > From: Yee CN [mailto:[EMAIL PROTECTED]

> >  Sent: Tuesday, 7 March 2006 5:32 PM

> >  To: 'MyFaces Discussion'

> >  Subject: readonly entities no longer pass value back to
backing bean?

> >

> >

> >

> >

> > Hi,

> >

> >

> >

> > I discovered the recent nightly builds has stop sending
values back to the

> > backing bean when readonly attribute is set to true. For
example:

> >

> >

> >

> > 

> />

> >

> >

> >

> > The totalAmount is meant to be a readonly textbox, whose
value is

> calculated

> > via _javascript_.

> >

> >

> >

> > Another example is inputCalendar, where the date should only
be selected

> > from the popup window, and now key in directly:

> >

> >

> >

> > 

> >

> >

> >

> >

> >

> > I find that all of these entities will no longer pass the
input box value

> to

> > the backing bean. I tested it with the build downloaded today
and find it

> to

> > be so. I have a version downloaded around 10 Feb and that one
was working

> > OK.

> >

> >

> >

> > Is this a bug? Or is this a design change?

> >

> >

> >

> > Thanks

> >

> >

> >

> > Yee

> >

> >

> >

> 

> 

> --

> 

> 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








[SPAM] Re: readonly entities no longer pass value back to backing bean?

2006-03-28 Thread Yee CN
That's makes a lot of sense. But it is ARRAGH nevertheless - as I have quite
a lot of readonly textboxes that are passing back values. t:inputCalender is
one single major offender, there are also some javascirpt calculated values.

Is there an elegant solution for inputCalendar? I really what to force users
to select from the popup calendar. Maybe make inputCalendar a special case?

Thanks
Yee

-Original Message-
From: Martin Marinschek [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, 28 March 2006 10:42 PM
To: MyFaces Discussion; [EMAIL PROTECTED]
Subject: [SPAM] Re: readonly entities no longer pass value back to backing
bean?
Importance: Low

Well, we're not supposed to take back the value when readonly=true.

That's as such in the spec.

regards,

Martin

On 3/28/06, Yee CN <[EMAIL PROTECTED]> wrote:
> I tried the build from yesterday and still find the bug there - so I am
> still stuck with the build from early Feb. Is this bug meant to be fixed?
>
> Regards,
> Yee
>
> -Original Message-
> From: Martin Marinschek [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, 8 March 2006 4:09 PM
> To: MyFaces Discussion; [EMAIL PROTECTED]
> Subject: Re: readonly entities no longer pass value back to backing bean?
>
> Hmm
>
> there was a fix in MyFaces were the bug was that we wrongly used
> "readOnly" to check if the readonly attribute was set.
>
> for security considerations, the JSF engine doesn't take over disabled
> or readOnly attributes to the server, it was a bug that we did.
>
> regards,
>
> Martin
>
> On 3/8/06, Yee CN <[EMAIL PROTECTED]> wrote:
> >
> >
> >
> > Is that me only? Did anybody else observed this problem?
> >
> >
> >
> > For me nightly build around Feb 12 is OK, nightly around feb 25 not OK,
> > currently nightly not OK.
> >
> >
> >
> > Can someone please indicate one way or another so I can know whether it
is
> > the combination of stuffs I used that caused the problem?
> >
> >
> >
> > Many thanks in advance.
> >
> > Yee
> >
> >
> >
> >
> >
> >  
> >
> >
> > From: Yee CN [mailto:[EMAIL PROTECTED]
> >  Sent: Tuesday, 7 March 2006 5:32 PM
> >  To: 'MyFaces Discussion'
> >  Subject: readonly entities no longer pass value back to backing bean?
> >
> >
> >
> >
> > Hi,
> >
> >
> >
> > I discovered the recent nightly builds has stop sending values back to
the
> > backing bean when readonly attribute is set to true. For example:
> >
> >
> >
> >  />
> >
> >
> >
> > The totalAmount is meant to be a readonly textbox, whose value is
> calculated
> > via javascript.
> >
> >
> >
> > Another example is inputCalendar, where the date should only be selected
> > from the popup window, and now key in directly:
> >
> >
> >
> > 
> >
> >
> >
> >
> >
> > I find that all of these entities will no longer pass the input box
value
> to
> > the backing bean. I tested it with the build downloaded today and find
it
> to
> > be so. I have a version downloaded around 10 Feb and that one was
working
> > OK.
> >
> >
> >
> > Is this a bug? Or is this a design change?
> >
> >
> >
> > Thanks
> >
> >
> >
> > Yee
> >
> >
> >
>
>
> --
>
> 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: readonly entities no longer pass value back to backing bean?

2006-03-28 Thread Martin Marinschek
Well, we're not supposed to take back the value when readonly=true.

That's as such in the spec.

regards,

Martin

On 3/28/06, Yee CN <[EMAIL PROTECTED]> wrote:
> I tried the build from yesterday and still find the bug there - so I am
> still stuck with the build from early Feb. Is this bug meant to be fixed?
>
> Regards,
> Yee
>
> -Original Message-
> From: Martin Marinschek [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, 8 March 2006 4:09 PM
> To: MyFaces Discussion; [EMAIL PROTECTED]
> Subject: Re: readonly entities no longer pass value back to backing bean?
>
> Hmm
>
> there was a fix in MyFaces were the bug was that we wrongly used
> "readOnly" to check if the readonly attribute was set.
>
> for security considerations, the JSF engine doesn't take over disabled
> or readOnly attributes to the server, it was a bug that we did.
>
> regards,
>
> Martin
>
> On 3/8/06, Yee CN <[EMAIL PROTECTED]> wrote:
> >
> >
> >
> > Is that me only? Did anybody else observed this problem?
> >
> >
> >
> > For me nightly build around Feb 12 is OK, nightly around feb 25 not OK,
> > currently nightly not OK.
> >
> >
> >
> > Can someone please indicate one way or another so I can know whether it is
> > the combination of stuffs I used that caused the problem?
> >
> >
> >
> > Many thanks in advance.
> >
> > Yee
> >
> >
> >
> >
> >
> >  
> >
> >
> > From: Yee CN [mailto:[EMAIL PROTECTED]
> >  Sent: Tuesday, 7 March 2006 5:32 PM
> >  To: 'MyFaces Discussion'
> >  Subject: readonly entities no longer pass value back to backing bean?
> >
> >
> >
> >
> > Hi,
> >
> >
> >
> > I discovered the recent nightly builds has stop sending values back to the
> > backing bean when readonly attribute is set to true. For example:
> >
> >
> >
> >  />
> >
> >
> >
> > The totalAmount is meant to be a readonly textbox, whose value is
> calculated
> > via javascript.
> >
> >
> >
> > Another example is inputCalendar, where the date should only be selected
> > from the popup window, and now key in directly:
> >
> >
> >
> > 
> >
> >
> >
> >
> >
> > I find that all of these entities will no longer pass the input box value
> to
> > the backing bean. I tested it with the build downloaded today and find it
> to
> > be so. I have a version downloaded around 10 Feb and that one was working
> > OK.
> >
> >
> >
> > Is this a bug? Or is this a design change?
> >
> >
> >
> > Thanks
> >
> >
> >
> > Yee
> >
> >
> >
>
>
> --
>
> 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: disabling logs on myfaces

2006-03-28 Thread Mert Çalışkan
You can define a log4j.xml in your classpath i definitely suggest you to use commons-logging. Here is an example log4j.xml. You can define multiple loggers with different package names. By this you can discriminate your application (
tr.yourpackagename) log. You can also add other appenders.  


http://jakarta.apache.org/log4j/">

            
        
                    
                
                
 
On 3/27/06, Dudu <[EMAIL PROTECTED]> wrote:

I have a log4j.properties file, but I want it only to logs generated by my application...How can I do this... the better way... are there a way to disable the logs of myfaces, in the web.xml
???Thanks 


RE: readonly entities no longer pass value back to backing bean?

2006-03-28 Thread Yee CN
I tried the build from yesterday and still find the bug there - so I am
still stuck with the build from early Feb. Is this bug meant to be fixed?

Regards,
Yee

-Original Message-
From: Martin Marinschek [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, 8 March 2006 4:09 PM
To: MyFaces Discussion; [EMAIL PROTECTED]
Subject: Re: readonly entities no longer pass value back to backing bean?

Hmm

there was a fix in MyFaces were the bug was that we wrongly used
"readOnly" to check if the readonly attribute was set.

for security considerations, the JSF engine doesn't take over disabled
or readOnly attributes to the server, it was a bug that we did.

regards,

Martin

On 3/8/06, Yee CN <[EMAIL PROTECTED]> wrote:
>
>
>
> Is that me only? Did anybody else observed this problem?
>
>
>
> For me nightly build around Feb 12 is OK, nightly around feb 25 not OK,
> currently nightly not OK.
>
>
>
> Can someone please indicate one way or another so I can know whether it is
> the combination of stuffs I used that caused the problem?
>
>
>
> Many thanks in advance.
>
> Yee
>
>
>
>
>
>  
>
>
> From: Yee CN [mailto:[EMAIL PROTECTED]
>  Sent: Tuesday, 7 March 2006 5:32 PM
>  To: 'MyFaces Discussion'
>  Subject: readonly entities no longer pass value back to backing bean?
>
>
>
>
> Hi,
>
>
>
> I discovered the recent nightly builds has stop sending values back to the
> backing bean when readonly attribute is set to true. For example:
>
>
>
> 
>
>
>
> The totalAmount is meant to be a readonly textbox, whose value is
calculated
> via javascript.
>
>
>
> Another example is inputCalendar, where the date should only be selected
> from the popup window, and now key in directly:
>
>
>
> 
>
>
>
>
>
> I find that all of these entities will no longer pass the input box value
to
> the backing bean. I tested it with the build downloaded today and find it
to
> be so. I have a version downloaded around 10 Feb and that one was working
> OK.
>
>
>
> Is this a bug? Or is this a design change?
>
>
>
> Thanks
>
>
>
> Yee
>
>
>


--

http://www.irian.at

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

Professional Support for Apache MyFaces



how to discover the FilterMapping of the web app

2006-03-28 Thread Dudu
My web.xml has xml code like this.    Faces Servlet
    *.faces    
How can I know in the java code the url-pattern?I need to set some features on _javascript_s code, but i want to build them with a dynamic way. If I change the url-pattern I need to change a class, I wont this.
Thanks all


Re: Content Include with PHP

2006-03-28 Thread David Schlotfeldt
This might not help... but I got i THINK the same error a while ago. It 
happened when I part of my webapp was protected and when I logged in it 
would get this error on the first request after login. (Only the 1st 
page after login.) Anyways I updated to a snapshot of 1.1.2 and it 
stopped happening. For me this error first appeared when I upgraded 
jboss to RC1.


David


Sebastien Boutte wrote:

Hi All,

I have a little problem and i can't find a way to resolve it.
My first page is a php page which include content from a remote
server which has jsf pages.

So on my php page i do :

http://myserver/mypage.jsf';
?> 


I try readfile ; but nothing better.

On my tomcat console, i see this exception.

SEVERE: Servlet.service() for servlet Faces Servlet threw exception
java.lang.NullPointerException
at
org.apache.myfaces.renderkit.html.HtmlRendererUtils.selectContentType(HtmlRendererUtils.java:919)
at
org.apache.myfaces.component.html.util.AddResource.writeWithFullHeader(AddResource.java:443)
at
org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(ExtensionsFilter.java:132)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.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:148)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:868)
at org.apache.coyote.http11.Http11BaseProtocol
$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:663)
at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at org.apache.tomcat.util.threads.ThreadPool
$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:595)

Could someone help me to find a solution ?

Thank you,

Sébastien Boutté



  




My faces and TomCat 4

2006-03-28 Thread Vladimir Coutinho
I'm trying to configure jsf in TomCat 4 but when a put jsp-api.jar in the web-in/lib  it stop compiling jsp.I get the following errors:HTTP Status 500 - 


type Exception report
message 
description The server encountered an internal error () that 
prevented it from fulfilling this request.
exception javax.servlet.ServletException: (class: org/apache/jsp/x_jsp, method: _jspService signature: (Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V) Incompatible object argument for function call
	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:249)	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java
:247)	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)	at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext
(StandardPipeline.java:643)	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)	at org.apache.catalina.core.StandardContextValve.invoke
(StandardContextValve.java:191)	at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java
:480)	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)	at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)	at org.apache.catalina.core.StandardHostValve.invoke
(StandardHostValve.java:180)	at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)	at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java
:171)	at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)	at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext
(StandardPipeline.java:641)	at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:509)	at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:174)	at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)	at org.apache.catalina.core.ContainerBase.invoke
(ContainerBase.java:995)	at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)	at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:261)	at org.apache.jk.common.HandlerRequest.invoke
(HandlerRequest.java:360)	at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:604)	at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:562)	at org.apache.jk.common.SocketConnection.runIt
(ChannelSocket.java:679)	at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619)	at java.lang.Thread.run(Thread.java:479)

root cause java.lang.VerifyError: (class: org/apache/jsp/x_jsp, method: _jspService signature: (Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V) Incompatible object argument for function call
	at java.lang.Class.newInstance0(Native Method)	at java.lang.Class.newInstance(Class.java:232)	at org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:151)	at org.apache.jasper.servlet.JspServletWrapper.service
(JspServletWrapper.java:195)	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)	at javax.servlet.http.HttpServlet.service
(HttpServlet.java:853)	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)	at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)	at org.apache.catalina.core.StandardPipeline.invoke
(StandardPipeline.java:480)	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)	at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext
(StandardPipeline.java:643)	at org.apache.catalina.core.StandardPipeline.invoke(StandardP

Save state on tree2

2006-03-28 Thread Guillaume Doumenc




Hi,

Having some issues using the tree2 states, I wonder why the
saveDescendantState/restoreDescendantState methods cannot be bypassed
(declared protected or a boolean to validate them) ?

Regards

-- 
Guillaume Doumenc
Courriel : [EMAIL PROTECTED]





Re: Update values within nested h:DataTable

2006-03-28 Thread Gerald Müllan
Is it really a need to use a nested dataTable for this?

Setting preserveDataModel="true" (in the outer table) may also help..

Using a component binding in this case should not be really a must,
but i may helps understanding what is going on in the model!

regards,

Gerald

On 3/28/06, Jana Parvanova <[EMAIL PROTECTED]> wrote:
> Just a blind shot - have u  tag for the page? It is possible
> conversion/validation error occurred and u did not see it...
>
> - Original Message -
> From: "Dirk Hoegemann" <[EMAIL PROTECTED]>
> To: 
> Sent: Tuesday, March 28, 2006 3:11 PM
> Subject: Update values within nested h:DataTable
>
>
> > Hello,
> >
> > could somebody please explain me, how I can accomplish an update of the
> > values from within a nested DataTable?
> > The Table is populated with a Collection of ArraysLists containing the
> > objects to be updatable,
> >
> > The DataTable should look like as follows:
> >
> > 
> > 
> > 
> >  > rendered="#{not empty index}" headerClass="datatableHeader">
> > 
> > 
> > 
> > 
> >  > value="#{skillIndex.level}" >
> >  
> > 
> > 
> > 
> > 
> >  > action="#{student.updateSkills}" />
> > 
> >
> > -> That doesnt work - the old values are displayed again after invoking
> > the "Save" button.
> >
> > Thanks
> > Dirk
> >
> > P.S: Do  I have to use the binding attribute? If yes - can someone point
> > me to a good starting tutorial for that? I cant find any (for me) useful
> > docs for that
> >
> >
> >
>
>


--
Gerald Müllan
Schelleingasse 2/11
1040 Vienna, Austria
0043 699 11772506
[EMAIL PROTECTED]


Re: Update values within nested h:DataTable

2006-03-28 Thread Dirk Hoegemann

Thanks for your reply. I have the messages tag inside...

But it is resolved now (by using the tomahawk component).

- Original Message - 
From: "Jana Parvanova" <[EMAIL PROTECTED]>

To: "MyFaces Discussion" 
Sent: Tuesday, March 28, 2006 12:53 PM
Subject: Re: Update values within nested h:DataTable


Just a blind shot - have u  tag for the page? It is possible 
conversion/validation error occurred and u did not see it...


- Original Message - 
From: "Dirk Hoegemann" <[EMAIL PROTECTED]>

To: 
Sent: Tuesday, March 28, 2006 3:11 PM
Subject: Update values within nested h:DataTable



Hello,

could somebody please explain me, how I can accomplish an update of the 
values from within a nested DataTable?
The Table is populated with a Collection of ArraysLists containing the 
objects to be updatable,


The DataTable should look like as follows:










 







-> That doesnt work - the old values are displayed again after invoking 
the "Save" button.


Thanks
Dirk

P.S: Do  I have to use the binding attribute? If yes - can someone point 
me to a good starting tutorial for that? I cant find any (for me) useful 
docs for that










Re: Update values within nested h:DataTable

2006-03-28 Thread Jana Parvanova
Just a blind shot - have u  tag for the page? It is possible 
conversion/validation error occurred and u did not see it...


- Original Message - 
From: "Dirk Hoegemann" <[EMAIL PROTECTED]>

To: 
Sent: Tuesday, March 28, 2006 3:11 PM
Subject: Update values within nested h:DataTable



Hello,

could somebody please explain me, how I can accomplish an update of the 
values from within a nested DataTable?
The Table is populated with a Collection of ArraysLists containing the 
objects to be updatable,


The DataTable should look like as follows:










 







-> That doesnt work - the old values are displayed again after invoking 
the "Save" button.


Thanks
Dirk

P.S: Do  I have to use the binding attribute? If yes - can someone point 
me to a good starting tutorial for that? I cant find any (for me) useful 
docs for that








Update values within nested h:DataTable

2006-03-28 Thread Dirk Hoegemann

Hello,

could somebody please explain me, how I can accomplish an update of the 
values from within a nested DataTable?
The Table is populated with a Collection of ArraysLists containing the 
objects to be updatable,


The DataTable should look like as follows:










 







-> That doesnt work - the old values are displayed again after invoking the 
"Save" button.


Thanks
Dirk

P.S: Do  I have to use the binding attribute? If yes - can someone point me 
to a good starting tutorial for that? I cant find any (for me) useful docs 
for that






Re: Strange result with f:convertDateTime

2006-03-28 Thread Cedric Legallo
Solved by :   
2006/3/28, Cedric Legallo <[EMAIL PROTECTED]>:
Hello,Does anybody had a problem using output tag with a Date Converter ?the displayed date has -1 to the DAY.I find on the net someone who has the same problem but no solution were given.
here is the code.
  The Date in datebase is correct, and was previously take by an t:inputDate tag.
When displaying into inputDate the day is correct.only the output + f:converter combo cause troubles.-- Le Gallo Cédric

-- Le Gallo Cédric


Re: AW: tabchangelistener

2006-03-28 Thread Cedric Legallo
http://cvs.apache.org/builds/myfaces/nightly/These are the nightly builds of myfaces.I take them yesterday for the same reason :)
2006/3/28, mr_chandru <[EMAIL PROTECTED]>:
Matthias,Can you pls tell me which jar file ur using for thisserverSideTabSwitch="true" .where can i get the jar file from. I am a newbie.--View this message in context: 
http://www.nabble.com/tabchangelistener-t470701.html#a3623427Sent from the MyFaces - Users forum at Nabble.com.-- Le Gallo Cédric


Content Include with PHP

2006-03-28 Thread Sebastien Boutte
Hi All,

I have a little problem and i can't find a way to resolve it.
My first page is a php page which include content from a remote
server which has jsf pages.

So on my php page i do :

http://myserver/mypage.jsf';
?> 

I try readfile ; but nothing better.

On my tomcat console, i see this exception.

SEVERE: Servlet.service() for servlet Faces Servlet threw exception
java.lang.NullPointerException
at
org.apache.myfaces.renderkit.html.HtmlRendererUtils.selectContentType(HtmlRendererUtils.java:919)
at
org.apache.myfaces.component.html.util.AddResource.writeWithFullHeader(AddResource.java:443)
at
org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(ExtensionsFilter.java:132)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.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:148)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:868)
at org.apache.coyote.http11.Http11BaseProtocol
$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:663)
at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at org.apache.tomcat.util.threads.ThreadPool
$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:595)

Could someone help me to find a solution ?

Thank you,

Sébastien Boutté





Strange result with f:convertDateTime

2006-03-28 Thread Cedric Legallo
Hello,Does anybody had a problem using output tag with a Date Converter ?the displayed date has -1 to the DAY.I find on the net someone who has the same problem but no solution were given.here is the code.
  The Date in datebase is correct, and was previously take by an t:inputDate tag.
When displaying into inputDate the day is correct.only the output + f:converter combo cause troubles.-- Le Gallo Cédric


RE: How to close popup using a button

2006-03-28 Thread Brian Woolf

jsf:

 


js:
function close() {
   window.close();
}
--
View this message in context: 
http://www.nabble.com/How-to-close-popup-using-a-button-t1354074.html#a3627113
Sent from the MyFaces - Users forum at Nabble.com.



Re: missing row attribute in a datatable using a datascroller causes by zero exception

2006-03-28 Thread Hans Sowa
Ah, super, thanks a lot. This is really helpfull.2006/3/28, Mike Kienenberger <[EMAIL PROTECTED]>:
Fixed as of March 1st.http://issues.apache.org/jira/browse/TOMAHAWK-104On 3/27/06, Hans Sowa <[EMAIL PROTECTED]
> wrote:> Hi>> Is there a possibility to enhance the code of this method? My Problem is if> there the row attribute is missing in the datatable (using datascroller) you> will always get an "by zero" exception because of the line "if (
> uiData.getFirst() % rows > 0)". It would be very helpfull to have a more> specific Exception.>> Many thanks in advance.>> class: HtmlDataScroller> /**>  * @return the page index of the uidata
>  */> public int getPageIndex()> {> UIData uiData = getUIData();> int rows = uiData.getRows();> int pageIndex;> if (rows > 0)
> {> pageIndex = uiData.getFirst () / rows + 1;> }> else> {> log.warn("DataTable " +> uiData.getClientId(FacesContext.getCurrentInstance
())> + " has invalid rows attribute.");> pageIndex = 0;> }> if (uiData.getFirst() % rows > 0)> {> pageIndex++;
> }> return pageIndex;> }>>> --> mfg Hans Sowa> mailto:[EMAIL PROTECTED]
-- mfg Hans Sowamailto:[EMAIL PROTECTED]


is there a component in Myfaces or in the web which can show resource string of a given key

2006-03-28 Thread Legolas Woodland

Hi
Thank you for reading my post.
I am looking for a component that can show , string resource of a given Key.
I mean a component that i sets some of its property and then i could set 
the string resource key in my backing bean and it shows value for that 
key in html page.


Thanks


RE: How to close popup using a button

2006-03-28 Thread Yura.Tkachenko








Hi, Dave.

 

Actually parent and child
windows in document object model have different _javascript_ object window. That’s why window.close() –
always will close current window. From child to parent window object you always
will be able to access like that:

 var parentWindowObject
= window.opener;

 

Of course may be we are
talking about different browsers. This is all works for IE6.

 

Thanks,

Yura.









From: Dave
[mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 28, 2006
11:29 AM
To: MyFaces Discussion
Subject: RE: How to close popup
using a button



 





Inside a popup,





 











 





This will close the
parent window, not only the popup. Is there a way to close popup only?





 





Thanks!





 







[EMAIL PROTECTED]
wrote:







Or you can use server-side
handler of this button to close your popup, something like this:





 





JSF page:





 











"











 





Java code:





 





public void doSubmit() {





  // do something





  ¡­¡­¡­¡­¡­¡­¡­¡­¡­¡­¡­¡­¡­¡­¡­¡­¡­..





  // close popup





 
setJsCode(¡°window.close();¡±);





}





 





Best regards,





Yura.





 





-Original Message-





From: Dennis Byrne
[mailto:[EMAIL PROTECTED] 





Sent: Tuesday, March 28,
2006 10:38 AM





To: MyFaces Discussion





Subject: Re: How to close
popup using a button





 





Use window.close(); 





 





;)





 





Dennis Byrne





 





>-Original
Message-





>From: Dave
[mailto:[EMAIL PROTECTED]





>Sent: Tuesday, March 28,
2006 02:28 AM





>To: users@myfaces.apache.org





>Subject: How to close
popup using a button





> 





>I like to add a 
 (Close)&nb sp; in a popup, how to close the popup
when user click the button? Thanks!





> 





>  






>-





>New Yahoo! Messenger
with Voice. Call regular phones from your PC for low, low rates.





 





 







New Yahoo! Messenger with Voice. Call
regular phones from your PC and save big.








Re: t:collapsiblePanel

2006-03-28 Thread Martin Marinschek
Duplicate ID?no clue. can you post the stacktrace?regards,MartinOn 3/27/06, Andreas Zeller - zit-systems <
[EMAIL PROTECTED]> wrote:


  
  


Very well then... Running snapshot now... Gives me an exception...
duplicate ID... Doesn't work at all and I don't know why... I think I
gotta implement something on my own... 

Martin Marinschek wrote:
Are you using latest nightly?
  
There has been a fair amount of fixes for collapsible panel from 1.1.1
to the current version. Word of warning: the value attribute is now the
title attribute, and the collapsed attribute is now the value attribute
(this was basically the reason why the old collapsible panel wouldn't
work in a dataTable, the new one does).
  
  
regards,
  
Martin
  
  On 3/25/06, Andreas Zeller - zit-systems <
[EMAIL PROTECTED]
  > wrote:
  
 Hey everybody,

I got a question concerning the collapsible Panel Tag of MyFaces. I
have several objects inside a database and I added the
"toggleCollapsed" boolean Attribute to the bean.

So that's what the Comments Bean looks like. Just a few getters and
setters, filled by hibernate. Hibernate doesn't touch the property for
the panel.

BUT: When I expand the panel, all of the objects expand and not only
the one I selected. To get this straight: the datatable iterates the
objects inside the list. So each object has a different
"toggleCollapsed" property.

Why does the panel expand all the objects? Here's a screenshot of both
states and the source of the JSF Code.



I'd be glad if anybody could help me with that.

If I am not rebuilding, you can check it out for yourself:
http://82.207.147.13:8080/Produktredaktion/pages/kommentare.xhtml


Thanks in advance,

Andreas


    
            id="kommentare"
    value="#{benutzerKommentare.comments}"
    var="comments"
    rows="15"
    rowClasses="oddRow, evenRow"
    renderedIfEmpty="true"
    headerClass="tableHeader"
    preserveDataModel="false"
    >

    
    
    
    
    comments.id}"
/>
    

    
    
    
    
    
    

    
    
    
    
    
    

                    
    
    
    

    
    
    
    

    





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





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


Re: Meeting in Vienna/Austria (Part 2)

2006-03-28 Thread Martin Marinschek
good, good.

next week is fine ;)

regards,

Martin

On 3/28/06, Mario Ivankovits <[EMAIL PROTECTED]> wrote:
> Hi!
>
> Yes, this will be fine 
> > Hi,
> >
> > what about having a meeting next week?
> >
> > Location: Ma Pitom
> > Date: 4.4.2006
> > Time: 18:30
> >
> > Hasta luego,
> > Thomas
> >
> > On 3/27/06, Mario Ivankovits <[EMAIL PROTECTED]> wrote:
> >
> >> Hi!
> >>
> >> Some of the MyFaces guys are ill, on vacation or have a project deadline.
> >> I thought planning such a event far enough in the future will make the
> >> date stable, but unhappily sometimes life can be hard.
> >>
> >> So I'll cancel this date and inform you about another one as soon as
> >> possible.
> >> The positive is that we maybe can find a nice outdoor place then :-)
> >>
> >> So, sorry for this.
> >>
> >> Ciao,
> >> Mario
> >>
> >>
> >>> I'll invite everyone who has some time to a meeting in vienna/austria.
> >>>
> >>> Location: Ma Pitom
> >>> Date: 28.3.2006
> >>> Time: 18:30
> >>>
> >>> We have no free stickers, no t-shirts or any other gift, just a meeting
> >>> to drink a beer - or two - maximum.
> >>> You meet me (if this is of any interest) and some guys from the myfaces
> >>> (which might me more interesting ;-) ) team.
> >>>
> >>> Please send a PM if you plan to come, just to have an oversight of the
> >>> number of people to await.
> >>>
> >>> See you!
> >>> Ciao,
> >>> Mario
> >>>
> >>>
> >>
> >
> >
> > --
> > http://www.irian.at
> >
> > Your JSF powerhouse -
> > JSF Consulting, Development and
> > Courses in English and German
> >
> > Professional Support for Apache MyFaces
> >
> >
>
>
> --
> Mario
>
>


--

http://www.irian.at

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

Professional Support for Apache MyFaces


Meeting in Vienna/Austria (Part 2)

2006-03-28 Thread Mario Ivankovits
Hi!

Yes, this will be fine 
> Hi,
>
> what about having a meeting next week?
>
> Location: Ma Pitom
> Date: 4.4.2006
> Time: 18:30
>
> Hasta luego,
> Thomas
>
> On 3/27/06, Mario Ivankovits <[EMAIL PROTECTED]> wrote:
>   
>> Hi!
>>
>> Some of the MyFaces guys are ill, on vacation or have a project deadline.
>> I thought planning such a event far enough in the future will make the
>> date stable, but unhappily sometimes life can be hard.
>>
>> So I'll cancel this date and inform you about another one as soon as
>> possible.
>> The positive is that we maybe can find a nice outdoor place then :-)
>>
>> So, sorry for this.
>>
>> Ciao,
>> Mario
>>
>> 
>>> I'll invite everyone who has some time to a meeting in vienna/austria.
>>>
>>> Location: Ma Pitom
>>> Date: 28.3.2006
>>> Time: 18:30
>>>
>>> We have no free stickers, no t-shirts or any other gift, just a meeting
>>> to drink a beer - or two - maximum.
>>> You meet me (if this is of any interest) and some guys from the myfaces
>>> (which might me more interesting ;-) ) team.
>>>
>>> Please send a PM if you plan to come, just to have an oversight of the
>>> number of people to await.
>>>
>>> See you!
>>> Ciao,
>>> Mario
>>>
>>>   
>> 
>
>
> --
> http://www.irian.at
>
> Your JSF powerhouse -
> JSF Consulting, Development and
> Courses in English and German
>
> Professional Support for Apache MyFaces
>
>   


-- 
Mario



RE: How to close popup using a button

2006-03-28 Thread Dave
  Inside a popup,      This will close the parent window, not only the popup. Is there a way to close popup only?     Thanks!     [EMAIL PROTECTED] wrote:Or you can use server-side handler of this button to close your popup, something like this:     JSF
 page:   "   Java code:     public void doSubmit() {    // do something    ¡­¡­¡­¡­¡­¡­¡­¡­¡­¡­¡­¡­¡­¡­¡­¡­¡­..    // close popup    setJsCode(¡°window.close();¡±);  }     Best regards,  Yura.     -Original
 Message-  From: Dennis Byrne [mailto:[EMAIL PROTECTED]   Sent: Tuesday, March 28, 2006 10:38 AM  To: MyFaces Discussion  Subject: Re: How to close popup using a button     Use window.close();
      ;)     Dennis Byrne     >-Original Message-  >From: Dave
 [mailto:[EMAIL PROTECTED]  >Sent: Tuesday, March 28, 2006 02:28 AM  >To: users@myfaces.apache.org  >Subject: How to close popup using a button  >   >I like to add a   (Close)&nb
 sp; in a
 popup, how to close the popup when user click the button? Thanks!  >   >     >-  >New Yahoo! Messenger with Voice. Call regular phones from your PC for low, low rates.   
		New Yahoo! Messenger with Voice. Call regular phones from your PC and save big.

Preserving non-value client side view state

2006-03-28 Thread Dennis Byrne
I would like to know if anyone out there has had success preserving non-value 
view state. In plain English, I want to be able to programmtically
change the style class or disabled attribute of a control w/ javascript,
and have these changes preserved on the next post back. Even better would be to 
preserve client side creation/removal of HTML elements.

The best idea I have so far is to intercept the form submit w/ an event handler 
that crawls the DOM, recording what it observes in an XML document that is 
stored in a hidden field just before the POST. Then on the server, just after 
the view has been restored the "old fashioned way", the non-value attributes 
are placed upon the newly restored view state.

Please let me know if anything like this has already been implemented in OS, as 
I would like to avoid creating this for a client.

Dennis Byrne




RE: How to close popup using a button

2006-03-28 Thread Yura.Tkachenko








Or you can use server-side handler of this button to
close your popup, something like this:

 

JSF page:

 



"



 

Java code:

 

public void doSubmit() {

  // do something

  …..

  // close popup

  setJsCode(“window.close();”);

}

 

Best regards,

Yura.

 

-Original Message-

From: Dennis Byrne [mailto:[EMAIL PROTECTED] 

Sent: Tuesday, March 28, 2006 10:38 AM

To: MyFaces Discussion

Subject: Re: How to close popup using a button

 

Use window.close(); 

 

;)

 

Dennis Byrne

 

>-Original Message-

>From: Dave [mailto:[EMAIL PROTECTED]

>Sent: Tuesday, March 28, 2006 02:28 AM

>To: users@myfaces.apache.org

>Subject: How to close popup using a button

> 

>I like to add a   (Close)  in
a popup, how to close the popup when user click the button? Thanks!

> 

>   

>-

>New Yahoo! Messenger with Voice. Call regular
phones from your PC for low, low rates.