Problem with custom attributes with namespace

2011-10-27 Thread Adrian Mitev
Hi all! I have an issue with facelets and attributes with namespace.
I have to write code like this:
content
in order to satisfy one javascript api. However facelets parser throws an
exception because it cannot find taglib named "ex".
Idea how to fix that?

-- 
Although nobody can come back and make a new start, anyone can start now and
make a new end


Re: JSF application very slow with HTTPS

2011-04-11 Thread Adrian Mitev
Have you turned on the page compression of your app server?

2011/4/11 Walter Mourão 

> As far as I know, the JSF does not know anything about https... it is
> handled by the servlet container (Tomcat, Jetty...).
>
> Walter Mourão
> http://waltermourao.com.br
> http://arcadian.com.br
> http://oriens.com.br
>
>
>
> On Mon, Apr 11, 2011 at 8:49 AM, Michael Heinen  >wrote:
>
> >  Hi,
> >
> > My JSF application is very slow via HTTPS.
> > Some parts are 15 times slower compared to HTTP
> >
> > I measured the response times of the xhtml requests with Fiddler (locally
> > and over network)
> >
> > Result for a very large page (512 KB) with a big datatable without ajax
> > usage:
> > --  local access with HTTP:  1 sec
> > --  local access with HTTPS: 15-16 sec
> >
> > Other pages are factor 2-4 slower, with or without ajax.
> > The time is spent in htmlTableRenderer.encodeInnerHtml. Data is of course
> > available, there is no additional backend access.
> >
> > The simple download of xhtml files or other files is NOT (noticeable)
> > slower.
> > Other non JSF applications running on the same servers are also not
> slower
> > with HTTPS.
> >
> > Before I start profiling:
> > - Does anybody have an idea where I should look at?
> > - Are there any known JSF or webApp settings that influence https
> > performance?
> >
> > Environment:
> >  Facelets
> >  myFaces 1.2.9
> >  tomahawk12_1.1.10
> >  richfaces 3.3.3
> >  tomcat 6.0.29
> >  jdk 1.6.0_23
> >
> > Regards,
> > Michael
> >
>



-- 
Although nobody can come back and make a new start, anyone can start now and
make a new end


Re: Loading Gif Animated While Loading A Jsf Page

2010-04-02 Thread Adrian Mitev
This is kinda tricky. I do it using jQuery blockUI plugin and attach
script to onclick of every link/button on the page that shows the
blockui element.

On Fri, Apr 2, 2010 at 2:12 PM, vale_java_dev
 wrote:
>
> Hi!
>
> I need help!
> How can I load a gif animated image while a jsf page is forwarded to
> onother?
>
> I'm using
>
> 
>
>        
>        
>             
> ${pageContext.request.contextPath}/resources/images/onLoad/loading.gif
>        
> 
>
> but during the forward this script doesn't work!
>
> Thanks in advance for any suggestions!
>
> Vale
> --
> View this message in context: 
> http://old.nabble.com/Loading-Gif-Animated-While-Loading-A-Jsf-Page-tp28117980p28117980.html
> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>
>



-- 
Although nobody can come back and make a new start, anyone can start
now and make a new end


Re: jsf backward navigation (validation) conflict

2009-09-23 Thread Adrian Mitev
Use immediate=true

On Wed, Sep 23, 2009 at 5:55 PM,   wrote:
> My Jsf files do now navigate backwards because of the validation rules i have
> put on the form.
>
> Is there a workaround ?
>
>



-- 
Although nobody can come back and make a new start, anyone can start
now and make a new end


Re: [JSF] How to execute action directly from link (like struts action)

2009-04-21 Thread Adrian Mitev
On Tue, Apr 21, 2009 at 11:53 AM, Anton Gavazuk  wrote:
> Hi Matthias,
>
> thank you for the answer,
>
>>>One option could be doing some sort of logic (e.g. extracting req
>>>param) in the constructor
> that was my point - I dont like this way: in case of an exception (no object
> with Id found)/an alternative navigationc case  I would need call from
> constructor (postCreate method) facesContext..
> navigateMethod - its ugly.
>
> will look on this lib.
> http://jsf-comp.sourceforge.net/components/on-load/index.html
>
>

You could also take a look at pretty faces - http://ocpsoft.com/prettyfaces/

-- 
Although nobody can come back and make a new start, anyone can start
now and make a new end


Re: GZipping JSF Response

2009-04-17 Thread Adrian Mitev
What application server do you use? Websphere?

On Fri, Apr 17, 2009 at 2:38 PM, Madhav Bhargava
 wrote:
> Hi All,
>
>
>
> I have a heavy page and I am trying to reduce the response size by gzipping
> the Http Response going back to the client from the server.
>
> Since I cannot install mod_deflate/mod_gzip on IBM HTTP server I have tried
> to use the GZipFilter (provided by ehcache) and I also tried to create my
> own custom filter.
>
>
>
> The contents are getting zipped but when the filter writes the response, it
> prints the compressed response to the console instead of sending the
> compressed response to the browser. Can gzipping work with JSF pages?
>
>
>
> Thanks & Regards,
>
> Madhav
>
> ext: 36110
>
>
>
>  CAUTION - Disclaimer *
> This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely
> for the use of the addressee(s). If you are not the intended recipient,
> please
> notify the sender by e-mail and delete the original message. Further, you
> are not
> to copy, disclose, or distribute this e-mail or its contents to any other
> person and
> any such actions are unlawful. This e-mail may contain viruses. Infosys has
> taken
> every reasonable precaution to minimize this risk, but is not liable for any
> damage
> you may sustain as a result of any virus in this e-mail. You should carry
> out your
> own virus checks before opening the e-mail or attachment. Infosys reserves
> the
> right to monitor and review the content of all messages sent to or from this
> e-mail
> address. Messages sent to or from this e-mail address may be stored on the
> Infosys e-mail system.
> ***INFOSYS End of Disclaimer INFOSYS***



-- 
Although nobody can come back and make a new start, anyone can start
now and make a new end


Re: Trinidad Event handling

2009-04-05 Thread Adrian Mitev
On Sun, Apr 5, 2009 at 12:27 PM, alex01130  wrote:
> Hi,
>
> I'd like to handle an "onfocus"-Event of  a trinidatd input text field.
>
> I tried this:
>
>  partialTriggers="timer"  onfocus="#{customerBean.stopUpdate}" columns="16"
> />
>
> public void stopUpdate(javax.faces.event.ActionEvent ae){
>     updateTimer  = false;
> }
>
> It doesn't work, but renders rubbish on the page.
>
> How can I handle this event server side?
>
> Thanks in advance
>
> alex

It's because onfocus is client side event. You can add javascript that
submits the form and calls action (like clicking a command link)

-- 
Although nobody can come back and make a new start, anyone can start
now and make a new end


Re: Multi file upload component

2008-10-15 Thread Adrian Mitev
Or maybe richfaces fileupload -
http://livedemo.exadel.com/richfaces-demo/richfaces/fileUpload.jsf

On Wed, Oct 15, 2008 at 2:42 PM, Hazem Saleh <[EMAIL PROTECTED]> wrote:
> You can develop your own client applet.
> For this you can use Apache HTTP Client library, it is a good one!
>
> On Wed, Oct 15, 2008 at 1:19 PM, Andreas Niemeyer
> <[EMAIL PROTECTED]> wrote:
>>
>> Hi,
>>
>> Is there a component available which enables multi uploads? I would like
>> to use tomahawk or trinidad components if available.
>>
>> Solutions often use flash for that, what kind of integration or idea could
>> be used for that?
>>
>>
>> Thank you for some hints.
>>
>>
>> Many regards,
>> Andreas
>>
>
>
>
> --
> Hazem Ahmed Saleh Ahmed
>
> Author of (The Definitive Guide to Apache MyFaces and Facelets):
> http://www.amazon.com/Definitive-Guide-Apache-MyFaces-Facelets/dp/1590597370
>
> Web blog: http://www.jroller.com/page/HazemBlog
>
> [Web 2.0] Google Maps Integration with JSF:
> http://code.google.com/p/gmaps4jsf/
>



-- 
Although nobody can come back and make a new start, anyone can start
now and make a new end


Re: AJAX?

2008-09-20 Thread Adrian Mitev
Richfaces is the former ajax4jsf

On Sat, Sep 20, 2008 at 11:10 PM, Bjørn T Johansen <[EMAIL PROTECTED]> wrote:

> Ok, thx
>
> The only problem, and why I mentioned RichFaces; I can't seem to find any
> Ajax4jsf to download... I can find the
> download page for ajax4jsf at jboss but no files to download?
>
>
> BTJ
>
> On Sat, 20 Sep 2008 22:01:49 +0200
> "Jan-Kees van Andel" <[EMAIL PROTECTED]> wrote:
>
> > Then Ajax4jsf is your friend. It gives you a simple, yet flexible way to
> > "Ajaxian" existing components.
> >
> > Regards,
> >
> > Jan-Kees
> >
> >
> > 2008/9/20 Bjørn T Johansen <[EMAIL PROTECTED]>
> >
> > > My main use is to update fields based on selections in my form
> > >
> > > BTJ
> > >
> > > On Sat, 20 Sep 2008 10:14:39 -0700
> > > Richard Yee <[EMAIL PROTECTED]> wrote:
> > >
> > > > What are you trying to do with AJAX? Most Jsf libraries have AJAX
> > > > enabled components. With Trinidad you use
> > > > What they call Partial Page Refresh PPR to update components with new
> > > > values.
> > > >
> > > > -Richard
> > > >
> > > > Sent from my iPhone
> > > >
> > > > On Sep 20, 2008, at 4:46 AM, Bjørn T Johansen <[EMAIL PROTECTED]>
> wrote:
> > > >
> > > > > Is RichFaces the way to go to get AJAX support for Myfaces or is
> > > > > there other framework you recommend?
> > > > >
> > > > >
> > > > > Regards,
> > > > >
> > > > > BTJ
> > > > >
> > > > > --
> > > > > ---
> > > > > ---
> > > > > ---
> > > > > ---
> > > > > ---
> > > > > ---
> > > > > ---
> > > > > ---
> > > > > ---
> > > > >
> 
> > > > > Bjørn T Johansen
> > > > >
> > > > > [EMAIL PROTECTED]
> > > > > ---
> > > > >
> 
> > > > > Someone wrote:
> > > > > "I understand that if you play a Windows CD backwards you hear
> > > > > strange Satanic messages"
> > > > > To which someone replied:
> > > > > "It's even worse than that; play it forwards and it installs
> Windows"
> > > > > ---
>



-- 
Although nobody can come back and make a new start, anyone can start now and
make a new end


Re: Remove or move Javascript and blank lines

2008-01-14 Thread Adrian Mitev
If you develop an online store you may want your goods pages to be
indexed...

2008/1/14, Simon Kitching <[EMAIL PROTECTED]>:
>
>  Simon Kitching <[EMAIL PROTECTED]> schrieb:
> >  Umar Zubair <[EMAIL PROTECTED]> schrieb:
> > > I am using MyFaces with Tomahawk. My application is in production. Web
> > > crawlers often come to my site to index pages. So html code produced
> by the
> > > application should be Search engine optimized.
> > >
> > >
> > >
> > > The problem is actual content of my page starts after rendering
> javascript
> > > having a lot of blank lines both put in by MyFaces. I want to put
> actual
> > > content of my page on start of html to help crawlers to read actual
> content
> > > efficiently.
> > >
> > >
> > >
> > > Please let me know how can I get rid of incline javascript or atleast
> move
> > > javascript after actual content of page?  And how can I remove blank
> lines
> > > generated just after java scripts?
> >
> > I doubt very much that moving the javascript is possible. In many cases
> it really needs to be in a specific location in the file to work properly.
> >
> > Deleting blank lines can be done fairly easily by writing a
> ServletFilter. Or you could submit a patch to the tomahawk ExtensionsFilter
> to do this. Or perhaps the htmltidy filter (tidy.sourceforge.net) might do
> what you need.
>
> And by the way, it doesn't seem very sensible to allow the pages of a JSF
> application to get indexed. JSF applications are dynamic, user-specific,
> interactive things. Indexing these just doesn't make sense. I suggest using
> a robots.txt file to prevent robots from looking at your app at all.
>
> Regards,
> Simon
>
>


-- 
Regards
Adrian Mitev


Re: NoClassDefFoundError when using myfaces in my webapp

2007-12-08 Thread Adrian Mitev
The jstl jar is missing.

2007/12/8, Burghard Britzke <[EMAIL PROTECTED]>:
>
> NoClassDefFoundError means an erronous class path in every case. check
> if the library file servlet-api.jar is in your lib folder.
>
> Am 08.12.2007 um 07:46 schrieb ying lcs:
>
> > Hi,
> >
> > I am trying to use myfaces in my web application.  i have added all
> > the libraries in the 'lib' of the myfaces distribution.
> >
> > But I am still getting the following error:  Can you please tell me
> > what am i missing?
> >
> > Thank you.
> >
> >
> > java.lang.NoClassDefFoundError: javax/servlet/jsp/jstl/core/Config
> >at
> > org
> > .apache
> > .myfaces
> > .application
> > .jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java:249)
> >at
> > com
> > .sun
> > .rave
> > .web
> > .ui.appbase.faces.ViewHandlerImpl.renderView(ViewHandlerImpl.java:320)
> >at
> > org
> > .apache
> > .myfaces
> > .lifecycle
> > .RenderResponseExecutor.execute(RenderResponseExecutor.java:41)
> >at
> > org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:
> > 132)
> >at javax.faces.webapp.FacesServlet.service(FacesServlet.java:
> > 138)
> >at
> > org
> > .apache
> > .catalina
> > .core
> > .ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:
> > 290)
> >at
> > org
> > .apache
> > .catalina
> > .core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> >at
> > com.sun.webui.jsf.util.UploadFilter.doFilter(UploadFilter.java:267)
> >at
> > org
> > .apache
> > .catalina
> > .core
> > .ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:
> > 235)
> >at
> > org
> > .apache
> > .catalina
> > .core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> >at
> > org
> > .apache
> > .catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:
> > 233)
> >at
> > org
> > .apache
> > .catalina.core.StandardContextValve.invoke(StandardContextValve.java:
> > 175)
> >at
> > org
> > .apache
> > .catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
> >at
> > org
> > .apache
> > .catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
> >at
> > org
> > .apache
> > .catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:
> > 109)
> >at
> > org
> > .apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:
> > 263)
> >at
> > org
> > .apache.coyote.http11.Http11Processor.process(Http11Processor.java:
> > 844)
> >at org.apache.coyote.http11.Http11Protocol
> > $Http11ConnectionHandler.process(Http11Protocol.java:584)
> >at org.apache.tomcat.util.net.JIoEndpoint
> > $Worker.run(JIoEndpoint.java:447)
> >at java.lang.Thread.run(Thread.java:619)
> > D
>
>


-- 
Regards
Adrian Mitev


Re: How is it possible to build a modular Project with JSF or other approach

2007-11-17 Thread Adrian Mitev
Maybe you should look at portals

