Thanks, but the question is:
I have analyzed the code of HtmlNavigationMenu and I didn't find a point
to override where to insert my logic to modify attibutes of items (for
example disable a specific item) before render it.
I hope my question is clear
Mario
-Original Message-
From:
look to https://www.owasp.org/index.php/Java_Server_Faces
it is still in review stage but you can find some hits.
2007/5/25, Josué Alcalde González [EMAIL PROTECTED]:
El jue, 24-05-2007 a las 10:33 -0700, bansi escribió:
Wondering how to secure views in JSF.
My JSF backing bean has
Hi,
I look on Your config and it seams OK - I have the same.
Only background-color number must be in hex - #99 and there are
unnecessary spaces in
http://myfaces.apache.org/trinidad/config
http://myfaces.apache.org/trinidad/config.
Check character upper/lower case in directory paths,
Hi, i'm looking the method getValue() of UISelectItems:
public Object getValue()
{
if (_value != null) return _value;
ValueBinding vb = getValueBinding(value);
return vb != null ? vb.getValue(getFacesContext()) : null;
}
And I see that if a value
Hello,
since myfaces/tomahawk v1.1.5 my dataTable doesnt show any content, when im
using javax.faces.model.DataModel as dataTable-value.
There are no problems with java.util.List as value.
Hope you can help me.
Regards Martin
--
View this message in context:
According to the error message you posted, not, all your components have
defined ids:
faces tree. Component : idListForm:idPopupDataTable:_id81, path:
_id81 is an automatically generated id, use when no specific id was
provided. Also, as asked, please provide the xhtml code, it's nearly
Hello Helmut,
thank you for your help!
Now I have the following Client- and Server-Code (below).
The Message is always added (facesContext.addMessage)
in an action-method of my code just for testing.
However, I never get a message displayed.
Is there something wrong on the client or server.
To
Hi Clemens,
the id in addMessage() is still wrong.
At least the id of the tc:page is missing.
Please take a look into the generated html source for the correct id of the
input .. generated by the tc:date.
Regards,
Volker
2007/5/25, Clemens Sietas [EMAIL PROTECTED]:
Hello Helmut,
thank
Hi Mario,
En l'instant précis du 25/05/07 09:36, [EMAIL PROTECTED]
s'exprimait en ces termes:
Hi, i’m looking the method getValue() of UISelectItems:
public Object getValue()
{
if (_value != null) return _value;
ValueBinding vb = getValueBinding(value);
Should be a problem if the list of values changed between encodeBegin and
encodeEnd phase?
Mario
-Original Message-
From: David Delbecq [mailto:[EMAIL PROTECTED]
Sent: 25 maggio 2007 10.24
To: MyFaces Discussion
Subject: Re: Don't understand getValue code of UISelectItems
Hi Mario,
Sorry, change should with could...
Could be a problem if the list of values changed between encodeBegin and
encodeEnd phase?
Mario
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: 25 maggio 2007 10.35
To: users@myfaces.apache.org
Subject: RE: Don't
After clearing my browser cache the javascript errors are gone, but
there is still a problem with navigation, links and buttons.
Danny Robinson wrote:
_validateAlert is not defined
Clear your browser cache.
On 5/24/07, *Luka Surija* [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED] wrote:
Don't know about Trinidad..., but
portlet-bridges:
there are quite a few bridges, namely:
- Sun: https://jsfportletbridge.dev.java.net/
- Apache:
http://portals.apache.org/bridges/multiproject/portals-bridges-jsf/inde
x.html
Samples use MyFaces
hth
Alexander
-Original Message-
From:
I checked in a small page in the test example. If the id
(page:validityEnd) is specified correctly (absolute id path from view
root through all naming containers), the message gets displayed.
See:
http://svn.apache.org/repos/asf/myfaces/tobago/trunk/example/test/src/main/webapp/messages.jsp
I don't think so, the values in your db can change whenever you want,
that's why the value is evaluated at each request of 'getValue'. But
your proposed change to UISelectItem would break it :)
En l'instant précis du 25/05/07 10:50, [EMAIL PROTECTED]
s'exprimait en ces termes:
Sorry, change
Hi *,
I have skimmed through the online documentation for Trinidad, but
haven't found anything useful about portlet compatibility. Is there
anyone in the Trinidad team who knows more about using portlets with
Trinidad, and can provide a link to more information?
Especially I would be interested
Are you using server- or client-state?
web.xml - context-param - javax.faces.STATE_SAVING_METHOD
regards
Alexander
From: Alexander Wallace [mailto:[EMAIL PROTECTED]
Sent: Friday, May 25, 2007 1:40 AM
To: MyFaces Discussion
Subject: panelTab loosing state
I am trying to submit a form using the enter key, but it doesn't work...
I have the following code in mye jsp:
h:inputText . onkeypress=if (event.keyCode == 13)
document.getElementById('formFindArticle:search').click();
and it does call the search method that is specified in th search
Can you verify if the onkeypress attribute is rendered on the input by
looking at the generated source code?
Firebug works great to check these things,
Cheers,
Bruno
On 25/05/07, Bjørn T Johansen [EMAIL PROTECTED] wrote:
I am trying to submit a form using the enter key, but it doesn't
hi again,
now I'm using Firefox and the call with s:submitOnEvent works fine.
I'm trying to use some inputfields in the modaldialog but the input seems not
to be set in my backing bean.
my code:
...
h:outputLink id=openNewResourceDialog
onclick=newResourceDialog.show(); value=#
Because I guess that the default behaviour of the browser is to click
the submit button when pressing enter. This is why you get the same
behaviour. Maybe the javascript of your onkeypress is not rendered on
the page. I seem to recall a similar but, but I don't remember if it
is this one, where
In order to use the pageFlowScope what are the JAR file I need to down
load where do I get it from. If you can provide me the links for
examples that would be great.!!
Regards,
Praveen
Just an FYI... You may need to add code for browser compatibility (Notice that
the click() has been changed to onclick()):
if ((event.charCode event.charCode == 13) || (event.keyCode event.keyCode
== 13)) document.getElementById('formFindArticle:search').onclick();
-Original Message-
Hi Matthias!
I'm trying to use some inputfields in the modaldialog but the input seems not
to be set in my backing bean.
h:panelGrid columns=2
h:outputText value=Name: /
s:inputSuggestAjax
Yes, I tried just to see if it acted differently but it was the same result...
BTJ
On Fri, 25 May 2007 13:13:07 +0200
Mario Ivankovits [EMAIL PROTECTED] wrote:
Hi !
I am trying to submit a form using the enter key, but it doesn't work...
Ever tried to use our SubmitOnEvent [1] sandbox
Could you show a snippet of the browser output with the input, button and form?
-Original Message-
From: Bjørn T Johansen [mailto:[EMAIL PROTECTED]
Sent: Friday, May 25, 2007 7:19 AM
To: users@myfaces.apache.org
Subject: Re: Submit using the enter key?
Tried this but with the same
Yes, well - do they take care about resource-loading so that it works
with Trinidad?
regards,
Martin
On 5/25/07, Jesse Alexander (KSFD 121)
[EMAIL PROTECTED] wrote:
Don't know about Trinidad..., but
portlet-bridges:
there are quite a few bridges, namely:
- Sun:
Perhaps I was a little bit unprecise.
My action triggers a navigation rule to another page. This works only
when I set required to false. If I set it true nothing happens, no page
switching no error message in the javascript console.
I think something happens in the javascript validation code, so
Well, if I debug my app and put a breakpoint in my search method, I do get
inside my search method and the exact
same thing happends in that method no matter it I press the Enter key og click
the submit button...
BTJ
On Fri, 25 May 2007 11:22:20 +0100
Bruno Aranda [EMAIL PROTECTED] wrote:
It is another button that is the default button, so if I remove my onkeypress
event, that button it pressed...
Also if I just show an alert inside my onkeypress script, the alert is shown
when pressing the Enter key
BTJ
On Fri, 25 May 2007 11:50:19 +0100
Bruno Aranda [EMAIL PROTECTED]
I've tried using just h:outputText and just t:outputText.
Plus I tried this:
t:dataTable value=#{attribute.tableAttributeData} var=lineAttributeData
rendered=#{attribute.xtipdado eq 'T'}
t:columns value=#{lineAttributeData} var=attributeData
style=padding: 0px; headerstyle=padding: 0px;
Hi !
I am trying to submit a form using the enter key, but it doesn't work...
Ever tried to use our SubmitOnEvent [1] sandbox component?
Ciao,
Mario
[1] http://wiki.apache.org/myfaces/SubmitOnEvent
Tried this but with the same result...
BTJ
On Fri, 25 May 2007 07:10:05 -0400
William Hoover [EMAIL PROTECTED] wrote:
Just an FYI... You may need to add code for browser compatibility (Notice
that the click() has been changed to
onclick()):
if ((event.charCode event.charCode == 13) ||
I think I see a myfaces bug in the onkeypress. It seems that the
have been encoded. As a workaround use a external javascript file with
a function for the onkeypress and call it.
Could you fill a JIRA also?
Thanks!
Bruno
On 25/05/07, Bjørn T Johansen [EMAIL PROTECTED] wrote:
That I can:
Or you can also use a script tag, like in the third example of this page:
http://wiki.apache.org/myfaces/SubmitPageOnValueChange
Cheers,
Bruno
On 25/05/07, Bruno Aranda [EMAIL PROTECTED] wrote:
I think I see a myfaces bug in the onkeypress. It seems that the
have been encoded. As a
I tested the code with the replaced amp; and it does work. An external js file
would be the ideal solution, but I have done similar code and it works fine.
hmmm...
-Original Message-
From: Bruno Aranda [mailto:[EMAIL PROTECTED]
Sent: Friday, May 25, 2007 7:35 AM
To: MyFaces Discussion
That I can:
form id=content:formFindArticle name=content:formFindArticle method=post
action=/nibstoreweb/secure/article/findarticle.faces
enctype=application/x-www-form-urlencodedinput
id=content:formFindArticle:popupArticleGroupSubmit
name=content:formFindArticle:popupArticleGroupSubmit
Sorry for my late answer.
It works now. The problem before was that Eclipse did not compile the new
sources because of build path problems. So I used an older version where I
used an alias which mapped labelAndAccessKey to label.
Now after some investigation into svn and maven I downloaded the
am i the one who sees converted to amp; in keypress code?
On 5/25/07, Bjørn T Johansen [EMAIL PROTECTED] wrote:
That I can:
form id=content:formFindArticle name=content:formFindArticle
method=post action=/nibstoreweb/secure/article/findarticle.faces
In the onkeypress I still see the same code, with the encoded ... you
should call your function instead.
I would recommend using the excellent Firebug [1] plugin if you are
using firefox. As it will complain that there are javascript errors in
the page and it will ease your pain a little :-)
Good points, yet this dows not solves the problem. are there any special
libraries beyond those I need to include :
- commons-beanutils-1.6.jar
- commons-collections-2.0.jar
- commons-logging-1.0.jar
- jsf-facelets-1.1.6.jar
- trinidad-api-1.0.0-incubating.jar
-
You are looking at the wrong onkeypress event... :)
But I just tried this in IE and there it worked so it seems to be browser
specific, both firefox under windows and
firefox under linux gives the same wrong result...
But I will try the Firebug plugin and se what happends... :)
BTJ
On Fri,
I tried putting the submitEnter function in a js file and added the file in the
head tag but I still get the
same result...
Here is the source of the page that is generated now..:
form id=content:formFindArticle name=content:formFindArticle method=post
hi mario,
I'm trying to use some inputfields in the modaldialog but the input seems
not to be set in my backing bean.
h:panelGrid columns=2
h:outputText value=Name: /
s:inputSuggestAjax
Hi,
problem may be in JSF 1.2. I am using JSF 1.1 RI and
trinidad-api-1.0.1-SNAPSHOT.jar, trinidad-impl-1.0.1-SNAPSHOT.jar
from
http://people.apache.org/repo/m2-snapshot-repository/org/apache/myfaces/trinidad/...
Other libs:
commons-beanutils-1.6.1.jar
commons-collections-2.1.jar
Hmmm... I have the following buttons at the top of my form..:
h:commandButton value=popupArticleGroupSubmit style=display:none
id=popupArticleGroupSubmit
action=#{findArticle.popupArticleGroupSubmit}/
h:commandButton value=popupSupplierSubmit style=display:none
id=popupSupplierSubmit
Server, cuz i'm using tomahawk bridge and requires server state...
Any clues?
On May 25, 2007, at 4:55 AM, Jesse Alexander ((KSFD 121)) wrote:
Are you using server- or client-state?
web.xml - context-param - javax.faces.STATE_SAVING_METHOD
regards
Alexander
From: Alexander Wallace
Hi,
I declared a viewhandler that goes through all components and childrens
components checking for the attribute permission, which is set on some
using f:attribute. If it is found I do some stuff finding out if this
component should be rendered. If no, i setRendered(false) on the component.
there is a tomahawk bridge, that cares about those... it doesn't mean
all components work with no issues, but some do... right now the tab
pane is behaving wierd sometimes... I ignore if the same bridge could
be used with trinidad tho...
On May 25, 2007, at 6:23 AM, Martin Marinschek
Hi Kito,
thank you for the hint. I'll try it there.
Best regards,
Rudi
On 5/24/07, Kito D. Mann [EMAIL PROTECTED] wrote:
Hello Rudi,
You may want to try asking this question in the icefaces.org forums.
~~~
Kito D. Mann -
No, facelets doesn't change anything provided you've defined the tags
in your taglib.xml file correctly. Is #{attribute.tableAttributeData}
request-scoped? As a test, try making this bean session-scoped
temporarily and see if everything suddenly works as expected.
If so, then you need to
You find the components after the renderer phase built by
encodeChildren. Search for the topic Change visibility dynamically
and you'll find a solution...
Mario
-Original Message-
From: Pich [mailto:[EMAIL PROTECTED]
Sent: 25 maggio 2007 16.25
To: users@myfaces.apache.org
Subject:
Well I got my problem figured out. Simple stupid mistake that took 2 days
to notice. In my previous example I did not have the correct capitalization
of autoSubmit. I spelled it autosubmit instead of autoSubmit. Once
fixed, all is well.
-Brian
On 5/24/07, noah [EMAIL PROTECTED] wrote:
On
I tried combining JSF 1.2 with Trinidad 1.2 and 1.0 SNAPSHOTS and included
the commons-digester-1.6 to my files but, it just popped some errors. I must
stick with JSF 1.2, unless there is know issues of skinning problems between
JSF 1.2 and Trinidad 1.0/1.2.
It would be interresting if there
Hi!
didn't I have to close the dialog immediatly ?
without closing the dialog there wouldn't be a call to the backing bean .. ?
Keep in mind that the dialog is in fact a different jsf page. So you
have to finish the lifecycle of this sub page to get the model
updated and then refresh the
Hello Stéphane,
You simply have to use tr:head to add the skin's CSS file to your pages. If
you use Firefox, you should install Firebug and check the generated markup
to see if a CSS was included. If so, try to put the generated CSS url in
your browser to see if the CSS can be found on server
Hi,
Is it possible to capture a JavaScript event and update a selected JSF
component on the page?
Regards
Balaji
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
PROBLEM SOLVED There WAS something to add to my JSP (I'm ashamed) I
forgot the tr:document tag... now everything is fine!
Thanks A LOT for your help everyone!
On 5/25/07, Stéphane Poirier [EMAIL PROTECTED] wrote:
I tried combining JSF 1.2 with Trinidad 1.2 and 1.0 SNAPSHOTS and
Thanks Andrew.
I'm currently trying to use Ajax4Jsf on top of my MyFaces JSF application to
enable Ajax capabilities.
I'm trying to prototype a device UI where the Onclick JS events of a image
Map opens up a different set of configuration parameters for the device.
This keeps changing as per
Okay, your best bet is a custom component for the area tag.
In the renderer for this new component, use the AjaxRendererUtils:
public class HtmlArea
extends UIComponentBase
{
// all the standard component stuff ...
}
public class HtmlAreaRenderer
extends RendererBase
{
protected Class
Can you provide a simple example demonstrating the problem?
On 5/25/07, Martin R [EMAIL PROTECTED] wrote:
Hello,
since myfaces/tomahawk v1.1.5 my dataTable doesnt show any content, when im
using javax.faces.model.DataModel as dataTable-value.
There are no problems with java.util.List as
Yes
There is a submit on event control in the sandbox that will submit the form.
If you want to submit one control, I would suggest the a4j:support from
JBoss Ajax4Jsf that allows you to submit only one control and update the
page using AJAX.
There are many more answers to your question, so
Oops forgot the () in the onclick, hopefully you picked that up.
On 5/25/07, Andrew Robinson [EMAIL PROTECTED] wrote:
Okay, your best bet is a custom component for the area tag.
In the renderer for this new component, use the AjaxRendererUtils:
public class HtmlArea
extends UIComponentBase
Hey, can anyone tell me how Orchestra compares to Spring-Annotations JSF
module (http://sannotations.sourceforge.net/jsf.html)?
~~~
Kito D. Mann - Author, JavaServer Faces in Action
http://www.virtua.com/ http://www.virtua.com -
Hi.
Visit this link..http://moneytreesystems.com/css/picpopup.html
visala
Madan Narra wrote:
Hi All,
I have a case where a image is displayed in each row of a sheet with
respect
to the content thats shown in the sheet's row.
The image would be smaller one (thumbnail) so it will not
Hello Balaji,
Yes, I do this all the time. Remember in XHTML you have access to the
complete DOM of the screen including form fields created by JSF components
(which render as HTML form components, ultimately).
Suppose that you have a form that has a drop-down list that (when selected)
adds
From: Pich [EMAIL PROTECTED]
Hi,
I declared a viewhandler that goes through all components and childrens
components checking for the attribute permission, which is set on some
using f:attribute. If it is found I do some stuff finding out if this
component should be rendered. If no,
I forgot one more point, make sure you store the area in a input hidden
element so you know which one was clicked on the server.
h:form id=myForm
a4j:jsFunction name=onImageAreaClicked ... /
h:inputHidden id=x value=#{myBean.myArea} /
...
area ...
Thanks Andrew.
I'm going to try these ideas this weekend. Hope to get it done by the end of
this week.
-Original Message-
From: Andrew Robinson [mailto:[EMAIL PROTECTED]
Sent: Friday, May 25, 2007 12:21 PM
To: MyFaces Discussion; [EMAIL PROTECTED]
Subject: Re: Javascript and JSF
Thanks Bryan for a very detailed mail.
However, in the UI I'm trying to simulate, the area of the Image determines
what I need to load as configurational parameters. And these may be quite a
lot . So, I would rather look upto the server to determine what I should
load as I click on the
I think you can get the current offset by using uiData.getFirst(). I
don't know the best way to get that information into your generated
html.
Possibly bind that value to a hidden input field.
On 5/21/07, Sajja, Vinod K (Vinod) [EMAIL PROTECTED] wrote:
I am trying to write a handler to
I have now a better diagnosis...
This behaviour is only present when the portlet is in edit mode... In
fact i'm presenting the same exact page (actual file) in both view
and edit mode of the portlet... The tabs work fine on view mode, but
when you click a command button in edit mode, the
Hi,
2007/5/25, [EMAIL PROTECTED] [EMAIL PROTECTED]:
You find the components after the renderer phase built by
encodeChildren. Search for the topic Change visibility dynamically
and you'll find a solution...
http://www.nabble.com/Change-visibility-dinamically-tf3299810.html
Regards,
Sorry, my mistake, I was executing some code I should have not. The converters
are called as they should.
Cagatay Civici [EMAIL PROTECTED] wrote: Hi,
That looks like a 1.2 issue, not a 1.1.5 issue (but I am not 100% sure
on this though).
Yes that's an issue related to the early development
I am doing something very basic.
First, I display my 1stTable with a checkbox for each
row (no problem). My DepartureManagementBean.java read
the user selected rows and prepare for displaying my
2ndTable without checkbox for each row. My 2ndTable
displays only the rows that are selected from the
Quite right. I was assuming that you needed help with the
client-side JS code. To make server calls, you should use
AJAX.
Cheers,
Bryan
Balaji Saranathan wrote:
Thanks Bryan for a very detailed mail.
However, in the UI I'm trying to simulate, the area of the Image
determines what I
Hi!
Hey, can anyone tell me how Orchestra compares to Spring-Annotations
JSF module (http://sannotations.sourceforge.net/jsf.html)?
I did not find the required information on their homepage, though, it
looks like there is indeed some overlap.
Some quick differences are:
* Orchestra do not
On 5/25/07, Caroline Jen [EMAIL PROTECTED] wrote:
public String updateDeparturePersonnel()
{
// iterate through the data rows ...
for ( int index = 0; index personnel.size();
index++ )
{
PersonnelBean personnelBean = ( PersonnelBean
or just a
2007/5/25, Mike Kienenberger [EMAIL PROTECTED]:
On 5/25/07, Caroline Jen [EMAIL PROTECTED] wrote:
public String updateDeparturePersonnel()
{
departurePersonnel.clear();
at this point?
// iterate through the data rows ...
for ( int index =
Yes, that's probably a better strategy than what I suggested. My
suggestion won't correctly clear out duplicate items that are already
selected.
On 5/25/07, Volker Weber [EMAIL PROTECTED] wrote:
or just a
2007/5/25, Mike Kienenberger [EMAIL PROTECTED]:
On 5/25/07, Caroline Jen [EMAIL
Thanks very much.
departurePersonnel.clear();
does the job.
--- Mike Kienenberger [EMAIL PROTECTED] wrote:
Yes, that's probably a better strategy than what I
suggested. My
suggestion won't correctly clear out duplicate items
that are already
selected.
On 5/25/07, Volker Weber [EMAIL
Thank you very much.
But just to recap that thread to see that I am not missinterpreting. It is
not possible to change components found in the ViewRoot using a ViewHandler
or PhaseListener. It is however possible to do this by using a custom
UIViewRoot?
Best regards
Pichdude
Volker Weber-5
I am experiencing the same problem, has there been a fix?
Michael Trompertz wrote:
Hello
After switching from trinidad-1.0.1-incubating-SNAPSHOT to
trinidad-1.0.1-SNAPSHOT I got the message _validateAlert is not
defined after pressing the
tr:commandButton action=#{loginData.login}
Hi,
Is it possible to, by using FacesContext.getCurrentInstance()..., find the
current component. To be more precise I want to be able to find out, in
the method in the rendered attribute for a specific component, find out by
using FacesContext... which component in the ViewRoot I am currently
Hello,
I was wondering if anybody has had any success with JSF and AJAX outside
of building custom components? We are fortunate to have a very talented
UI developer with a strong knowledge of JQuery and Taconite and we would
like to leverage his abilities as much as possible. We are using
Is it possible to find out which component
in the ViewRoot I am currently working with?
What do you mean, which component you're working with?
Perhaps you're really asking a binding question, i.e. what UI component
is my particular backing bean member populated from or somesuch. For
this,
86 matches
Mail list logo