Re: Populating Component Tree Values from Servlet

2006-01-09 Thread Craig McClanahan
On 1/9/06, Simon Kitching <[EMAIL PROTECTED]> wrote:
[snip]However your query params are just keys in the request scope, so theycan be accessed using EL expressions like #{someQueryParamName} from theJSP pages.Almost ... but not quite.  You'll have much better luck with an _expression_ like:
    #{param.someQueryParamName}There are a series of predefined "variable" names that let you access interesting things via EL expressions.  In addition to "param" (which gets the first, or only, value for the specified parameter name), you might take a look at (all of these return a Map):
* cookie -- The HTTP cookies that came in on this request* header -- The first, or only, HTTP header for the specified key* initParam -- The context initialization parameters for this applicationThe full list is outlined in Section 
5.3.1.2 of the JSF Specification, and is a (slight) superset of the implicit names known to JSTL and JSP expressions.Craig


Re: extensions TLD after mvn

2006-01-09 Thread Martin Marinschek
Also for tools support, it's much better to drop it.

Thing is that currently people are seeing two tld's for the tomahawk
components in their IDEs, with no mentioning what TLD is preferred and
should be used.

So they get really confused by that, it's very good that you have
dropped it, Sean.

regards,

Martin

On 1/10/06, Sean Schofield <[EMAIL PROTECTED]> wrote:
> Dennis,
>
> I dropped it from this release.  Its legacy and it was not being kept
> up to date.  I believe I was getting XSLT errors (I can't remember now
> the issue) but rather then trying to figure out who broke what I just
> dropped it.
>
> Sean
>
>
> On 1/8/06, Dennis Byrne <[EMAIL PROTECTED]> wrote:
> > Perhaps I missed a discussion on this, or maybe there is no plan maintain 
> > the old TLD namespace, but I do not get the TLD for 
> > myfaces_ext.tld/http://myfaces.apache.org/extensions in 
> > tomahawk-1.1.2-SNAPSHOT.jar .
> >
> > Dennis Byrne
> >
> >
> >
>


--

http://www.irian.at

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

Professional Support for Apache MyFaces


Re: Populating Component Tree Values from Servlet

2006-01-09 Thread Simon Kitching
On Mon, 2006-01-09 at 19:11 -0500, Elam Daly wrote:
> Hi all,
> 
> I got the code below from the JSF spec, and it works fine except for
> the fact that I don't know how to put values recieved from the query
> string of a servlet into my Managed beans so that they are displayed
> when the first page initially comes up.  In fact, I can't get a
> childCount from the UIViewRoot component till after the call to
> lifecycle.render(), which calls the render response phase, which is
> the last phase in the cycle.
> 
> Any help is much appreciated.

When you're using JSP as the view technology, then the first time the
page is rendered, the components are created as rendering is done. So
obviously before lifecycle.render they won't exist. There's just no way
to explicitly "push" the values into the components before rendering.

However your query params are just keys in the request scope, so they
can be accessed using EL expressions like #{someQueryParamName} from the
JSP pages.

You should also be able to "inject" values into any request-scope
managed beans, as shown below. Note that I haven't got a web.xml example
handy, so the xml element names are only very rough :-)

  
myBean
example.MyBean 
request

  
somePropertyName
#{someQueryParamName}
  
   

When the jsp page refers to #{myBean}, the bean will be created "on
demand", and initialised as defined in the managed bean mapping. The
expression #{someQueryParamName} is evaluated by looking in
request/session/app scope - where it will find the query param value.

Note that the bean *must* be request-scope however, as it's forbidden to
initialise a session or app scoped bean with a request-scoped value (for
obvious reasons).


Or your backing bean can just call: 
FacesContext.getCurrentInstance().
  getExternalContext().getRequestMap().
get(someQueryParamName);

Regards,

Simon



Re: Save last tab selected from panelTabbedPane

2006-01-09 Thread Dennis Byrne
>  I have problem in saving the selection of last tab selected ..? Is it  that 
> in the bean i will have to set the selectedIndex of the tab..? But  this will 
> have to be done on all the methods i use on that page.
>  The same problem was posted earlier on this forum but not yet replied.

I replied to his message.

http://www.mail-archive.com/users%40myfaces.apache.org/msg14723.html

Dennis Byrne




Save last tab selected from panelTabbedPane

2006-01-09 Thread Nikita Shah
 HelloI have problem in saving the selection of last tab selected ..? Is it  that in the bean i will have to set the selectedIndex of the tab..? But  this will have to be done on all the methods i use on that page.  The same problem was posted earlier on this forum but not yet replied.  If anyone has any workaround for this, please give your views.TIA  Nikita  
		 Yahoo! DSL Something to write home about. Just $16.99/mo. or less

Re: Overriding error message...

2006-01-09 Thread Martin Marinschek
Mike,

You'll need to use the extended messages (t:message/t:messages)
components for this to work.

You can use the standard (that means h:inputXYZ) input components, though.

regards,

Martin

On 1/10/06, Mike Kienenberger <[EMAIL PROTECTED]> wrote:
> If you use the Myfaces Tomahawk components (t:inputXYZ), then the
> label will be used instead of the id if specified.
>
> On 1/9/06, John Holland <[EMAIL PROTECTED]> wrote:
> > I ran into this problem also but I didn't want the id to be displayed
> > but something more user friendly (like the label).  Apparently Oracle's
> > ADF allows you to specify a Label for error messages (so they make
> > sense) but MyFaces does not.
> >
> > The only way I've found to work around this is to use a custom
> > converter, which is horrible.
> >
> > -Original Message-
> > From: Claudio Tasso [mailto:[EMAIL PROTECTED]
> > Sent: Monday, January 09, 2006 4:21 PM
> > To: MyFaces Discussion
> > Subject: Re: Overriding error message...
> >
> > Marco ha scritto:
> >
> > > I have an input text, Its value is binded to a double property in a
> > > managed bean.
> > >
> > > And if the input was not a number the following error message is
> > displayed
> > >
> > > "budget": Specified value is not a valid number.
> > >
> > > But i want to override this message, so what should i do ?
> > >
> > > Thanks
> >
> > Create a text file, for example org.apache.Messages.properties",  like
> > this:
> >
> > javax.faces.component.UIInput.CONVERSION=My custom message
> >
> > Then, modify your faces-config.xml:
> >
> > 
> > org.apache.Messages
> > 
> >
> > For more information, look at JSF spec documentation: everything is
> > explained.
> >
>


--

http://www.irian.at

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

Professional Support for Apache MyFaces


Re: NavigationHandler API faces.config

2006-01-09 Thread Dennis Byrne
Take a peek in application scope at "org.apache.myfaces.config.RuntimeConfig" 
for a MyFaces specific solution.

>-Original Message-
>From: Dennis Byrne [mailto:[EMAIL PROTECTED]
>Sent: Tuesday, January 10, 2006 12:35 AM
>To: 'MyFaces Discussion'
>Subject: Re: NavigationHandler API faces.config
>
>You can load it into an input stream w/ something like 
>this.getClass().getClassLoader().getResourceAsStream() .  Then use DOM or SAX 
>API to parse it.
>
>Also, check out MyFaces source.  I believe all of that information is stored 
>in a configuration based object model that is stored in an application 
>attribute at start up.
>
>>-Original Message-
>>From: Dave [mailto:[EMAIL PROTECTED]
>>Sent: Monday, January 9, 2006 10:46 PM
>>To: users@myfaces.apache.org
>>Subject: NavigationHandler API faces.config
>>
>>Is there any way to access faces.config? 
>>  I need to know the to-view-id(JSP page) given from-view-id and 
>> from-outcome. The NavigationHanlder has only one method handle(..), Thanks.
>>  Dave
>>
>>  
>>-
>>Yahoo! Photos
>> Ring in the New Year with Photo Calendars. Add photos, events, holidays, 
>> whatever.
>
>
>




Re: Nightly Build - Nething broken ?

2006-01-09 Thread Nikita Shah
Hi MartinThanks for your reply..  I get the same errors for the examples also. And also this errors I get only in IE.  Any thoughts on this issue..?TIA  NikitaMartin Marinschek <[EMAIL PROTECTED]> wrote:  No clue.Do the examples work?regards,MartinOn 1/9/06, Nikita Shah  wrote:>  Hello>>  I  downloaded the source from  the repository today and build it. Am> getting the following errors while using the calendar component.. Can anyone> help with this.. ?>>>  Jan 9, 2006 8:03:06 PM> org.apache.myfaces.component.html.util.AddResource> serveResource>  SEVERE: Error while serving resource:> calendar.HtmlCalendarRenderer/DB/divider.gif,
  message
 : null>  ClientAbortException:  java.net.SocketException: Connection reset by peer:> socket write error>  at> org.apache.catalina.connector.OutputBuffer.doFlush(OutputBuffer.java:327)>  at> org.apache.catalina.connector.OutputBuffer.flush(OutputBuffer.java:293)>  at> org.apache.catalina.connector.Response.flushBuffer(Response.java:544)>  at> org.apache.catalina.connector.ResponseFacade.flushBuffer(ResponseFacade.java:276)>  at> org.apache.myfaces.component.html.util.AddResource.serveResource(AddResource.java:578)>  at> org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(ExtensionsFilter.java:115)>  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)<> br> 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&g
 t;
 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:534)>  Caused by: java.net.SocketException: Connection reset by peer: socket write> error>  at java.net.SocketOutputStream.socketWrite0(Native> Method)>  at> java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)>  at> java.net.SocketOutputStream.write(SocketOutputStream.java:136)>  at> org.apache.coyote.http11.InternalOutputBuffer.realWriteBytes(InternalOutputBuffer.java:747)>  at> org.apache.tomcat.util.buf.ByteChunk.flushBuffer(ByteChunk.java:403)>  at> org.apache.coyote.http11.InternalOutputBuffer.flush(InternalOutputBuffer.java:305)>  at>
 org.apache.coyote.http11.Http11Processor.action(Http11Processor.java:990)>  at> org.apache.coyote.Response.action(Response.java:182)>  at> org.apache.catalina.connector.OutputBuffer.doFlush(OutputBuffer.java:322)>  ... 19 more>  Jan 9, 2006 8:03:06 PM> org.apache.catalina.core.StandardWrapperValve invoke>  SEVERE: Servlet.service() for servlet default threw exception>  java.lang.IllegalStateException>  at> org.apache.catalina.connector.ResponseFacade.sendError(ResponseFacade.java:418)>  at> org.apache.myfaces.component.html.util.AddResource.serveResource(AddResource.java:601)>  at> org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(ExtensionsFilter.java:115)>  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.LeaderF

