Hi
1.
<h:commandLink> tag does
not work inside a <t:dataTable>
tag
The value (collection) for the dataTable has to be avaialble in the Restore View Phase too. You can achieve that by using Session Bean or SaveSate. Look @ t:saveSate
The value (collection) for the dataTable has to be avaialble in the Restore View Phase too. You can achieve that by using Session Bean or SaveSate. Look @ t:saveSate
There are a lot od posts on
this issue.
3. To
use your owbn ids, u need to use the t:forceId of MyFaces otherwise JSF creates
prefixes for the component's.
HIH.
Balaj
-----Original Message-----Hi,
From: JSFSter Smith [mailto:[EMAIL PROTECTED]
Sent: Tuesday, 11 April 2006 5:21 PM
To: MyFaces Discussion
Subject: Newbie help
I have just started using MyFaces for a new project and had a couple of questions while I am on the learning curve. Any help/response is greatly appreciated. Its been a pleasure to actually create JSP pages with no java code using JSF in them and I hope to keep them that way!
1. <h:commandLink> tag does not work inside a <t:dataTable> tag
and ends up refreshing the same page from where the link was clicked without any updates to the model. The get/set methods for the corresponding backing bean member are never called by the framework
I looked through the mail archives for myFaces as well as JSF RI. This seems to be an issue faced by many users and the suggested work around is to make the backing bean that contains the table data a session bean (currently mine is a request). Is this a bug with the spec or am I missing something ?
2. <h:commandButton> with a request scope backing bean cannot be used to pass request parameters to the next page using <f:param> tags.
The <h:commandLink> tag has to be used instead. Again is this a bug or I am missing something?
Currently, I am using h:commandLinks for my request param passing and it works fine. But this leads me to my final question:
3. I am trying to map the enter key to my command link (which is an image) using _javascript_ and have included a snippet below.
if (keycode == 13) {
document.forms['MyJSFForm'].elements['submitLink'].click()
return false;
}
I have explicitly given id's to my form and commandLink. The _javascript_ object for the link is invalid
Thanks in advance for your response!
- Rajiv
| This correspondence is for the named persons only. It may contain confidential or privileged information or both. No confidentiality or privilege is waived or lost by any mis transmission. If you receive this correspondence in error please delete it from your system immediately and notify the sender. You must not disclose, copy or relay on any part of this correspondence, if you are not the intended recipient. Any opinions expressed in this message are those of the individual sender except where the sender expressly, and with the authority, states them to be the opinions of the Department of Emergency Services, Queensland. |

