Are you asking how to convert this jsp code into JSF components?
two days ago i was seeking for best aproach. Now I see that I was need to
convert my code JSF component.
I have done it using DataTable.
thank you.
--
View this message in context:
Good morning.
I have next working code:
t:dataTable
styleClass=standardTable
headerClass=cellk
footerClass=cellk
rowClasses=celltce
Hi,
Is there a way to create a validator to compare two fields (like a password
and a password check field) ? I would like to have something like this as
result:
...
h:inputSecret id=password
f:validator validatorId=CompareFields otherField=passwordCheck/
/h:inputSecret
...
h:inputSecret
There is a sandbox compareTo componenent, you can try itregards...On 8/10/06, Tom Serru [EMAIL PROTECTED]
wrote:Hi,Is there a way to create a validator to compare two fields (like a password
and a password check field) ? I would like to have something like this asresult:...h:inputSecret
http://myfaces.apache.org/tomahawk/validateEqual.html
Thanks,
Robert
-Original Message-
From: Tom Serru [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 10, 2006 10:32 AM
To: users@myfaces.apache.org
Subject: Compare two password fields with a validator
Hi,
Is there a way to create a
Hello, i have got a characters encoding problem here. In my java code i
have this
UISelectOne selectDocumentType =
(UISelectOne)application.createComponent(HtmlSelectOneRadio.COMPONENT_TYPE);
.
selectDocumentType.getAttributes().put(onchange, alert(\'Cliqué\'););
When the radio group is
I have a jsf page, that includes other pages depend on application state:
t:div rendered=#{mainMenuHandler.results}
[EMAIL PROTECTED] file=results.jsp%
/t:div
t:div rendered=#{mainMenuHandler.orders}
[EMAIL PROTECTED] file=orders.jsp%
/t:div
t:div
Have you tried to to it like in the example from t:buffer?
t:buffer into=#{mytable} /
kind regards
Am Donnerstag, den 10.08.2006, 00:10 -0700 schrieb vasiliy.kiryanov:
Good morning.
I have next working code:
t:dataTable
Hello,
I have a problem with a set of radio buttons using it
in a datatable:
t:dataTable
value=#{BackingBean.dataList} var=dataItem
t:column
f:facet
name=header
nbsp;
/f:facet
h:selectOneRadio
id=radioList
f:selectItem
value=#{dataItem.id} /
/h:selectOneRadio
/t:column
Here is a sandbox example those does exactly
what youre looking for.
http://www.irian.at/myfaces-sandbox/selectOneRow.jsf
Robert
From: Wetterau, Jan
[mailto:[EMAIL PROTECTED]
Sent: Thursday, August 10, 2006
11:54 AM
To: users@myfaces.apache.org
Subject: A problem with
Wow.you can tell I need some sleep.
those=that.
Robert
From: Robert Locklear
[mailto:[EMAIL PROTECTED]
Sent: Thursday, August 10, 2006
12:01 PM
To: MyFaces Discussion
Subject: RE: A problem with radio
buttons in datatables
Here is a sandbox example those does
exactly
Hi Joe,
If you bind each component in the group to a backing bean, then you
attach a custom converter to the last control of the group that appears
on the page (e.g. input field).
public class BackingBean {
private SelectOneRadio radio;
private UIInput radioInput;
...
public void
Hi,
I just want to know whether it is generally possible
to work with 2 screens simultaneously in a JSF application.
The 2 screen mode should be optional depending on
user preferences.
State saving mode should be server side.
My first screen is a kind of a workbench with many
Should we wait for the next edition when Tomahawk has upgraded to JSF
1.2?
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of
Matthias Wessendorf
Sent: 09 August 2006 22:06
To: MyFaces Discussion
Subject: [OT] Book
look!
what I found JavaServer Faces
Hello!
Well, I have struggled with my web.xml for quite some time now and I just can't
get this to work with myFaces.
First things first:
I'm using SUN Java Studio 8.0 Enterprise and the application server that comes
with de program on localhost. The application I'm building workes fine if
Hi John,
a) check if there occurs a JavaScript error.
Is there the JavaScript Debugger installed?
(I've had a problem with the aktivation of the debugger must switch
it off and on before it works)
b) Does e.g. the tobago-example-demo works on your system?
c) jsf version? tobago
I am sharing this for anyone who may find it useful.
To pass a parameter to a method inside an el expression, extend the DummyMap
class (below) and implement the get(Object obj) method to pass obj as a
parameter
to that method.
As a trivial example, to pass a parameter to the changeToUpperCase()
If you have read the post on wiki, it says that you dont need to do any modifications in your web.xml. Follow these steps:
Change the config security file so that MyFaces can delete it's temporary files.
In {InstallDir}/SunOne8.1/domains/domain1/config/server.policy
Change permission
validateCompareTo is a better choice than validateEqual.
http://myfaces.apache.org/sandbox/validateCompareTo.html
On 8/10/06, Robert Locklear [EMAIL PROTECTED] wrote:
http://myfaces.apache.org/tomahawk/validateEqual.html
Thanks,
Robert
-Original Message-
From: Tom Serru [mailto:[EMAIL
You will also get the better results by putting the validator on the
second field on the page rather than on the first field on the page.
This is especially true for validateEqual, but less important for
validateCompareTo.
On 8/10/06, Mike Kienenberger [EMAIL PROTECTED] wrote:
validateCompareTo
Hey Lance,
This would be a great wiki topic so it doesn't get lost.
It's probably worth noting that if you're using facelets, you can
simply create a real changeToUpperCase() user-defined el function.
On 8/10/06, L Frohman [EMAIL PROTECTED] wrote:
I am sharing this for anyone who may find it
GOT MY MISTAKE!! thanks again...
On 8/9/06, nimisha sharma [EMAIL PROTECTED] wrote:
I think i am doing the right thing with this.. i went to jenia.org and followed the instructions.. as i told you that i was not even getting the checkboxes, now i am getting them.. but when i click on the
On 8/10/06, Conway. Fintan (IT Solutions) [EMAIL PROTECTED] wrote:
If you bind each component in the group to a backing bean, then you
attach a custom converter to the last control of the group that appears
on the page (e.g. input field).
Fintan means validator and not converter. You can see
On 8/10/06, Sköldheimer Fredrik [EMAIL PROTECTED] wrote:
!-- extension mapping for adding script/, link/, and other resource tags to
JSF-pages --
filter-mapping
filter-nameMyFacesExtensionsFilter/filter-name
!-- servlet-name must match the name of your javax.faces.webapp.FacesServlet
On 8/10/06, Michael Heinen [EMAIL PROTECTED] wrote:
I just want to know whether it is generally possible to work with 2 screens
simultaneously in a JSF application.
For JSF 1.2, this is generally true (although I don't know the details).
For JSF 1.1, this is generally not true.
The 2 screen
On 8/10/06, Seshireddy G [EMAIL PROTECTED] wrote:
Can any one give some idea for doing EXPANDALL and COLLAPSEALL
functionalities using tree components..
P.S: Its not possible to change my complete functionlaity to tree2 for
EXPANDALL / COLLAPSEALL .
so i need to do with tree component only.
Just check the security in a phase listener before render. To answer
your question -- you can't (there is no API in the navigation handler
to get any information out).
On 8/9/06, Ingo Düppe [EMAIL PROTECTED] wrote:
Hi,
I like to check within the navigation handler some security constraints
Hi,
Iwant to save the data inboth thetwo forms when i clicked the save buttonin one ofthe forms. I have several forms in my documents as illustrated below:
f:view
h:form id="form1"
h:inputText id="name" value="#{backingBean.var1}"/
/h:form
h:form id="form2"
h:inputText id="address"
On 8/10/06, Mak Nern Fatt Melvin [EMAIL PROTECTED] wrote:
I want to save the data in both the two forms when i clicked the save button
in one of the forms. I have several forms in my documents as illustrated
below:
f:view
h:form id=form1
h:inputText id=name value=#{backingBean.var1}/
/h:form
Hi,
I cannot use a single form for my document because I have yet another form nested in-between the two forms. Please see the illustration below:
f:view
h:form id="parent_form1"
h:inputText id="name" value="#{backingBean.var1}"/
/h:form
h:form id="child_form"
h:inputText
On 8/10/06, Mak Nern Fatt Melvin [EMAIL PROTECTED] wrote:
I cannot use a single form for my document because I have yet another form
nested in-between the two forms. Please see the illustration below:
There's no way you can submit two forms at the same time using the
http protocol.
The only
On 8/10/06, Conway. Fintan (IT Solutions) [EMAIL PROTECTED] wrote:
Should we wait for the next edition when Tomahawk has upgraded to JSF
1.2?
:) No. Tomahawk JSF 1.2 ?
When will that be? 2008 ? :)
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of
to be serious. It's great to have book which contains tomahawk (and other stuff)
I ordered it already :)
On 8/10/06, Matthias Wessendorf [EMAIL PROTECTED] wrote:
On 8/10/06, Conway. Fintan (IT Solutions) [EMAIL PROTECTED] wrote:
Should we wait for the next edition when Tomahawk has upgraded to
On 8/10/06, Mak Nern Fatt Melvin [EMAIL PROTECTED] wrote:
Yes you are right Mike. I need to put the child section in another form due
to selective validation. I do not want the parent components to be validated
or reloaded when the child section is been submitted. You talked of a
workaround, so
Hi all,
I would need to track this event for this component, but I see in HTML
code that it ignores this.
how can I do ?
I'm using sandbox-1.1.5-snapshot, and myfaces 1.1.4
Thanks Mike.
Yes, I remember that jsf 1.2 provides a windowId.
Do you have an idea when a myFaces implementation (a release) of the 1.2
spec will be available?
Client Side state saving is a big performance downside and not useable
for me.
Another question to jsf 1.1:
Would I face problems if
On 8/10/06, Michael Heinen [EMAIL PROTECTED] wrote:
Do you have an idea when a myFaces implementation (a release) of the 1.2
spec will be available?
When enough volunteers submit patches to close all of the JSR 252 open
issues :-)
Andrew Robinson schrieb:
Just check the security in a phase listener before render. To answer
your question -- you can't (there is no API in the navigation handler
to get any information out).
I just feared it that is not convert by the API. But thanks for
pointing me to the phase listener
Hi everyone,
I just begin to learn Facelets and Myfaces. I created a template, but the
template did display as expected. The sidebar and content should be
displayed in two columns as left and right, but it always display in one
columns as up and down. I really do not have any idea how to fix it.
Gus,
There is a little thing with Facelets that some components are compile time
and some are render time. I think you are mixing the two. You might try
putting each form inside h:panelGroup so ui:include can be sure where to
place itself. Also, did you get your columns created in the
Hi,
I have this question:
I am intercepting a JSF Bean 's action method (to apply method-based
security) with Spring.
In it I do this (test code, hance the hard coding of a few vars) in
Spring's invoke() method of the interceptor:
...
getFacesContext().addMessage(usersForm:errors, new
Hi David,
Thank you for your very quick reply. I got a little understand. Yes, the two
ui:include(header and footer) go to the right way, but the ui:insert
(sidebar and content) are not rendered correctly in the h:panelGrid
columns=2. Could you please give me some advice modifying it? Thanks
On 7/19/06, Hubert Rabago [EMAIL PROTECTED] wrote:
Is there a way to wrap all calls to methods called by h:something
actionListener=/ attributes? Something like
ActionListener.processAction(ActionEvent) does for h:something
action=/ methods?
Maybe, but we might have an easier time telling you
In the meanwhile, I'v tried someting else, without success though:
Instead of woring with h:messages (which is buguous, cf earlier
post), I worked with a regular label inside the form:
...
h:outputLabel styleClass=error value= id=globalErrorMsg/
h:message for=globalErrorMsg styleClass=error
Below is my managed bean. In the constructor, I get a reference to the managed property from Spring just to verify that it is available. I placed breakpoints in the code at the getSiteList() method, and my breakpoint is never hit prior to the error occuring.
//package
What was your final html ? Did it list them as two different columns (i.e
td tags) or did it put them together? If it put them both inside one td
tag, I recommend you try putting each h:form section inside the h:panelGroup
tag or perhaps inside another container tag which works within
Hi David,
The template I want is
table
trtd colspan=2header/td/tr
trtdsidemenu/td tdcontent/td/tr
trtd colspan=2footer/tdtr
/table
in jsf:
h:panelGrid columns=2
f:facet name=header
header
/f:facet
h:panelGridsidebar/h:panelGrid
h:panelGridcontent/h:panelGrid
f:facet name=footer
footer
Hi,
I tried to remove a row from data table which has preserveRowStates
set to true and I noticed deleted row data is being shown an the next
row. Does anyone know How I can keep the modified data on the table with
out using preserveRowStates. I want to be able to remove the row from
data
Faisal,
I see
at least two possible problems with your below code:
1) You
are not checking the correct log files so you are missing the logged messages
explaining where your code is going wrong. You keep resetting your
"sites" item to a
"new LinkedList()" before returning it. In your
Right, but what did you get over in your browser? Knowing what came out in
the wrong places in the browser helps you figure out what parts of the
.xhtml page are acting incorrectly. THEN we can act/work on those items.
Regards,
David
-Original Message-
From: Gus [mailto:[EMAIL
I had similar problems. What I have discovered is that if you place the
column in a h:panelGroup the issues will go away. I have noticed that
comments and jstl will cause the html to rendered incorrectly.
For Instance
h:panelGroup
!-- submenu of side bar insert --
On 8/9/06, Joe ersinghaus [EMAIL PROTECTED] wrote:
Is it possible to have more than one component validated as a group? For
example: let's say I've have a radio button that when activated, text
must be entered/validated in that radio button's associated input field?
In other words, only when
Hello Gerald,Sorry for taking to long to answer,...the part of the JSP I have is this:t:tree2 id="serverTree" value="#{EntradasBean.modeloArbol}" var="node" varNodeToggler="t" clientSideToggle="true" f:facet name="opcion" h:panelGrouph:selectBooleanCheckbox
David,
The sidebar and content should be in two columns(left and right), but they
were displayed in one column (top and down). I did not review the rendered
html code. I will send it you later. Thank you.
Best wishes!
Gus.
David Friedman-2 wrote:
Right, but what did you get over in your
Hi Wolf,
From a quick glance you have globalOnly=true in your h:messages and it
looks like you're adding a message with a handle userForm:errors
(non-global). Try setting globalOnly to false or creating a faces
message with a null handle (to make the message global).
For the second problem of
Hi David,
It seems I found the problem. After I moved the several comments in the
template.html, it displays correctly. Modified codes is as follows:
h:panelGrid columns=1 styleClass=mainBody rowClasses=row
cellspacing=0 cellpadding=0
Hi everyone,
It is my first time to use tree2. It is very nice and very friendly, but I
don't know how to set nowrap to tree node (img+nodename+(count)=one line).
From the partial rendered codes:
tdimg id=contentForm:clientTree:0:0:0:0:t2c
src=/context/images/yellow-folder-closed.png
57 matches
Mail list logo