2007/11/17, NABA <[EMAIL PROTECTED]>:
>
> Hi Neil...
> At first, I'm student and my english is not so good..
> I m trying to understand how is it possible to develop software modular.
> Which technics are given!
> In my experience: mostly when big software-projects starts the people
> try to get a view about the whole problem!
> And the software-deveopment-process starts to develop the system with
> the whole extent of complexity and difficutlties.
> You will have so many vantages when you separate your system in modules.
> It is not always possible, but when it is possible, it should be done.
> At this time I'm working on a project. We develop a system which shold
> help industries to manage facilities.
> > 1) What platform are you using/considering?  Tomcat?  JBoss?
> >
> I m using
> MyFaces 1.5
> JBoss 4.2.X
> > 2) How much do you understand about servlets, JSPs and web applications?
> >
> This is my first job, who I m working on a web-project!!
> I never didn't  work with servlets!! But I understand basically how
> jsf-works and I m working with it.
> I m working with EJBs3.0 too.
> > 3) What other technologies do you know?  What's "wrong" with them?
> >
> All my jobs before, they was softwaredeveloping for standalone
> applications. c++, java, vb and so on..
> The approach of stanalone is not the same like web-projects.
> > 4) What are you trying to do?  Are you a manager?  A professional
> > developer?  A student?
> >
> I would like be professional developer and I m working on it :-)
> I'm trying to undersatnd how is it possible to implement a System
> separated in modules. Which technics can be used there.
> I'm not looking for a system architecture. It is clear, that the system
> architecture, should implement this. But which technics can be used to
> implement such architecture.
>
> I hope I described my request so that you can understand it.
>
> thx for help..
> naba
>
>
>
> > A useful place to start would be googling for "jsp tutorial" or "jsp
> > tutorial sun" or "servlet tutorial" or "JSF tutorial sun".
> >
> > Good luck,
> >
> > Neil
> >
> > -Original Message-
> > From: NABA [mailto:[EMAIL PROTECTED]
> > Sent: November 16, 2007 11:21 AM
> > To: MyFaces Discussion
> > Subject: How is it possible to build a modular Project with JSF or other
> > approach
> >
> > Hi..
> > I'm looking for a modular system architecture.
> > When I start a JSF-project, the framework gives me the possibility to
> > develop a software in one package.
> > How is it possible to start a project that can be a part of system with
> > different modules.
> > Example: I have a base module. When it starts, this base module looks in
> >
> > my deploy folder for other war-projects and when it finds
> > a certain war file, it offers the possiblity to starts this project.
> > I haven't any idea how it can be possible and where should I look for
> > more information and which technic can be used to make it possible.
> > I'm deeply grateful for any motivations and ideas!
> > thx
> > naba
> >
> >
>
>


-- 
Regards
Adrian Mitev


Re: How know witch data in changed

2007-11-12 Thread Adrian Mitev
Why don't you use valueChangeListener ?

2007/11/12, [EMAIL PROTECTED] <[EMAIL PROTECTED]>:
>
>  Hello, I need to know witch data of a view is changed. Is there a way to
> do that with no specific code? I'm going to do it in a PhaseListener that
> compare data of each component before and after "apply Request" phase.
>
>
>
> What do you think?
>
>
>
> Any suggestion is Appreciated.
>
>
>
> Regards
>
> Mario
>
>
>
> --
> This message is for the designated recipient only and may contain
> privileged, proprietary, or otherwise private information. If you have
> received it in error, please notify the sender immediately and delete the
> original. Any other use of the email by you is prohibited.
>
>


Re: Perfomance problem with JSF

2007-09-27 Thread Adrian Mitev
When you load data from ldap cache it in the request, next time the getter
is invoked check if this object exists in the request scope if it does,
don't load it again.

2007/9/27, Angel Miralles Arevalo <[EMAIL PROTECTED]>:
>
> Hi everybody, I have a perfomance problem with JSF. I have a java arraList
> attribute. This attribute have getter and setter methods. It is used to
> store LDAP users, so I have to access LDAP in getter method.
>
> Because of the lifecycle the getter is invoked twice, so LDAP access is
> twice too. The problem is my LDAP has around 15000 users. My web application
> is getting very slow.
>
> How can I customize this behaviour??
>
> Thanks in advanced.
>
> --
>
> Sé un Mejor Amante del Cine
> ¿Quieres saber cómo? ¡Deja que otras personas te ayuden!
> 
> .
>


Re: Hi All ,Is it possibility Pipe(|) or Divider in DataScroller Pagination.....

2007-09-03 Thread Adrian Mitev
Extend the renderer class of the data scroller or use JavaScript to insert
the pipes :).

2007/9/3, inalasuresh <[EMAIL PROTECTED]>:
>
> Hi Folks, I am new to Jsf / Myfaces. is there possibility to get the Pipe
> or Divider in DataScroller? i am using datascroller in that scroller i want
> to use pipe(|) symbol. in jsf/myfaces how to implement that. If any body
> know the solution for this plz send rep as soon as possible Now onto my
> question..I would like to have a divider ("|"), but I don't know how to
> implement it. I know it is possible to do a border only on one side, but
> then one always ends up after the "Next" button. Is there any way to do
> this? Thanks! i am using this attribute in the datascroller
> paginatorColumnClass="pipe" .pipe{
> background-image:url(../images/divider.gif); background-repeat:repeat-y; }
> But it not a correct approach and it willn't working properly e.g.:
> Like such type of pipe symbol(|) i want to use in between those number. < 1
> | 2 | 3 | 4| 5 | > So plz Kindly response my request.
> --
> View this message in context: Hi All ,Is it possibility Pipe(|) or Divider
> in DataScroller 
> Pagination.
> Sent from the MyFaces - Users mailing list 
> archiveat
> Nabble.com.
>


Re: Clustering MyFaces application with Tomcat

2007-08-28 Thread Adrian Mitev
When the reponse is rendered jsf serializes the components tree state in
order to be restored on postback and releases the uicomponent tree to free
the memory. If you have session scoped reference to the tree jsf releases it
but it cannot be cleared by the GC because you "hold" it in your session
scoped bean.

2007/8/28, Svilen Ivanov <[EMAIL PROTECTED]>:
>
> Adrian,
>
> Thank you for your reply.
>
> Do you mean by "you don't allow jsf to clear the tree" - the tree of
> UI components or the values stored in the UI components that are
> bound? In the latter case I noticed that bound components in session
> bean persist their input values until I manually reset them (as
> described here [1]. Am I understanding you correctly?
>
> Regards,
> Svi
>
>
> [1] http://www.mail-archive.com/users@myfaces.apache.org/msg40105.html
>
>
> 2007/8/28, Adrian Mitev <[EMAIL PROTECTED]>:
> > Binding to jsf components should be done using request scoped beans only
> > (with session scope bean you don't allow jsf to clear the tree after the
> > request is processed).
> >
> > 2007/8/27, Svilen Ivanov < [EMAIL PROTECTED]>:
> > > I'm trying to cluster a certain MyFaces ( 1.1.5, tomahawk 1.1.6)
> > > application in Tomcat 5.5.20. The applications heavily relies on
> > > session beans which use ListDataModel and HtmlDataScroller as
> > > properties. When I setup Tomcat to replicate sessions I got
> > > NotSerializableException for HtmlDataScroller.
> > >
> > > As far as I understood from MyFaces FAQ [2] list data model is not
> > > serializable and may be marked "transient". Some guys recommend to
> > > build new data model out of a list [1] each time data model is
> > > requested. However I couldn't find how to solve the problem with
> > > HtmlDataScroller.
> > >
> > > My initial idea is to subclass MyFaces classes I use in the session
> > > beans and make them implement Serializable interface. How does this
> > > sound?
> > >
> > > Also I have bindings of input controls (HtmlInputText,
> > > HtmlSelectOneRadio) in these session beans. Are they also stateless as
> > > ListDataModel?
> > >
> > > I would really appreciate if you share your experience with clustering
> > > MyFaces application as well or if you point me towards resources on
> > > the Internet that might help
> > >
> > > Regards,
> > > Svilen
> > >
> > > [1]
> > http://www.mail-archive.com/users@myfaces.apache.org/msg38166.html
> > > [2] http://wiki.apache.org/myfaces/FAQ
> > >
> > > --
> > > Svilen Ivanov
> > > http://svilen-online.blogspot.com
> > >
> > > There is no dark side of the moon really.
> > > Matter of fact it's all dark.
> > >
> >
> >
>
>
> --
> Svilen Ivanov
> http://svilen-online.blogspot.com
>
> There is no dark side of the moon really.
> Matter of fact it's all dark.
>


Re: Clustering MyFaces application with Tomcat

2007-08-27 Thread Adrian Mitev
Binding to jsf components should be done using request scoped beans only
(with session scope bean you don't allow jsf to clear the tree after the
request is processed).

2007/8/27, Svilen Ivanov <[EMAIL PROTECTED]>:
>
> I'm trying to cluster a certain MyFaces (1.1.5, tomahawk 1.1.6)
> application in Tomcat 5.5.20. The applications heavily relies on
> session beans which use ListDataModel and HtmlDataScroller as
> properties. When I setup Tomcat to replicate sessions I got
> NotSerializableException for HtmlDataScroller.
>
> As far as I understood from MyFaces FAQ [2] list data model is not
> serializable and may be marked "transient". Some guys recommend to
> build new data model out of a list [1] each time data model is
> requested. However I couldn't find how to solve the problem with
> HtmlDataScroller.
>
> My initial idea is to subclass MyFaces classes I use in the session
> beans and make them implement Serializable interface. How does this
> sound?
>
> Also I have bindings of input controls (HtmlInputText,
> HtmlSelectOneRadio) in these session beans. Are they also stateless as
> ListDataModel?
>
> I would really appreciate if you share your experience with clustering
> MyFaces application as well or if you point me towards resources on
> the Internet that might help
>
> Regards,
> Svilen
>
> [1] http://www.mail-archive.com/users@myfaces.apache.org/msg38166.html
> [2] http://wiki.apache.org/myfaces/FAQ
>
> --
> Svilen Ivanov
> http://svilen-online.blogspot.com
>
> There is no dark side of the moon really.
> Matter of fact it's all dark.
>


Re: Browser Back Button

2007-08-07 Thread Adrian Mitev
Is this working on all browsers?

2007/8/7, Rene Guenther <[EMAIL PROTECTED]>:
>
> Hi Sergio,
>
> we use on every JSF page the following javascript code:
>
> 
> history.forward();
> 
>
> When the user pushes back button he is automatically
> forwarded again.
>
> Just a workaround though.
>
> Regards
> Rene
>
> On Mon, 06 Aug 2007 15:15:31 +0100
>   Escalada Sergio <[EMAIL PROTECTED]> wrote:
> >Hello.
> >I am using MyFaces 1.1.5, Tomahawk 1.1.6 in my WEB
> >Aplication, and i
> > have a requirement mandatory to disable the browser back
> >button while the user is interacting with the aplication.
> >The requirement is really serious and compromise the
> >usability of the aplication, can anyone tell me if it is
> >possible to do anything to avoid the use of the browser
> >back button?, or at least to control the use of it trying
> >to avoid the consecuences it carry.
> >
> >Thanks in advance, sorry for my english.
>
>


Re: Eclipse Bug ID for Faclets Support

2007-08-07 Thread Adrian Mitev
Exadel Studio is now free and it offers full facelets support

2007/8/7, Wolf Benz <[EMAIL PROTECTED]>:
>
> Just voted
> +1 for motivating people to go there.
> I also posted a extra comment, apparently currently it's scheduled for WTP
> v3.
> I think it would be easy to include it earlier in one if the
> incremental v2 releases.
> (as all tech is already there & working for JSP)
> -Wolf
>
> On 8/7/07, David Delbecq <[EMAIL PROTECTED]> wrote:
> > Could be useful, indeed :)
> >
> > En l'instant précis du 07/08/07 08:35, Burghard Britzke s'exprimait en
> > ces termes:
> > > There is a bug listet in Eclipse Bugzilla for faclets code completion
> > > in their xhtml editor. you are invited to vote for it.
> > >
> > > https://bugs.eclipse.org/bugs/show_bug.cgi?id=192393
> >
> >
> > --
> > David Delbecq
> > Institut Royal Météorologique
> > Ext:518
> >
> >
>


Re: t:datascroller + ajax

2007-07-29 Thread Adrian Mitev
RichFaces project got ajax scroller.

2007/7/30, kewldude <[EMAIL PROTECTED]>:
>
>
> Was there a successful implementation of using the tomahawk datascroller +
> ajax? Something like clicking the page number of the scroller and only the
> data table changed and not the whole page is reloaded...
> I'm trying to search the forum and it seems there are difficulties in
> doing
> so. Can someone provide more clues or suggestions? Thanks.
> --
> View this message in context:
> http://www.nabble.com/t%3Adatascroller-%2B-ajax-tf4167887.html#a11857824
> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>
>


Re: [ANNOUNCEMENT] New sandbox component -- roundedDiv

2007-07-08 Thread Adrian Mitev

Nice!

2007/7/8, Andrew Robinson <[EMAIL PROTECTED]>:


New component available in SVN called roundedDiv.

See the documentation for more information:

http://myfaces.apache.org/sandbox/roundedDiv.html

TinyURL:
http://tinyurl.com/38nrk9

-Andrew



Re: How to implement a vertical splitter in a data table

2007-06-10 Thread Adrian Mitev

I don't see how it's possible with t:dataTable.Probably two agglutinated
tables implemented using probably t:dataList.

2007/6/10, Madhav Bhargava <[EMAIL PROTECTED]>:


Hi All,

I have a requirement in which i need to implement a vertical splitter in a
data table. This vertical splitter will divide the data table into 2 parts.
Each part of the data table will have a horizontal scroll. The user can keep
one side of the data table as it is and scroll horizontally on the other
side of the data table.

I am not sure if it can be implemented using t:datatable. Any help will be
appreciated.

Thanks,
Madhav

--
When I tell the truth, it is not for the sake of convincing those who do
not know it, but for the sake of defending those that do


Re: PDF component -> rendering for download

2007-06-03 Thread Adrian Mitev

JBoss seam has such feature.

2007/6/1, Erlend Hamnaberg <[EMAIL PROTECTED]>:


Hello.

I need to create a component that can render a PDF file from a given
model object.
The pdf needs to be written to the response, to be ready to be
downloaded.
I might for instance use iText for this.

How can i do this? Can someone put me in the right direction?


Greetings

Erlend




Re: different sessions within same brower using tabs...

2007-05-08 Thread Adrian Mitev

jboss seam solves that problem.

2007/5/9, Jorge Vásquez <[EMAIL PROTECTED]>:


Thanks Simon,
Good beginning, but how can I force the creation of a new session upon
some
received action.  Should this handling be some API offered by MyFaces or
shall it be responsibility of the container, nevertheless solutions bound
to
a container aren't the ideal...

Regards,
JV

