Hi All,
A) I have a common address JSP which i want to use it in several other
Jsps.
Having the content below and i want to set this address value in a
common AddressVO object(POJO).
h:outputText value=Enter the address /
h:inputText id=add1 value=#{pc_AddressVO.addLine} /
B) I want to use
Hi,
Here's an example;
http://www.jroller.com/page/cagataycivici?entry=jsf_composition_components_with_aliasbean
Regards,
Cagatay
On 2/21/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
Hi All,
A) I have a common address JSP which i want to use it in several other
Jsps.
Having the content
Hi,
when HtmlDataTableHack restoreDescendantComponentStates use a Iterator so
for example if you have 5 rows and you delete one, it restores only the
first fours rows in order. I don't think that the implementacion have to
manage that situacion, but it should let to change de _rowStates.
schedule component does not work properly
if extension filter is disabled.
Using activeOnViewIds attribute on commandNavigation2
causes children items to be not rendered when should be (parent is clicked)
if parent action points to current page (same with activeOnViewIds)
ex (replaced go_panelnavigation_1 with go_panelnavigation_5 on
panelnavigation_5.jsp tomahawk
Hi All,
I am in the process of creating a component for breadcrumb generation
for my project.
I have following in mind:
1. Create a custom component for breadcrumb, with a renderer and a
tag class.
2. Create a model bean that will back this component and will
contain the latest
And?
From the extension filter documentation:
Under what circumstances am I *required* to use the extensions filter?
If you just use standard JSF component, but don't use any MyFaces'
extended component (beginning with t:), then you don't need the
Extensions Filter.
However, if you use
Hi Cagatay,
What a marvellous solution.
But can it help me to inlcude the jsp fragment twice in a jsp without
overwriting the previous value.
Please let me know the importance of t:aliasBeansScope in the below
example.
t:aliasBeansScope
t:aliasBean alias=#{geoLocationAlias}
Hello,
Can I have several value change listener methods in a backing beans as
follows??
bean:
*public* *void* marketCodeChanged(ValueChangeEvent evt){
log.info(marketCodeChanged);
this.marketCode = (String) evt.getNewValue();
this.contractCodeDisabled = *false*;
}
Hello there,
I have just upgraded to MyFaces 1.1.5 from 1.1.4 and have come across a
problem with the UISelectOne component, using a custom converter. When my
form is submitted I now get a message on screen:
Validation Error Region List: regionList: Value is not a valid option.
Where
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
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
you can use a servletcontext listener to do some cleanup on shutdown
-M
On 2/21/07, H. Swaczinna [EMAIL PROTECTED] wrote:
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
Hi,
Here's more info;
http://wiki.apache.org/myfaces/Creating_Composite_Components
By use of alias bean you can define any number of composition components
like jspf's in your page.
Cagatay
On 2/21/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
Hi Cagatay,
What a marvellous solution.
But
Ok, but how can I access (find) the bean from such servletcontext
listener? There's no FacesContext at that time I think.
Regards
Helmut
you can use a servletcontext listener to do some cleanup on shutdown
-M
On 2/21/07, H. Swaczinna [EMAIL PROTECTED] wrote:
Hi,
I have an application
contextDestroyed(ServletContextEvent sce)
{
ServletContext servletCxt = sce.getServletContext()
MyBean mb = (MyBean) servletCxt.getAttribute(nameOfTheManagedBean);
mb.doIt();
}
On 2/21/07, H. Swaczinna [EMAIL PROTECTED] wrote:
Ok, but how can I access (find) the bean from such servletcontext
Hallo Michał,
its not possible yet.
I think you can use alternativly some technologies:
* JSP Tag-Files (Has the disadvantage that when you not set an
attribute the tag file will set it to (empty string), which may
problematic in some cases)
* Write your own tag. Like
If you are using ajax4jsf, you can use a4j:page tag to ensure all ajax
requests contain a head and body tag. Then you will not see this error.
Paul Iov wrote:
IMHO, turning off the log4j WARN level is quick'n'dirty approach. The
second choice after configuring servlet container would be
Hi Ernst
Sorry for not responding faster, but I had to switch from using tableSuggest
to inputSuggest and I hoped that won't be the same problem.
Unfortunately it is.
I checked the generated HTML and I found this for the tabbed panel.
script!--
Alexey Kakunin wrote:
Great news!
Are any information about tomahawk sandbox stable release available?
There will never be a stable release of sandbox. It is, by its nature,
unstable. Best you can do if you need to use a sandbox component in
production is check out the release branch of
The value change listener fires a change if the submitted value of the
UIInput component is different from the current value. It has nothing
to do with attributes, only the value of the UIInput.
On 2/21/07, Julien Martin [EMAIL PROTECTED] wrote:
Hello,
I have several components in my jsf page
Hello Andrew,
I know what you mean but please have a look at that:
***
public void contractCodeChanged(ValueChangeEvent evt){
log.info(contractCodeChanged);
this.contractCode = (String) evt.getNewValue();
}
***
The above code NEVER gets
Hi,
the responded markup seems to be ok, PanelTabbedPane renders a hidden
input-submit, and on onclick-event it tries to change the tab to
another one on client side.
Normally, if ppr is activated on an element, it hooks into a click and
before doing the form-post it does its own ajax-submit.
Thank you! Looking forward for any usefull information.
2007/2/21, Jeff Bischoff [EMAIL PROTECTED]:
Alexey Kakunin wrote:
Great news!
Are any information about tomahawk sandbox stable release available?
There will never be a stable release of sandbox. It is, by its nature,
unstable. Best
Ok, looks simple. Thank you.
contextDestroyed(ServletContextEvent sce)
{
ServletContext servletCxt = sce.getServletContext()
MyBean mb = (MyBean) servletCxt.getAttribute(nameOfTheManagedBean);
mb.doIt();
}
On 2/21/07, H. Swaczinna [EMAIL PROTECTED] wrote:
Ok, but how can I access (find)
Hello Udo,
* Write your own tag. Like InExtensionTag in Tobago.
Are there any examples of how it should be done, or should I look at
Tobago's sources? I did some search, but couldn't find anything
usefull.
Thanks,
michael
--
[EMAIL PROTECTED]
http://stawicki.jasliska.pl
GG: 369
JID:
/
element renderId=51 jsfid=countryLabel /
element renderId=52 jsfid=country /
element renderId=53 jsfid=countryMessage /
/component
[1] http://shale.apache.org/shale-clay/index.html
[2]
http://people.apache.org/builds/shale/nightly/examples/shale-clay-usecases-20070221.zip
[3]
http
Hello,
is there a way to make f:validateDoubleRange validate ',' (comma)
instead of '.' (dot) as decimal separator? I have already set f:view
locale and did
FacesContext fc = FacesContext.getCurrentInstance();
fc.getViewRoot().setLocale(new Locale(pl, PL));
am I missing
use a numberConverter
the buildin doubleConverter does
(javax.faces.convert.DoubleCoinverte)
Double.valueOf(string)
the string needs to contain a . instead of ,
-M
On 2/21/07, Michał 'Gandalf' Stawicki [EMAIL PROTECTED] wrote:
Hello,
is there a way to make f:validateDoubleRange validate
I am using a tool Selenium to write automated test cases
It uses the form ID and the ID of a link to navigate through the test case.
That works great with anything that is not in a table, but for table
elements I get something like the following _idJsp49:_idJsp108:0:_idJsp123
So I am wondering
I have found the difference in behaviour between Facelets and JSP to
stem from different results in code from the following class:
org.apache.myfaces.component.html.ext.HtmlDataTable
In the method getRowStyleClass(), the following line is called:
ValueBinding vb =
valueChangeListener equates to public MethodBinding
getValueChangeListener() and public void
getValueChangeListener(MethodBinding method) on the UIInput class.
As you can see, it isn't an add/remove. The JSP tag class may be
different, but if you are using facelets, you can only have one value
Yes, the problem is that JSFAttr.ROW_STYLECLASS_ATTR =
org.apache.myfaces.dataTable.ROW_STYLECLASS instead of
rowStyleClass
Thus, jsp saves rowStyleClass tag values under
org.apache.myfaces.dataTable.ROW_STYLECLASS while facelets stores
them under rowStyleClass.
Yes, the problem is that JSFAttr.ROW_STYLECLASS_ATTR =
org.apache.myfaces.dataTable.ROW_STYLECLASS instead of
rowStyleClass
Thus, jsp saves rowStyleClass tag values under
org.apache.myfaces.dataTable.ROW_STYLECLASS while facelets stores
them under rowStyleClass.
Yes, the problem is that JSFAttr.ROW_STYLECLASS_ATTR =
org.apache.myfaces.dataTable.ROW_STYLECLASS instead of
rowStyleClass
Thus, jsp saves rowStyleClass tag values under
org.apache.myfaces.dataTable.ROW_STYLECLASS while facelets stores
them under rowStyleClass.
Ugh. Gmail was a little deceptive about whether it was really sending
my message. In any case, the content got better each try, so read
the 3rd one and ignore the other two :-)
On 2/21/07, Mike Kienenberger [EMAIL PROTECTED] wrote:
Yes, the problem is that JSFAttr.ROW_STYLECLASS_ATTR =
Ha ha ha, will do
Mike Kienenberger wrote:
Ugh. Gmail was a little deceptive about whether it was really sending
my message. In any case, the content got better each try, so read
the 3rd one and ignore the other two :-)
And as usual, the info for dealing with rowStyleClass is already on
http://wiki.apache.org/myfaces/Use_Facelets_with_Tomahawk, courtesy of
Andrew Robinson, complete with a facelets tag handler that works
around the issues without changing the tomahawk code.
But it'd sure be nice if it were fixed
I see, so what do developers of JSF applications generally do - replace all
commandLinks with commandButtons, or only users with JavaScript enabled to
access their site? What strategy do some of you use with regards to users
out there who don't enable JavaScript (which isn't as small a number as
No, you can fix the jsp tag handler (and/or JSFAttr constants) without
changing backwards compatibility.
What would break is facelets code workarounds like the following.
t:dataTable id=TheDataTable
...
rowClasses=oddRow,evenRow
Alright Mike, I'll give it a shot.
Mike Kienenberger wrote:
No, you can fix the jsp tag handler (and/or JSFAttr constants) without
changing backwards compatibility.
What would break is facelets code workarounds like the following.
t:dataTable id=TheDataTable
...
Thanks for idea, I've came up with
f:convertNumber minFractionDigits=1 maxFractionDigits=2
minIntegerDigits=1 pattern=###.0#/
Now, the problem is, that when I enter for. ex. 0,11 it returns
Double, but when i enter 0,0 it returns Long. Is there a way of making
it return Double in all cases, or
Replacing all commandLinks with commandButtons seems the best solution
to me. After all, if you were using some other tech like CGI or PHP or
whatever you still couldn't submit a form using an a tag without
javascript. It's just not possible with HTML.
The h:commandLink tag is really an
You can have multiple valueChangeListener components as children of a
UIInput. You can have one-and-only one valueChangeListener attribute
on a UIInput.
It looks like Julien is trying to use multiple attributes, not
multiple components.
On 2/21/07, Simon Kitching [EMAIL PROTECTED] wrote:
While most people fail to trim irrelevant info from emails,
unfortunately Julien has trimmed a little too vigorously :).
The original posting on this subject showed that he was using two
separate h:selectOneMenu tags each with one valueChangeListener
attribute, which looks ok to me.
/
http://example.irian.at/example-sandbox-20070221/typedNumberConvert.jsf
http://example.irian.at/example-sandbox-20070221/typedNumberConvert.jsp.source
On 2/21/07, Michał 'Gandalf' Stawicki [EMAIL PROTECTED] wrote:
Thanks for idea, I've came up with
f:convertNumber minFractionDigits=1
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
--
Hi,
Sorry for my really long delay to respond to this issue, but I have
been in bed with fever up until tuesday...
I looked into your pasted code again and also reviewed the ppr.js
accordingly. I think what Gerald suspects, that it has something
to do with the interception of the submit. I
minIntegerDigits=1 pattern=###.0# destType=java.lang.Double /
http://example.irian.at/example-sandbox-20070221/typedNumberConvert.jsf
http://example.irian.at/example-sandbox-20070221/typedNumberConvert.jsp.source
On 2/21/07, Michał 'Gandalf' Stawicki [EMAIL PROTECTED] wrote:
Thanks for idea, I've came
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
The DataScroller itself knows NOTHING about
how data are fetched. It
just looks for the bound UIData component in tree (i.e. DataTable) and
gets two values from the underlying instance of DataModel: datasetSize
and getFirst() + pageSize
from component. To 'know', which page is currently
I have the following rule:
!-- logon Navigation --
navigation-rule
display-nameLogon Navigation/display-name
descriptionLogon functions.../description
from-view-id/views/common/logon.xhtml/from-view-id
navigation-case
from-outcomesuccess/from-outcome
Hello
Do anybody know the myfaces support mouse drag motion?
Wang suya
wang suya
Hello Julien Martin
Why your valueChangeListener worked and my valueChangeListener does not work?
Which version of myfaces and tomahawk and tomahawk-sandbox do you use and which
OS do you use?
Wang suya
Julien Martin さんは書きました:
Hello,
I have several components in my jsf page each having a
Hello
I mean that I want to make a server side GUI application that draw
senveral Rectanges and when mouse drag the bottom of Rectange, the rectange
extends. Do anybody know how I can realize this appication.
Thank you at advance.
Wang suya
Hello
Do anybody know the myfaces
/
element renderId=53 jsfid=countryMessage /
/component
[1] http://shale.apache.org/shale-clay/index.html
[2]
http://people.apache.org/builds/shale/nightly/examples/shale-clay-usecases-20070221.zip
[3]
http://svn.apache.org/viewvc/shale/framework/trunk/shale-apps/shale-clay-usecases/src/main
Hello,
Thank you all for your feedback. I realized after posting this email that
the internet is replete with posts of people having had the same problem as
me i.e. multiple components trying to trigger each its value change listener
and that no one has got the solution...
Wang, for you info, I
Hi All,
Please help me!!
I am having an issue with SelectOneMenu.
I have installed JSF 1.1.5-SNAPSHOT,Tomahawk1.1.5- SNAPSHOT and
tomahawk-sandbox-1.1.5-SNAPSHOT.
Previously i had myfaces1.1 jar
I dint have issue with selectOneMenu before.
Now when I submit the page, I am getting this jsf
Hi Volker,
Tested the suggestMethod in both FireFox and IE, its working fine now.
The listbox thats gets displayed is expanded accordingly.
But found a strange thing happening in IE.
The list thats gets shown up contains a ' 0 ' at last.When scrolled the arrow
up and down, only the items are
I recently tried upgrading MyFaces 1.1.4 to the latest 1.1.5 version. When I
do this, my tests start failing because I have a couple pages that use
JavaScript to call an managed bean's method. Here's my password hint page:
f:view
f:loadBundle var=text basename=#{basePage.bundleName}/
Hi Julien Martin
Thank you for your replay. I used both MyFaces1.1.5 and
MyFaces1.1.5-SNAPSHOT but
it did not work. My code is as below:
[EMAIL PROTECTED] contentType=text/html; charset=Shift_JIS %
[EMAIL PROTECTED] uri=http://java.sun.com/jsf/core; prefix=f %
[EMAIL PROTECTED]
Hello Wang,
I tried to recreate your bug by deploying the artifacts you gave me but was
not able to reproduce the bug. In other words it WORKS fine and there is
nothing wrong with your code. Can someone bear me out on this please?
Hello Julien Martin
Thank you for your hlep. Maybe it is the problem of version of MyFaces.
Hope somebody can hlep me.
Wang suya
Julien Martin さんは書きました:
Hello Wang,
I tried to recreate your bug by deploying the artifacts you gave me but was
not able to reproduce the bug. In other words it
try your basic example with the Sun RI or please send me your war here:
[EMAIL PROTECTED]
Julien.
2007/2/22, wang suya [EMAIL PROTECTED]:
Hello Julien Martin
Thank you for your hlep. Maybe it is the problem of version of MyFaces.
Hope somebody can hlep me.
Wang suya
Julien Martin
Hi Julien Martin
I tryed to send my war file but it returned to me I could not send it.
Wang suya
Julien Martin さんは書きました:
try your basic example with the Sun RI or please send me your war here:
[EMAIL PROTECTED]
Julien.
2007/2/22, wang suya [EMAIL PROTECTED]:
Hello Julien Martin
Thank
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
://people.apache.org/builds/shale/nightly/examples/shale-clay-usecases-20070221.zip
[3]
http://svn.apache.org/viewvc/shale/framework/trunk/shale-apps/shale-clay-usecases/src/main/webapp/rolodex/jsprolodex.jsp?view=markup
Best Regards,
Pallavi
Gary
--
Matthias Wessendorf
http://tinyurl.com/fmywh
Try sending them here: [EMAIL PROTECTED]
2007/2/22, wang suya [EMAIL PROTECTED]:
Hi Julien Martin
I tryed to send my war file but it returned to me I could not send it.
Wang suya
Julien Martin さんは書きました:
try your basic example with the Sun RI or please send me your war here:
[EMAIL
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]
Hi Madhav,
I'm also planning to create a Breadcrumb component.
My philosophie about breadcrumb is the it shows the position of the page
in the site map and note the position of the page in the user navigation
history. According to this you eliminate the problem of the browser back
button.
70 matches
Mail list logo