hello, mm don't think so.. i have same functionality working just fine...could you post page bean faces-config?hthmarcoOn 3/15/06,
Arash Bijanzadeh [EMAIL PROTECTED] wrote:
Every thing seems ok. Could it be a Facelet problem?On 3/14/06, Marco Mistroni
[EMAIL PROTECTED] wrote:
Hello, have a
hello,if i remember correctly, that dependency was in the project.xml, but for some reason it was disabled...check your project.xml (or is itnow pom.xml) ...if i m correct, there's a component in myfaces that is an extension of tiles...that's why that
dependency is needed.hth marcoOn
Thanks for your answer.
I realized this too as I left the office yesterday.
When I don't use a binding, a bean can't be updated. Shame on me...
I was thinking in struts.
Back to my problem:
I'll try to set the value to checked via JavaScript on the client.
But would it not be a useful extension
Hello,I have wired my beans with the Spring application variable-resolverorg.springframework.web.jsf.DelegatingVariableResolver/variable-resolver /application
So that the serviceLocator in the managed beans base class gets set: managed-bean managed-bean-nameorderBean/managed-bean-name
Hi!I've changed a page in my app to use a tree2 component, mixing JSF, Struts and Spring, and it's working fine. Now I need to pass a managed bean property to a html (or Struts) input tag's value. I've tried to do this by using this scriplet and some variations:
f:subview
Right!
but you can use Shale's Viewcontroller ([1], [2]).
Its init() method is called *after* all properties are set!
-Matthias
[1] http://struts.apache.org/struts-shale/features-view-controller.html
[2] http://tinyurl.com/oegu4
On 3/15/06, Nicklas Karlsson [EMAIL PROTECTED] wrote:
Hello,
I
In fact, shale view controller is a phase listener. The init() method is called after the component tree is restaured. This means it is called after *all* properties are set, both from faces-config.xml dependencies and saveState sets.
What you asked for is the Spring afterPropertiesSet
but you can use Shale's Viewcontroller ([1], [2]).Its init() method is called *after* all properties are set!
How intrusive is this alternative? Is it enough to register the ViewController and you get the additionalfeatures and the other stuff will work as before or am I in risk of breaking
Shale itself has an example app, that uses Spring for definition of DAOs.
That shouldn't be a risk IMHO.
-Matthias
On 3/15/06, Nicklas Karlsson [EMAIL PROTECTED] wrote:
but you can use Shale's Viewcontroller ([1], [2]).
Its init() method is called *after* all properties are set!
How
Hello Nicklas, i think you can do that if you use jsf-spring library.. hthmarcoOn 3/15/06, Matthias Wessendorf
[EMAIL PROTECTED] wrote:Shale itself has an example app, that uses Spring for definition of DAOs.
That shouldn't be a risk IMHO.-MatthiasOn 3/15/06, Nicklas Karlsson [EMAIL PROTECTED]
Your managed beans must extend AbstractViewController. Another problem could be the view - managed bean matching. It's assumed that a view (jsp page) is controlled only by one managed bean. The problem is than in Faces this relation doesn´t exist and a matching algorithm is needed. By default, the
Nico Krijnen wrote:
Here is the source-code for the solution I came up
with.
Hello Nico,
Thank you so much for providing your source code. You
are more than generous. Needless to say Ive already
tried your code and it works perfectly. It would have
been very difficult for me to determine
Hi,
Is there some way to apply a converter
to an image? For example, I might write a converter where given a type
(say, dog) it converts it to the full path of the image (eg. images/jpgs/dog.jpg).
Clearly this example is quite simple (I have something more complex in
mind) but it gives the idea
Hi, all,
I want to set the id attribute on every row of a table. If I read the docu
right the rowId attribute of t:dataTable should do exactly that. But there
is no id rendered no matter what I put in rowId= (tried several
different things). I thought the following syntax should be right:
Hi,
A pragmatic way is described in http://wiki.apache.org/myfaces/FAQ bottom
of the page.
Not the most elegant way but works for me.
bye, Bjoern
--
Björn Mehner
InterComponentWare AG
Otto-Hahn-Str. 3
D-69190 Walldorf, Germany
Nicklas
Hello, can you put it in a different directory, sicne that looks like is the problem?or is there a limitation for name of file?regardsmarcoOn 3/15/06,
Arash Bijanzadeh [EMAIL PROTECTED] wrote:
it is no more strange if I try to upload a image I am getting this error message:14:55:49,196 ERROR
Put what in a different directory?On 3/15/06, Marco Mistroni [EMAIL PROTECTED] wrote:
Hello, can you put it in a different directory, sicne that looks like is the problem?or is there a limitation for name of file?regards
marcoOn 3/15/06,
Arash Bijanzadeh [EMAIL PROTECTED] wrote:
it is no more
hello,yes, the file. in c: for example. rgdsmarcoOn 3/15/06, Arash Bijanzadeh [EMAIL PROTECTED]
wrote:Put what in a different directory?
On 3/15/06, Marco Mistroni
[EMAIL PROTECTED] wrote:
Hello, can you put it in a different directory, sicne that looks like is the problem?or is there a
I think the problem is I'm mixing jsf with jsp.How do I make an if test in JSF? I'm trying to do like a did in JSP, but is not working.
t:saveState id=savePrg value=#{Prorrogacao} /Prorrogacao prg = (Prorrogacao) request.getAttribute(Prorrogacao);if (prg.isPrgAberta()){% h:outputText value=Já há
Not the most elegant way but works for me.I think I'll settle for something like that - I am overriding setServiceLocator and call the init method after the super()-call.
Seems to be working, and I prefer doing a documented less-than-ideal solution that introducing a new component intothe palette.
If you are using spring 2.0, you can define the orderBean in your spring
context:
bean id=user class=com.foliofn.folio.ui.user.User
aop:scope type=session/
property name=serviceLocator ref=serviceLocator/
/bean
(Of course if you using spring, why inject a service-location?
Hi,I could not get you marco. I am not putting the file anywhere. How can I do it?cheersOn 3/15/06, Marco Mistroni
[EMAIL PROTECTED] wrote:hello,yes, the file. in c: for example.
rgdsmarcoOn 3/15/06, Arash Bijanzadeh
[EMAIL PROTECTED]
wrote:Put what in a different directory?
On 3/15/06, Marco
Hi,I wonder the same - and some other things as well. I should start to test 1.1.2 and faclets in our environment but 1) I can't find the api-, imp- or common 1.1.2-SNAPSHOT files (only the core and tomahawk)... from
http://cvs.apache.org/builds/myfaces/nightly/2) I can't make maven install after
Hello, Sorry but i don't understand what is the problem here.can you upload a file?can you try to upload something else which is NOT an image?
i havent great experie3nce of fileupload.i have tried to load excel sheet files and it works fine for mehave you tried myfaces examples? does it work
Hello,
i was wondering how
to change the background of an inputbox by simply changing the css style to e.g.
background:red. when a required="true" - validation was set.
I was trying several
possibilties but no one seems to fit my needs and i am just right nowsome
kind of frustrated
They are there now (at least when I checked this morning and managed
to download them before the go again)
On 3/15/06, Vesa Lindfors [EMAIL PROTECTED] wrote:
Hi,
I wonder the same - and some other things as well. I should start to test
1.1.2 and faclets in our environment but
1) I can't
Hi,
why don't you simply define two inputfields and render only one like this:
...
t:inputText rendered=#{the EL-expression you used in your
required-attribute or simply true or false} required=true
styleClass=red /
t:inputText rendered=#{! the EL-expression you used in your
Shale's viewcontroller is not intrusive, The only limitation is that there can be only one view controller per page. And it is called after the view is restored/created.
If the page has more than one managed bean and the init mechanism is needed for those beans the following 2 ways can be
Christan,
Thank you, i think it's a good idea, if nothing else helps. I think it should
work.
Ciao
Nico
Nico Krause| Software Development| TomTom WORK | [EMAIL PROTECTED] | +49
(0)1749891949 mobile | +49(0)34124495-0 office | +49(0)34124495-25 fax |
www.tomtomwork.com
-Ursprüngliche
if you can compute the style you want from the information you have in
one of your managed beans, I believe you can also do one of the
following:
h:inputText ... style=#{myBean.myStyle}/
or
h:inputText ... style=#{myBean.myStyle}/
- Brendan
-Original Message-
From: Christian Bohn
Hi,
have you tried it with a component binding of the inputbox in the model?
Just a quick idea, but with some coding in the model it may work.
regards,
Gerald
On 3/15/06, Krause, Nico [EMAIL PROTECTED] wrote:
Christan,
Thank you, i think it's a good idea, if nothing else helps. I think it
Oops, the second choice was meant to be
h:inputText ... styleClass=#{myBean.myStyleClass}/
- Brendan
-Original Message-
From: CONNER, BRENDAN (SBCSI)
Sent: Wednesday, March 15, 2006 9:07 AM
To: MyFaces Discussion
Subject: RE: (Validation) required=true should change my css style of
How rendered attribute is processed? The method in value is called when redenred attribute is false?-- Vladimir M Coutinho
Are you getting this build failure on a new or updated checkout?
Dennis Byrne
-Original Message-
From: Vesa Lindfors [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 15, 2006 09:01 AM
To: 'MyFaces Discussion'
Subject: Re: [ANNOUNCE] MyFaces Core 1.1.2 Ready For Testing
Hi,
I wonder the
I thinkthelogic is to call it,but notto render it.On 3/15/06, Vladimir Coutinho [EMAIL PROTECTED] wrote:
How rendered attribute is processed? The method in value is called when redenred attribute is false?
-- Vladimir M Coutinho -- Dudu--GoogleTalk:
Hi,
Can JSCookMenu
(versin 1.4.4) be used with Frames? If yes, how? Where should the target frame
be specified?
Although the
documentation for t:NavigationMenuItem tag shows "target" as an
attribute, at run time it throws an exception saying this attibute is not
supported.
Has anybody
Build failure was coming on updated checkout.
---VLi ---
On 3/15/06, Dennis Byrne [EMAIL PROTECTED] wrote:
Are you getting this build failure on a new or updated checkout?Dennis Byrne-Original Message-From: Vesa Lindfors [mailto:[EMAIL PROTECTED]
]Sent: Wednesday, March 15, 2006 09:01
Yes, I think using jsp code is going to cause you problems.
The JSF way to do this is to use the rendered attribute on components.
If you have multiple components, you can use a grouping component
(like h:panelGroup) to render (or not render) on all enclosed
components.
ie,
h:panelGroup
I cannot get t:swapImage to work in MyFaces 1.1.1. The JavaScript is
never added to the XHTML and therefore, I am just getting JavaScript
errors on hover.
Environment:
Tomcat 5.5
MyFaces 1.1.1 (deployed via myfaces-all.jar)
Facelets 1.0.12
There are no log messages, no errors, no anything, just
Silvert recently moved MyFacesObjectInputStream from one project to another, so
maybe Vesa only has one updated co ?
Dennis Byrne
-Original Message-
From: Martin Marinschek [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 15, 2006 01:42 PM
To: 'MyFaces Discussion', [EMAIL PROTECTED]
Your question is kind of vague, but all of the JSF lifecycle methods
start with code along these lines:
if (!isRendered()) return;
So if a component is rendered=false, then it will not execute the
processDecodes, processValidators, processUpdates,
encodeBegin/encodeChildren/encodeEnd,
Thanks for the help. But I've found my error. I forgot two magic words implements Serializable in the object.On 3/15/06, Mike Kienenberger
[EMAIL PROTECTED] wrote:Yes, I think using jsp code is going to cause you problems.
The JSF way to do this is to use the rendered attribute on components.If
Hi,
I have three selectOneMenu in my page, each selectOneMenu has your own
valuechangelistener, my problem is, when i change the value of one
selectOneMenu all valuechangemethod in my backing bean are being fired.
Any ideas? This is a bug?-- Yours truly (Atenciosamente),Rogério
Hi,
Did you put different id for each selectOneMenu?
Roberto Rocha
Rogerio Pereira wrote:
Hi,
I have three selectOneMenu in my page, each selectOneMenu has your own
valuechangelistener, my problem is, when i change the value of one
selectOneMenu all valuechangemethod in my backing
(Of course if you using spring, why inject a service-location? Why notjust inject the service?)
Well, with a single servicelocator (implementing an interface) I can have a single setter in a base classfor all backing beans and I don't have to make any xml changes if a bean uses one or three
Hi,
i'm trying to understand the tree2 component, which is a bit difficult
for me.
I have the tree2 component working in the left frame of a frameset. When
the user hits a document node, a refering URL should be loaded in the
right frame. How do i do that with tree2 ?
I store the URL
I have the tree2 component working in the left frame of a frameset. Whenthe user hits a document node, a refering URL should be loaded in the
right frame. How do i do that with tree2 ?I store the URL information in node.id. Is that the correct place for it ?Is the any Documentation about the tree2
I'm using Tomahawk and MyFaces release 1.1.1 and trying to create a
custom
theme for jscookmenu.
I've seen that many changes will be coming with the next release but
for now I'm trying to make 1.1.1 work.
So far it's been difficult :)
I've extract all the files from
Nicklas Karlsson schrieb:
The myfaces example contains tree2-stuff too, I suggest you start there.
Yes, i reviewed the tree2 examples already, but i didn´t get the link
mechanism right now.
The document-facet is rendered as follows:
f:facet name=document
h:panelGroup
h:commandLink
On 3/15/06, Cristofer Weber [EMAIL PROTECTED] wrote:
Hi!I've changed a page in my app to use a tree2 component, mixing JSF, Struts and Spring, and it's working fine. Now I need to pass a managed bean property to a html (or Struts) input tag's value. I've tried to do this by using this scriplet and
Latest night (March 15th, 2006) build causes the following error at runtime:java.lang.NoSuchMethodError:
org.apache.myfaces.renderkit.html.util.DummyFormUtils.isWriteDummyForm
(Ljavax/faces/context/FacesContext;)Z at
On 3/15/06, Martin Marinschek [EMAIL PROTECTED] wrote:
Like it! The _javascript_ code is very clean, nicely done!Want to sign an ICLA and donate the codebase to MyFaces? Craig canhelp you out with how this works.As a current Apache committer, Edwin *should* have an ICLA already on file. I'm not in
During model update, when a setter method throws an exception, the following message will display:"_idJsp137": Error during model data update.public void setValue(String value) throws MyException{ ... throw new MyException("my error message"); }I like "my error message" to be used
I've seen at least 3 different location for f:view as shown below.
Is there any concensus on this?
Any insite or reasoning for a choice?
STYLE 1) JSF In Action
--
f:view
html
...
/html
/f:view
STYLE 2) Core JSF
-
html
The rendered link always points to '#', so where is that set and how cani change it ???
Hmm, I think the # is used as a dummy to allow for the JSF operations. One option might be to have have the facet render onclick-_javascript_ or have the recieving bean render some script content.
I've already opened a JIRA issue on this, which also contains the
necessary patch:
https://issues.apache.org/jira/browse/MYFACES-1157
Jurgen
Dave schreef:
During model update, when a setter method
throws an exception, the following message will display:
"_idJsp137": Error during
yes-- Yours truly (Atenciosamente),Rogério
Has anyone found a solution to using enums with the managed bean's
property-class yet? The implementation doesn't seem to like the fully
qualified name.
managed-property
property-nametestType/property-name
property-classcom.company.EnumType/property-class
Never mind. It just started to work after my 2nd reboot of JBoss.
Something must have been cached.
On 3/15/06, Andrew Robinson [EMAIL PROTECTED] wrote:
I cannot get t:swapImage to work in MyFaces 1.1.1. The JavaScript is
never added to the XHTML and therefore, I am just getting JavaScript
Hi Jurgen,Thanks. this is great!Patch reviewers: Please add this patch ASAP. Everything users see are urgent ! Thanks! Jurgen Lust [EMAIL PROTECTED] wrote: I've already opened a JIRA issue on this, which also contains the necessary
Craig McClanahan wrote:
On 3/15/06, *Martin Marinschek* [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED] wrote:
Like it! The JavaScript code is very clean, nicely done!
Thanks, I tried to make the code understandable and use a namespace.
Want to sign an ICLA and donate the codebase
Hi Jurgen,Its priority is minor. Could you upgrade it to critical so that it will not be forgotten. Thanks!Jurgen Lust [EMAIL PROTECTED] wrote: I've already opened a JIRA issue on this, which also contains the necessary patch:https://issues.apache.org/jira/browse/MYFACES-1157JurgenDave
Hello to all,
I am developing an educative system for it I am using JSF 1.1.01 and MyFaces
1.1.1 on Eclipse 3.1.0 and Exadel 3.0.4, but a problem appeared: everything
walks well when I am developing on eclipse and exadel, but when I install
the application in the server tomcat (I use
I know I am doing hacks because MyFaces does not display beautiful messages in my case.In a phase listener (after Model Update), I tried to remove FacesMessage(s) with generated ID like "_idJsp123" FacesContext context = event.getFacesContext(); IteratorFacesMessage itr =
Does that mean all listener happens BEFORE the update model phase?
Include action listener
On 3/15/06, Mario Ivankovits [EMAIL PROTECTED] wrote:
Hi Anthony!
I encounter a problem with JSF value change listener
The valueChangeListener stuff happens BEFORE the update model phase.
So you cant
Solution:
managed-property
property-nametestType/property-name
property-classcom.company$EnumType/property-class
valueSomeValue/value
/managed-property
Then I had to create a EnumTypeEditor and place it in the same package
implementing PropertyEditor.
I'd really like to see
Hi!
Do you change the
model properties of the other two selectOneMenus when you processtheValueChangeEvent of one
selectOneMenu?
This may cause firing new ValueChangeEvents, I can
remember such a problem.You may try to comment out these changes and see,
if the other methods are still
I should probably point out that now Dojo is in MyFaces (albeit in
sandbox) there's YYAC (yet yet another calendar :-); Dojo has a 'date
picker' widget. It's very pretty, but less functional than Edwin's looks
to be - for example, I don't think it's internationalized at all.
Just thought I'd
The dependency would be to support the Tomahawk Tiles support I expect.
It ought to marked optional, but would still be needed to compile.
The problem may be due to a recent move of the Tiles artifacts in the
ASF Maven repository. I know Tiles now lives under a different group ID.
The old
Yep, that's the simplest solution. If you don't want to emit the
style/styleClass value from a backing bean you can also use a variant
such as
h:inputText ... styleClass=#{mybean.required ? 'required' : ''}/
Regarding your concern about doing this in a data table, you shouldn't
have any
The dependency would be to support the Tomahawk Tiles support I expect.
It ought to marked optional, but would still be needed to compile.
This is correct ;)
Dennis Byrne
I cannot do anything in the snapshot from last night. This is the
error I am getting:
java.lang.NoSuchMethodError:
Hi again,still same problems to get latest 1.1.2... I tried again to update sources from SVN and recompile. But because the SVN didn't notice any updated files, the build was stopping at the very same point.
Rogerio Pereira schrieb:
I have three selectOneMenu in my page, each selectOneMenu has your own
valuechangelistener, my problem is, when i change the value of one
selectOneMenu all valuechangemethod in my backing bean are being fired.
In your valueChangeListener method, do you change the model
Hi!
Does that mean all listener happens BEFORE the update model phase?
Include action listener
No, the action listener fires after the invoke-application phase, which
is after the update model.
See here for details about the lifecycle:
Hi again!
Hi!
Does that mean all listener happens BEFORE the update model phase?
Include action listener
No, the action listener fires after the invoke-application phase, which
is after the update model.
All this after and before ;-)
In fact the action listener fires during
Vesa,
I can't read the screenshot. MyFacesObjectInputStream was moved from one
subproject to another *in trunk*, so perhaps you are trying to compile a branch
of one subproject with the trunk of another ? What is you SVN URL ? IT should
start w/ http://svn.apache.org/repos/asf/myfaces/ .
Just to clarify my earlier mail concerning nightly builds:myfaces-core-1.1.2-SNAPSHOT-bin.zip includes api and
impl jars, tomahawk-1.1.2-SNAPSHOT-bin.zip includes tomahawk jar.My question is: don't I need something like
myfaces-commons jar also?--- VLi --- On 3/16/06, Vesa Lindfors [EMAIL
There were a lot of conceptual problems w/ myfaces-commons , so please wipe
this from your memory ;)
Dennis Byrne
-Original Message-
From: Vesa Lindfors [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 16, 2006 01:23 AM
To: 'MyFaces Discussion'
Subject: Re: [ANNOUNCE] MyFaces Core 1.1.2
Also, how can I get the sandbox running on this version? (is there an
SVN branch for 1.1.2 that I can grab the latest 1.1.2 and not 1.1.3?)
Try browseing the repo http://svn.apache.org/viewcvs.cgi/myfaces/ .
There is a 1.1.2 branch for core and tomahawk.
Dennis Byrne
Thanks,
yes, I'll try to forgot the myfaces-common :)
My SVN client has following configurations, can you see something wrong there:
core https://svn.apache.org/repos/asf/myfaces/core/trunk
maven https://svn.apache.org/repos/asf/myfaces/maven/trunk
site
Try http://svn.apache.org/repos/asf/myfaces/core/current
( it is faster w/out https )
then cd myCheckoutDir, then mvn clean install. This of course would not be
testing the branch.
Dennis Byrne
-Original Message-
From: Vesa Lindfors [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 16,
Thanks, it was just the missing clean in my mvn install command (I can see now that Martin suggested that already yesterday) :|I'm not familiar with maven, but yes I'll use clean from now on :|
--- VLi ---On 3/16/06, Dennis Byrne [EMAIL PROTECTED] wrote:
Try
On 3/15/06, Laurie Harper [EMAIL PROTECTED] wrote:
I should probably point out that now Dojo is in MyFaces (albeit insandbox) there's YYAC (yet yet another calendar :-); Dojo has a 'datepicker' widget. It's very pretty, but less functional than Edwin's looksto be - for example, I don't think it's
84 matches
Mail list logo