-Mensaje original-
De: Simon Kitching [mailto:[EMAIL PROTECTED]
Enviado el: martes, 08 de mayo de 2007 17:01
Para: MyFaces Discussion
Asunto: Re: different sessions within same brower using tabs...

Jorge Vásquez wrote:
> Regards to all,
>
> How can I force the creation of a new session when the user tries to
> access the same application within a tabbing-enabled browser like
> Firefox but logging with a different username.

This recent thread discusses the same issue:


http://www.nabble.com/force-to-start-a-new-servlet-session-tf3656420.html#a1
0245381





Re: double click issue in Firefox...

2007-05-06 Thread Adrian Mitev

You have to add the component to a customs taglib.xml in order to use it
with facelets.

2007/5/7, Jorge Vásquez <[EMAIL PROTECTED]>:


 Thanks Adrian.

Do I need to change the web.xml or add some specific taglib.xmlconfiguration 
file in order to use this component.  Sorry for asking more
questions but I really haven't seen any link on the web detailing
installation of shale under a myfaces project.



Regards,

JV


 ------

*De:* Adrian Mitev [mailto:[EMAIL PROTECTED]
*Enviado el:* viernes, 04 de mayo de 2007 19:34
*Para:* MyFaces Discussion
*Asunto:* Re: double click issue in Firefox...



1. Shale project has the idea to separate the different modules in the
different jar. So what you have to do is to download shale-core only and put
it in the web-inf\lib directory. For more info about the component see the
wiki [1]

2. The solution will work on facelets too. And there are no performance
issue with that, but you should beware if you use ajax requests.

[1] http://wiki.apache.org/shale/Token

2007/5/4, Jorge Vásquez <[EMAIL PROTECTED]>:

Thanks Adrian,



For option 1 I have the following doubt:

   1. What exactly are my requirements in order to use the s:token
   component from shale, is there some documentation on this integration?  I
   just want that component and nothing more from shale, is there like a
   reduced library and simplified integration mechanism…I'd really like to
   reduce my dependencies with other frameworks as much as possible.

For option 2 I have the following doubts:

   1. Does this solution that you posted work with Facelets too?
   2. Would there be some considerable performance issues on
   implementing this approach?  I see that it affects all forms rendered on the
   application…



Regards and thanks again,

JV


 ------

*De:* Adrian Mitev [mailto:[EMAIL PROTECTED]
*Enviado el:* jueves, 03 de mayo de 2007 16:13
*Para:* MyFaces Discussion
*Asunto:* Re: double click issue in Firefox...



To prevent the double submit you could use a server side solution like the
token synchronizer pattern implemented as a shale component called s:token
from shale-core lib that you can get from here [1] or to implement it
yourself [2]

[1] http://shale.apache.org/
[2] http://jroller.com/page/mert?entry=jsf_preventing_double_form_submit

2007/5/3, Jorge Vásquez <[EMAIL PROTECTED] >:

Regards to all,

During some testing I found that some unpredictable errors occur with
Firefox whenever a user clicks twice rapidly either on a commandLink or on a
commandButton.  What happens is that the respective method modifies some
internal state the first time but then when it gets executed again it founds
inconsistencies that cause an exception to be thrown.  Adding exception
controls to each method for this very specific scenario would result
terribly cumbersome, so I am writing to see if somebody out there has had a
similar problem and how have you managed to solve it.  I played the other
day for a while with JavaScript events but unfortunately those double click
events are uncontrollable when there's also the presence of onclick events,
since most of the time double clicks are also interpreted as simple clicks
and that turns out to be a huge chaos.

I also tested this behaviour in IE7 (for which I must say that at last
Microsoft launched a descent browser) and there's no problem.  Apparently
this browser blocks double clicks.

Thanks in advance to anybody that could give me some advice…

JV









Re: expanding nodes of Tomahawk tree2 during page loading

2007-05-05 Thread Adrian Mitev

You have to use TreeModel with combination of TreeSate

2007/5/4, sed <[EMAIL PROTECTED]>:


Hi all,

  How can I extant all nodes of Tomahawk tree2 component during first
loading of page?

  Here is example of expanding by click on link:
http://www.irian.at/myfaces/tree2ExpandAll.jsf. But I need have all
nodes expanded on the first time.



Re: [ApacheCon EU] Apache MyFaces day tutorial

2007-05-05 Thread Adrian Mitev

Thanks for the presentation.

2007/5/4, Matthias Wessendorf <[EMAIL PROTECTED]>:


Hi,

as you may know, Gerald and I were doing a one day training on
JSF/Apache MyFaces
The slides are available here:

http://people.apache.org/~matzew/amsterdam.zip

enjoy!

-Matthias

--
Matthias Wessendorf
http://tinyurl.com/fmywh

further stuff:
blog: http://jroller.com/page/mwessendorf
mail: mwessendorf-at-gmail-dot-com



Re: double click issue in Firefox...

2007-05-04 Thread Adrian Mitev

1. Shale project has the idea to separate the different modules in the
different jar. So what you have to do is to download shale-core only and put
it in the web-inf\lib directory. For more info about the component see the
wiki [1]

2. The solution will work on facelets too. And there are no performance
issue with that, but you should beware if you use ajax requests.

[1] http://wiki.apache.org/shale/Token

2007/5/4, Jorge Vásquez <[EMAIL PROTECTED]>:


 Thanks Adrian,



For option 1 I have the following doubt:

   1. What exactly are my requirements in order to use the s:token
   component from shale, is there some documentation on this integration?  I
   just want that component and nothing more from shale, is there like a
   reduced library and simplified integration mechanism…I'd really like to
   reduce my dependencies with other frameworks as much as possible.

For option 2 I have the following doubts:

   1. Does this solution that you posted work with Facelets too?
   2. Would there be some considerable performance issues on
   implementing this approach?  I see that it affects all forms rendered on the
   application…



Regards and thanks again,

JV


 ------

*De:* Adrian Mitev [mailto:[EMAIL PROTECTED]
*Enviado el:* jueves, 03 de mayo de 2007 16:13
*Para:* MyFaces Discussion
*Asunto:* Re: double click issue in Firefox...



To prevent the double submit you could use a server side solution like the
token synchronizer pattern implemented as a shale component called s:token
from shale-core lib that you can get from here [1] or to implement it
yourself [2]

[1] http://shale.apache.org/
[2] http://jroller.com/page/mert?entry=jsf_preventing_double_form_submit

2007/5/3, Jorge Vásquez <[EMAIL PROTECTED]>:

Regards to all,

During some testing I found that some unpredictable errors occur with
Firefox whenever a user clicks twice rapidly either on a commandLink or on a
commandButton.  What happens is that the respective method modifies some
internal state the first time but then when it gets executed again it founds
inconsistencies that cause an exception to be thrown.  Adding exception
controls to each method for this very specific scenario would result
terribly cumbersome, so I am writing to see if somebody out there has had a
similar problem and how have you managed to solve it.  I played the other
day for a while with JavaScript events but unfortunately those double click
events are uncontrollable when there's also the presence of onclick events,
since most of the time double clicks are also interpreted as simple clicks
and that turns out to be a huge chaos.

I also tested this behaviour in IE7 (for which I must say that at last
Microsoft launched a descent browser) and there's no problem.  Apparently
this browser blocks double clicks.

Thanks in advance to anybody that could give me some advice…

JV







Re: double click issue in Firefox...

2007-05-03 Thread Adrian Mitev

To prevent the double submit you could use a server side solution like the
token synchronizer pattern implemented as a shale component called s:token
from shale-core lib that you can get from here [1] or to implement it
yourself [2]

[1] http://shale.apache.org/
[2] http://jroller.com/page/mert?entry=jsf_preventing_double_form_submit

2007/5/3, Jorge Vásquez <[EMAIL PROTECTED]>:


 Regards to all,

During some testing I found that some unpredictable errors occur with
Firefox whenever a user clicks twice rapidly either on a commandLink or on a
commandButton.  What happens is that the respective method modifies some
internal state the first time but then when it gets executed again it founds
inconsistencies that cause an exception to be thrown.  Adding exception
controls to each method for this very specific scenario would result
terribly cumbersome, so I am writing to see if somebody out there has had a
similar problem and how have you managed to solve it.  I played the other
day for a while with JavaScript events but unfortunately those double click
events are uncontrollable when there's also the presence of onclick events,
since most of the time double clicks are also interpreted as simple clicks
and that turns out to be a huge chaos.

I also tested this behaviour in IE7 (for which I must say that at last
Microsoft launched a descent browser) and there's no problem.  Apparently
this browser blocks double clicks.

Thanks in advance to anybody that could give me some advice…

JV





Re: is there any marqueue like jsf component arounf?

2007-05-03 Thread Adrian Mitev

If you want i could send you the jar.

2007/5/3, Adrian Mitev <[EMAIL PROTECTED]>:


Looks like the jenia4faces site is down.

2007/5/3, Dave <[EMAIL PROTECTED]>:
>
> Hi,
> The link did not work.
>
> I am trying to put  tag around a JSF component like 
> using ,  and , none of them work.
>
> For example,
>
> 
> (JSF component)
> 
>
>
> 
> (JSF component)
> 
>
>
> " escape="false/>
>
> the generated HTML is
> (HTML for JSF component)
>
>  Thanks for help!
>
> *Christopher Cudennec <[EMAIL PROTECTED]>* wrote:
>
> Hi,
>
> you could also simply use a html "marquee"-tag. This is how the example
> from jenia4faces works anyway. See
> http://en.selfhtml.org/html/text/proprietaer.htm#marquee for an example
> (unfortunately only in German).
>
> Cheers,
>
> Christopher
>
>
> Adrian Mitev schrieb:
> > There is in jenia4faces: http://www.jenia.org/TestDynamic/
> >
> > 2007/1/5, legolas >:
> >
> >
> > Hi
> > thank you for reading my post
> > I ma looking for a marqueue like component in JSF, is there any
> > component
> > with this ability around?
> > indeed i am looking for a something like a new ticker component
> > that can
> > scroll some text.
> >
> > thanks
> > --
> > View this message in context:
> > 
http://www.nabble.com/is-there-any-marqueue-like-jsf-component-arounf--tf2925389.html#a8177571
>
> > Sent from the MyFaces - Users mailing list archive at Nabble.com
> > .
> >
> >
> >
> 
> >
> > No virus found in this incoming message.
> > Checked by AVG Free Edition.
> > Version: 7.5.432 / Virus Database: 268.16.5/616 - Release Date:
> 04.01.2007 13:34
> >
>
>
> --
> Ahhh...imagining that irresistible "new car" smell?
> Check out new cars at Yahoo! 
Autos.<http://us.rd.yahoo.com/evt=48245/*http://autos.yahoo.com/new_cars.html;_ylc=X3oDMTE1YW1jcXJ2BF9TAzk3MTA3MDc2BHNlYwNtYWlsdGFncwRzbGsDbmV3LWNhcnM->
>
>



Re: is there any marqueue like jsf component arounf?

2007-05-03 Thread Adrian Mitev

Looks like the jenia4faces site is down.

2007/5/3, Dave <[EMAIL PROTECTED]>:


Hi,
The link did not work.

I am trying to put  tag around a JSF component like 
using ,  and , none of them work.

For example,


(JSF component)




(JSF component)



" escape="false/>

the generated HTML is
(HTML for JSF component)

Thanks for help!

*Christopher Cudennec <[EMAIL PROTECTED]>* wrote:

Hi,

you could also simply use a html "marquee"-tag. This is how the example
from jenia4faces works anyway. See
http://en.selfhtml.org/html/text/proprietaer.htm#marquee for an example
(unfortunately only in German).

Cheers,

Christopher


Adrian Mitev schrieb:
> There is in jenia4faces: http://www.jenia.org/TestDynamic/
>
> 2007/1/5, legolas >:
>
>
> Hi
> thank you for reading my post
> I ma looking for a marqueue like component in JSF, is there any
> component
> with this ability around?
> indeed i am looking for a something like a new ticker component
> that can
> scroll some text.
>
> thanks
> --
> View this message in context:
>
http://www.nabble.com/is-there-any-marqueue-like-jsf-component-arounf--tf2925389.html#a8177571
> Sent from the MyFaces - Users mailing list archive at Nabble.com
> .
>
>
> 
>
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.5.432 / Virus Database: 268.16.5/616 - Release Date:
04.01.2007 13:34
>


--
Ahhh...imagining that irresistible "new car" smell?
Check out new cars at Yahoo! 
Autos.<http://us.rd.yahoo.com/evt=48245/*http://autos.yahoo.com/new_cars.html;_ylc=X3oDMTE1YW1jcXJ2BF9TAzk3MTA3MDc2BHNlYwNtYWlsdGFncwRzbGsDbmV3LWNhcnM->




Re: JSCookMenu and passing value to manged-bean

2007-04-30 Thread Adrian Mitev

In this form JSCookMenu can't do that. I've created a patch where you can
invoke javascript code and invoke action method when the menu is clicked. In
the javascript code i set the id of the selected item in a hidden field. See
here [1] for more info.

[1] http://issues.apache.org/jira/browse/TOMAHAWK-965

2007/4/30, syllepsa <[EMAIL PROTECTED]>:



Hi

Is it possible to pass a value to a managed-bean after clicking menu item
of
the JSCookMenu? The problem is that I have to pass an id (related with
selected menu item) to a managed-bean . The id is necessary to retrieve
data
on the next page.

I'm using MyFaces 1.1.4.

Regards,

Mariusz
--
View this message in context:
http://www.nabble.com/JSCookMenu-and-passing-value-to-manged-bean-tf3671115.html#a10258114
Sent from the MyFaces - Users mailing list archive at Nabble.com.




Re: Configuring ajax4jsf to run with facelets and myfaces implementation

2007-04-30 Thread Adrian Mitev

Try classic with small letters

2007/4/30, Eugine F <[EMAIL PROTECTED]>:


Hello Mike,
Thanks I have resolved pronblem. Bu then anaother poblem ahs occurred
which
I wouldask as a topic of its own. It is an exception which is thrown. The
stack trace is pasted below.
org.ajax4jsf.framework.skin.SkinNotFoundException: Skin with name classic
not found
at
org.ajax4jsf.framework.skin.SkinFactoryImpl.loadProperties(
SkinFactoryImpl.java:259)
at
org.ajax4jsf.framework.skin.SkinFactoryImpl.buildSkin(SkinFactoryImpl.java
:208)
at
org.ajax4jsf.framework.skin.SkinFactoryImpl.getSkin(SkinFactoryImpl.java
:108)
at
org.ajax4jsf.framework.ajax.AjaxContext.processHeadResources(
AjaxContext.java:382)
at
org.ajax4jsf.framework.ajax.AjaxViewHandler.renderView(
AjaxViewHandler.java:258)
at
org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:384)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:138)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
ApplicationFilterChain.java:252)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(
ApplicationFilterChain.java:173)
at
org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter(
BaseXMLFilter.java:96)
at
org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java
:220)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
ApplicationFilterChain.java:202)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(
ApplicationFilterChain.java:173)
at
org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(
ExtensionsFilter.java:144)
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:869)
at

org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection
(Http11BaseProtocol.java:664)
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)
30.04.2007 17:03:51 org.ajax4jsf.framework.renderer.AjaxPhaseListener
beforePhase

my web.xml file is configured as follows

  org.ajax4jsf.SKIN
  CLASSIC


  Ajax4jsf Filter
  ajax4jsf
  org.ajax4jsf.Filter


  ajax4jsf
   Faces Servlet
   REQUEST
   FORWARD



>From: "Adrian Mitev" <[EMAIL PROTECTED]>
>Reply-To: "MyFaces Discussion" 
>To: "MyFaces Discussion" 
>Subject: Re: Configuring ajax4jsf to run with facelets and myfaces
>implementation
>Date: Sat, 28 Apr 2007 09:25:56 +0300
>
>The correct jar is oscache.jar. It comes with the ajax4jsf package
>
>2007/4/27, Mike Kienenberger <[EMAIL PROTECTED]>:
>>
>>Your error message states that ajax4jsf has a dependency on
>>opensymphony (com/opensymphony/oscache/base/NeedsRefreshException).
>>Find the correct jar and add it to your classpath.
>>
>>On 4/27/07, Eugine F <[EMAIL PROTECTED]> wrote:
>> > Hello experts,
>> >
>> > I am struggling to use ajax to run an JSf application that I have
>>written
>> > with facelets. Without ajax everything was running fine. I looked at
>>the
>> > documentation for the ajax4sf at
>> >
>>
https://ajax4jsf.dev.java.net/nonav/documentation/ajax-documentation/developerGuide.html
>> >   and configured my application as described but then I get the
>>followintg
>> > error. Below is the stack trace.
>> >
>> > javax.servlet.ServletException: Filter execution threw an exception
>> > org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(
>>ExtensionsFilter.java:144)
>> >
>> > root cause
>> >
>> > java.lang.NoClassDefFoundError:
>> > com/opensymphony/oscache/base/NeedsRefreshException
>> >
>>org.ajax4jsf.framework.ajax.xmlfilter.B

Re: Configuring ajax4jsf to run with facelets and myfaces implementation

2007-04-27 Thread Adrian Mitev

The correct jar is oscache.jar. It comes with the ajax4jsf package

2007/4/27, Mike Kienenberger <[EMAIL PROTECTED]>:


Your error message states that ajax4jsf has a dependency on
opensymphony (com/opensymphony/oscache/base/NeedsRefreshException).
Find the correct jar and add it to your classpath.

On 4/27/07, Eugine F <[EMAIL PROTECTED]> wrote:
> Hello experts,
>
> I am struggling to use ajax to run an JSf application that I have
written
> with facelets. Without ajax everything was running fine. I looked at the
> documentation for the ajax4sf at
>
https://ajax4jsf.dev.java.net/nonav/documentation/ajax-documentation/developerGuide.html
>   and configured my application as described but then I get the
followintg
> error. Below is the stack trace.
>
> javax.servlet.ServletException: Filter execution threw an exception
> org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(
ExtensionsFilter.java:144)
>
> root cause
>
> java.lang.NoClassDefFoundError:
> com/opensymphony/oscache/base/NeedsRefreshException
>
org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.getResourceService(
BaseFilter.java:276)
> org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(
BaseFilter.java:207)
> org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(
ExtensionsFilter.java:144)
>
> Could anyone help me out?
> Thanks
> Eugine
>
> _
> Wenn Ihnen E-Mail nicht schnell genug ist: MSN Messenger! -
> http://www.imagine-msn.com/messenger/default2.aspx?locale=de Kostenlos
> downloaden!
>
>



Re: [ANNOUNCE] MyFaces Tomahawk v1.1.5 Release

2007-04-20 Thread Adrian Mitev

I want also to thank to the myfaces team. Great work!

2007/4/20, Jeff Bischoff <[EMAIL PROTECTED]>:


Congrats guys, on getting this release out. :-)

