Hello Kevin,
maybe you could use the param tag, like this
h:commandButton id=validate action=#{userAction.validateUser}
h:outputText value=#{msg.validate}/
f:param name=id value=#{user.id}/
/h:commandLink
To get the parameter id in your bean, use:
FacesContext context =
For jsf facelets, does tomahawk have a menu component for facelets?
or other tools does good for facelets?
thanks
Yes this is a probably other way, but you have to invest little bit more work.
Under the hood updateActionListener works something like this but is
more convenient.
cheers,
Gerald
On 11/13/06, Richard Capraro [EMAIL PROTECTED] wrote:
Hello Kevin,
maybe you could use the param tag, like this
is JSCookMenu a widely used menu component?
I want to use a programmable or configurable menu component for facelets.
any advices?
On 11/13/06, PingCheung [EMAIL PROTECTED] wrote:
For jsf facelets, does tomahawk have a menu component for facelets?
or other tools does good for facelets?
thanks
Hi,
in MyFaces the best way to pass some parameters to a backing bean is
the usage of t:updateActionListener:
h:commandLink value=delete entry action=#{managedBean.deleteEntry}
t:updateActionListener
property=#{managedBean.idOfEntryToDelete} value=#{entry.id}/
/h:commandLink
The
I get the bean from the rowData, use its unique id to find it in the
database and delete it there ( the bean knows howto delete itself ).
I guess to make it work i have to delete it in the backing beans list
too, am i right?
Torsten
Am Montag, den 13.11.2006, 00:03 +0100 schrieb Gerald Müllan:
Sure, JSCookMenu is widely used. I have used it several times and it
works very well.
But have a look at our examples page:
http://example.irian.at/example-simple-20061113/home.jsf
Under Menu there are also some other possibilities which you can
take advantage of.
cheers,
Gerald
On 11/13/06
I guess to make it work i have to delete it in the backing beans list
too, am i right?
Yes, you are right.
I would suggest, if you delete the entry in db when fireing the
delete-entry action, refresh the
list in the managed bean by fetching the new list from db and not
deleting it out of the
If i renew the list from the action listener it works, it works too if i
delete it in the list directly.
As the list items got all unique ids which are persistent and unique
over all request,
it should be no problem deleting the item from the list instead of
refetching.
Should be faster than
Hi,I have two drop-downs in a datalist, i.e., there are several rows, each having two dropdowns and a textbox. On change of the first dropdown, I need to change the select items in the second dropdown and manipulate the textbox (change it to a calendar or dropdown). Now the problem is, since the
I have a domain object called Total that contains property named amount.package domain;public class Total
{ private float amount; public float getAmount()
{ return amount; } public void setAmount(
float amount) { this.amount = amount; }}The amount proerty is binded to the inputText on the page.
Hi, Is there over proper way to do this in tobago:
tc:form
...
f:verbatiminput type=hidden name=id value=/f:verbatimtc:out
value=#{CartEdit.id}/f:verbatim//f:verbatim
/tc:form
I want to post additional hidden param, which would be reachable in the
constructor of backing bean.
tc:hidden has no
Hi all,I am trying to solve this problem by using datatable instead of datalist and retrieving the current row using getRow. However, the valuechangelistener of the selectonemenu is not being called inside the datatable. I am using the following code:
HtmlSimpleColumn column = new
Hello,
I tried to configure class TableSettings I have
defined using public static class inside another class UserSettings as managed
bean. But the first time the bean is accessed a ClassNotFound Exception is
thrown (see below). If I define the class TableSettings in a separate file it
Hi Jochen,
the separator for inner classes generally is the $-sign (how would
you distinguish between a package and a class-name, if not for this
special separator..). Have you tried this?
de.tccproducts.kn.jsf.model.UserSettings$TableSettings
regards,
Martin
On 11/13/06, Böhringer Jochen
Hi Martin,
Thanks. That's it. I was confused, because in Java Code the dot is used and not
the $-sign. But after compilation and on class level the $ is used.
Regards
Jochen
-Ursprüngliche Nachricht-
Von: Martin Marinschek [mailto:[EMAIL PROTECTED]
Gesendet: Montag, 13. November 2006
seems that your given urls in the portlet are not valid can you provide a
snipped of your portlet?
Ben
On Sat, 11 Nov 2006 21:26:27 +0100 (CET), Jose Merchan Bosch wrote
Yes, thanks, i remove portlet-api jar from WEB-INF/lib and runs. But
now i'm getting an exception like this:
Caused by:
Nuno Marques schrieb:
Hello,
I haven't checked the specs to see if there's something there about
this, but the locale is not ignore. I don't know if there's a better way
of doing this or not but what I do is (and this works for any component
that adds faces messages, as far as I know):
1 -
I am fairly new to JSF, but thought that I had this right, however I am not getting the navigation I expect...When I get an error for a duplicate username, I want to be sent back to my registration form and have an error message shows.
faces-config: navigation-rule
Hello,
I would like to make use of JSF EL in a non JSF context. I
d like to do something like:
String name = (String) EVALUATE(child,
child.parent.name) instead of
String name = child.getParent().getName();
Probably there is somewhere the EVALUATE method I am
looking for. Anyone knows
Hi all,
I just tried to install a jsf application on another machine
and got this exception on start:
java.lang.ClassCastException:
org.apache.myfaces.custom.ajax.api.AjaxDecodePhaseListener
at
com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:711)
at
Class loading problem? Have you tried shuffling around your libs?
regards,
Martin
On 11/13/06, Michael Heinen [EMAIL PROTECTED] wrote:
Hi all,
I just tried to install a jsf application on another machine and got this
exception on start:
java.lang.ClassCastException:
Hi Rene,
what do you mean by in a non JSF context? If you mean in your
managed beans, you can do:
FacesContext.getCurrentInstance().getApplication().getVariableResolver().resolveVariable(FacesContext.getCurrentInstance(),exprString);
If you mean general expression resolving, you might want to
Hi,
in order to stay on the same page, you can also return null. You don`t
need any special navigation outcome to achieve this.
cheers,
Gerald
On 11/13/06, Mick Knutson [EMAIL PROTECTED] wrote:
I am fairly new to JSF, but thought that I had this right, however I am not
getting the navigation
Thanks Gerald,
indeed your method is simpler and cleaner than mine.
Hope it will help Kevin
Regards,
Richard
2006/11/13, Gerald Müllan [EMAIL PROTECTED]:
Hi,
in MyFaces the best way to pass some parameters to a backing bean is
the usage of t:updateActionListener:
h:commandLink value=delete
strange, it starts under Tomcat 5.5.17
-Original Message-
From: Martin Marinschek [mailto:[EMAIL PROTECTED]
Sent: Montag, 13. November 2006 17:54
To: MyFaces Discussion
Subject: Re: ClassCastException AjaxDecodePhaseListener ?
Class loading problem? Have you tried shuffling around your
You have some com.sun.faces.* stuff in the exception which leads me to believe you've got some old Sun JSF stuff clashing...On 11/13/06, Michael Heinen
[EMAIL PROTECTED] wrote:strange, it starts under Tomcat
5.5.17-Original Message-From: Martin Marinschek [mailto:[EMAIL PROTECTED]]Sent:
Hello,
today I've started the development of the long outstanding fundamental
change of the tc:tree tag. (The change was announced in the tld-file
long time ago.)
If you are using this tag and you want to update to version
1.0.9-SNAPSHOT of tobago you should change your code by renaming tc:tree
Thanks. I am going to examine commons-el package then!
The other hint might be helpful too.
Regards
René
On Mon, 13 Nov 2006 17:58:00 +0100
Martin Marinschek [EMAIL PROTECTED] wrote:
Hi Rene,
what do you mean by in a non JSF context? If you mean
in your
managed beans, you can do:
On 11/13/06, Rene Guenther [EMAIL PROTECTED] wrote:
Thanks. I am going to examine commons-el package then!The other hint might be helpful too.Over the longer term, keep an eye also on the Unified EL that is used by JSF 1.2 and JSP 2.1. There's a maintenance JSR in progress as we speak to separate
Thanks, i'm trying now and works fine!!!
Pfau, Oliver escribió:
Hi,
Look here: http://palab.blogspot.com/2006/09/myfaces-bridge-08-released.html
I am using it, but I haven't tested the components decribed.
Regards,
Oliver
-Ursprüngliche Nachricht-
Von: Jose Merchan Bosch
Hello PiotrekJ,
can you describe your use case more detail.
Why you want to access a value in the constructor of a backing bean?
May be you can add a parameter to a button or a link:
tc:link label=label actionListener=#{testForm.click}
f:parameter name=value value=#{CartEdit.id}}/
/tc:link
On 11/13/06, Craig McClanahan [EMAIL PROTECTED] wrote:
Over the longer term, keep an eye also on the Unified EL that is used by JSF
1.2 and JSP 2.1. There's a maintenance JSR in progress as we speak to
separate this API out into its own specification document, at which point it
will be able to
Hey guys,iam writing a sample program where i accept input from text field and on submit i display the values, for some reason that i dont understand the action method is not getting invoked.if i use immediate = true, the input values are not getting captured, this is the first time iam coming
bs wrote:
iam writing a sample program where i accept input from text field and
on submit i display the values, for some reason that i dont understand
the action method is not getting invoked.
if i use immediate = true, the input values are not getting captured,
this is the first time iam
As a first step, make sure you have an h:messages tag somewhere on your
page.
bs wrote:
Hey guys,
iam writing a sample program where i accept input from text field and on
submit i display the values, for some reason that i dont understand the
action method is not getting invoked.
if i use
Hehe..i like the new gmail feature of updating conversations while
writing very much.
Wanted to post the same..
regards,
Gerald
On 11/13/06, Simon Kitching [EMAIL PROTECTED] wrote:
bs wrote:
iam writing a sample program where i accept input from text field and
on submit i display the
Thank you all for replying, i just put h:messages, i do get some error, let me debug and hopefully that would solve my problemsOn 11/13/06, Simon Kitching
[EMAIL PROTECTED] wrote:
bs wrote: iam writing a sample program where i accept input from text field and on submit i display the values, for
Yes my problem got solved, my getter method in the backing bean was not using the proper case. Thank you all Once again.On 11/13/06, Gerald Müllan
[EMAIL PROTECTED] wrote:Hehe..i like the new gmail feature of updating conversations while
writing very much.Wanted to post the same..regards,GeraldOn
Hi Werner,I could not find any dialog demo from sandbox and examples download. Where are the demos? Thanks,DaveWerner Punz [EMAIL PROTECTED] wrote: Hi dave the current dialog demo showcases the form and the _javascript_ way.the ppr way is not showcased.If you prefer the _javascript_ way,
Hi,
have a look at a working example in action:
http://example.irian.at/example-sandbox-20061113/dojo/dojoDialog.jsf
cheers,
Gerald
On 11/13/06, Dave [EMAIL PROTECTED] wrote:
Hi Werner,
I could not find any dialog demo from sandbox and examples download. Where
are the demos?
Thanks,
Dave
in action:http://example.irian.at/example-sandbox-20061113/dojo/dojoDialog.jsfcheers,GeraldOn 11/13/06, Dave <[EMAIL PROTECTED]>wrote: Hi Werner, I could not find any dialog demo from sandbox and examples download. Where are the demos? Thanks, Dave Werner Punz <[EMAIL PROTECTED]>wr
Hi there,
I would like to convert this code to dynamic components (I can
not use tableData with newspaperColumn because I want multiple columns with the
same button group and I need a header aligned with each such column). I would
like to be able to set the t:radio in a panelGrid with X
Hi,
I am trying to build a dataScroller with page number like it here:
http://www.irian.at/myfaces/dataScroller.jsf
Here is my code, but when I test it, I can only see the buttons not
the page numbers in the above links. I think I have followed what is
done in the example as close as possible.
Hello,
I finally found what I was looking for:
Child child = new Child();
Parent parent = new Parent();
parent.setName(test);
child.setParent(parent);
String prop = parent.name;
boolean goon = true;
Object aObject = child;
while
Hi,
I have a myFaces JSF
bridged portlet with portlet filter in liferay. When I click a linkvery
fastmultiple timeI get many exceptions and my portlet isn't rendered
correctly. I am using apache bridge. Bug ?
Regards
Oliver
SEVERE: Servlet.service() for servlet jsp threw
ying lcs skrev den 07-11-2006 21:34:
but when I click the 'button', nothing happens.
Are you sure that all fields in your form passes validation? If not,
the action is not invoked but the page redisplayed in order to show the
corresponding error messages.
The log of the webserver may
47 matches
Mail list logo