Re: NavigationHandler API faces.config

2006-01-09 Thread Dennis Byrne
You can load it into an input stream w/ something like 
this.getClass().getClassLoader().getResourceAsStream() .  Then use DOM or SAX 
API to parse it.

Also, check out MyFaces source.  I believe all of that information is stored in 
a configuration based object model that is stored in an application attribute 
at start up.

>-Original Message-
>From: Dave [mailto:[EMAIL PROTECTED]
>Sent: Monday, January 9, 2006 10:46 PM
>To: users@myfaces.apache.org
>Subject: NavigationHandler API faces.config
>
>Is there any way to access faces.config? 
>  I need to know the to-view-id(JSP page) given from-view-id and from-outcome. 
> The NavigationHanlder has only one method handle(..), Thanks.
>  Dave
>
>   
>-
>Yahoo! Photos
> Ring in the New Year with Photo Calendars. Add photos, events, holidays, 
> whatever.




Re: NavigationHandler API faces.config

2006-01-09 Thread Craig McClanahan
On 1/9/06, Andrew Robinson <[EMAIL PROTECTED]> wrote:
I had wondered that myself for a time, as it would have made something I wrote easier. NavigationHandler really needs to change to make it more reusable (ability to get the settings from it instead of just that one method.
As for the information, it will not be so easy as there is not necessarily one faces configuration file. You can have multiple. You may for example, have some to setup renders for example in a JSF controls bean. Therefore the question is how to get the file that has your navigation code. The best thing I can think of is just to have a setting in your 
web.config with the location of the configuration file you wish to use. Also be careful that if you are making a reusable component that you may want to stick to using the jsf resolution rules (supporting wildcards for example). 
If your intent is to have access to all of the configured navigation rules, you'd be best served to parse *exactly* the same configuration files that the JSF runtime does ... that way, you don't care which of the potentially many configuration file(s) has those definitions.  The JSF spec covers the details of what's required in Section 
10.3.2, but it boils down to processing (in order):* Any META-INF/faces-config.xml resources in the ServletContext resource paths  for this application (typically packaged inside a JAR file in /WEB-INF/lib).
* Any configuration resources configured on the context init parameter  "javax.faces.CONFIG_FILES".* A resource named "/WEB-INF/faces-config.xml" (if it exists, and if it  has not already been parsed).
On the other hand, I would also be thinking hard about my motivations for wanting to do this kind of thing ... it seems like taking a very simple concept (outcome-driven navigation) and trying to make it something complicated.  Customizing this will also make it harder for tools to give your users high quality support, because they are not going to understand what extra "stuff" you are providing.
Craig


Re: NavigationHandler API faces.config

2006-01-09 Thread Andrew Robinson
I had wondered that myself for a time, as it would have made something I wrote easier. NavigationHandler really needs to change to make it more reusable (ability to get the settings from it instead of just that one method.
As for the information, it will not be so easy as there is not necessarily one faces configuration file. You can have multiple. You may for example, have some to setup renders for example in a JSF controls bean. Therefore the question is how to get the file that has your navigation code. The best thing I can think of is just to have a setting in your 
web.config with the location of the configuration file you wish to use. Also be careful that if you are making a reusable component that you may want to stick to using the jsf resolution rules (supporting wildcards for example). 
On 1/9/06, Dave <[EMAIL PROTECTED]> wrote:
Is there any way to access faces.config?   I need to know the to-view-id(JSP page) given from-view-id and from-outcome. The NavigationHanlder has only one method handle(..), Thanks.  
Dave
		Yahoo! Photos 
Ring in the New Year with 
Photo Calendars. Add photos, events, holidays, whatever.



Re: NavigationHandler API faces.config

2006-01-09 Thread Laurie Harper

Dave wrote:
Is there any way to access faces.config? 
  I need to know the to-view-id(JSP page) given from-view-id and from-outcome. The NavigationHanlder has only one method handle(..), Thanks.

  Dave


Unfortunately not, short of parsing faces-config yourself and 
re-implementing the algorithm the navigation handler uses.


L.



NavigationHandler API faces.config

2006-01-09 Thread Dave
Is there any way to access faces.config?   I need to know the to-view-id(JSP page) given from-view-id and from-outcome. The NavigationHanlder has only one method handle(..), Thanks.  Dave
		Yahoo! Photos 
Ring in the New Year with Photo Calendars. Add photos, events, holidays, whatever.

Re: Oracle ADF in the next myfaces version ??

2006-01-09 Thread Sean Schofield
Everything is still in the exploratory phase.  Oracle has made the
source code available for review.  Over time the community will review
it and decide where to go from there.  Feel free to grab the code and
make comments on the dev list if you want to weigh in.

Sean

On 1/9/06, Adrien FOURES <[EMAIL PROTECTED]> wrote:
> Hello
>
> I allready use myFaces component , but  I have read on the web, that
> oracle give his JSF component to myFaces project,
> and i would like to know, when and how can i use it, in the future
> version of myFaces?
>
> Thanks,
>
> Adrien
>


Re: extensions TLD after mvn

2006-01-09 Thread Sean Schofield
Dennis,

I dropped it from this release.  Its legacy and it was not being kept
up to date.  I believe I was getting XSLT errors (I can't remember now
the issue) but rather then trying to figure out who broke what I just
dropped it.

Sean


On 1/8/06, Dennis Byrne <[EMAIL PROTECTED]> wrote:
> Perhaps I missed a discussion on this, or maybe there is no plan maintain the 
> old TLD namespace, but I do not get the TLD for 
> myfaces_ext.tld/http://myfaces.apache.org/extensions in 
> tomahawk-1.1.2-SNAPSHOT.jar .
>
> Dennis Byrne
>
>
>


Re: Oracle ADF component - objectMedia

2006-01-09 Thread Matthias Wessendorf
Darren,

> Questions:
> 1. Will  be one of the components released to MyFaces from
> Oracle?

I guess you missed that mail thread
http://tinyurl.com/dksxm

> Thanky, just trying to decide whether to use my own or to use a MyFaces
> community component.

Well, you can share your components, that's how community works ;)

-Matthias

>


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


Re: Overriding error message...

2006-01-09 Thread Mike Kienenberger
If you use the Myfaces Tomahawk components (t:inputXYZ), then the
label will be used instead of the id if specified.

On 1/9/06, John Holland <[EMAIL PROTECTED]> wrote:
> I ran into this problem also but I didn't want the id to be displayed
> but something more user friendly (like the label).  Apparently Oracle's
> ADF allows you to specify a Label for error messages (so they make
> sense) but MyFaces does not.
>
> The only way I've found to work around this is to use a custom
> converter, which is horrible.
>
> -Original Message-
> From: Claudio Tasso [mailto:[EMAIL PROTECTED]
> Sent: Monday, January 09, 2006 4:21 PM
> To: MyFaces Discussion
> Subject: Re: Overriding error message...
>
> Marco ha scritto:
>
> > I have an input text, Its value is binded to a double property in a
> > managed bean.
> >
> > And if the input was not a number the following error message is
> displayed
> >
> > "budget": Specified value is not a valid number.
> >
> > But i want to override this message, so what should i do ?
> >
> > Thanks
>
> Create a text file, for example org.apache.Messages.properties",  like
> this:
>
> javax.faces.component.UIInput.CONVERSION=My custom message
>
> Then, modify your faces-config.xml:
>
> 
> org.apache.Messages
> 
>
> For more information, look at JSF spec documentation: everything is
> explained.
>


Populating Component Tree Values from Servlet

2006-01-09 Thread Elam Daly
Hi all,

I got the code below from the JSF spec, and it works fine except for
the fact that I don't know how to put values recieved from the query
string of a servlet into my Managed beans so that they are displayed
when the first page initially comes up.  In fact, I can't get a
childCount from the UIViewRoot component till after the call to
lifecycle.render(), which calls the render response phase, which is the
last phase in the cycle.

Any help is much appreciated.

-Elam


-

public class RedirectServlet extends HttpServlet {

       protected void doGet( HttpServletRequest request, HttpServletResponse response) {
           
LifecycleFactory lifecycleFactory = (LifecycleFactory) FactoryFinder.getFactory(
           
          
FactoryFinder.LIFECYCLE_FACTORY);
           Lifecycle lifecycle = lifecycleFactory.getLifecycle( 
                   LifecycleFactory.DEFAULT_LIFECYCLE);

           FacesContextFactory facesContextFactory =
               (FacesContextFactory) FactoryFinder.getFactory(
           
          
FactoryFinder.FACES_CONTEXT_FACTORY);
           FacesContext
facesCtx = facesContextFactory.getFacesContext( getServletContext(),
                   request, response, lifecycle);
           
 
// Create new view

 
// 2.4.2.1
           Application app = facesCtx.getApplication();
           ViewHandler viewHdlr = app.getViewHandler();
           UIViewRoot viewRoot = viewHdlr.createView( facesCtx, requestedView);
 
// 2.4.2.2: we accept the default renderkit
 
// 2.4.2.3: we'll let Faces handle the
 
//   component tree 

 
// 2.4.2.4: store view into context
           facesCtx.setViewRoot( viewRoot);
           lifecycle.render( facesCtx);


Re: Overriding error message...

2006-01-09 Thread Wendy Smoak
On 1/9/06, Marco <[EMAIL PROTECTED]> wrote:

> I have an input text, Its value is binded to a double property in a managed
> bean.
>
> And if the input was not a number the following error message is displayed
>
> "budget": Specified value is not a valid number.
>
> But i want to override this message, so what should i do ?

I know you can override the standard messages by adding messages to
your application's resource bundle under the correct key.  The message
you mentioned is coming from the same bundle[0] containing the
standard messages, so I assume it would work the same way.  Try adding
this key to your application's resource bundle, with a different
message.

javax.faces.convert.DoubleConverter.CONVERSION_detail = "{0}":
Specified value is not a valid number.

[0]


--
Wendy


RE: Overriding error message...

2006-01-09 Thread John Holland
I ran into this problem also but I didn't want the id to be displayed
but something more user friendly (like the label).  Apparently Oracle's
ADF allows you to specify a Label for error messages (so they make
sense) but MyFaces does not.  

The only way I've found to work around this is to use a custom
converter, which is horrible.

-Original Message-
From: Claudio Tasso [mailto:[EMAIL PROTECTED] 
Sent: Monday, January 09, 2006 4:21 PM
To: MyFaces Discussion
Subject: Re: Overriding error message...

Marco ha scritto:

> I have an input text, Its value is binded to a double property in a 
> managed bean.
>
> And if the input was not a number the following error message is
displayed
>
> "budget": Specified value is not a valid number.
>
> But i want to override this message, so what should i do ?
>
> Thanks

Create a text file, for example org.apache.Messages.properties",  like
this:

javax.faces.component.UIInput.CONVERSION=My custom message

Then, modify your faces-config.xml:


org.apache.Messages


For more information, look at JSF spec documentation: everything is 
explained.


Re: Oracle ADF component - objectMedia

2006-01-09 Thread Jonas Jacobi




Hi Darren,

I'll answer # 1. The af:objectMedia component is definitely part of the
donation.

Jonas
---

Jonas Jacobi
Technology Evangelist - JSF & ADF Faces
Oracle JDeveloper 
Author: Pro JSF and
Ajax: Building Rich Internet Components
Blog: 
http://www.orablogs.com/jjacobi



Darren Hartford wrote:

  Hi all,
I'm pretty close to finalizing one of my projects that needs to use TIF
images (and possible a mix of other images later) and I need to choose a
JSF component to help display the images inline on page (using the
browsers native MIMETYPE'd image plugin).  

I have my own custom component to write out the  and 
HTML tags, but I would rather use a more tested component such as
Oracle's objectMedia JSF Component.

Questions:
1. Will  be one of the components released to MyFaces from
Oracle?
2. Gauge as to when that will happen?

Thanky, just trying to decide whether to use my own or to use a MyFaces
community component.
-D
  






Re: Overriding error message...

2006-01-09 Thread Claudio Tasso

Marco ha scritto:

I have an input text, Its value is binded to a double property in a 
managed bean.


And if the input was not a number the following error message is displayed

"budget": Specified value is not a valid number.

But i want to override this message, so what should i do ?

Thanks


Create a text file, for example org.apache.Messages.properties",  like this:

javax.faces.component.UIInput.CONVERSION=My custom message

Then, modify your faces-config.xml:


   org.apache.Messages
   

For more information, look at JSF spec documentation: everything is 
explained.


Re: Popup in new window problem

2006-01-09 Thread Werner Punz

::SammyRulez:: wrote:

not sure but I think

 


a target="_new" should do it, but opening popups is calling for trouble, 
you basically open a can of worms, due to the fact that you do not have

a modal dialog mechanism which works across browsers.
That is one and pretty much the only thing the IE has as significant 
advantage over all other browsers, that you are able to open modal windows.


As someone pointed out already, before opening popup windows, rather go 
for a jenia4faces like popup mechanism. This one delivers modal like 
mechanisms without having to open a new window.




Re: selectManyCheckbox not working within datatable

2006-01-09 Thread Simon Kitching

[EMAIL PROTECTED] wrote:
I am trying to get a selectManycheckbox to work within a datatable, as 
soon as I put it into the datatable the page fails to submit and reloads 
itself again, All buttons, command links etc stop working.


I’m using Myfaces 1.1.1 Nightly Build 12.12.2005

Is this known problem?
Has anyone the same problem?
Is there a solution or should I simply not use a selectManycheckbox within a 
dataTable?


It looks to me like you're getting a validation failure, and therefore 
the page is re-rendering. I suggest adding an h:messages component to 
your page to see if validation error messages are being generated.


Select components work fine for me, but a number of people have reported 
getting validation problems.



Regards,

Simon


Re: Can panelTabbedPane remember the last selected index?

2006-01-09 Thread Dennis Byrne
I know some people who have bound the index to a session scoped integer.  This 
has some obvious trade offs.  Another way to approach this is to bind the index 
to a request scoped integer, and manually set the integer in an action listener 
that is tied to the command.  This becomes tedious however if there are a lot 
of "entry points" to the tabbed view .

>-Original Message-
>From: Matthias Kahlau [mailto:[EMAIL PROTECTED]
>Sent: Monday, January 9, 2006 03:03 PM
>To: 'Users MyFaces'
>Subject: Can panelTabbedPane remember the last selected index?
>
>Hi!
>
>
>Does anybody know if the panelTabbedPane can provide a facility to remember
>the last "selectedIndex". That would be fine if the user returns to the
>panelTabbedPane which he has left from a tab != default selectedIndex...
>Without any modifications, always the default tab is shown again.
>
>
>
>Regards,
>
>Matthias
>
>




Can panelTabbedPane remember the last selected index?

2006-01-09 Thread Matthias Kahlau
Hi!


Does anybody know if the panelTabbedPane can provide a facility to remember
the last "selectedIndex". That would be fine if the user returns to the
panelTabbedPane which he has left from a tab != default selectedIndex...
Without any modifications, always the default tab is shown again.



Regards,

Matthias



Re: AddResource issue

2006-01-09 Thread Mike Kienenberger
You can find improved extensions filter mappings on this page:

http://myfaces.apache.org/tomahawk/extensionsFilter.html

It clears up a lot of the confusion regarding what needs to be done and why.

On 1/8/06, Michel Goldstein <[EMAIL PROTECTED]> wrote:
> Simon and Greeta,
>
> That's exactly my problem. I had changed the servlet mapping to
> *.faces, but left the extension filter to *.jsf. As I was calling the
> tree2.faces, it was not calling the filter. I have cross-added the
> extensions and now everything is working!
>
> Thank you!
>
> Michel
>
> On 1/8/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> >
> > Simon Kitching <[EMAIL PROTECTED]> wrote on 01/08/2006 04:57:59 PM:
> >
> >  >
> >  > The code that processes queued resources and actually modifies the
> >  > generated page to include them is the ExtensionsFilter. If you don't
> >  > have this filter mapped for "*.jsf" then that would explain your problem.
> >  >
> >  >
> >  >  extensionsFilter
> >  >  *.jsf
> >  >
> >  >
> >
> > Simon, shouldn't there be entries for url-patterns *.faces as well as for
> > /faces/*?
> >
> >  > Regards,
> >  >
> >  > Simon
> >
> > Regards,
> > Geeta
> >
>


AW: AW: commandLink does not work within a dataTable

2006-01-09 Thread Uensal_Kara



Hi Geeta,
 
thank you very much, the problem is solved. Your guess was 
absolutely correct. After I taken care that the collection is available after 
the Restore View phase everything works fine.
 
 
Regards,
Ünsal
 


Von: [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED] Gesendet: Montag, 9. Januar 2006 
16:37An: MyFaces DiscussionBetreff: Re: AW: commandLink 
does not work within a dataTable
<[EMAIL PROTECTED]> wrote on 
01/09/2006 10:22:46 AM:> Hi Geeta, >   > Thank you for your 
answer, but could you explain what the list has > to do with my problem? 
Well Ünsal, I am not at all an expert in 
JSf but here's what I believe happens (and I hope somebody will correct me if I 
am wrong or incomplete): if your list of objects is only in request scope then 
your page will be displayed ok. However after the Restore View phase, your 
collection will be thrown away. So when you click on an entry in your table, 
this action is processed as part of the "Process Events" phase as part of the 
*next* request (so *after* the collection has been gced). Which is why you need 
to save your collection either in session scope or via I suppose that you mean with "list" the 
> value-attribute of the dataTable-component, which is in my case a 
> Collection of model-objects. Yes, 
this is what i mean. > 
  >   > Regards, > 
  > Ünsal > Regards, 
Geeta 


Oracle ADF component - objectMedia

2006-01-09 Thread Darren Hartford
Hi all,
I'm pretty close to finalizing one of my projects that needs to use TIF
images (and possible a mix of other images later) and I need to choose a
JSF component to help display the images inline on page (using the
browsers native MIMETYPE'd image plugin).  

I have my own custom component to write out the  and 
HTML tags, but I would rather use a more tested component such as
Oracle's objectMedia JSF Component.

Questions:
1. Will  be one of the components released to MyFaces from
Oracle?
2. Gauge as to when that will happen?

Thanky, just trying to decide whether to use my own or to use a MyFaces
community component.
-D


Re: TabPane -> Form => Javascript-Error

2006-01-09 Thread Harald Müller
Hi!

Yes ... it works!

Thanks,
H



-Ursprüngliche Nachricht-
Von: "Hansjörg Meuschel" [mailto:[EMAIL PROTECTED] 
Gesendet: Montag, 09. Jänner 2006 16:34
An: MyFaces Discussion
Betreff: Re: TabPane -> Form => Javascript-Error

Hi,
try to put the form tag before the paneltabbedpane tag and use one single
form for all tabs! 


> 
> 
>   
>   
>   
>   
> 
> 

if this does not work please post your jsf source!
Greets,
Hans



> --- Ursprüngliche Nachricht ---
> Von: Harald Müller <[EMAIL PROTECTED]>
> An: "MyFaces Discussion" 
> Betreff: TabPane -> Form => Javascript-Error
> Datum: Mon, 9 Jan 2006 16:15:19 +0100
> 
> Hi!
> 
> Code:
> 
> 
>   
> 
>   
>   
> 
>   
> 
> 
> This code gives me a javascript-error on loading the webpage (Firefox):
> 
> -> "f has no properties"
> 
> Can someone reproduce that ... or am I doing something wrong?
> 
> I'm using today's svn-head!
> 
> Thanks,
> H
> 
> 

-- 
DSL-Aktion wegen großer Nachfrage bis 28.2.2006 verlängert:
GMX DSL-Flatrate 1 Jahr kostenlos* http://www.gmx.net/de/go/dsl


Re: Nightly Build - Nething broken ?

2006-01-09 Thread Martin Marinschek
No clue.

Do the examples work?

regards,

Martin

On 1/9/06, Nikita Shah <[EMAIL PROTECTED]> wrote:
>  Hello
>
>  I  downloaded the source from  the repository today and build it. Am
> getting the following errors while using the calendar component.. Can anyone
> help with this.. ?
>
>
>  Jan 9, 2006 8:03:06 PM
> org.apache.myfaces.component.html.util.AddResource
> serveResource
>  SEVERE: Error while serving resource:
> calendar.HtmlCalendarRenderer/DB/divider.gif, message : null
>  ClientAbortException:  java.net.SocketException: Connection reset by peer:
> socket write error
>  at
> org.apache.catalina.connector.OutputBuffer.doFlush(OutputBuffer.java:327)
>  at
> org.apache.catalina.connector.OutputBuffer.flush(OutputBuffer.java:293)
>  at
> org.apache.catalina.connector.Response.flushBuffer(Response.java:544)
>  at
> org.apache.catalina.connector.ResponseFacade.flushBuffer(ResponseFacade.java:276)
>  at
> org.apache.myfaces.component.html.util.AddResource.serveResource(AddResource.java:578)
>  at
> org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(ExtensionsFilter.java:115)
>  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)<
> br> 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:534)
>  Caused by: java.net.SocketException: Connection reset by peer: socket write
> error
>  at java.net.SocketOutputStream.socketWrite0(Native
> Method)
>  at
> java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
>  at
> java.net.SocketOutputStream.write(SocketOutputStream.java:136)
>  at
> org.apache.coyote.http11.InternalOutputBuffer.realWriteBytes(InternalOutputBuffer.java:747)
>  at
> org.apache.tomcat.util.buf.ByteChunk.flushBuffer(ByteChunk.java:403)
>  at
> org.apache.coyote.http11.InternalOutputBuffer.flush(InternalOutputBuffer.java:305)
>  at
> org.apache.coyote.http11.Http11Processor.action(Http11Processor.java:990)
>  at
> org.apache.coyote.Response.action(Response.java:182)
>  at
> org.apache.catalina.connector.OutputBuffer.doFlush(OutputBuffer.java:322)
>  ... 19 more
>  Jan 9, 2006 8:03:06 PM
> org.apache.catalina.core.StandardWrapperValve invoke
>  SEVERE: Servlet.service() for servlet default threw exception
>  java.lang.IllegalStateException
>  at
> org.apache.catalina.connector.ResponseFacade.sendError(ResponseFacade.java:418)
>  at
> org.apache.myfaces.component.html.util.AddResource.serveResource(AddResource.java:601)
>  at
> org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(ExtensionsFilter.java:115)
>  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

Overriding error message...

2006-01-09 Thread Marco
I have an input text, Its value is binded to a double property in a managed bean.And if the input was not a number the following error message is displayed"budget": Specified value is not a valid number.
But i want to override this message, so what should i do ?Thanks


Oracle ADF in the next myfaces version ??

2006-01-09 Thread Adrien FOURES

Hello

I allready use myFaces component , but  I have read on the web, that 
oracle give his JSF component to myFaces project,
and i would like to know, when and how can i use it, in the future 
version of myFaces?


Thanks,

Adrien


Re: AW: commandLink does not work within a dataTable

2006-01-09 Thread gramani

<[EMAIL PROTECTED]> wrote on 01/09/2006
10:22:46 AM:

> Hi Geeta,
>  
> Thank you for your answer, but could you explain
what the list has 
> to do with my problem? 

Well Ünsal, I am not at all an expert in JSf but here's
what I believe happens (and I hope somebody will correct me if I am wrong
or incomplete): if your list of objects is only in request scope then your
page will be displayed ok. However after the Restore View phase, your collection
will be thrown away. So when you click on an entry in your table, this
action is processed as part of the "Process Events" phase as
part of the *next* request (so *after* the collection has been gced). Which
is why you need to save your collection either in session scope or via


I suppose that you mean with "list" the

> value-attribute of the dataTable-component, which is in my case a

> Collection of model-objects. 

Yes, this is what i mean.

>  
>  
> Regards,
>  
> Ünsal
>

Regards,
Geeta


Re: AW: JSF support East Asian characters ?

2006-01-09 Thread steady
I met this problem too, I use Myfaces, standalone Tiles, I spend about 2 weeks on this problem, but today I found a property in  and I wrote , and then everything is ok, I wrote some Chinese in  and submit it, yeah! It works well!

On 1/8/06, Dave <[EMAIL PROTECTED]> wrote:
 

It was  that caused the encoding problem. I used  in my code.
 
I tried the following simple example without , it worked fine without problem in typing/displaying back East asia characters. If I wrap the code with , and output the buffer, it will not work, displaying  East Asia characters back as question marks. 

 
I thought  is just a piece of memory without any character conversion. How does  work exactly? what OutputStream is being used? is it possibly involving data conversion? If yes, is there any workaround? 

 
Thanks!
 
without , works!
 
<%@ page contentType="text/html; charset=UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t"%>















  
use , does not work 
 
<%@ page contentType="text/html; charset=UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t"%>







 












Re: A question about managed beans , how MB methods treated ?

2006-01-09 Thread Alexandre Poitras
Craig McClanahan has said a couple of times that Shale can be seen as a testing ground for new features in JSF 2.0 (If I remember correctly). Since he was the JSF 1.0 cospecification leader, he's probably going to be on the JCR expert group. So you might see some hints there that some Shale features may end up in the JSF spec in the future :)
On 1/9/06, Mikael Andersson <[EMAIL PROTECTED]> wrote:
Hi,
I have a question regarding the managed bean lifecyle. 
I have read in some blogs about EJB3 like annotations which can be used
with managed beans to hook into different stages of the lifecycle, but
that's about all I know about it. My question is, is this a feature for
JSF 1.2 specification? Would be nice to get this without using Shale :)

Thanks,
MikaelOn 08/01/06, Simon Kitching <
[EMAIL PROTECTED]> wrote:
Legolas Woodland wrote:>> A question about managed beans , how MB methods treated ?> Hi thank you for reading my post.> I have a managed bean like the following defined in faces-config.xml
>
>>>>Over all report Bean>OAllReport>
publisher.OAllReport>session>>>> publisher.OAllReport class has a method which in that method do some sql
> operations.> I learned this from a tutorial and i tried to use it in my application ,> but before my decision goes final> i want to know that>> As i said i have some methods that do sql operation , i did nothing in
> constructor.> -does sql operations run without call to methods ? i mean does JSF> engine call methods of a managed bean ?> -does it brings some loads to my system ?> -when System initiate those classes ?
>When some other bean or page evaluates an _expression_ like"#{OAllReport.something}", JSF looks for the name "OAllReport" inrequest, session and application scopes. If it doesn't find an entry,
then it will create the object using the managed bean definition.In other words, managed beans are created only when they are needed.When it creates the object, it calls the setter for everymanaged-property declaration.
No other methods are called on the managed bean.You might like to read the wiki FAQ entry titled:  "How do I know when a managed bean's properties have all been set?"I believe that the Shale project provides additional useful
lifecycle-related methods for JSF pages and backing beans, though Idon't know a lot about this.Regards,Simon

-- Alexandre PoitrasQuébec, Canada


Re: TabPane -> Form => Javascript-Error

2006-01-09 Thread Hansjörg Meuschel
Hi,
try to put the form tag before the paneltabbedpane tag and use one single
form for all tabs! 


> 
> 
>   
>   
>   
>   
> 
> 

if this does not work please post your jsf source!
Greets,
Hans



> --- Ursprüngliche Nachricht ---
> Von: Harald Müller <[EMAIL PROTECTED]>
> An: "MyFaces Discussion" 
> Betreff: TabPane -> Form => Javascript-Error
> Datum: Mon, 9 Jan 2006 16:15:19 +0100
> 
> Hi!
> 
> Code:
> 
> 
>   
> 
>   
>   
> 
>   
> 
> 
> This code gives me a javascript-error on loading the webpage (Firefox):
> 
> -> "f has no properties"
> 
> Can someone reproduce that ... or am I doing something wrong?
> 
> I'm using today's svn-head!
> 
> Thanks,
> H
> 
> 

-- 
DSL-Aktion wegen großer Nachfrage bis 28.2.2006 verlängert:
GMX DSL-Flatrate 1 Jahr kostenlos* http://www.gmx.net/de/go/dsl


AW: commandLink does not work within a dataTable

2006-01-09 Thread Uensal_Kara



Hi Geeta,
 
Thank you for your answer, but could you explain what 
the list has to do with my problem? I suppose that you mean with 
"list" the value-attribute of the dataTable-component, which is in my case 
a Collection of model-objects. 
 
 
Regards,
 
Ünsal


Von: [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED] Gesendet: Montag, 9. Januar 2006 
15:36An: MyFaces DiscussionBetreff: Re: commandLink does 
not work within a dataTable
<[EMAIL PROTECTED]> wrote on 
01/09/2006 06:14:07 AM:> Hi,> I have got a problem with the 
commandLink-components within a > dataTable. The connected 
actionListener-method is never executed and> the same view is displayed 
without any changes. It is a very weird > problem, because a quite 
similar view with commandLinks in a > dataTable does work(!) and this one 
not!! I could not find any > reason why it is not working:> 
> >                   
>                 
    >         
              >             
        >         
            >             
   actionListener="#{createArticleBean.chooseArticletype}">> 
                      
> 
value="#{articletyp.itemtext}"/>>           
          >     
           >             
      > ...> 
> Hi Unsal, you 
have two choices (that I know of!): either place your list in session scope or 
use Regards, Geeta 



TabPane -> Form => Javascript-Error

2006-01-09 Thread Harald Müller
Hi!

Code:


  

  
  

  


This code gives me a javascript-error on loading the webpage (Firefox):

-> "f has no properties"

Can someone reproduce that ... or am I doing something wrong?

I'm using today's svn-head!

Thanks,
H




Re: selectManyCheckbox not working within datatable

2006-01-09 Thread gramani

<[EMAIL PROTECTED]> wrote on 01/09/2006
06:38:10 AM:

> Hi,
>  
> I am trying to get a selectManycheckbox to work
within a datatable, 
> as soon as I put it into the datatable the page fails to submit and

> reloads itself again, All buttons, command links etc stop working.

Hi Matthias, you may be having the same sort of problem
as the earlier poster with datatable and link problems. So try using session
scope or 

> Regards
>  
>  
> Matthias Köhler

Regards,
Geeta


Nightly Build - Nething broken ?

2006-01-09 Thread Nikita Shah
 HelloI  downloaded the source from  the repository today and build  it. Am getting the following errors while using the calendar  component.. Can anyone help with this.. ?  Jan 9, 2006 8:03:06 PM org.apache.myfaces.component.html.util.AddResource serveResource  SEVERE: Error while serving resource: calendar.HtmlCalendarRenderer/DB/divider.gif, message : null  ClientAbortException:  java.net.SocketException: Connection reset by peer: socket write error      at org.apache.catalina.connector.OutputBuffer.doFlush(OutputBuffer.java:327)      at org.apache.catalina.connector.OutputBuffer.flush(OutputBuffer.java:293)      at org.apache.catalina.connector.Response.flushBuffer(Response.java:544)      at org.apache.catalina.connector.ResponseFacade.flushBuffer(ResponseFacade.java:276)      at
 org.apache.myfaces.component.html.util.AddResource.serveResource(AddResource.java:578)      at org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(ExtensionsFilter.java:115)      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)<
 br> 
     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:534)  Caused by: java.net.SocketException: Connection reset by peer: socket write error      at java.net.SocketOutputStream.socketWrite0(Native Method)      at
 java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)      at java.net.SocketOutputStream.write(SocketOutputStream.java:136)      at org.apache.coyote.http11.InternalOutputBuffer.realWriteBytes(InternalOutputBuffer.java:747)      at org.apache.tomcat.util.buf.ByteChunk.flushBuffer(ByteChunk.java:403)      at org.apache.coyote.http11.InternalOutputBuffer.flush(InternalOutputBuffer.java:305)      at org.apache.coyote.http11.Http11Processor.action(Http11Processor.java:990)      at org.apache.coyote.Response.action(Response.java:182)      at org.apache.catalina.connector.OutputBuffer.doFlush(OutputBuffer.java:322)      ... 19 more  Jan 9, 2006 8:03:06 PM org.apache.catalina.core.StandardWrapperValve invoke  SEVERE: Servlet.service() for servlet default threw exception  java.lang.IllegalStateException
  
     at org.apache.catalina.connector.ResponseFacade.sendError(ResponseFacade.java:418)      at org.apache.myfaces.component.html.util.AddResource.serveResource(AddResource.java:601)      at org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(ExtensionsFilter.java:115)      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:534)  Jan 9, 2006 8:03:06 PM
 org.apache.myfaces.component.html.util.AddResource serveResource  SEVERE: Error while serving resource: calendar.HtmlCalendarRenderer/DB/drop1.gif, message : null  C

Re: commandLink does not work within a dataTable

2006-01-09 Thread gramani

<[EMAIL PROTECTED]> wrote on 01/09/2006
06:14:07 AM:

> Hi,
> I have got a problem with the commandLink-components within a 
> dataTable. The connected actionListener-method is never executed and
> the same view is displayed without any changes. It is a very weird

> problem, because a quite similar view with commandLinks in a 
> dataTable does work(!) and this one not!! I could not find any 
> reason why it is not working:
> 
> 
>                   
>                    

>                    
  
>                    

>                    

>                actionListener="#{createArticleBean.chooseArticletype}">
>                    
  
> value="#{articletyp.itemtext}"/>
>                    

>                
>                   
> ...
> 
> 

Hi Unsal, you have two choices (that I know of!):
either place your list in session scope or use 

Regards,
Geeta


Re: AW: Bug in InputSuggestAjax (ValueChangeEvent doesn't work)

2006-01-09 Thread Werner Punz
Volker Weber wrote:
> Hi,
> 
> the version of the scriptaculo.us scripts in svn head of myfaces is
> 1.5.0 or 1.5.1 (i'm not sure which version Matthias has fetched), but
> there are no Autocompleter related changes between.
> 
> In the releases are older versions.
> 
> Regards,
>   Volker
> 
guess it is time to bump up the versions then ;-)



Re: AW: Bug in InputSuggestAjax (ValueChangeEvent doesn't work)

2006-01-09 Thread Volker Weber
Hi,

the version of the scriptaculo.us scripts in svn head of myfaces is
1.5.0 or 1.5.1 (i'm not sure which version Matthias has fetched), but
there are no Autocompleter related changes between.

In the releases are older versions.

Regards,
  Volker

[EMAIL PROTECTED] wrote:
> Thanks for reply!
> 
> I have now found the scriptaculo.us library at 
> http://script.aculo.us/downloads with the version 1.5.1
> Which version is implemented in Myfaces?
> And how can I change the libraries or rather where must I put the lib?
> 
> Regards,
> Andy
> 
> -- 
-
Volker WeberDietrichsweg 38a 26127 Oldenburg Germany
MAILTO:[EMAIL PROTECTED]   HTTP://www.weber-oldenburg.de


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


AW: Re: Redisplay-Refresh

2006-01-09 Thread andreas.mitter
Try the jeniapopup from www.jenia.org.
There you can add a method to a attribute called actionClose
This method is then executed, when the popup is closed and so you can refresh 
your page in this method
Jenia.org has a good documentation, so implementation is easy.

Regards
Andy

-Ursprüngliche Nachricht-
Von: Matias Gomez Carabias [mailto:[EMAIL PROTECTED]
Gesendet: Montag, 9. Januar 2006 15:00
An: MyFaces Discussion
Betreff: RE: Re: Redisplay-Refresh


Laurie, I've tried calling a backing bean of the parent window before
the window.close() and the method is executed successfully but the
parent page is never refreshed.
I've also tried to submit the parent's window form via javascript but
nothing happened.

Can you post a code example for your approaches?

Thanks a lot

Matias





-Original Message-
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Laurie Harper
Sent: Saturday, January 07, 2006 3:32 PM
To: users@myfaces.apache.org
Subject: Re: Redisplay-Refresh

Matias Gomez Carabias wrote:
> Hi all again. I have the following question. My application has a
> collection in the main page displayed by a t:dataTable, when a button
is
> clicked , it opens a popup window , and when a button is pressed in
the
> popup window, the collection may be changed and I need it to be
> refreshed.
> 
> Any clues on how to achieve this?

Add an onUnload handler to the popup that refreshes its parent window? 
Or have the form in the popup window target (submit to) the parent 
window, and call window.close() from its onSubmit?

L.


__

This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
your system manager.

This footnote also confirms that this email message has been swept
for the presence of computer viruses.
__


RE: Re: Redisplay-Refresh

2006-01-09 Thread Matias Gomez Carabias
Laurie, I've tried calling a backing bean of the parent window before
the window.close() and the method is executed successfully but the
parent page is never refreshed.
I've also tried to submit the parent's window form via javascript but
nothing happened.

Can you post a code example for your approaches?

Thanks a lot

Matias





-Original Message-
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Laurie Harper
Sent: Saturday, January 07, 2006 3:32 PM
To: users@myfaces.apache.org
Subject: Re: Redisplay-Refresh

Matias Gomez Carabias wrote:
> Hi all again. I have the following question. My application has a
> collection in the main page displayed by a t:dataTable, when a button
is
> clicked , it opens a popup window , and when a button is pressed in
the
> popup window, the collection may be changed and I need it to be
> refreshed.
> 
> Any clues on how to achieve this?

Add an onUnload handler to the popup that refreshes its parent window? 
Or have the form in the popup window target (submit to) the parent 
window, and call window.close() from its onSubmit?

L.



Re: AW: Bug in InputSuggestAjax (ValueChangeEvent doesn't work)

2006-01-09 Thread Werner Punz
[EMAIL PROTECTED] wrote:
> I have now found out, what's the problem.
> The ValueChangeEvent works in IE too(so my first thoughts were wrong), but to 
> submit and execute the ValueChangeEvent I have to press Enter for a second 
> time!!, whereas in Firefox one left-mouse click is enough (after choosing the 
> Item of the Suggested List)...In IE the mouse-click doesn't help.
> Is this just a javascript problem?
> 
> Regards,
> Andy
> 
This definitely is a javascript problem...
A valuechange is triggered normally by a http post on the client side.
As it seems the javascript only triggers it in Firefox as expected.



AW: Bug in InputSuggestAjax (ValueChangeEvent doesn't work)

2006-01-09 Thread andreas.mitter
Thanks for reply!

I have now found the scriptaculo.us library at http://script.aculo.us/downloads 
with the version 1.5.1
Which version is implemented in Myfaces?
And how can I change the libraries or rather where must I put the lib?

Regards,
Andy



-Ursprüngliche Nachricht-
Von: Martin Marinschek [mailto:[EMAIL PROTECTED]
Gesendet: Montag, 9. Januar 2006 14:28
An: MyFaces Discussion
Betreff: Re: Bug in InputSuggestAjax (ValueChangeEvent doesn't work)


Probably it is.

Try out the original scriptaculo.us library and try to file a bug
there if this problem persists.

regards,

martin

On 1/9/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> I have now found out, what's the problem.
> The ValueChangeEvent works in IE too(so my first thoughts were wrong), but to 
> submit and execute the ValueChangeEvent I have to press Enter for a second 
> time!!, whereas in Firefox one left-mouse click is enough (after choosing the 
> Item of the Suggested List)...In IE the mouse-click doesn't help.
> Is this just a javascript problem?
>
> Regards,
> Andy
>
> -Ursprüngliche Nachricht-
> Von: Mitter Andreas, ISX
> Gesendet: Montag, 9. Januar 2006 07:57
> An: 'MyFaces Discussion'
> Betreff: Bug in InputSuggestAjax (ValueChangeEvent doesn't work)
>
>
> Hi all!
>
> Anybody got already a solution for this problem. Anybody already faced the 
> same problem?
> For any reason, in IE a ValueChangeEvent within a InputSuggestAjax Tag 
> doesn't work (no reaction, the method is never executed), whereas in Firefox 
> everything is normal.
>
> Does anyone have an idea, how to get rid of this problem?
>
> Should I open a JIRA on this??
>
> Regards,
> Andy
>
>
> -Ursprüngliche Nachricht-
> Von: Volker Weber [mailto:[EMAIL PROTECTED]
> Gesendet: Donnerstag, 5. Januar 2006 18:56
> An: MyFaces Discussion
> Betreff: Re: AW: Eventually Bugs in InputSuggestAjax
>
>
> seems you need to checkout the whole myfaces:
>
> http://svn.apache.org/repos/asf/myfaces/current/
>
> Harald Müller wrote:
> > Hi!
> >
> > Is there a special "configuration" needed to compile it?
> >
> > Always get an error:
> >
> > [INFO] Failed to resolve artifact.
> >
> > GroupId: org.apache.myfaces
> > ArtifactId: myfaces
> > Version: 1.1.2-SNAPSHOT
> >
> > Reason: Unable to download the artifact from any repository
> >
> >   org.apache.myfaces:myfaces:pom:1.1.2-SNAPSHOT
> >
> > from the specified remote repositories:
> >   central (http://repo1.maven.org/maven2)
> >
> > ...
> >
> > Thanks!
> > H
> >
> >
> > -Ursprüngliche Nachricht-
> > Von: Volker Weber [mailto:[EMAIL PROTECTED]
> > Gesendet: Donnerstag, 05. Jänner 2006 13:42
> > An: MyFaces Discussion
> > Betreff: Re: AW: Eventually Bugs in InputSuggestAjax
> >
> > Hi Andreas,
> >
> > [EMAIL PROTECTED] wrote:
> >
> >>Hi guys!
> >>
> >>With libs do I need?Are they in the newest nightly? And is the List then 
> >>shown right under the inputtag?
> >>By the way: Is there another way to checkout the newest nightly (not from 
> >>SVN - because the port is blocked in my company...) Perhaps can someone 
> >>send it to my or upload the newest nightly to the MyFaces Webpage?
> >
> >
> > You can checkout the svn sandbox sources via http:
> > svn co http://svn.apache.org/repos/asf/myfaces/sandbox/trunk/ sandbox
> > Hopefully port 80 is not blocked by your firewall :-).
> >
> >
> >>For the problem with the ValueChangeListener:
> >>Here you see the code snippet, which I use. I realized, that the 
> >>ValueChangemethod is even never called by IE What could be the problem. 
> >>Has anyone expirenced the same problems? ANd is there a Workaround, because 
> >>I need the Suggest Tag for my project.
> >>
> >> >>suggestedItemsMethod="#{editDto.getItems}" value="#{newPartnerDto.fname}"
> >>required="true" maxSuggestedItems="10" styleLocation="./css" size="32" 
> >>immediate="true"
> >>valueChangeListener="#{querySelectHelper.countFnames}"
> >>onchange="submit()" />
> >>
> >>Thx for help!
> >>
> >>Regards,
> >>Andy
> >>
> >>
>
> --
> 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.
>
>
> __
>
> This email and any files transmitted with it are confidential and
> intended solely for the use of the individual or entity to whom they
> are addressed. If you have received this email in error please notify
> your system manager.
>
> This footnote also confirms that this email message has been swept
> for the presence of computer viruses.
> __
>


--

http://www.irian.at

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

Professional Support for Apache MyFaces


__

This email and any files transmitted with it are confidential and
in

Re: Bug in InputSuggestAjax (ValueChangeEvent doesn't work)

2006-01-09 Thread Martin Marinschek
Probably it is.

Try out the original scriptaculo.us library and try to file a bug
there if this problem persists.

regards,

martin

On 1/9/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> I have now found out, what's the problem.
> The ValueChangeEvent works in IE too(so my first thoughts were wrong), but to 
> submit and execute the ValueChangeEvent I have to press Enter for a second 
> time!!, whereas in Firefox one left-mouse click is enough (after choosing the 
> Item of the Suggested List)...In IE the mouse-click doesn't help.
> Is this just a javascript problem?
>
> Regards,
> Andy
>
> -Ursprüngliche Nachricht-
> Von: Mitter Andreas, ISX
> Gesendet: Montag, 9. Januar 2006 07:57
> An: 'MyFaces Discussion'
> Betreff: Bug in InputSuggestAjax (ValueChangeEvent doesn't work)
>
>
> Hi all!
>
> Anybody got already a solution for this problem. Anybody already faced the 
> same problem?
> For any reason, in IE a ValueChangeEvent within a InputSuggestAjax Tag 
> doesn't work (no reaction, the method is never executed), whereas in Firefox 
> everything is normal.
>
> Does anyone have an idea, how to get rid of this problem?
>
> Should I open a JIRA on this??
>
> Regards,
> Andy
>
>
> -Ursprüngliche Nachricht-
> Von: Volker Weber [mailto:[EMAIL PROTECTED]
> Gesendet: Donnerstag, 5. Januar 2006 18:56
> An: MyFaces Discussion
> Betreff: Re: AW: Eventually Bugs in InputSuggestAjax
>
>
> seems you need to checkout the whole myfaces:
>
> http://svn.apache.org/repos/asf/myfaces/current/
>
> Harald Müller wrote:
> > Hi!
> >
> > Is there a special "configuration" needed to compile it?
> >
> > Always get an error:
> >
> > [INFO] Failed to resolve artifact.
> >
> > GroupId: org.apache.myfaces
> > ArtifactId: myfaces
> > Version: 1.1.2-SNAPSHOT
> >
> > Reason: Unable to download the artifact from any repository
> >
> >   org.apache.myfaces:myfaces:pom:1.1.2-SNAPSHOT
> >
> > from the specified remote repositories:
> >   central (http://repo1.maven.org/maven2)
> >
> > ...
> >
> > Thanks!
> > H
> >
> >
> > -Ursprüngliche Nachricht-
> > Von: Volker Weber [mailto:[EMAIL PROTECTED]
> > Gesendet: Donnerstag, 05. Jänner 2006 13:42
> > An: MyFaces Discussion
> > Betreff: Re: AW: Eventually Bugs in InputSuggestAjax
> >
> > Hi Andreas,
> >
> > [EMAIL PROTECTED] wrote:
> >
> >>Hi guys!
> >>
> >>With libs do I need?Are they in the newest nightly? And is the List then 
> >>shown right under the inputtag?
> >>By the way: Is there another way to checkout the newest nightly (not from 
> >>SVN - because the port is blocked in my company...) Perhaps can someone 
> >>send it to my or upload the newest nightly to the MyFaces Webpage?
> >
> >
> > You can checkout the svn sandbox sources via http:
> > svn co http://svn.apache.org/repos/asf/myfaces/sandbox/trunk/ sandbox
> > Hopefully port 80 is not blocked by your firewall :-).
> >
> >
> >>For the problem with the ValueChangeListener:
> >>Here you see the code snippet, which I use. I realized, that the 
> >>ValueChangemethod is even never called by IE What could be the problem. 
> >>Has anyone expirenced the same problems? ANd is there a Workaround, because 
> >>I need the Suggest Tag for my project.
> >>
> >> >>suggestedItemsMethod="#{editDto.getItems}" value="#{newPartnerDto.fname}"
> >>required="true" maxSuggestedItems="10" styleLocation="./css" size="32" 
> >>immediate="true"
> >>valueChangeListener="#{querySelectHelper.countFnames}"
> >>onchange="submit()" />
> >>
> >>Thx for help!
> >>
> >>Regards,
> >>Andy
> >>
> >>
>
> --
> 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.
>
>
> __
>
> This email and any files transmitted with it are confidential and
> intended solely for the use of the individual or entity to whom they
> are addressed. If you have received this email in error please notify
> your system manager.
>
> This footnote also confirms that this email message has been swept
> for the presence of computer viruses.
> __
>


--

http://www.irian.at

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

Professional Support for Apache MyFaces


Re: A question about managed beans , how MB methods treated ?

2006-01-09 Thread Mikael Andersson
Hi,
I have a question regarding the managed bean lifecyle. 
I have read in some blogs about EJB3 like annotations which can be used
with managed beans to hook into different stages of the lifecycle, but
that's about all I know about it. My question is, is this a feature for
JSF 1.2 specification? Would be nice to get this without using Shale :)

Thanks,
MikaelOn 08/01/06, Simon Kitching <[EMAIL PROTECTED]> wrote:
Legolas Woodland wrote:>> A question about managed beans , how MB methods treated ?> Hi thank you for reading my post.> I have a managed bean like the following defined in faces-config.xml>
>>>>Over all report Bean>OAllReport>
publisher.OAllReport>session>>>> publisher.OAllReport class has a method which in that method do some sql
> operations.> I learned this from a tutorial and i tried to use it in my application ,> but before my decision goes final> i want to know that>> As i said i have some methods that do sql operation , i did nothing in
> constructor.> -does sql operations run without call to methods ? i mean does JSF> engine call methods of a managed bean ?> -does it brings some loads to my system ?> -when System initiate those classes ?
>When some other bean or page evaluates an _expression_ like"#{OAllReport.something}", JSF looks for the name "OAllReport" inrequest, session and application scopes. If it doesn't find an entry,
then it will create the object using the managed bean definition.In other words, managed beans are created only when they are needed.When it creates the object, it calls the setter for everymanaged-property declaration.
No other methods are called on the managed bean.You might like to read the wiki FAQ entry titled:  "How do I know when a managed bean's properties have all been set?"I believe that the Shale project provides additional useful
lifecycle-related methods for JSF pages and backing beans, though Idon't know a lot about this.Regards,Simon


AW: Bug in InputSuggestAjax (ValueChangeEvent doesn't work)

2006-01-09 Thread andreas.mitter
I have now found out, what's the problem.
The ValueChangeEvent works in IE too(so my first thoughts were wrong), but to 
submit and execute the ValueChangeEvent I have to press Enter for a second 
time!!, whereas in Firefox one left-mouse click is enough (after choosing the 
Item of the Suggested List)...In IE the mouse-click doesn't help.
Is this just a javascript problem?

Regards,
Andy

-Ursprüngliche Nachricht-
Von: Mitter Andreas, ISX 
Gesendet: Montag, 9. Januar 2006 07:57
An: 'MyFaces Discussion'
Betreff: Bug in InputSuggestAjax (ValueChangeEvent doesn't work)


Hi all!

Anybody got already a solution for this problem. Anybody already faced the same 
problem?
For any reason, in IE a ValueChangeEvent within a InputSuggestAjax Tag doesn't 
work (no reaction, the method is never executed), whereas in Firefox everything 
is normal.

Does anyone have an idea, how to get rid of this problem?

Should I open a JIRA on this??

Regards,
Andy


-Ursprüngliche Nachricht-
Von: Volker Weber [mailto:[EMAIL PROTECTED]
Gesendet: Donnerstag, 5. Januar 2006 18:56
An: MyFaces Discussion
Betreff: Re: AW: Eventually Bugs in InputSuggestAjax


seems you need to checkout the whole myfaces:

http://svn.apache.org/repos/asf/myfaces/current/

Harald Müller wrote:
> Hi!
> 
> Is there a special "configuration" needed to compile it?
> 
> Always get an error:
> 
> [INFO] Failed to resolve artifact.
> 
> GroupId: org.apache.myfaces
> ArtifactId: myfaces
> Version: 1.1.2-SNAPSHOT
> 
> Reason: Unable to download the artifact from any repository
> 
>   org.apache.myfaces:myfaces:pom:1.1.2-SNAPSHOT
> 
> from the specified remote repositories:
>   central (http://repo1.maven.org/maven2)
> 
> ... 
> 
> Thanks!
> H
> 
> 
> -Ursprüngliche Nachricht-
> Von: Volker Weber [mailto:[EMAIL PROTECTED] 
> Gesendet: Donnerstag, 05. Jänner 2006 13:42
> An: MyFaces Discussion
> Betreff: Re: AW: Eventually Bugs in InputSuggestAjax
> 
> Hi Andreas,
> 
> [EMAIL PROTECTED] wrote:
> 
>>Hi guys!
>>
>>With libs do I need?Are they in the newest nightly? And is the List then 
>>shown right under the inputtag?
>>By the way: Is there another way to checkout the newest nightly (not from SVN 
>>- because the port is blocked in my company...) Perhaps can someone send it 
>>to my or upload the newest nightly to the MyFaces Webpage?
> 
> 
> You can checkout the svn sandbox sources via http:
> svn co http://svn.apache.org/repos/asf/myfaces/sandbox/trunk/ sandbox
> Hopefully port 80 is not blocked by your firewall :-).
> 
> 
>>For the problem with the ValueChangeListener:
>>Here you see the code snippet, which I use. I realized, that the 
>>ValueChangemethod is even never called by IE What could be the problem. 
>>Has anyone expirenced the same problems? ANd is there a Workaround, because I 
>>need the Suggest Tag for my project.
>>
>>>suggestedItemsMethod="#{editDto.getItems}" value="#{newPartnerDto.fname}"
>>required="true" maxSuggestedItems="10" styleLocation="./css" size="32" 
>>immediate="true" 
>>valueChangeListener="#{querySelectHelper.countFnames}"
>>onchange="submit()" />
>>
>>Thx for help!
>>
>>Regards,
>>Andy
>>
>>

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


__

This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
your system manager.

This footnote also confirms that this email message has been swept
for the presence of computer viruses.
__


Re: Popup in new window problem

2006-01-09 Thread ::SammyRulez::
not sure but I think

 


you have to fill the url param with the right url the browser have to
call (.faces in my config)

2006/1/9, [EMAIL PROTECTED] <[EMAIL PROTECTED]>:
>
> I don't know, whats exactly your problem, but I wouldn't open a window with
> window.open, but with the jeniapopup you will get at www.jenia.org
> It's easy to implement and works fine... Perhaps you want to try.
>
> Regards,
> Andy
>
> -Ursprüngliche Nachricht-
> Von: Nikita Shah [mailto:[EMAIL PROTECTED]
> Gesendet: Montag, 9. Januar 2006 13:14
> An: users@myfaces.apache.org
> Betreff: Popup in new window problem
>
>
>  Hello,
>
> I am having problem using JSF tags in the popup jsf page. I have the parent
> page as below:
>
>  onclick="window.open('../pages/addTask.jsp','popup','height=300,width=200,toolbar=no,menubar=no,scrollbars=yes');"
> >
> 
>
> And my addTask.jsp looks like below:
>
> <%@ taglib uri="http://java.sun.com/jsf/html"; prefix="h"%>
> <%@ taglib uri="http://java.sun.com/jsf/core"; prefix="f"%>
>
>
> Task Name
> 
> 
>
> Now the problem is I am getting the following error on clicking the command
> button:
>
> SEVERE: Faces context not found. getResponseWriter will fail. Check if the
> FacesServlet has been initialized at all in your web.xml.
> Jan 9, 2006 5:33:40 PM
> org.apache.catalina.core.StandardWrapperValve invoke< br>
> SEVERE: Servlet.service() for servlet jsp threw exception
> java.lang.NullPointerException
> at
> javax.faces.webapp.UIComponentTag.setupResponseWriter(UIComponentTag.java:878)
> at
> javax.faces.webapp.UIComponentTag.doStartTag(UIComponentTag.java:310)
> at
> org.apache.jsp.pages.addTask_jsp._jspx_meth_h_outputText_0(org.apache.jsp.pages.addTask_jsp:92)
> at
> org.apache.jsp.pages.addTask_jsp._jspService(org.apache.jsp.pages.addTask_jsp:61)
>
> If I remove the JSF "h" tags then i am able to see the html text "Task Name"
> in popup.
> Can anyone please help into this matter ?I require the solution urgently ..
>
> TIA
> Nikita
>
>
> -
> Ability is what you're capable of.
> Motivation determines what you do.
> Attitude determines how well you do it.
> -
>
> Regards,
> Nikita Shah
> Software Engineer
> SNS Technologies
> Phone: Tel: +91-20-30582122
> Cell: +919372873355
> Website: www.snstech.com
> Head Office: 301 | 3rd Floor | City Towers | 17 Dhole Patil Road |
>
>  
>  Yahoo! Photos
> Got holiday prints? See all the ways to get quality prints in your hands
> ASAP.
>
>
> __
> This email and any files transmitted with it are confidential and intended
> solely for the use of the individual or entity to whom they are addressed.
> If you have received this email in error please notify your system manager.
> This footnote also confirms that this email message has been swept for the
> presence of computer viruses.
> __
>


--
::SammyRulez::
http://sammyprojectz.blogspot.com


AW: Popup in new window problem

2006-01-09 Thread andreas.mitter



I 
don't know, whats exactly your problem, but I wouldn't open a window with 
window.open, but with the jeniapopup you will get at www.jenia.org
It's 
easy to implement and works fine... Perhaps you want to try.
 
Regards,
Andy

  -Ursprüngliche Nachricht-Von: Nikita Shah 
  [mailto:[EMAIL PROTECTED]Gesendet: Montag, 9. Januar 2006 
  13:14An: users@myfaces.apache.orgBetreff: Popup in new 
  window problem
   Hello,I am having problem using JSF tags in 
  the popup jsf page. I have the parent page as below: 
  And my addTask.jsp looks like 
  below:<%@ taglib uri="http://java.sun.com/jsf/html" 
  prefix="h"%><%@ taglib uri="http://java.sun.com/jsf/core" 
  prefix="f"%>Task Name Now 
  the problem is I am getting the following error on clicking the command 
  button:SEVERE: Faces context not found. getResponseWriter will fail. 
  Check if the FacesServlet has been initialized at all in your web.xml.Jan 
  9, 2006 5:33:40 PM org.apache.catalina.core.StandardWrapperValve invoke< 
  br> SEVERE: Servlet.service() for servlet jsp threw 
  exceptionjava.lang.NullPointerException    at 
  javax.faces.webapp.UIComponentTag.setupResponseWriter(UIComponentTag.java:878)    
  at 
  javax.faces.webapp.UIComponentTag.doStartTag(UIComponentTag.java:310)    
  at 
  org.apache.jsp.pages.addTask_jsp._jspx_meth_h_outputText_0(org.apache.jsp.pages.addTask_jsp:92)    
  at 
  org.apache.jsp.pages.addTask_jsp._jspService(org.apache.jsp.pages.addTask_jsp:61)If 
  I remove the JSF "h" tags then i am able to see the html text "Task Name" in 
  popup. Can anyone please help into this matter ?I require the solution 
  urgently 
  ..TIANikita-Ability 
  is what you're capable of.Motivation determines what you do.Attitude 
  determines how well you do 
  it.-Regards,Nikita 
  ShahSoftware EngineerSNS TechnologiesPhone: Tel: 
  +91-20-30582122Cell: +919372873355Website: www.snstech.comHead 
  Office: 301 | 3rd Floor | City Towers | 17 Dhole Patil Road |
  
  
  Yahoo! PhotosGot holiday prints? See 
  all the ways to get quality prints in your hands 
ASAP.
__

This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
your system manager.

This footnote also confirms that this email message has been swept
for the presence of computer viruses.
__



Popup in new window problem

2006-01-09 Thread Nikita Shah
 Hello,I am having problem using JSF tags in the popup jsf page. I have the parent page as below:   And my addTask.jsp looks like below:<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>  <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>  Task Name Now the problem is I am getting the following error on clicking the command button:SEVERE: Faces context not found. getResponseWriter will fail. Check if  the FacesServlet has been initialized at all in your web.xml.  Jan 9, 2006 5:33:40 PM org.apache.catalina.core.StandardWrapperValve invoke<
 br> 
 SEVERE: Servlet.service() for servlet jsp threw exception  java.lang.NullPointerException      at javax.faces.webapp.UIComponentTag.setupResponseWriter(UIComponentTag.java:878)      at javax.faces.webapp.UIComponentTag.doStartTag(UIComponentTag.java:310)      at org.apache.jsp.pages.addTask_jsp._jspx_meth_h_outputText_0(org.apache.jsp.pages.addTask_jsp:92)      at org.apache.jsp.pages.addTask_jsp._jspService(org.apache.jsp.pages.addTask_jsp:61)If I remove the JSF "h" tags then i am able to see the html text "Task Name" in popup.   Can anyone please help into this matter ?I require the solution urgently ..TIA  Nikita  -Ability is what you're capable of.Motivation determines what you do.Attitude determines how well you do
 it.-Regards,Nikita ShahSoftware EngineerSNS TechnologiesPhone: Tel: +91-20-30582122Cell: +919372873355Website: www.snstech.comHead Office: 301 | 3rd Floor | City Towers | 17 Dhole Patil Road |
	
		Yahoo! Photos 
Got holiday prints? See all the ways to get quality prints in your hands ASAP.

Is there any difference between binding using a Managed bean (defined in faces-config.xml) and an object,defined in backing bean class ?

2006-01-09 Thread Legolas Woodland

Hi
thank you for reading my post.
Is there any difference between binding using a Managed bean (defined in 
faces-config.xml) and an object

defined in backing bean class ?
in a tutorial i saw that author used a Managed beans to accomplish some 
jobs.

he referenced to a Managed beans by using #{Bean1.ts}
i tried and made ts in my backing bean and referenced ts like : #{page12.ts}

what is difference between this two approach.


Strange exception...

2006-01-09 Thread Marco
Hi All;I'm using netbeans 4.1 configured with myfaces framework.But i have a strange annoying exception which sometimes occurs and sometimes not.This exception does not affect the web application behaviour so everything goes fine, But i want to know why does it happens, and how can i avoid it ?
NotifyUtil::java.net.SocketException: Software caused connection abort: recv failed    at java.net.SocketInputStream.socketRead0(Native Method)    at java.net.SocketInputStream.read(SocketInputStream.java
:129)    at java.io.BufferedInputStream.fill(BufferedInputStream.java:183)    at java.io.BufferedInputStream.read1(BufferedInputStream.java:222)    at java.io.BufferedInputStream.read(BufferedInputStream.java
:277)    at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:760)    at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:711)    at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java
:725)    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:635)    at org.netbeans.modules.web.monitor.server.NotifyUtil$RecordSender.run(NotifyUtil.java:248)Thanks a lot
 


selectManyCheckbox not working within datatable

2006-01-09 Thread Matthias.Koehler








Hi,

 

I am trying to get a selectManycheckbox
to work within a datatable, as soon as I put it into the datatable the page
fails to submit and reloads itself again, All buttons, command links etc stop
working.

 

I’m using Myfaces
1.1.1 Nightly Build 12.12.2005

 

Is this known problem?Has anyone the same problem?Is there a solution or should I simply not use a selectManycheckbox within a dataTable?

 

 

Regards

 

 

Matthias Köhler


empolis GmbH
part of arvato: a Bertelsmann company
An der Autobahn

Tel. +49 (0) 5241 -
80-89635
http://www.empolis.com

[EMAIL PROTECTED]



 

 








Re: HtmlGraphicImage and width/height parameters

2006-01-09 Thread ::SammyRulez::
you have plenty of options to do that using different stylesheet files
for each supported  resolution


detect the client resolution in a Session scoped bean
detect the client resolution custom viewHandler
detect the client resolution in a filter chained before jsf rendering

first one is the easiest for me

this could be usefull also

http://myfaces.apache.org/tomahawk/stylesheet.html


2006/1/9, Nicola Benaglia <[EMAIL PROTECTED]>:
> ::SammyRulez:: ha scritto:
> > put them in css style class. Don't put presentation data in you bean ;-)
>
> My needs are to dimension an image, after having collected information
> about the resolution of the client's monitor.
> So I have to recalculate the width and height.
> CSS are not involved in this case, IMHO.
>
> Bye
> Nicola
> ---
>
> Questa mail ed eventuali suoi allegati sono strettamente confidenziali. Se
> ricevete per errore questa mail, Vi preghiamo cortesemente di cancellarla
> immediatamente e di segnalare l'errore a chi ve l'ha spedita. Se Voi non siete
> il reale destinatario di questa mail non siete autorizzati alla copia, alla
> distribuzione e alla stampa di essa ne tantomeno ad una eventuale modifica
> dei contenuti.
>
> This message and any attachments are confidential and intended solely for
> the addressees. If you receive this message in error, please delete it and
> immediately notify the sender. If the reader of this message is not the
> intended recipient, you are hereby notified that any unauthorized use,
> copying, publication, printing or dissemination is prohibited. E-mails are
> susceptible to alteration.
>


--
::SammyRulez::
http://sammyprojectz.blogspot.com


Re: HtmlGraphicImage and width/height parameters

2006-01-09 Thread Nicola Benaglia

::SammyRulez:: ha scritto:

put them in css style class. Don't put presentation data in you bean ;-)


My needs are to dimension an image, after having collected information 
about the resolution of the client's monitor.

So I have to recalculate the width and height.
CSS are not involved in this case, IMHO.

Bye
Nicola
---

Questa mail ed eventuali suoi allegati sono strettamente confidenziali. Se
ricevete per errore questa mail, Vi preghiamo cortesemente di cancellarla
immediatamente e di segnalare l'errore a chi ve l'ha spedita. Se Voi non siete
il reale destinatario di questa mail non siete autorizzati alla copia, alla
distribuzione e alla stampa di essa ne tantomeno ad una eventuale modifica
dei contenuti.

This message and any attachments are confidential and intended solely for
the addressees. If you receive this message in error, please delete it and
immediately notify the sender. If the reader of this message is not the
intended recipient, you are hereby notified that any unauthorized use,
copying, publication, printing or dissemination is prohibited. E-mails are
susceptible to alteration.


commandLink does not work within a dataTable

2006-01-09 Thread Uensal_Kara
Hi,
I have got a problem with the commandLink-components within a dataTable. The 
connected actionListener-method is never executed and the same view is 
displayed without any changes. It is a very weird problem, because a quite 
similar view with commandLinks in a dataTable does work(!) and this one not!! I 
could not find any reason why it is not working:


  

  


  

  
  
...


The generated Html-Code:


Rollenfalz


Even if the "actionListener" attribute of the commandLink-component contains a 
value that does not map to a backing bean method, there is no error thrown.

Is this known problem?
Has anyone the same problem?
Is there a solution or should I simply not use a commandLink within a dataTable?


Regards,
Ünsal


Re: HtmlGraphicImage and width/height parameters

2006-01-09 Thread ::SammyRulez::
put them in css style class. Don't put presentation data in you bean ;-)

BTW what error did you get?

2006/1/9, Nicola Benaglia <[EMAIL PROTECTED]>:
> Hi,
> I need to pass "width" and "height" parameters
> to a jsp graphicImage tag as following:
>
>  url="#{facesContext.externalContext.requestContextPath}#{cardLoader.imageUrl}"
> styleClass="card"/>
>
> I use a binding component.
>
> The bean called as this method:
>
> private HtmlGraphicImage image;
> public HtmlGraphicImage getImage() {
> image.setHeight("10.0");
> image.setWidth("10.0");
> return image;
> }
>
> But I still obtain an error with setHeight and setWidth (a String
> argument is required).
> Where do I make the error ?  10.0 is pixel, cm, inches ?
>
>
> May I pass directly the paramenters as shown here ? (I still haven't
> tested this way)
>
>  height="#{cardLoader.imageh}"
> url="#{facesContext.externalContext.requestContextPath}#{cardLoader.imageUrl}"
> styleClass="card"/>
>
> Thank you,
> Nicola
> ---
>
> Questa mail ed eventuali suoi allegati sono strettamente confidenziali. Se
> ricevete per errore questa mail, Vi preghiamo cortesemente di cancellarla
> immediatamente e di segnalare l'errore a chi ve l'ha spedita. Se Voi non siete
> il reale destinatario di questa mail non siete autorizzati alla copia, alla
> distribuzione e alla stampa di essa ne tantomeno ad una eventuale modifica
> dei contenuti.
>
> This message and any attachments are confidential and intended solely for
> the addressees. If you receive this message in error, please delete it and
> immediately notify the sender. If the reader of this message is not the
> intended recipient, you are hereby notified that any unauthorized use,
> copying, publication, printing or dissemination is prohibited. E-mails are
> susceptible to alteration.
>


--
::SammyRulez::
http://sammyprojectz.blogspot.com


HtmlGraphicImage and width/height parameters

2006-01-09 Thread Nicola Benaglia

Hi,
I need to pass "width" and "height" parameters
to a jsp graphicImage tag as following:

url="#{facesContext.externalContext.requestContextPath}#{cardLoader.imageUrl}" 
styleClass="card"/>


I use a binding component.

The bean called as this method:

private HtmlGraphicImage image;
public HtmlGraphicImage getImage() {
image.setHeight("10.0");
image.setWidth("10.0");
return image;
}

But I still obtain an error with setHeight and setWidth (a String 
argument is required).

Where do I make the error ?  10.0 is pixel, cm, inches ?


May I pass directly the paramenters as shown here ? (I still haven't 
tested this way)


height="#{cardLoader.imageh}" 
url="#{facesContext.externalContext.requestContextPath}#{cardLoader.imageUrl}" 
styleClass="card"/>


Thank you,
Nicola
---

Questa mail ed eventuali suoi allegati sono strettamente confidenziali. Se
ricevete per errore questa mail, Vi preghiamo cortesemente di cancellarla
immediatamente e di segnalare l'errore a chi ve l'ha spedita. Se Voi non siete
il reale destinatario di questa mail non siete autorizzati alla copia, alla
distribuzione e alla stampa di essa ne tantomeno ad una eventuale modifica
dei contenuti.

This message and any attachments are confidential and intended solely for
the addressees. If you receive this message in error, please delete it and
immediately notify the sender. If the reader of this message is not the
intended recipient, you are hereby notified that any unauthorized use,
copying, publication, printing or dissemination is prohibited. E-mails are
susceptible to alteration.