Well I did promise that when this release finally came out, I would help
fix up the Facelets taglibs on our wiki to make sure they match up with
the release. (Changes were introduced by the promotion of DOJO)

Unfortunately, today is my last day as a full-time JSF developer. I have
begun a new job that focuses much more on core java, and only makes
seldom use of JSF. I would still like to update the wiki with this
information, if I can find some free personal time. Of course, it would
be even easier if someone volunteers to help me update it. :)

After today, I will not have access to this email account. Any attempts
to contact me should go to [EMAIL PROTECTED]

I want to thank the whole community for providing this great product
that I have been using here the past couple of years. I want to
especially thank Andrew Robinson, Mike Kienenberger, Martin Marinschek,
and Wendy Smoak, who have all been especially helpful to me in resolving
issues. Thanks guys. This really is a great development community, and I
hope I can be more involved in it again someday.

Best Regards,

Jeff Bischoff

Manfred Geiler wrote:
> The Apache MyFaces team is pleased to announce the release of "MyFaces
> Tomahawk 1.1.5".
>
> MyFaces Tomahawk provides a series of JavaServer Faces components that
> go beyond the JSF specification. These components are compatible with
> the Sun JSF 1.1 Reference Implementation (RI) or any other JSF 1.1
> compatible implementation. Of course the custom components can also be
> used with the Apache JSF implementation "MyFaces Core 1.1.5".
>
> MyFaces Tomahawk 1.1.5 is available in both binary and source
> distributions.
>
>* http://myfaces.apache.org/download.html
>
> MyFaces Tomahawk is also available in the central Maven repository
> under Group ID "org.apache.myfaces.tomahawk".
>
> Enjoy!
> Manfred
>
>
> Release Notes - MyFaces Tomahawk - Version 1.1.5
>
> Important: For RI compatibility, and adherence to the spec, itemValues
> can no longer coerce to the backing bean type.  You may get the
> validation error "Value is not a valid option." when this occurs.
> Previous versions of MyFaces/Tomahawk did coerce the itemValue to the
> type of the backing bean, so applications that relied on that will no
> longer work as expected.
>
> ** Fixed Bugs
>* [TOMAHAWK-17] -  processes action /
> actionListener before updating values of sortColumn and sortAscending
>* [TOMAHAWK-23] - SelectOneCountry needs to support an empty
selection
>* [TOMAHAWK-36] - t:div, t:span, s:fieldset should render children
>* [TOMAHAWK-41] - inputDate does not support forceId
>* [TOMAHAWK-42] - ImportCalendar doesn't work in FireFox browser
>* [TOMAHAWK-66] - add colspan (and header/footer colspan)
> attributes to tomahawk extended column tag
>* [TOMAHAWK-80] - AliasBean doesn't need the renderer
>* [TOMAHAWK-141] - InputSuggestAjax should allow differentiation
> between text in popup and text in input box
>* [TOMAHAWK-258] - sandbox inputSuggestAjax ignores onkeydown event
>* [TOMAHAWK-322] - InputSuggestAjax: False Encoding with German
Umlauts
>* [TOMAHAWK-378] - Can't submit an empty date with x:inputDate
>* [TOMAHAWK-402] - error message on popup, when using SSL
>* [TOMAHAWK-467] - SEVERE: Row is not available. Rowindex = 4
>* [TOMAHAWK-469] - Enter key in inputSuggestAjax submits form
>* [TOMAHAWK-491] - t:columns generates wrong name in children input
> fields
>* [TOMAHAWK-506] - Schedule getClickedTime() returns incorrect
> time in compact views
>* [TOMAHAWK-516] - JSCookMenu problems in a Trinidad project
>* [TOMAHAWK-521] - Values from checkboxes not received on submit,
> when branches are collapsed.
>* [TOMAHAWK-524] - RedirectTrackerManager should be Serializable
>* [TOMAHAWK-535] - Schedule Tooltip is broken in Internet Explorer
>* [TOMAHAWK-541] - Tomahawk TLD error
>* [TOMAHAWK-554] - Can't use automatic sorting on dataTable when
> some columns doesn't have a header facet
>* [TOMAHAWK-565] - inputHTML produces IE security warning about
> midex secure and unsecure items
>* [TOMAHAWK-589] - Remove JSP dependency from navmenu renderers
>* [TOMAHAWK-590] - Unparsable lastModified : @lastModified@ should
> be no ERROR
>* [TOMAHAWK-605] - compareToValidator JSP tag converts
> "comparator" property to string instead of Comparator
>* [TOMAHAWK-606] - t:commandLink does not work - gives javascript
error
>* [TOMAHAWK-623] - RedirectTracker and
> RedirectTrackerRequestMapWrapper remove implementation
>* [TOMAHAWK-640] - Javascript-Code broken when using 2 or more
> PPRPanelGroups
>* [TOMAHAWK-644] - Nullpointer in AutoScrollerPhaseListener when
> using weblets and a request for a resource comes in.
>* [TOMAHAWK-647] - t:popup no longer pops up if id isn't

Re: State saving issues

2007-04-17 Thread Adrian Mitev

It depends on the size of your beans :)

2007/4/17, Rogerio Pereira <[EMAIL PROTECTED]>:


Hi guys!

I would like know if someone had problems saving the state of more than 30
beans on server side. If someone had bad experiences, please let me know.

--
Yours truly (Atenciosamente),

Rogério (_rogerio_)
http://faces.eti.br

"Faça a diferença! Ajude o seu país a crescer, não retenha conhecimento,
distribua e aprenda mais." ( http://faces.eti.br/?p=45)


UINavigationItem and immediate

2007-04-17 Thread Adrian Mitev

Hi all! Can UINavigationItem act as  ?


Re: CSS and jscookMenu

2007-04-17 Thread Adrian Mitev

IIRC input[disable] is in the css2 spec. It does not work with IE6 :(

2007/4/17, Gerald Müllan <[EMAIL PROTECTED]>:


I know that you can also access a disabled input with input[disabled]
in the stylesheet.
You may try it with this approach in case of the jscookmenu.

If the attribute is really ignored, you should file a new jira issue.

cheers,

Gerald

On 4/17/07, Renzo Tomaselli <[EMAIL PROTECTED]> wrote:
> Gerald,
> I tried to apply disabledStyleClass to NavigationMenuItem in
> jscookMenu, no success. This attribute is simply ignored.
> Until now, I could not find any way to change appearance of disabled
> jscoookMenu items. The only choice left was to remove disabled items
> from the item composition, not what I wanted.
>
> -- Renzo
>
> Gerald Müllan wrote:
> > There is the attribute "disabledStyleClass", this should help.
> >
> > On 4/17/07, Adrian Mitev <[EMAIL PROTECTED]> wrote:
> >> Is there a way to set different style when a cell of the menu is
> >> disabled?
> >>
> >> 2007/4/17, Gerald Müllan <[EMAIL PROTECTED]>:
> >> > Hi,
> >> >
> >> > i have tried this one:
> >> >
> >> > .ThemeOfficeMainItemHover,.ThemeOfficeMainItemActive
> >> > {
> >> > background-color:   #908E8D;
> >> > color:red;
> >> > }
> >> >
> >> > .ThemeOfficeMenuItemHover,.ThemeOfficeMenuItemActive
> >> > {
> >> > background-color:   #908E8D;
> >> > color:red;
> >> > }
> >> >
> >> > The first applies to the main items (which are visible every time)
in
> >> > case of a hover event.
> >> > The second one seems to be the same like yours (applied to all
> >> > sub-items in case of a hover event). Both work fine to me in
firefox,
> >> > not tested in IE, but this should also work.
> >> >
> >> > cheers,
> >> >
> >> > Gerald
> >> >
> >> > On 4/17/07, Peter Dahm < [EMAIL PROTECTED]> wrote:
> >> > > Hi,
> >> > >
> >> > > I have a little problem with CSS and jscookMenu.
> >> > >
> >> > > The problem is, to change the font color for the hover function
of
> >> MenuItem.
> >> > > The changes in the relvant theme.css for the MenuItem has no
effect.
> >> > >
> >> > > For MainItem's everything is fine. I think it has something to do
> >> with
> >> the
> >> > > table definition of the submenu
> >> > >
> >> > > Here is a snapshot of the theme.css entries.
> >> > >
> >> > >
> >> .ThemeIEMenuItem,.ThemeIEMenuItemHover,.ThemeIEMenuItemActive
> >> > > {
> >> > >  background-color:white;
> >> > >  width: 200px;
> >> > >  height: 2em;
> >> > >  font-size: 18px;
> >> > > }
> >> > >
> >> > >
> >> > > .ThemeIEMenuItemHover,.ThemeIEMenuItemActive {
> >> > >  color: red;
> >> > > }
> >> > >
> >> > >
> >> > > Does someone know something about this problem ???
> >> > >
> >> > > Peter
> >> > >
> >> > >
> >> > >
> >> > >
> >> > >
> >> >
> >> >
> >> > --
> >> > 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: CSS and jscookMenu

2007-04-17 Thread Adrian Mitev

Is there a way to set different style when a cell of the menu is disabled?

2007/4/17, Gerald Müllan <[EMAIL PROTECTED]>:


Hi,

i have tried this one:

.ThemeOfficeMainItemHover,.ThemeOfficeMainItemActive
{
background-color:   #908E8D;
color:red;
}

.ThemeOfficeMenuItemHover,.ThemeOfficeMenuItemActive
{
background-color:   #908E8D;
color:red;
}

The first applies to the main items (which are visible every time) in
case of a hover event.
The second one seems to be the same like yours (applied to all
sub-items in case of a hover event). Both work fine to me in firefox,
not tested in IE, but this should also work.

cheers,

Gerald

On 4/17/07, Peter Dahm <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I have a little problem with CSS and jscookMenu.
>
> The problem is, to change the font color for the hover function of
MenuItem.
> The changes in the relvant theme.css for the MenuItem has no effect.
>
> For MainItem's everything is fine. I think it has something to do with
the
> table definition of the submenu
>
> Here is a snapshot of the theme.css entries.
>
> .ThemeIEMenuItem,.ThemeIEMenuItemHover,.ThemeIEMenuItemActive
> {
>  background-color:white;
>  width: 200px;
>  height: 2em;
>  font-size: 18px;
> }
>
>
> .ThemeIEMenuItemHover,.ThemeIEMenuItemActive {
>  color: red;
> }
>
>
> Does someone know something about this problem ???
>
> Peter
>
>
>
>
>


--
http://www.irian.at

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

Professional Support for Apache MyFaces



Re: datatable and commandlink in request scope

2007-04-16 Thread Adrian Mitev

Try something like this  one one line. In order save
state to work your bean has to implement Serializable interface.

2007/4/16, Brummeline Braaten <[EMAIL PROTECTED]>:


Adrian Mitev  googlemail.com> writes:

>
>
> Try with tomahawk t:saveState
>

I've tried that, but I can't get it to work as intended. Perhaps I save
the
wrong state? I tried to save the whole bean, but then nothing worked. Is
there
some sort of rule of where the place the savestate tag? And does it have
to be
closed on the same line or can I use savestate over an entire form-tag?




Re: datatable and commandlink in request scope

2007-04-16 Thread Adrian Mitev

Try with tomahawk t:saveState

2007/4/16, Brummeline Braaten <[EMAIL PROTECTED]>:


How can I get a commandlink to work inside a datatable when my bean is
in request scope? If I change to sessionscope, the commandlink works,
but then the rest of my code stops working as intended.

This is my JSF code:

http://www.w3.org/TR/html4/strict.dtd";>
<[EMAIL PROTECTED] uri="http://java.sun.com/jsf/core"; prefix="f"%>
<[EMAIL PROTECTED] uri="http://java.sun.com/jsf/html"; prefix="h"%>
<%@ taglib uri="http://myfaces.apache.org/tomahawk"; prefix="t"%>


  
   

 
  


  
   
   
   
  

  

  
   

 
  
  
 
 
 
 
 
 

   
   
   
   
   
   
   









  




  
  

  




















The commandlink that doesn't work is with id="visealtlink".
When I click on the
link the action method is never called.

How can I solve this?





Re: weird around JSF table

2007-04-16 Thread Adrian Mitev

Try t:htmlTag

2007/4/16, Dave <[EMAIL PROTECTED]>:


I tried the Method 2. It did not work.

*Adrian Mitev <[EMAIL PROTECTED]>* wrote:

Try:

 

  

 



2007/4/15, Dave <[EMAIL PROTECTED]>:
>
> I am trying to wrapper  around table using  or
> ,
>
> Method 1
> ---
> 
>
>   
>  
>
> Method 2
> --
> 
>
>   
>
> 
>
> But the rendered HTML (from browser source) is
>
>
>
> instead of wrappering around the table.
>
> It looks weird to me.  Thanks for help.
>
>  --
> Ahhh...imagining that irresistible "new car" smell?
> Check out new cars at Yahoo! 
Autos.<http://us.rd.yahoo.com/evt=48245/*http://autos.yahoo.com/new_cars.html;_ylc=X3oDMTE1YW1jcXJ2BF9TAzk3MTA3MDc2BHNlYwNtYWlsdGFncwRzbGsDbmV3LWNhcnM->
>


--
Ahhh...imagining that irresistible "new car" smell?
Check out new cars at Yahoo! 
Autos.<http://us.rd.yahoo.com/evt=48245/*http://autos.yahoo.com/new_cars.html;_ylc=X3oDMTE1YW1jcXJ2BF9TAzk3MTA3MDc2BHNlYwNtYWlsdGFncwRzbGsDbmV3LWNhcnM->




Re: weird around JSF table

2007-04-15 Thread Adrian Mitev

Try:



  





2007/4/15, Dave <[EMAIL PROTECTED]>:


I am trying to wrapper  around table using  or
,

Method 1
---


  



Method 2
--


  



But the rendered HTML (from browser source) is

   

instead of wrappering around the table.

It looks weird to me.  Thanks for help.


--
Ahhh...imagining that irresistible "new car" smell?
Check out new cars at Yahoo! 
Autos.




Re: ProgressBar

2007-04-11 Thread Adrian Mitev

Trinidad got working progress bar.

2007/4/12, Frozone <[EMAIL PROTECTED]>:



Hi Newsgroup,

I'm really getting mad with this thing. For an application with an
file-upload I want the user to see the progress of the file-uplaod.
I already implemented the file upload which works fine. The user can
upload
an excel sheet and the programm iterates through it and saves the content
into a mySQL database. Now there are about 10.000 rows and it takes some
time until the whole file is read. Can I anyhow show the user the
progress?
A ProgressBar would be the best thing I guess but I did not get any one to
work. Does anybody have a tutorial or some code snippets for me?

Thanks a lot in advance!

Greetz
Frozone
--
View this message in context:
http://www.nabble.com/ProgressBar-tf3562315.html#a9949517
Sent from the MyFaces - Users mailing list archive at Nabble.com.




Re: ajax4jsf 1.1 RC2 - session serialization write error

2007-03-26 Thread Adrian Mitev

Could you post that in the new ajax4jsf forum at jboss.com [1]

[1] http://jboss.com/index.html?module=bb&op=viewforum&f=259

2007/3/26, [EMAIL PROTECTED] <[EMAIL PROTECTED]>:


I just downloaded and imported version 1.1 rc2 of AJAX4JSF (from a
version I downloaded sometime in Dec. 2006).  I am now getting a
'Session Serialization Error' when stopping my Tomcat server.  I know
you can turn off Session Serialization, but does anyone anything in
particular that might be causing this exception?



Re: Customizing JSCookMenu

2007-03-20 Thread Adrian Mitev

Are you using facelets?

2007/3/20, Alberto Chiang <[EMAIL PROTECTED]>:


 Hi everyone!



I`m having a hard time trying to customise the JSCookMenu component, i
need to add a new css to the JSCookMenu but I don't know how to do… I
already saw a solution that was created by Simon Kitching , but I didn`t
made it work…



Can anyone help me?



Thanks in advance!





Alberto Chiang.











Re: Ajax4jsf w.r.t. FacesContext.addMessage in an action method

2007-03-17 Thread Adrian Mitev

What is your question?

2007/3/17, [EMAIL PROTECTED] <[EMAIL PROTECTED]>:


Just thought of something...I am using Ajax4jsf.  Could the Ajax4jsf
filter be messing things up?



Re: Can you addMessage() from an Action method?

2007-03-16 Thread Adrian Mitev

You can do this with success. This web site is pretty old.

2007/3/17, [EMAIL PROTECTED] <[EMAIL PROTECTED]>:


From all examples, it appears that you should be able to call
addMessage() from within an action method, but when I try this, the
message is not displayed.  Contrarily, I found this discussion where it
says that it isn't possible:

http://jsf-faq.com/faqs/messages.html

and that you have to use a validator.  I tried using a validator and it
did work (the message gets displayed); however, I think that this
approach is rather limiting.  There are errors that are dependent on
more than one input.

I am out of ideas.  Can you call addMessage() from within an action
method and have the error messages (via ) show up?

Thanks.



Re: Tomahawk release plans?

2007-03-16 Thread Adrian Mitev

For renderer templating engine - probably the Exadel guys will contribute
their engine to jsf 2.0.




2007/3/16, Werner Punz < [EMAIL PROTECTED]>:
>
> Adrian Mitev schrieb:
> > I've posted RFE for jsf 2.0 [1] about api for component development.
> >
> > https://javaserverfaces-spec-public.dev.java.net/issues/show_bug.cgi?id=246
>
> > <
> https://javaserverfaces-spec-public.dev.java.net/issues/show_bug.cgi?id=246
> >
> >
>
> Hi Adrian I think this does not go too far enough, a handful of common
> utils classes does not really help with the problem
>
> what is needed is to tackle the problem on various ends
> a) way too much configuration, try to get rid of it entirely, move the
> entire configuration into annotations and probably also get rid of
> the entire taglib binding classes that way.
>
> that way we also probably could get rid of the entire save and restore
> code, and the properties simply would be setters and getters with the
> save restore bindings woven around
>
> b) we need a renderer templating engine, but not like jsp more along the
> lines of velocity which can be used optionally
>
> c) we need something high level (goes hand in hand with b)
> eventually adding facelets to the mix, but with the possibility
> to hook in custrom control classes in a rather seamless way (this would
> be the same combination as in b, with facelets as templating for the
> component)
>
>
>



