Hi,I need to associate an actionlistener with an htmlcommandbutton in java code. I am using the following code snippet:HtmlCommandButton addButton = new HtmlCommandButton();
addButton = new HtmlCommandButton();
MethodBinding mb =
See this patch for the datascroller (for 1.1.5)
http://issues.apache.org/jira/browse/TOMAHAWK-764?page=all
-Original Message-
From: Jeff Bischoff [mailto:[EMAIL PROTECTED]
Sent: Montag, 6. November 2006 18:48
To: MyFaces Discussion
Subject: Re: Uidata first argument valueBinding
I have read somewhere also that you need at least a cache size of 1 to
be able to handle the 'change' event on you components (myfaces must
have the previous values stored somewhere to be able to detect changes).
If you are using client side state, then you don't need this.
Simon Kitching a écrit
Hi,
you need to declare the method arguments on createMethodBinding.
try:
createMethodBinding(#{filter.addFilterToSubset}, new Class[]
{ActionEvent.class});
You can take a look into the tag sources for information how to set
any tag attribute value into the UIComponent object.
Regards,
Yes, that's correct. I am using http basic authentication, which means that
when a page get's rendered, the user is already authenticated and there is
no possiblity to re-show the login screen again, because the browser caches
the username and password.
I am not able to use form based login,
Hi,It works now. Thanks.Regards,AneeshaOn 11/7/06, Volker Weber [EMAIL PROTECTED]
wrote:Hi,you need to declare the method arguments on createMethodBinding.
try:createMethodBinding(#{filter.addFilterToSubset}, new Class[]{ActionEvent.class});You can take a look into the tag sources for information
Ok Michael!
Thanks for having post your bug to Tomahawk's JIRA and thanks for this patch suggest. I was going mad... not seeing what was wrong with my page.
The patch acts at HtmlDataScroller level and, so, only applies to UIDatafirst attribute.
What about other attributes in UIData (e.g rows and
Thanks David - that was very informative.
I can't help but thinking that quite many applications would want to
lower the NUMBER_OF_VIEWS_IN_SESSION from the default 20. I mean if the
user really visits the same website 20 times and thus sees view 1, 2,
..., 20, what are the chances that he
Hello,
I try to use a dataTable with MyFaces 1.1.4 in a
Tomcat server 5.5.17.
Everything works correctly (the component is added to
the page and the header is specified) except that the
datas of the line aren't displayed.
I have looked at the source code of the page and it
seems nevertheless that
Hey all,
I have the following JSP tag for my calendar
t:inputCalendar id=searchAfterDateSet2
monthYearRowClass=xyearMonthHeaderx
weekRowClass=xweekHeaderx
currentDayCellClass=xcurrentDayCellx
value=#{theSessionSearchBean.createdAfterB}
renderAsPopup=true
Hello Martin,
Thanks a lot for your response. It is really a stupid
error!!
Thierry
Hi Thierry,
you have a small mistake in your JSP - you need to
replace
column
/column
with:
h:column
/h:column
regards,
Martin
Take a look at my blog:
http://jroller.com/page/Templth/
(old:
Hi Steven,
your problem description indicates to a problem in the state-saving
and restoring mechanism of HtmlForm - I looked through it, but didn't
find one, everything seems alright. Can you try to debug through
restoreState, saveState and getPort of
org.apache.myfaces.custom.form.HtmlForm and
Hi Niklas,
I suppose you could pass an attribute into your facelets-component like this:
myns:mycomp id=test/
and then use this id as a name for the msg:
f:loadBundle var=#{id}/
not tested, not guaranteed to work ;)
regards,
Martin
On 11/6/06, Niklas Ekman [EMAIL PROTECTED] wrote:
Hello,
I tried using the following combination:
Client validators defined in http://jsf-comp.sourceforge.net/components/clientvalidators/index.html
+ sandbox subForm component to do partial client side validations.
It did not work!!!
Code snippet:
s:subForm id=demogrphicMain
In Sun's own Java EE5 tutorial it says that when developing JSF
components that have no children you should implement encodeEnd rather
than encodeBegin:
The UIComponentBase class defines a set of methods for rendering
markup: encodeBegin, encodeChildren, and encodeEnd. If the component has
I tried using the following combination:
Client validators defined in http://jsf-comp.sourceforge.net/components/clientvalidators/index.html
+ sandbox subForm component to do partial client side validations.
It did not work!!!
Code snippet:
s:subForm
id=demogrphicMain
Can u pls try to narrow down the problem ? In the sense,
try to figure out which module (sandbox or jsf-comp) is not behaving properly.
Just change the validation to normal jsf required validation and see whether
sandbox is working properly.
-- Kannan.
From: Madhav Bhargava
Rafael Nami schrieb:
Hi everyone
I'm experiencing an error in javascript, everytime that I'm redirected
to my detail pages after updating a register.
I'm using prototype and scriptaculous to do the fading technique in my
messages.
The error is this:
'elements' is null or not an object.
In my page the jscookmenu is outside of any form, as sayed at manual...I'm using tomahawk 1.3 and myfaces 1.3. When I click in a jscookmenu, the post is sended, but the navigation doesn't work, and the actionListeners are not called.
It stop to work when I moved the layout of the project folders
Hi All,
Is there a component for displaying a popup in Myfaces?
I have tried using the popup component - http://www.jenia.org
However I have encountered the following problems:
The popup closes when clicked
anywhere else on the screen. This does not serve my purpose as the
Hi
All,
I have written a code for
floating window in _javascript_.
I have tried to run
in the IE and its working fine.
I now intend to integrate this
code in JSF(Websphere Portals).
body
style="background-color: #DD"
exceptionDiv" style="position:relative; padding-top:5px;
Madhav,
Try using some AJAX for partial submits and client-side validation. :)
[1] https://ajax4jsf.dev.java.net/nonav/ajax/ajax-jsf/
Regards,
Jeff Bischoff
Kenneth L Kurz Associates, Inc.
Madhav Bhargava wrote:
Hi All,
MyForm:
Mandatory fields on the form:
1. Last Name
2. First Name
Well, I've tried a POC (Proof of concept) with myfaces-1.1.5-SNAPSHOT and latest tomahawk, and it worked like a charm :).
Worked so amazinglygood that I've eliminated all the tricks that I've done withAjax, Dojo and Scriptauculos in favor to DojoInitializer and Sandbox components.I'm really
Pallavi,
There is no page onload attribute in the JSF spec. As I understand, this
was deliberately excluded for some reason. Perhaps they felt it led to
poor designs.
However, if you really need an onload() event, don't despair. If you add
Ajax4jsf you can use the onload from the a4j:page
Hi Jeff,
Which component are you referring to for client side validations?
Partial submits - Yes that can be done.
I wanted to keep both server and client side validations in case the
javascript is disabled. Using Ajax will require a browser to be
javascript enabled.
I wanted to keep that to
Have you checked to make sure there are no validation errors?
Damar Thapa wrote:
Hi,
I have managed to workout with dataTable now; thank you. But, I have a
question about ValueChage event.
I have the following snapshot:
h:selectOneMenu value=#{applicationProcess.courseTitle}
Thanks for your message. But, there is no validation error.
With regards,
Damar
On 11/7/06, Jeff Bischoff [EMAIL PROTECTED] wrote:
Have you checked to make sure there are no validation errors?
Damar Thapa wrote:
Hi,
I have managed to workout with dataTable now; thank you. But, I have a
Googling a bit I found a DOJO component
modal dialog (s:modaldialog) which serves the purpose.
Has anyone used this component as I am not
able to find any help on usage of this component?
From: Madhav Bhargava
[mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 07, 2006
6:53
[EMAIL PROTECTED] wrote:
Yes, that's correct. I am using http basic authentication, which means that
when a page get's rendered, the user is already authenticated and there is
no possiblity to re-show the login screen again, because the browser caches
the username and password.
I am not able to
Madhav Bhargava wrote:
I wanted to keep both server and client side validations in case the
javascript is disabled. Using Ajax will require a browser to be
javascript enabled.
I wanted to keep that to the minimum. So Ajax is always my last resort
as the web app we are developing is going to
Hi.
Thanks for your help.
Naturally, it works.
Tanhks again.
f_b
Gerald Müllan wrote:
Hi,
what you exactly mean with But, the bodies of panelTab are in
different jsf.? From which source you want to get the different tabs?
In jsp you can do native jsp-includes with f:subview-tags in
Yes, in a way you are right.
Sandbox subForm by itself and server side validations works pretty well.
I tried to use it with client validators created in jsf-comp. They both
just do not work together. Partial validation does not happen. I have
posted a code snippet in the list some time back.
Hi Jeff,
Yes I've seen... I had to stop writing my reply because my train arrived
and I had to go to the bus station ;)
I will read and answer all your mails when I am on the way home today...
Dominik
-Original Message-
From: Jeff Bischoff [mailto:[EMAIL PROTECTED]
Sent: Tuesday,
No there isn't a safe way to do this, especially if you are using
401/HTTP authentication. The cookie that stores the servlet session ID
is marked as secure and therefore cannot be viewed outside of HTTPS.
Once you leave HTTPS and enter HTTP, a new servlet session will be
started and you will not
For my company, I wrote our own custom servlet filter for security. We
did not want to introduce Spring into the framework so that ruled out
acegi. Container managed security in J2EE is a horrible specification
and does not fit well with JSF at all (not enough ways to customize it
and it only
I ended up using a servlet filter so that I can protect all resources,
not just JSF. The phase listener approach was fine for securing JSF
pages, but not CSS, JS, PNG, etc. files. So I decided to move my code
out of the phase listener and add it to a servlet filter instead.
That takes care of
Hi,
you mean the new list is not re-displayed?
Is the valuechange-method called? You have given a wrong binding (left
out the #{ } ), in this case maybe thats the problem.
regards,
Gerald
On 11/7/06, Damar Thapa [EMAIL PROTECTED] wrote:
Thanks for your message. But, there is no validation
Hey all,
Has anyone run into (and perchance solved) the problem where you cannot
undeploy an application with the ADF jar in its lib while Tomcat is running
because the jar file is in use? I get this using the tomcat ant task for
undeploy. (I've also seen this with the ajax4jsf jar).
Thanks.
Hi,
I seem to be stuck in a bug of the tree table. This is my scenario:
- The (tree) table contains several rows.
- The rows can contain objects of different types, rendering is
determined by rendered-attribute.
example data:
Root
+ Header 1
+ Details 1
+ Header 2
+ Details 2
public
I believe I have fixed this by adding:
filter-mapping
filter-nameextensionsFilter/filter-name
url-pattern/faces/myFacesExtensionResource/*/url-pattern
/filter-mapping
--Todd
-Original Message-
From: Todd Patrick [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November
None of my style sheets or resources work now that I added the
ExtensionsFilter.
I have the following in my page:
t:stylesheet path=/resources/login.css/
But the style sheet is never rendered. When I look at the source of the
page, I see:
link rel=stylesheet type=text/css href=/correct
Sounds like file downloads must be an integral part of your application.
What approach did you take for this?
Yes, it is ;). I've done something like this:
-- There is a base project, containing all classes responsible for file
downloads (There are different types of downloads, downloads
Yes, that's correct, the JsfSecurityManager get's the stack trace, looks up
the calling method, retrieving the annotation, checking the access rights,
and throwing an exception if access is not allowed.
@SecurityGuard(TypRoles.ADMIN)
public AdminBean getAdminBean()
{
To be honest, I've totally lost the overview, are there any open questions
left?
Dominik
Andrew,
My responses are inline:
Andrew Robinson wrote:
I ended up using a servlet filter so that I can protect all resources,
not just JSF. The phase listener approach was fine for securing JSF
pages, but not CSS, JS, PNG, etc. files. So I decided to move my code
out of the phase listener and
Dominik,
Hmm, I wonder what kind of overhead that incurs. Of course, if you are
only checking it once per HTTP request, I don't suppose it would matter.
Sounds like it would be roughly equivalent to creating an exception (due
to the stack trace manipulation).
Andrew is doing something like
You do not need container managed security if you are not interested
in URL based security. So for view only security, go ahead and use a
phase listener approach. FYI, you will have to implement your own
method of authentication (403 or form based).
On 11/7/06, Jeff Bischoff [EMAIL PROTECTED]
Andrew Robinson wrote:
You do not need container managed security if you are not interested
in URL based security. So for view only security, go ahead and use a
phase listener approach. FYI, you will have to implement your own
method of authentication (403 or form based).
Well I've already
Hmm, I wonder what kind of overhead that incurs. Of course, if you are
only checking it once per HTTP request, I don't suppose it would matter.
Sounds like it would be roughly equivalent to creating an exception (due
to the stack trace manipulation).
You are totally right ;). At the
Dominik,
Reponses inline:
[EMAIL PROTECTED] wrote:
Hmm, I wonder what kind of overhead that incurs. Of course, if you are
only checking it once per HTTP request, I don't suppose it would matter.
Sounds like it would be roughly equivalent to creating an exception (due
to the stack trace
Really? The examples I have seen all use the stack trace in some way.
How are you accessing the current method?
Hehe... to be honest, I've not yet tried it on Java, but I've used a similar
approach about a year ago on a .NET application and I've used something like
Method.getCurrentMethod().
Hey guys, Ive got a tricky problem Im hoping someone
has run into before. I have a dataTable with rows that, among other
things, have a selectOneMenu in them. Whenever I change the value of a
menu, I want to persist its new value in my database (I am using JPAGlassfish
implementation of
Dominik,
You would think so, right? I mean, it is trivial to get the class
reference, and all sorts of info from that...
The only useable static reference from the Method class is class, and
while that gives you access to much less commonly-needed information
like the class' enclosing
Can you please tell me how can I debug my myface application.
I have this in my page,
h:commandButton value=#{text['button.save']}
action=#{buildForm.save} styleClass=button/
but when I click the 'button', nothing happens.
Can you please help me how to trouble shoot.
I put this line in my
Is anyone aware of a Gantt Chart component out there that works with MyFaces ?Thanks - Anil.
Hi,JSF Chart Creator could do gantt charts. You may need to check out how to create the dataset with JFreeChart api and use the jsf component with the type attribute gantt.
http://www.cagataycivici.com/chartcreator/CagatayOn 11/7/06, Anil Kommareddi [EMAIL PROTECTED]
wrote:Is anyone aware of a
Hello,Facestrace could help to show what is going on with the JSF Lifecycle and more.See this example;http://www.cagataycivici.com/facestrace/
Cagatay CiviciOn 11/7/06, ying lcs [EMAIL PROTECTED] wrote:
Can you please tell me how can I debug my myface application.I have this in my
More likely, he just needs an h:messages tag somewhere on the page. :)
t:message showDetail=true showSummary=false
styleClass=errorMessage
/
This won't work - t:message requires a for attribute. See [1].
[1] http://myfaces.apache.org/tomahawk/tlddoc/t/message.html
Regards,
Jeff Bischoff
Thanks Cagatay, sourceforge seems to be down at the moment. I will take a look when it is back up.- Anil.From: Cagatay Civici [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 07, 2006 4:26 PMTo: MyFaces Discussion; [EMAIL PROTECTED]Subject: Re: Gantt Chart in TomahawkHi,JSF Chart Creator
Hi,
since no values are displayed at all, possibly valuechange-method is
not called. I have put the binding - thanks. How can I check if the
method is called? Sorry, this is my very first JSF application.
Thanks once again.
With regards,
Damar
On 11/8/06, Gerald Müllan [EMAIL PROTECTED]
Hi,
It is me again. Just to confirm that valuechange-method is not called
-- console shows no actions. How can I ensure that it is called?
With regards,
Damar
On 11/8/06, Damar Thapa [EMAIL PROTECTED] wrote:
Hi,
since no values are displayed at all, possibly valuechange-method is
not
When using t:inputDate a form button with value=... is displayed on
the web page (form button with three periods).
I have a requirement to replace these three periods with an image (jpg)
but can not seem to figure out how to do this. Any suggestions would be
greatly appreciated.
I have
Hi,
I found a typo instead of onchange I had typed onChange, and it was
causing the problem of not executing the valueChange method. Sorry for
this and thanks for your help.
With regards,
Damar
On 11/8/06, Damar Thapa [EMAIL PROTECTED] wrote:
Hi,
It is me again. Just to confirm that
63 matches
Mail list logo