Re: Tomahawk release plans?

2007-03-16 Thread Adrian Mitev

Hi, Werner! You could post that as comment to my issue at
javaserverfaces-spec

2007/3/16, Werner Punz <[EMAIL PROTECTED]>:


Adrian Mitev schrieb:
> I've posted RFE for jsf 2.0 [1] about api for component development.
>
>
https://javaserverfaces-spec-public.dev.java.net/issues/show_bug.cgi?id=246
> <
https://javaserverfaces-spec-public.dev.java.net/issues/show_bug.cgi?id=246
>
>

Hi Adrian I think this does not go too far enough, a handful of common
utils classes does not really help with the problem

what is needed is to tackle the problem on various ends
a) way too much configuration, try to get rid of it entirely, move the
entire configuration into annotations and probably also get rid of
the entire taglib binding classes that way.

that way we also probably could get rid of the entire save and restore
code, and the properties simply would be setters and getters with the
save restore bindings woven around

b) we need a renderer templating engine, but not like jsp more along the
lines of velocity which can be used optionally

c) we need something high level (goes hand in hand with b)
eventually adding facelets to the mix, but with the possibility
to hook in custrom control classes in a rather seamless way (this would
be the same combination as in b, with facelets as templating for the
component)





Re: Tomahawk release plans?

2007-03-15 Thread Adrian Mitev

I've posted RFE for jsf 2.0 [1] about api for component development.

https://javaserverfaces-spec-public.dev.java.net/issues/show_bug.cgi?id=246

2007/3/15, Jörn Zaefferer <[EMAIL PROTECTED]>:


Absolutely! The JSF API itself isn't enough to write components without
duplicating tons of code. You either do duplication, or depend on a
particular implementation of the API.

And this isn't just a problem with JSF alone. I wanted to replace the
default month renderer on tomahawks schedule component. I've now ended by
extending Renderer directly, I can't even reuse a single line of the
AbstractWhateverScheduleRenderers. Instead I have to duplicate parts of them
in my own renderer.

About the three classes: When I want to quickly create my own component
for handle a particular problem, I need only the component class itself and
my facelets taglib. The component can do the rendering.

Once I'd have those components ready to publish to a greater audience I
wouldn't mind writing renderer and tag classes.

On 3/15/07, Werner Punz <[EMAIL PROTECTED]> wrote:
>
> Jeff Bischoff schrieb:
> > I agree, it would be great if that were part of the distro. Problem
> is,
> > Facelets still isn't officially supported by Tomahawk, and thus
> > developers don't have to ensure their components will work in
> Facelets,
> > let alone provide the configuration and handler classes. Seems like a
> > huge number of the userbase is already using or migrating to Facelets,
> > though, so I would expect to see Facelet support improve over time.
> This
> > is, of course, a community project!
> >
> Getting away from the discussion itself...
>
> Actually having facelets in would be a great welcome for the component
> devs too, I have been playing around with the thought of having parts
> of the stuff I am doing being moved into the facelets domain, sort of
> like a tomahawk facelets.
> Problem is I cannot do it in the borders of the Tomahawk project
> currently because those components would only work with facelets.
> (There was a discussion in the myfaces list a while ago)
>
> I will give a description of the core problem.
>
> Simple JSF control == 3 classes (one tag class, one component class, one
> renderer clasS)
> two xml file entries
>
> each class is 100 locs code min and the renderer uses
> a crude servlet like outputwriter api to the worst.
> 90% of this code normally is just glue code.
>
> 90% of most of this code probably could be replaced by simply facelet
> tags and only specialized stuff would have to be coded in the component
> api itself.
>
> The component api probably is the biggest problem JSF has in my opinion
> and it prevents a lot of people jumping onto the ship.
> Facelets would be an easy entry point to add new components.
>
>
> Heck everything which makes things easier and helps people to ease
> coding is welcome, it does not have to be facelets.
>
>



Re: internationalization in faclets

2007-03-15 Thread Adrian Mitev

use h:outputFormat

2007/3/15, [EMAIL PROTECTED] <[EMAIL PROTECTED]>:


 Hi,

Can anybody suggest me how to pass arguments for the i18n in
facelets?

Suppose I have a key like " {0} user name". I want to pass the argument
{0} from the facelets.

How can I pass my argument using EL?



Regards,

Basha

The information contained in this electronic message and any attachments
to this message are intended for the exclusive use of the addressee(s) and
may contain proprietary, confidential or privileged information. If you are
not the intended recipient, you should not disseminate, distribute or copy
this e-mail. Please notify the sender immediately and destroy all copies of
this message and any attachments.

WARNING: Computer viruses can be transmitted via email. The recipient
should check this email and any attachments for the presence of viruses. The
company accepts no liability for any damage caused by any virus transmitted
by this email.

www.wipro.com



Re: JSF - New window to confirm delete

2007-03-12 Thread Adrian Mitev

try javascript confirm() ?

2007/3/12, edney imme <[EMAIL PROTECTED]>:


Hallo,

I have a windown, were I need to open another windown, like a popup
windown. And in that windown, I will use to ask to the user if he wants to
confirm delete the item, or cancel this operation.

Detail: I can't use javascript popup window, it must be a new window, with
2 buttons: Ok and Cancel.

Did anibody did something like that before ? Or has any idea of how I can
do it ?

I alredy do some similar using Struts, but never with JSF.

Thanks for atention.



Re: [Solved] ajax4jsf trouble after a form has failed JSF validation

2007-03-09 Thread Adrian Mitev

Try with a4j:log and see what's printed there.

2007/3/9, raindogs <[EMAIL PROTECTED]>:



Thanks for the response. I did put the 
around the h:message tags, but the problem persists. I also tried adding
the
t:saveState to the values in the drop-down, but that didn't work either.

I also posted this to the Ajax4Jsf forum on the JBoss site, but anyone
here
who can think of another way around this will immediately earn a spot on
my
Christmas card list.




Adrian Mitev-2 wrote:
>
> The h:message/h:messages component is not rendering anything if there is
> no
> error message and that's why it cannot be rerendered if there is an
error
> message (this is the most possible reason for your action method not to
be
> invoked).
> Nest the h:message tag into  like
> this:
>
> 
>   
> 
>
>
> 2007/3/8, [EMAIL PROTECTED] <[EMAIL PROTECTED]>:
>>
>>
>> I too had this problem, in my case the managed bean was in request
scope.
>> I did a t:saveState on the select item list and it solved the problem.
>>
>> -Siju
>>
>>
>>
>>  *Jeff Bischoff <[EMAIL PROTECTED]>*
>>
>> 03/08/2007 03:33 PM  Please respond to
>> "MyFaces Discussion" 
>>
>>   To
>> MyFaces Discussion   cc
>>
>>  Subject
>> Re: [Solved] ajax4jsf trouble after a form has failed JSF validation
>>
>>
>>
>>
>>
>>
>> Raindog,
>>
>> I would ask in the new ajax4jsf forum. See [1].
>>
>> [1] http://jboss.com/index.html?module=bb&op=viewforum&f=259
>>
>> raindogs wrote:
>> > One other thing... it occurred to me that I could probably bypass any
>> > complications from JSF validation by adding immediate="true" to the
>> > "a4j:support" tag. The method did fire when I did this, but the
>> elements
>> > defined in "rerender" did not refresh. I'm sure the solution is in
here
>> > somewhere, but I'm just not seeing it.
>> >
>> >
>> >
>> > raindogs wrote:
>> >> I'm having a problem getting ajax4jsf to play nice with jsf form
>> >> validation. The page below uses ajax4jsf to run a method from the
bean
>> >> when the value in the "state" list changes and update a couple of
>> fields.
>> >> This works great under most circumstances. However, if the user
>> submits
>> >> the form *without* filling in the required "addressName" field, the
>> form
>> >> does not submit and the error message is displayed. This is as it
>> should
>> >> be. The trouble comes when, if the form has been submitted and is
>> >> displaying the error message for the "addressName" field, the user
>> changes
>> >> the "state" field, which should still fire off the "loadState"
method.
>> In
>> >> this case, the "loadState" method never fires and none of the fields
>> in
>> >> the "reRender" list are refreshed, even if there is now a value in
the
>> >> "addressname" field. The snippet below should show all of the
relvant
>> >> code, any help would be much appreciated.
>> >>
>> >> Thanks,
>> >> Alex
>> >>
>> >>
>> >> 
>> >> 
>> >>  > id="locationGrid"
>> >> border="0" cellpadding="2">
>> >>
>> >>> value="Address Name:" />
>> >>> id="addressName" value="#{locationForm.addressName}"
>> >> required="true"/>
>> >>
>> >>> for="addressName" />
>> >>> value="" />
>> >>
>> >>> value="Street Address:" />
>> >>> id="streetAddress" value="#{locationForm.streetAddress}"
>> >> />
>> >>
>> >>> value="City:" />
>> >>> id="city" value="#{locationForm.city}" />
>> >>
>> >>> value="State:" />
>> >>
>> >>> value="#{locationForm.state}"
>> >> style="padding:0px;margin:0px;">
>> >>
>> > >> reRender="latitude, longitude, city, zipcode" ajaxSingle="true"/>
>> >>
>> 
>>
>>
>> >>
>> >>...
>> >>
>> >>> action="#{locationForm.submitNewLocation}"
>> >> value="Submit" actionFor="locationSubForm"/>
>> >>> value="" escape="false"/>
>> >>   
>> >>  
>> >> 
>> >>
>> >>
>> >>
>> >
>>
>>
>>
>>
>
>

--
View this message in context:
http://www.nabble.com/ajax4jsf-trouble-after-a-form-has-failed-JSF-validation-tf3369160.html#a9397483
Sent from the MyFaces - Users mailing list archive at Nabble.com.




JSCookmenu and disabled style.

2007-03-09 Thread Adrian Mitev

Hi all. May i specify style of the text in the  jscookmenu when the item is
disabled?


Re: tiles problem

2007-03-09 Thread Adrian Mitev

However for facelets usually you need special IDE that supports them (IBM
Websphere does not supports facelets). For Clay you don't because all java
web IDE supports jsp

2007/3/9, Jörn Zaefferer <[EMAIL PROTECTED]>:


I've got no experience with Clay either. But Facelets does provide much
more then just templating (so may Clay).

Getting rid of JSPs is a good start anyway.



Re: [Solved] ajax4jsf trouble after a form has failed JSF validation

2007-03-09 Thread Adrian Mitev

The h:message/h:messages component is not rendering anything if there is no
error message and that's why it cannot be rerendered if there is an error
message (this is the most possible reason for your action method not to be
invoked).
Nest the h:message tag into  like this:


 



2007/3/8, [EMAIL PROTECTED] <[EMAIL PROTECTED]>:



I too had this problem, in my case the managed bean was in request scope.
I did a t:saveState on the select item list and it solved the problem.

-Siju



 *Jeff Bischoff <[EMAIL PROTECTED]>*

03/08/2007 03:33 PM  Please respond to
"MyFaces Discussion" 

  To
MyFaces Discussion   cc

 Subject
Re: [Solved] ajax4jsf trouble after a form has failed JSF validation






Raindog,

I would ask in the new ajax4jsf forum. See [1].

[1] http://jboss.com/index.html?module=bb&op=viewforum&f=259

raindogs wrote:
> One other thing... it occurred to me that I could probably bypass any
> complications from JSF validation by adding immediate="true" to the
> "a4j:support" tag. The method did fire when I did this, but the elements
> defined in "rerender" did not refresh. I'm sure the solution is in here
> somewhere, but I'm just not seeing it.
>
>
>
> raindogs wrote:
>> I'm having a problem getting ajax4jsf to play nice with jsf form
>> validation. The page below uses ajax4jsf to run a method from the bean
>> when the value in the "state" list changes and update a couple of
fields.
>> This works great under most circumstances. However, if the user submits
>> the form *without* filling in the required "addressName" field, the
form
>> does not submit and the error message is displayed. This is as it
should
>> be. The trouble comes when, if the form has been submitted and is
>> displaying the error message for the "addressName" field, the user
changes
>> the "state" field, which should still fire off the "loadState" method.
In
>> this case, the "loadState" method never fires and none of the fields in
>> the "reRender" list are refreshed, even if there is now a value in the
>> "addressname" field. The snippet below should show all of the relvant
>> code, any help would be much appreciated.
>>
>> Thanks,
>> Alex
>>
>>
>> 
>> 
>>  > border="0" cellpadding="2">
>>
>>
>>> required="true"/>
>>
>>
>>
>>
>>
>>> />
>>
>>
>>
>>
>>
>>
>>> style="padding:0px;margin:0px;">
>>
> reRender="latitude, longitude, city, zipcode" ajaxSingle="true"/>
>>

>>
>>
>>...
>>
>>> value="Submit" actionFor="locationSubForm"/>
>>
>>   
>>  
>> 
>>
>>
>>
>






Re: date in jenia calendar is off by one

2007-03-05 Thread Adrian Mitev

It is obvious that the problem is not in jenia callendar

2007/3/6, raindogs <[EMAIL PROTECTED]>:



I'm attempting to implement the jenia calendar and, while it all seemed
great
at first, I now realize that I'm getting an off-by-one error on the day.
In
the test I just ran, I selected March 15th as the date. The input box
displayed "03/15/2007", but the value that actually gets passed into the
backing bean is "Wed Mar 14 19:00:00 CDT 2007".

I'm really scratching my head on this one, as I haven't heard of anyone
else
having this problem. All of the relevant info is below, any help would be
much appreciated.

Thanks,
Alex

--
JSP Page snippet
--
**









**

-
Backing Bean Methods
(activationDate is delared as java.util.Date)
--

public Date getActivationDate() {
return this.activationDate;
}

public void setActivationDate(Date activationDate) {
this.activationDate = activationDate;
}


---
WEB-INF\lib
---
ajax4jsf.jar
commons-beanutils-1.7.0.jar
commons-codec-1.3.jar
commons-collections-3.1.jar
commons-digester-1.6.jar
commons-el-1.0.jar
commons-fileupload.jar
commons-lang-2.1.jar
commons-logging-1.0.4.jar
commons-validator-1.2.0.jar
jenia4faces-commons_1.2.jar
jenia4faces-popup_1.2.jar
jstl-1.1.0.jar
myfaces-api-1.1.5.jar
myfaces-impl-1.1.5.jar
ojdbc14.jar
oro-2.0.8.jar
oscache-2.3.2.jar
portlet-api.jar
struts.jar
tomahawk-1.1.3.jar

--
web.xml
--




http://java.sun.com/xml/ns/j2ee";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd";
version="2.4">


javax.faces.CONFIG_FILES

/WEB-INF/faces-config.xml






javax.faces.STATE_SAVING_METHOD
client





org.apache.myfaces.ALLOW_JAVASCRIPT
true





org.apache.myfaces.PRETTY_HTML
true





org.apache.myfaces.DETECT_JAVASCRIPT
false



org.apache.myfaces.AUTO_SCROLL
true






org.apache.myfaces.webapp.StartupServletContextListener





Faces Servlet
javax.faces.webapp.FacesServlet
1



Jenia internal servlet
org.jenia.faces.util.Servlet
2


Faces Servlet
*.faces

 
Jenia internal servlet
/jenia4faces/*




index.jsp



  
MyFacesExtensionsFilter

org.apache.myfaces.webapp.filter.ExtensionsFilter


maxFileSize
20m






Ajax4jsf Filter
ajax4jsf
org.ajax4jsf.Filter


ajax4jsf
Faces Servlet
REQUEST
FORWARD
INCLUDE





MyFacesExtensionsFilter
*.faces




MyFacesExtensionsFilter
/faces/myFacesExtensionResource/*





--
View this message in context:
http://www.nabble.com/date-in-jenia-calendar-is-off-by-one-tf3352598.html#a9323327
Sent from the MyFaces - Users mailing list archive at Nabble.com.




Re: ajax4jsf and t:inputCalendar element conflict

2007-03-05 Thread Adrian Mitev

However tomahawk 1.1.5 nightlies are stable enought for production

2007/3/5, Jonathan Harley <[EMAIL PROTECTED]>:



Jenia is a good calendar component - works for me, anyway. Personally
I'd rather use stable components than ones which are constantly being
tinkered with. (Even if it means being stuck with MyFaces 1.3 until
Tomahawk is considered ready for a new stable release!)

J.

Wesley Hales wrote:
> Yeah, you would think someone would have another good calendar component
> - that is being worked on.
>
> On 3/5/07, *Adrian Mitev* < [EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>> wrote:
>
> Bad that jenia has now version (the last is from 6 january 2006)
>
> 2007/3/5, Andrew Robinson <[EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>>:
>
> I also strongly recommend the jenia calendar over the
> t:inputDate or
> t:inputCalendar. The tomahawk controls use document.writeinstead of
> DOM manipulation (up to recently, you will have to make a bug
search
> to check) that breaks AJAX code. jenia's has given me no issues
> and is
> more flexible


--
.
   Dr Jonathan Harley   .
.   Email: [EMAIL PROTECTED]
Zac Parkplatz Ltd   .   Office Telephone: 024 7633 1375
www.parkplatz.net   .   Mobile: 079 4116 0423



Re: ajax4jsf and t:inputCalendar element conflict

2007-03-05 Thread Adrian Mitev

Jenia is good enough and its size is small.

2007/3/5, Wesley Hales <[EMAIL PROTECTED]>:


Yeah, you would think someone would have another good calendar component -
that is being worked on.

On 3/5/07, Adrian Mitev < [EMAIL PROTECTED]> wrote:
>
> Bad that jenia has now version (the last is from 6 january 2006)
>
> 2007/3/5, Andrew Robinson <[EMAIL PROTECTED]>:
> >
> > I also strongly recommend the jenia calendar over the t:inputDate or
> > t:inputCalendar. The tomahawk controls use document.write instead of
> > DOM manipulation (up to recently, you will have to make a bug search
> > to check) that breaks AJAX code. jenia's has given me no issues and is
> > more flexible
> >
> > On 3/4/07, Wesley Hales < [EMAIL PROTECTED]> wrote:
> > > Try the Jenia calendar component
> > > http://www.jenia.org/TestPopup/jsp/home.jsf .
> > >
> > >
> > >
> > > On 3/4/07, raindogs <[EMAIL PROTECTED]> wrote:
> > > >
> > > > I have a page that makes fairly heavy use of ajax4jsf processing.
> > It all
> > > > works great, but now I want to add a t:inputCalendar element,
> > which causes
> > > > the thing to blow up every time I submit it.
> > > >
> > > > Some checking around the web reveals that there is a conflict here
> > due to
> > > > the fact that Tomahawk expects certain elements of the page header
> > that
> > > are
> > > > not returns when ajax4jsf is used. I did find some suggestions
> > that
> > > involved
> > > > wrapping the page in "a4j:page" tags, but I've not had any luck
> > with that
> > > > either.
> > > >
> > > > The code from my page is pasted below, can anyone offer any
> > suggestions
> > > > here? I'm happy to use something besides the Tomahawk calendar -
> > all I
> > > > really want is my ajax4jsf page with a pop-up calendar element
> > that is
> > > nice
> > > > and friendly for my users.
> > > >
> > > > Thanks,
> > > > Alex
> > > >
> > > > <%@ taglib uri=" http://java.sun.com/jsf/core "  prefix="f" %>
> > > > <%@ taglib uri=" http://java.sun.com/jsf/html"; prefix="h" %>
> > > > <%@ taglib uri=" http://myfaces.apache.org/tomahawk";
> > > prefix="t"%>
> > > > <%@ taglib uri=" https://ajax4jsf.dev.java.net/ajax";
> > > prefix="a4j"%>
> > > >
> > > > 
> > > >  Facility Form
> > > > 
> > > > 
> > > > 
> > > >
> > > > 
> > > >
> > > > Facility Form
> > > >
> > > > 
> > > > 
> > > >  > > id="locationGrid">
> > > >
> > > > 
> > > >  > > value="#{ locationForm.addressName}"  />
> > > >
> > > > 
> > > >  > > value="#{locationForm.streetAddress }" />
> > > >
> > > > 
> > > >  > > value="#{locationForm.city}"  />
> > > >
> > > > 
> > > >  > > value="#{locationForm.state}"
> > > > style="padding:0px;margin:0px;">
> > > >  > > event="onchange" action="#{ locationForm.loadState}"
> > > > reRender="zipcode, latitude, longitude, city" ajaxSingle="true"/>
> > > >  > > ="#{locationForm.stateList}" />
> > > > 
> > > >
> > > >  > > />
> > > >  > > value="#{locationForm.zipcode}"
> > > > style="padding:0px;margin:0px;" id="zipcode">
> > > >  > > event="onchange" action="#{locationForm.loadZip}"
> > > > reRender="latitude, longitude, city" ajaxSingle="true"/>
> > > >  > > ="#{locationForm.zipList}" />
> > > > 
> > > >
> > > > 
> > > >  > > id="activationDate"
> > > > value="#{locationForm.activationDate}"
> > > > renderAsPopup="true">
> > > >
> > > > 
> > > >  > > value="#{locationForm.county}" />
> > > >
> > > > 
> > > >  > > value="#{ locationForm.notes}" />
> > > >
> > > >  > > />
> > > >  > > value="#{locationForm.latitude }" />
> > > >
> > > >  > > />
> > > >
> > > >  > > value="#{ locationForm.longitude}" />
> > > >
> > > >  > > > action="#{locationForm.submitNewLocation}"
> > id="btnSubmitLocationForm"/>
> > > >  > > escape="false"/>
> > > >
> > > > 
> > > > 
> > > > 
> > > >
> > > > 
> > > >
> > > > 
> > > > 
> > > >
> > > > --
> > > > View this message in context:
> > >
> > 
http://www.nabble.com/ajax4jsf-and-t%3AinputCalendar-element-conflict-tf3343610.html#a9299235
> > > > Sent from the MyFaces - Users mailing list archive at Nabble.com.
> > > >
> > > >
> > >
> > >
> >
>
>



Re: ajax4jsf and t:inputCalendar element conflict

2007-03-05 Thread Adrian Mitev

Bad that jenia has now version (the last is from 6 january 2006)

2007/3/5, Andrew Robinson <[EMAIL PROTECTED]>:


I also strongly recommend the jenia calendar over the t:inputDate or
t:inputCalendar. The tomahawk controls use document.write instead of
DOM manipulation (up to recently, you will have to make a bug search
to check) that breaks AJAX code. jenia's has given me no issues and is
more flexible

On 3/4/07, Wesley Hales <[EMAIL PROTECTED]> wrote:
> Try the Jenia calendar component
> http://www.jenia.org/TestPopup/jsp/home.jsf.
>
>
>
> On 3/4/07, raindogs <[EMAIL PROTECTED]> wrote:
> >
> > I have a page that makes fairly heavy use of ajax4jsf processing. It
all
> > works great, but now I want to add a t:inputCalendar element, which
causes
> > the thing to blow up every time I submit it.
> >
> > Some checking around the web reveals that there is a conflict here due
to
> > the fact that Tomahawk expects certain elements of the page header
that
> are
> > not returns when ajax4jsf is used. I did find some suggestions that
> involved
> > wrapping the page in "a4j:page" tags, but I've not had any luck with
that
> > either.
> >
> > The code from my page is pasted below, can anyone offer any
suggestions
> > here? I'm happy to use something besides the Tomahawk calendar - all I
> > really want is my ajax4jsf page with a pop-up calendar element that is
> nice
> > and friendly for my users.
> >
> > Thanks,
> > Alex
> >
> > <%@ taglib uri="http://java.sun.com/jsf/core";  prefix="f" %>
> > <%@ taglib uri=" http://java.sun.com/jsf/html"; prefix="h" %>
> > <%@ taglib uri="http://myfaces.apache.org/tomahawk";
> prefix="t"%>
> > <%@ taglib uri=" https://ajax4jsf.dev.java.net/ajax";
> prefix="a4j"%>
> >
> > 
> >  Facility Form
> > 
> > 
> > 
> >
> > 
> >
> > Facility Form
> >
> > 
> > 
> >  id="locationGrid">
> >
> > 
> >  value="#{ locationForm.addressName}"  />
> >
> > 
> >  value="#{locationForm.streetAddress }" />
> >
> > 
> >  value="#{locationForm.city}"  />
> >
> > 
> >  value="#{locationForm.state}"
> > style="padding:0px;margin:0px;">
> >  event="onchange" action="#{ locationForm.loadState}"
> > reRender="zipcode, latitude, longitude, city" ajaxSingle="true"/>
> >  ="#{locationForm.stateList}" />
> > 
> >
> >  />
> >  value="#{locationForm.zipcode}"
> > style="padding:0px;margin:0px;" id="zipcode">
> >  event="onchange" action="#{locationForm.loadZip}"
> > reRender="latitude, longitude, city" ajaxSingle="true"/>
> >  ="#{locationForm.zipList}" />
> > 
> >
> > 
> >  id="activationDate"
> > value="#{locationForm.activationDate}"
> > renderAsPopup="true">
> >
> > 
> >  value="#{locationForm.county}" />
> >
> > 
> >  value="#{ locationForm.notes}" />
> >
> >  />
> >  value="#{locationForm.latitude}" />
> >
> >  />
> >
> >  value="#{locationForm.longitude}" />
> >
> >  > action="#{locationForm.submitNewLocation}"
id="btnSubmitLocationForm"/>
> >  escape="false"/>
> >
> > 
> > 
> > 
> >
> > 
> >
> > 
> > 
> >
> > --
> > View this message in context:
>
http://www.nabble.com/ajax4jsf-and-t%3AinputCalendar-element-conflict-tf3343610.html#a9299235
> > Sent from the MyFaces - Users mailing list archive at Nabble.com.
> >
> >
>
>



Re: where can i get tomohawk tags documentation?

2007-03-02 Thread Adrian Mitev

http://myfaces.apache.org/tomahawk/index.html - almost all

2007/3/2, Srinivas V <[EMAIL PROTECTED]>:


Can anybody give me the link where I can get all Tomohawk tags?


Re: [Sandbox] selectManyPicklist button text

2007-03-01 Thread Adrian Mitev

You could easy override the renderer class.

2007/3/1, Bharath Belagodu <[EMAIL PROTECTED]>:


The selectManyPick component in the sandbox provides a '<' and '>'
button. I was trying to figure out if I can change the text of the
buttons to 'Add' and 'Remove' instead of '>' and '<', but after looking
at the code in the renderer of the component I figured that the text of
the buttons are hardcoded,

encodeSwapButton(facesContext, uiComponent,
javascriptRemoveFromSelected, "<");


From my current understanding there isn't an option for me to change the
text of the buttons?

-Bharath




Re: How to get selected node with t:tree2?

2007-02-28 Thread Adrian Mitev

In my app i pass the objects from the business layer to the presentation
layer and i have a class TreeBuilder that builds a tree from the objects
that come from the business layer.

2007/2/28, Marko Asplund <[EMAIL PROTECTED]>:


Andrew Robinson wrote:
> Or you can use t:updateActionListener

I tested this and it seems to be working fine, thanks for the tips
Andrew and Adrian!

My application is constructing the tree in the business tier which
doesn't have the Tomahawk TreeNode and related classes available. How
do people typically handle this scenario?
Do you just make the tomahawk.jar available to the business tier or
return a tree representation that the backing bean converts to
TreeNode:s?


marko



Re: Tree2?

2007-02-28 Thread Adrian Mitev

Definitely it is not saved into the browser. With TreeModel you could set
the state of the tree (which nodes to be toggled).

2007/2/28, Bjørn T Johansen <[EMAIL PROTECTED]>:


I am using server state but not sure what you mean by use TreeModel? (I am
using TreeModel)
But it seems to be saved in the browser because it is remembered over
restart of Tomcat...


BTJ

On Wed, 28 Feb 2007 16:35:58 +0200
"Adrian Mitev" <[EMAIL PROTECTED]> wrote:

> The tree keeps its state on the server/client depends on the state
saving
> method. To show the tree collapsed use TreeModel.
>
> 2007/2/28, Bjørn T Johansen <[EMAIL PROTECTED]>:
> >
> > It looks like the Tree2 component remembers which nodes were collapsed
and
> > which were expanded the next run
> > (using cookies?)
> > Is there any way to always start with all the nodes collapsed?
> >
> >
> > Regards,
> >
> > BTJ
> >
> > --
> >
> >
---
> > Bjørn T Johansen
> >
> > [EMAIL PROTECTED]
> >
> >
---
> > Someone wrote:
> > "I understand that if you play a Windows CD backwards you hear strange
> > Satanic messages"
> > To which someone replied:
> > "It's even worse than that; play it forwards and it installs Windows"
> >
> >
---
> >




Re: Tree2?

2007-02-28 Thread Adrian Mitev

The tree keeps its state on the server/client depends on the state saving
method. To show the tree collapsed use TreeModel.

2007/2/28, Bjørn T Johansen <[EMAIL PROTECTED]>:


It looks like the Tree2 component remembers which nodes were collapsed and
which were expanded the next run
(using cookies?)
Is there any way to always start with all the nodes collapsed?


Regards,

BTJ

--

---
Bjørn T Johansen

[EMAIL PROTECTED]

---
Someone wrote:
"I understand that if you play a Windows CD backwards you hear strange
Satanic messages"
To which someone replied:
"It's even worse than that; play it forwards and it installs Windows"

---



Re: [Solved] [facelets] problem using SelectItem

2007-02-28 Thread Adrian Mitev

What are the jars in your classpath?

2007/2/28, lmk <[EMAIL PROTECTED]>:



Ok, but, perhaps, the problem comes from El-api, I delete the myfaces jars
on
the server and the problem persist..

the head of the exception is:

javax.el.ELException: /html/elanpremium/sim02.xhtml:
java.lang.ClassNotFoundException: SelectItem
at
com.sun.facelets.compiler.AttributeInstruction.write(
AttributeInstruction.java:55)
at
com.sun.facelets.compiler.UIInstructions.encodeBegin(UIInstructions.java
:39)


mind you that the package name is not denoted..



lmk wrote:
>
> myfaces jars exist on \jbossweb-tomcat55.sar\jsf-libs.but,I  thought
jboss
> look for api on the application lib folder first..
> I delete the jsf-libs  folder, i still have the same exception..
>
>
>
> Mike Kienenberger wrote:
>>
>> This is definitely a classloader/configuration issue.
>>
>> Perhaps you have multiple copies of the jsf-api jar in your path.   Be
>> sure you don't have another version of Myfaces or the JSF-RI in your
>> classpath somewhere.   Some versions of JBoss ship with MyFaces
>> preinstalled.
>>
>> On 2/27/07, lmk <[EMAIL PROTECTED]> wrote:
>>>
>>> Hi,
>>>
>>> I try to run facelets application on Jboss server, when I use
selectItem
>>> i
>>> get the exception below; i have myfaces-impl.jar and my-faces-api.jaron
>>> lib
>>> folder, I dont have any compilation problem..
>>> I will be off one's head
>>> thanks...
>>>
>>> javax.faces.FacesException: java.lang.ClassNotFoundException:
SelectItem
>>> at
>>> org.apache.myfaces.shared_impl.util.ClassUtils.simpleJavaTypeToClass(
ClassUtils.java:223)
>>> at
>>> org.apache.myfaces.config.ManagedBeanBuilder.initializeProperties(
ManagedBeanBuilder.java:182)
>>> at
>>> org.apache.myfaces.config.ManagedBeanBuilder.buildManagedBean(
ManagedBeanBuilder.java:55)
>>> at
>>> org.apache.myfaces.el.VariableResolverImpl.resolveVariable(
VariableResolverImpl.java:314)
>>> at
>>> com.sun.facelets.el.LegacyELContext$LegacyELResolver.getValue(
LegacyELContext.java:134)
>>> at
>>> com.sun.el.parser.AstIdentifier.getValue(AstIdentifier.java:68)
>>> at com.sun.el.parser.AstValue.getValue(AstValue.java:107)
>>> at
>>> com.sun.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:192)
>>> at
>>> com.sun.facelets.el.TagValueExpression.getValue(
TagValueExpression.java:71)
>>> at
>>> com.sun.facelets.el.LegacyValueBinding.getValue(
LegacyValueBinding.java:56)
>>> at javax.faces.component.UIOutput.getValue(UIOutput.java:80)
>>> at
>>> org.apache.myfaces.shared_impl.renderkit.RendererUtils.getObjectValue(
RendererUtils.java:186)
>>> at
>>> --
>>> View this message in context:
>>>
http://www.nabble.com/-facelets--problem-using-SelectItem-tf3301779.html#a9184631
>>> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>>>
>>>
>>
>>
>
>

--
View this message in context:
http://www.nabble.com/-facelets--problem-using-SelectItem-tf3301779.html#a9201692
Sent from the MyFaces - Users mailing list archive at Nabble.com.




Re: [Solved] [facelets] problem using SelectItem

2007-02-27 Thread Adrian Mitev

JBoss does not "look", it just loads.

2007/2/27, lmk <[EMAIL PROTECTED]>:



myfaces jars exist on \jbossweb-tomcat55.sar\jsf-libs.but,I  thought jboss
look for api on the application lib folder f irst..



Mike Kienenberger wrote:
>
> This is definitely a classloader/configuration issue.
>
> Perhaps you have multiple copies of the jsf-api jar in your path.   Be
> sure you don't have another version of Myfaces or the JSF-RI in your
> classpath somewhere.   Some versions of JBoss ship with MyFaces
> preinstalled.
>
> On 2/27/07, lmk <[EMAIL PROTECTED]> wrote:
>>
>> Hi,
>>
>> I try to run facelets application on Jboss server, when I use
selectItem
>> i
>> get the exception below; i have myfaces-impl.jar and my-faces-api.jaron
>> lib
>> folder, I dont have any compilation problem..
>> I will be off one's head
>> thanks...
>>
>> javax.faces.FacesException: java.lang.ClassNotFoundException:
SelectItem
>> at
>> org.apache.myfaces.shared_impl.util.ClassUtils.simpleJavaTypeToClass(
ClassUtils.java:223)
>> at
>> org.apache.myfaces.config.ManagedBeanBuilder.initializeProperties(
ManagedBeanBuilder.java:182)
>> at
>> org.apache.myfaces.config.ManagedBeanBuilder.buildManagedBean(
ManagedBeanBuilder.java:55)
>> at
>> org.apache.myfaces.el.VariableResolverImpl.resolveVariable(
VariableResolverImpl.java:314)
>> at
>> com.sun.facelets.el.LegacyELContext$LegacyELResolver.getValue(
LegacyELContext.java:134)
>> at
>> com.sun.el.parser.AstIdentifier.getValue(AstIdentifier.java:68)
>> at com.sun.el.parser.AstValue.getValue(AstValue.java:107)
>> at
>> com.sun.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:192)
>> at
>> com.sun.facelets.el.TagValueExpression.getValue(TagValueExpression.java
:71)
>> at
>> com.sun.facelets.el.LegacyValueBinding.getValue(LegacyValueBinding.java
:56)
>> at javax.faces.component.UIOutput.getValue(UIOutput.java:80)
>> at
>> org.apache.myfaces.shared_impl.renderkit.RendererUtils.getObjectValue(
RendererUtils.java:186)
>> at
>> --
>> View this message in context:
>>
http://www.nabble.com/-facelets--problem-using-SelectItem-tf3301779.html#a9184631
>> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>>
>>
>
>

--
View this message in context:
http://www.nabble.com/-facelets--problem-using-SelectItem-tf3301779.html#a9185205
Sent from the MyFaces - Users mailing list archive at Nabble.com.




Re: How to get selected node with t:tree2?

2007-02-27 Thread Adrian Mitev

Try this:


  
 
  


or t:updateActionListener

2007/2/27, Marko Asplund <[EMAIL PROTECTED]>:


hi

I'm having problems figuring out how to determine the selected node in
t:tree2 when a user clicks a node link. Here's what my view looks
like:


  

  


With ADF Faces I could use something like the following piece of code
for getting the selected node:

public NavigatorBacking {
  TreeModel tree;

  public String nodeSelected() {
if(tree.isRowAvailable()) {
  MyNode n = (MyNode)tree.getRowData();
  // ...
}
return "success";
  }
}

How do I do this with t:tree2?



Re: jscookMenu doesn't work with Shale validator

2007-02-27 Thread Adrian Mitev

Cagatay, are you sure that jscookmenu supports onclick?

2007/2/27, Cagatay Civici <[EMAIL PROTECTED]>:


Hi,

Not sure but maybe you can try calling shale's function manually using
onclick attribute of jscookmenu's menuitem.

Cagatay

On 2/27/07, Juergen Kudla <[EMAIL PROTECTED]> wrote:
>
> hi, I'm using the shale client validation but i noticed that it
> doesn't work with the jscookMenu.
> for using the validation you put a "onsubmit" in the form tag to call
> the validation script.
> So the jscookMenu seems not to submit the form directly and therefor
> the onsubmit is never called.
>
> Does anybody know if there is a workaround?
>
> --
> Jürgen Kudla
>




Re: ajaxed Tree2 - content loaded twice when showRootNode=true

2007-02-24 Thread Adrian Mitev

Hi! I've developed custom ajax dataScroller on the base of t:dataScroller
and found out that In the original t:dataScroller the inner components
(commandLInks for the scroller) are transient (they're not saved in the
tree). To make it working on each request i reset  the childs of my
component and recreate them again from the new values. This way  i've
skipped duplicate ID problem and the childs to be created more than once.
Sample code you could find here [1].

[1]
https://ajax4jsf.dev.java.net/servlets/ProjectDocumentList?folderID=6510&expandFolder=6510&folderID=0

2007/2/24, Michal Glowacki <[EMAIL PROTECTED]>:


 Hi

I've 'ajaxed' tree2 component using a4j component library
(commandLinks + outputPanel). What I've discovered, is that when is set
attribute showRootNode to truel the children of root node are displayed
twice. I've checked why - that's because first getTreeModel is invoked and
then loadChildren. Can anybody give me a hint how to avoid it?

Thanks in advance,
Michal



Re: Multiple Form submissions

2007-02-21 Thread Adrian Mitev

Possible solution is the Synchronizer Token pattern. Shale got such
component called s:token [1]. More info about it you can find here [2].
There is also blog about this implemented as PhaseListener [3].

[1] http://shale.apache.org/shale-core/tagreference.html#token
[2] http://wiki.apache.org/shale/Token
[3] http://jroller.com/page/mert?entry=jsf_preventing_double_form_submit

2007/2/22, [EMAIL PROTECTED] <[EMAIL PROTECTED]>:


 Hi,



If same form is submitted multiple times (by double clicking submit
twice), my application is hanging. I need to restart the app server for it
to work.

Please let me know if there is any solution. I am using MyFaces1.1.1 with
Tomahawk.



Thanks & Regards,

Kiran

The information contained in this electronic message and any attachments
to this message are intended for the exclusive use of the addressee(s) and
may contain proprietary, confidential or privileged information. If you are
not the intended recipient, you should not disseminate, distribute or copy
this e-mail. Please notify the sender immediately and destroy all copies of
this message and any attachments.

WARNING: Computer viruses can be transmitted via email. The recipient
should check this email and any attachments for the presence of viruses. The
company accepts no liability for any damage caused by any virus transmitted
by this email.

www.wipro.com



Re: Need to know which values have changed?

2007-02-21 Thread Adrian Mitev

You can use valueChangeListener on all components related to that bean,
rewrite your setter methods or use dynamic proxy to intercept the bean's
setters.

2007/2/21, Bjørn T Johansen <[EMAIL PROTECTED]>:


I have a small "problem" I am not sure what is the best way to solve..
After a submit, I need to know which submitted fields have changed since
it was first displayed on a web page...

Comparing every fields feels like an overkill...?


Regards,

BTJ

--

---
Bjørn T Johansen

[EMAIL PROTECTED]

---
Someone wrote:
"I understand that if you play a Windows CD backwards you hear strange
Satanic messages"
To which someone replied:
"It's even worse than that; play it forwards and it installs Windows"

---



Re: How to cleanup an application scoped bean

2007-02-21 Thread Adrian Mitev

you can access it with #{applicationScope.beanName}

2007/2/21, H. Swaczinna <[EMAIL PROTECTED]>:


Hi,

I have an application scoped bean and want to do some cleanup when
the application is shutdown (undeployed). Is there a way to register
the bean somehow with the application context like I can register a
session scoped bean with the session context?

Regards
Helmut



Re: jscook error

2007-02-20 Thread Adrian Mitev

In order to work propertly the jscookmenu should be nested in form.

2007/2/20, Srinivas V <[EMAIL PROTECTED]>:


Hi All,
CAn anybody help me with jscook menu issue??

I have installed JSF 1.1.5-SNAPSHOT,Tomahawk1.1.5- SNAPSHOT and
tomahawk-sandbox-1.1.5-SNAPSHOT.

I am getting the error : org.apache.jasper.JasperException: jscook menu is
not embedded in a form.
*Do we have to put the jscook menu in the form only??*


I have a header page which is included in all my other jsps before form
tag.

page_header.jsp:





<[EMAIL PROTECTED] <[EMAIL PROTECTED]> file="../inc/taglibs.jsp"%>


 



 Main page:




<[EMAIL PROTECTED] <[EMAIL PROTECTED]> file="../inc/page_header.jsp"%>




..



Re: Pagination of large database tables

2007-02-19 Thread Adrian Mitev

Paul, could you send me private mail with your extended version of
ac:ajaxDataScroller?

2007/2/19, Paul Iov <[EMAIL PROTECTED]>:


 Thanks Mohammad, but i don't think, it meets all of my needs :) I'm using
A4j/Facelets to provide flexible and CONSISTENT templating support to the
customers. It would be really strange to make some exception just because
one of used UIComponents don't work correctly. The problem with
t:dataScroller is that it generates duplicated/inconsistent IDs if the
underlying DataModel changes. So I've extended the ac:AjaxDataScroller by
Adrian Mitev to support events and it works fine. I think, one custom
UIComponent, which does exactly what it have to do is much better than one,
which provides "workaround" for some other.

regards,
paul

Hello
But if you use PPRPanelGroup of Tomahawk Sandbox components you can add
Ajax-support to your page easily and it work woth dataScroller perfectly

On 2/19/07, Paul Iov <[EMAIL PROTECTED]> wrote:
>
> Hi Pallavi!
>
> First of all take a look at
> http://wiki.apache.org/myfaces/WorkingWithLargeTables. The illustrating
> code there is IMHO a little bit buggy (especially for subsets of large
> datasets, which commes from EJB it makes no sense to fetch the same page
> twice, since the sorting order never chahges), but generally this approach
> works fine.
>
> I have exactly the same usecase - large resultsets and fetching on
> demand, but I'm using ac:AjaxDataScroller insteed of ,
> because the second one is not Ajax-compatible :( Any way, with own extended
> implementation of DataModel im background it would be preaty easy to
> implement "fetch more" feature, you are asking for.
>
> regards,
> paul
>
> [EMAIL PROTECTED] schrieb:
>
> Hi All,
>
> I currently have a requirement for pagination.
> I want the following GUI display <<1 2 3 4 5 more >>.
> Where on click of << is for previous.
> And on click of >> is for next.
> So with these two i could go ahead with  for the above
> mentioned functionlity.
> But if i had the advantage of knowing the total number of rows with DB
> to perform COUNT operation on the total number of rows.
>
> But for larger tables this wouldn't be efficient.
> Hence the requirement demands fetching rows in multiples of 250.
> And each page displaying 50 rows per page.
> With the click on more it would fetch the next 250 rows.
> And the display should look like << 6 7 8 9 10 More >>.(something
> similar to google's pagination).
>
> Is there a way by which i can implement this.
> Or can i extend the functionality of  to implement this.
> Any suggestions are welcome.
>
>
> Best Regards,
> Pallavi
>
>
>
>
>
> The information contained in this electronic message and any attachments
> to this message are intended for the exclusive use of the addressee(s) and
> may contain proprietary, confidential or privileged information. If you are
> not the intended recipient, you should not disseminate, distribute or copy
> this e-mail. Please notify the sender immediately and destroy all copies of
> this message and any attachments.
>
> WARNING: Computer viruses can be transmitted via email. The recipient
> should check this email and any attachments for the presence of viruses. The
> company accepts no liability for any damage caused by any virus transmitted
> by this email.
>
> www.wipro.com
>
>
>


--
Regards,
Mohammad





Re: Myfaces core 1.1.5 and Tomohawk1.1.3

2007-02-19 Thread Adrian Mitev

Tomahawk 1.1.3 is incompatible with myfaces core 1.1.5. See this [1] for
more info.

[1]
http://wiki.apache.org/myfaces/CompatibilityMatrix?highlight=%28matrix%29


2007/2/19, Srinivas V <[EMAIL PROTECTED]>:


Hi,
Can anybody help me solve this issues?
I have installed Myfaces core 1.1.5 and Tomohawk1.1.3 into my Tomcat 5.5.9
.

I am getting the following error:

java.lang.NoClassDefFoundError:
org/apache/myfaces/custom/buffer/HtmlBufferResponseWriterWrapper
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors (Unknown Source)
at java.lang.Class.getConstructor0(Unknown Source)
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at org.apache.myfaces.shared_impl.util.ClassUtils.newInstance (
ClassUtils.java:277)
at org.apache.myfaces.shared_impl.util.ClassUtils.newInstance(
ClassUtils.java:268)
at org.apache.myfaces.config.FacesConfigurator.configureLifecycle(
FacesConfigurator.java:781)
at org.apache.myfaces.config.FacesConfigurator.configure(
FacesConfigurator.java:151)
at
org.apache.myfaces.webapp.StartupServletContextListener.initFaces
(StartupServletContextListener
at
org.apache.myfaces.webapp.StartupServletContextListener.contextInitialized(StartupServletContex
at org.apache.catalina.core.StandardContext.listenerStart(
StandardContext.java:3669)
at org.apache.catalina.core.StandardContext.start(
StandardContext.java:4104)
at org.apache.catalina.core.ContainerBase.start (
ContainerBase.java:1012)
at org.apache.catalina.core.StandardHost.start(StandardHost.java
:718)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java
:1012)
at org.apache.catalina.core.StandardEngine.start (
StandardEngine.java:442)
at org.apache.catalina.core.StandardService.start(
StandardService.java:450)
at org.apache.catalina.core.StandardServer.start(
StandardServer.java:683)
at org.apache.catalina.startup.Catalina.start (Catalina.java:537)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke (Unknown
Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:271)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java :409)

Also I am getting:
05,504 ERROR [[nitrox-debugger-tomcat5]] Servlet.service() for servlet
nitrox-debugger-tomcat5 threw exception
ang.NullPointerException: serialFactory
  at org.apache.myfaces.shared_impl.util.StateUtils.getAsByteArray (
StateUtils.java:178)
  at org.apache.myfaces.shared_impl.util.StateUtils.construct(
StateUtils.java:154)
  at org.apache.myfaces.renderkit.html.HtmlResponseStateManager.writeState
(HtmlResponseStateManager.java:88)
  at org.apache.myfaces.application.jsp.JspStateManagerImpl.writeState(
JspStateManagerImpl.java:398)
  at org.ajax4jsf.framework.ajax.AjaxStateManager.writeState(
AjaxStateManager.java:91)
  at org.apache.myfaces.taglib.core.ViewTag.doAfterBody (ViewTag.java:150)
  at org.apache.jsp.pages.EPCManager_005fLogin_jsp._jspx_meth_f_view_0(
org.apache.jsp.pages.EPCManager_005fLogin_jsp:203)
  at org.apache.jsp.pages.EPCManager_005fLogin_jsp._jspService(
org.apache.jsp.pages.EPCManager_005fLogin_jsp:129 )
  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.java :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(
ApplicationFilterChain.java:252)
  at org.apache.catalina.core.ApplicationFilterChain.doFilter(
ApplicationFilterChain.java:173)
  at org.apache.catalina.core.ApplicationDispatcher.invoke (
ApplicationDispatcher.java:672)
  at org.apache.catalina.core.ApplicationDispatcher.processRequest(
ApplicationDispatcher.java:463)
  at org.apache.catalina.core.ApplicationDispatcher.doForward(
ApplicationDispatcher.java :398)
  at org.apache.catalina.core.ApplicationDispatcher.forward(
ApplicationDispatcher.java:301)
  at
org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(
ServletExternalContextImpl.java:419)
  at org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(
JspViewHandlerImpl.java:211)
  at org.ajax4jsf.framework.ViewHandlerWrapper.renderView(
ViewHandlerWrapper.java:101)
  at org.ajax4jsf.framework.ajax.AjaxViewHandler.renderView (
AjaxViewHandler.java:197)
  at org.apache.myfaces.lifecycle.RenderResponseExecutor.execute(
RenderResp

DefaultAddResource logs warning

2007-02-17 Thread Adrian Mitev

Hi all! I'm doing ajax request and partial response but in the log i get the
following:

WARN  [DefaultAddResource] Response has no  or  tag:
.

Idea where's the problem?


Re: How to call bean method from url?

2007-02-14 Thread Adrian Mitev

Try Shale remoting - http://www.shale.apache.org

2007/2/14, Volker Weber <[EMAIL PROTECTED]>:


Hi,

whats the problem with a servlet?

Here is the base code:

http://wiki.apache.org/myfaces/InvokingJsfPagesWithStandardUrls#head-6c1aaf488d48f938896da962aaa4361ec3ffaf70

Regards,
  Volker

2007/2/14, Yuri Ivanov <[EMAIL PROTECTED]>:
> Thank you for replay,
> but then I need to create paymentStatus.jsf page and then access these
> fields in that jsf. And it's I don't like this approach because, first
must
> be called Action and only then View.
>
> May be I will try shale for this ...
> Are there other tools for complete this task?
>
>
> -Original Message-
> From: David Delbecq [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, February 14, 2007 4:14 PM
> To: MyFaces Discussion
> Subject: Re: How to call bean method from url?
>
> You can define a request scope bean for which some properties are
> managed by JSF:
>
> simple example:
>
http://yourserver/youApp/paymentStatus?transactionId=123456789&result=987654
> 321
>
> and in faces-config.xml:
> 
> 
> transactionResultBean
> 
> 
> com.company.SomeClass
> 
> request
> 
> Gets the transaction Id from url
> transactionId
> java.lang.String
> #{param['transactionId']}
> 
> 
> Gets the transaction result from
url
> result
> java.lang.String
> #{param['result']}
> 
> 
>
> En l'instant précis du 02/14/07 14:03, Yuri Ivanov s'exprimait en ces
> termes:
> > Hello all,
> >
> > I am new in JSF, I have a simple question.
> >
> > I need to integrate JSF application with external payment system. This
> > system can call my url if payment successfully transferred. But I
can't
> > understand how can I define method in back bean that will be called
before
> > rendering response.
> >
> > Of course I can write Servlet for handling this situation, but it's
not
> very
> > convenient for me.
> >
> >
> >
> > Thanks,
> >
> > Yuri.
> >
> >
> >
>
>



Re: How to reset scroller?

2007-02-14 Thread Adrian Mitev

Actually it's not bug in the scrollers, it comes from the dataTable. Create
binding to the dataTable and in the method where you change the model put
the following: dataTable.setFirst(0);

This should fix your problem. The same is with ac:ajaxDataScroller

2007/2/14, [EMAIL PROTECTED] <[EMAIL PROTECTED]>:


Hi,

I'm using your component called t:dataScroller with a4j, but I've got
the same issue with others scrollers like ac:ajaxDataScroller.

So I have t:datatable with some values(ex.10rows), and the scroller,
when I scroll for example to second page, and then I'll clear the
t:datatable(and add one row), the scroller is still set to the second
page, but I need set it to first one, is any way to do it?
In my case it causes rendering the "empty" table after response.

My page looks like:




 





   


   ...



Thanks for you help.

Tomek



Re: How to call bean method from url?

2007-02-14 Thread Adrian Mitev

Create phaselistener where to check the url and invoke method or simply use
Shale Remoting [1]

[1] http://shale.apache.org/shale-remoting/index.html

2007/2/14, Yuri Ivanov <[EMAIL PROTECTED]>:


 Hello all,

I am new in JSF, I have a simple question.

I need to integrate JSF application with external payment system. This
system can call my url if payment successfully transferred. But I can't
understand how can I define method in back bean that will be called before
rendering response.

Of course I can write Servlet for handling this situation, but it's not
very convenient for me.



Thanks,

Yuri.



Possible bug with JSCookMenu

2007-02-12 Thread Adrian Mitev

Hi all! I'm using the latest build of tomahawk with facelets. I see that
styleLocation attribute is ignored, in the renderer its taken from the
attributes list but always the value is null. And i don't see property for
styleLocation in the tag class too.


JSCookMenu does not use custome style

2007-02-12 Thread Adrian Mitev

Hi all! I'm using jscookmenu like this:

..

This is what's rendered in the page: 

How to tell the component to use my theme.css?


Re: Fitler missing exception

2007-02-10 Thread Adrian Mitev

I found my problem. It was cause i have t:jscookMenu on my first page and
i'm forwarding to it with jsp:forward. I changed it with
response.sendRedirect() and it is ok now.

2007/2/10, Titi Wangsa <[EMAIL PROTECTED]>:


i'm not really sure, but i get that error too, however, the pages are
displayed properly...
and the error is only displayed once or twice.., that is when the app
starts.
after that no more errors and the pages seem to be displayed properly and
so far no problems



Fitler missing exception

2007-02-10 Thread Adrian Mitev

Hi all! I have troubles with myfaces and the extensionsFilter. I get the
following exception:


java.lang.IllegalStateException: ExtensionsFilter not correctly configured.
JSF mapping missing. JSF pages not covered. Please see:
http://myfaces.apache.org/tomahawk/extensionsFilter.html
   at
org.apache.myfaces.renderkit.html.util.AddResourceFactory.throwExtensionsFilterMissing
(AddResourceFactory.java:358)
   at
org.apache.myfaces.renderkit.html.util.AddResourceFactory.checkEnvironment(
AddResourceFactory.java:318)
   at
org.apache.myfaces.renderkit.html.util.AddResourceFactory.getInstance(
AddResourceFactory.java:273)
   at
org.apache.myfaces.custom.navmenu.jscookmenu.HtmlJSCookMenuRenderer.addResourcesToHeader
(HtmlJSCookMenuRenderer.java:396)
   at
org.apache.myfaces.custom.navmenu.jscookmenu.HtmlJSCookMenuRenderer.encodeBegin
(HtmlJSCookMenuRenderer.java:355)
   at javax.faces.component.UIComponentBase.encodeBegin(
UIComponentBase.java:515)

Here is the mapping in web.xml:

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

   
   maxFileSize
   20m
   
   

 
   MyFacesExtensionsFilter
   Faces Servlet
   

   
   MyFacesExtensionsFilter
   /faces/myFacesExtensionResource/*
   


   Faces Servlet
   javax.faces.webapp.FacesServlet
   1
   

   
   Faces Servlet
   *.jsf
   

I'm using tomahawk nightly build from 10.02.2007


Tree2: Show tree expanded

2007-02-10 Thread Adrian Mitev

Hi all! Is there way to show the tree expanded when i show it for the first
time?


Does myfaces 1.1.5 nightly build require java 5 ?

2007-02-06 Thread Adrian Mitev

Hi all. I've just downloaded the nightly build. I run it under jboss with
1.4.2_11 jdk and i got this exception:

ERROR [FacesConfigurator] failed to configure class
org.apache.myfaces.custom.imageloop.HtmlImageLoopRenderer
java.lang.NoSuchMethodError: java.lang.Integer.valueOf(I)Ljava/lang/Integer;
   at org.apache.myfaces.custom.imageloop.HtmlImageLoopRenderer
.(HtmlImageLoopRenderer.java:44)
   at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
   at sun.reflect.NativeConstructorAccessorImpl.newInstance(
NativeConstructorAccessorImpl.java:39)
   at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(
DelegatingConstructorAccessorImpl.java:27)
   at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
   at java.lang.Class.newInstance0(Class.java:308)
   at java.lang.Class.newInstance(Class.java:261)

As i see HtmlImageLoopRenderer uses method valueOf(int) that is not defined
in jdk 1.4.2


Re: How to set session-timeout?

2007-02-06 Thread Adrian Mitev

Session timeout is configured in web.xml. Like this:


   30



2007/2/6, Thomas Chang <[EMAIL PROTECTED]>:


Hi all,

I want to set a so-called session timeout to my web application, so that
is a user after logon and doesn't do anything for a while, his session will
be closed and he has to re-logon to enter the web-application.

I wonder this can be configue in server such as BEA-Webcontainer or I have
to programm it. How?

Regards

Thomas

--
Jetzt Mails schnell in einem Vorschaufenster überfliegen. Dies und viel
mehr bietet das neue Yahoo! Mail

.




Re: ajax4jsf, checkbox, and reRender

2007-02-01 Thread Adrian Mitev

Whats your issue? Please paste your code.

2007/2/1, Garner, Shawn <[EMAIL PROTECTED]>:


 Has anyone had any problems getting a a4j:outputPanel to reRender when
checking a checkbox?

I'm having such issues and need some help.



Shawn






This email may contain confidential
material. If you were not an intended recipient,
Please notify the sender and delete all copies.
We may monitor email to and from our network.

 ***





Re: A question about file-download

2007-01-26 Thread Adrian Mitev

See here - http://wiki.apache.org/myfaces/Sending_Files

2007/1/26, Thomas Chang <[EMAIL PROTECTED]>:


Hi,

My code look as follow. What I want to do is: I generate a file in
run-time and put it under a dir in server-side, assumed under
"c:\temp\myfile.txt". If one clicks the commmanlink, a pop-up dialog for
file-download will be shown and one can chose a dir in local to save the
file. I wonder if I can use my following code to do so. And I want to know
how can I write the function fileDownlaod() in my backing bean.

Or one can do this in an other way?

Thanks

Thomas

myJSF.xhtml
*
...

...


MyBean.java
*
...
 fileDownload(){
  }
...

--
Besseren Schutz gegen Spam - jetzt bei dem neuen Yahoo! Mail
.





Re: where i can download Tomahawk examples source code?

2007-01-21 Thread Adrian Mitev

The beans and the pages are in the example project.

2007/1/21, legolas <[EMAIL PROTECTED]>:



Hi
Thank you for reading my post.
can you please tell me where i can downlaod source code for Tomahawk
examples ?
binaries are http://people.apache.org/builds/myfaces/nightly/ but i can
not
find the source codes.

--
View this message in context:
http://www.nabble.com/where-i-can-download-Tomahawk-examples-source-code--tf3050509.html#a8479853
Sent from the MyFaces - Users mailing list archive at Nabble.com.




Re: Parameter lost on validation failure

2007-01-08 Thread Adrian Mitev

It is expected because the request parameter is in request scope.

2007/1/8, Olof Næssén <[EMAIL PROTECTED]>:


Hello!

I have a jsp page which is reached by using a commandLink with a
parameter. In the page I have a form with validation. If validation
fails, and the user is redirected back to the page, the parameter is
lost. Is this expected behavior? Is there a way around this?

/Olof



Re: NavigationMenuItems and Facelets

2007-01-05 Thread Adrian Mitev

I saw in the source code that is inherits SelectItems and tried it with
f:selectItems and its working.

2007/1/5, Adrian Mitev <[EMAIL PROTECTED]>:


Hi all. How to use  with facelets. I see only
component for NavigationMenuItem but not for NavigationMenuItems?



NavigationMenuItems and Facelets

2007-01-05 Thread Adrian Mitev

Hi all. How to use  with facelets. I see only
component for NavigationMenuItem but not for NavigationMenuItems?


Re: is there any marqueue like jsf component arounf?

2007-01-05 Thread Adrian Mitev

There is in jenia4faces: http://www.jenia.org/TestDynamic/

2007/1/5, legolas <[EMAIL PROTECTED]>:



Hi
thank you for reading my post
I ma looking for a marqueue like component in JSF, is there any component
with this ability around?
indeed i am looking for a something like a new ticker component that can
scroll some text.

thanks
--
View this message in context:
http://www.nabble.com/is-there-any-marqueue-like-jsf-component-arounf--tf2925389.html#a8177571
Sent from the MyFaces - Users mailing list archive at Nabble.com.




Re: How to get client browser's resolution.

2007-01-03 Thread Adrian Mitev

Please ignore this post.

2007/1/3, Adrian Mitev <[EMAIL PROTECTED]>:


Hi all! I want to get the width and height of the client brower and
show different styles according to the size. Any suggestions how to do
it?

--
Seeing is believing



Re: How to get client browser's resolution.

2007-01-03 Thread Adrian Mitev

Yes! But i'm wondering how the get it before rendering the first page.

2007/1/3, Volker Weber <[EMAIL PROTECTED]>:


Here is the tobago code:

  var clientDimension
  = this.createInput("hidden", this.form.id + '-clientDimension');
  clientDimension.value
  = document.body.clientWidth + ";" + document.body.clientHeight;
  this.form.appendChild(clientDimension);

Regards,
  Volker

2007/1/3, Adrian Mitev <[EMAIL PROTECTED]>:
> I saw the tobago code. There they have a function for getting the
browser's
> resolution.
>
> 2007/1/3, Gilles Demarty <[EMAIL PROTECTED] >:
> > Hi adrian,
> >
> > a Css Solution :
> >
> > http://alistapart.com/articles/switchymclayout
> >
> > hope this help.
> > Not really related to myfaces, tough.
> >
> > Gilles
> >
> > 2007/1/3, Adrian Mitev <[EMAIL PROTECTED] >:
> > > Hi all! I want to get the width and height of the client brower and
show
> > > different css styles according to the size. Any suggestions how to
do
> it?
> >
>
>



How to get client browser's resolution.

2007-01-03 Thread Adrian Mitev

Hi all! I want to get the width and height of the client brower and
show different styles according to the size. Any suggestions how to do
it?

--
Seeing is believing


Re: How to get client browser's resolution.

2007-01-03 Thread Adrian Mitev

I saw the tobago code. There they have a function for getting the browser's
resolution.

2007/1/3, Gilles Demarty <[EMAIL PROTECTED]>:


Hi adrian,

a Css Solution :

http://alistapart.com/articles/switchymclayout

hope this help.
Not really related to myfaces, tough.

Gilles

2007/1/3, Adrian Mitev <[EMAIL PROTECTED]>:
> Hi all! I want to get the width and height of the client brower and show
> different css styles according to the size. Any suggestions how to do
it?



How to get client browser's resolution.

2007-01-03 Thread Adrian Mitev

Hi all! I want to get the width and height of the client brower and show
different css styles according to the size. Any suggestions how to do it?


  1   2   >