Win a copy of Spring Boot in Practice this week in the Spring forum!

jyothi nalam

Greenhorn
+ Follow
since Oct 25, 2006
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by jyothi nalam

Hi I have done my java certification 8years ago and would like to give the new java 8 certification.
Can someone please tell me if I have give the upgrade exam or 1Z1-804 & 1Z1-808 exams.

Appreciate your response.

Thanks..
Hi,

I have a popup panel with an input text. After entering the input, a backing bean validation method which checks if the entered input is valid and if there is any associated data in the database is called. The problem is after returning from the method, the popup panel is closed whether there is a valid data or not.



Please advice.

thanks in advance.
9 years ago
JSF






With that, I am able to delete the files and the list is updated in the popup panel. The issue is, I am able to delete all except the last one. the last one is deleted from the list but I still can see it in the popup panel.

Please advise.

Thanks in advance
9 years ago
JSF
I have a datatable which displays the to email addresses and also I have a rich:autocomplete used to select the email address. I am able to display the address selected, but I am not able to send the selected address and update the datatable.




I tried different ways of calling a jsfunction and assign the variable . but I couldnt get it to working. Please help with some suggestions. when I kept an alert(this.value) inside onselectitem, it displayed the value of the email address, but when I sent the same to the backing bean, I have a null value.

Thanks,
9 years ago
JSF
I got it resolved. In my code previously, the setPoSelectedDateRange method assigns value to the dateTo and dateFrom calendar components. So this method is always called before submitting the search. So I separated the logic to set the calendar components and called that from the listener.

This is how, I was doing.


so poDatePlacedRange is just a setter which sets the variable poDatePlacedRange. and the listener method is the one that gets called whenever there is a change in radio button select.



9 years ago
JSF

Tim Holloway wrote:I'm not actually sure about the validity of the "render()" javascript function, but that's not something I usually do, since I've always used the a4j:support method to supply dynamic re-rendering. In RF4, that would probably mean adding an "f:ajax" sub-element to your radio button. And, as a general rule, I've found it simpler and safer to let AJAX update the Model (backing bean) and then re-render the control from the model than to meddle with the control values on the page.

Incidentally, the "language="javascript"" attribute on the script tag is deprecated as of HTML5.



Thanks a lot for the reply Tim.

My application has two options. we can select the date range either through the radio buttons which have 30days(default), 60days etc options or directly set the date from the rich:calendar component.

When I have tried with ajax and backing bean, the radio buttons work fine and update the calendar dates. Following is my code:

But I am failing the other way, I could not set the calender directly, because when i click the search, the dates are reset to the dates selected by the radio button.

Please suggest. The examples that I saw online does not give much details about the javascript functions of the calendar component.

Thanks in advance.

9 years ago
JSF
Thanks a lot for your reply.

I was previously using commons apache mail to send the mail. If there is any invalid address, the entire send is failing for even valid address. Is javamail api the only option for partial sends or can we tweak the commons mail settings. I had to rewrite my entire application to enable partial sends.

Thank You.
9 years ago
I was about to give that a try before posting my issue before. But your reply confirmed to go ahead. thanks a lot.
I have another problem now. Now i am successfully able to send the mail with attachment.

But the problem is if there is an invalid address, I am not able to catch it. mail is sent to valid addresses but i am receiving a mail directly from system administrator about the failure to send mail to invalid addresses.
And I do not see any exception in my log


Please help me solve this.

Thanks in advance
9 years ago
Hi,

I am using JavaMail API and trying to attach pdf file which is on a server. I am able to retrieve the file from the browser.



Please help me resolve this.
9 years ago
Appreciate your reply Tim. I am still having that issue. Hope I can find some solution to this.
9 years ago
JSF
I have a radio button and a rich:calendar component. on select of a radio button the rich:calendar need to be updated.
We are migrating our application from richfaces 3.3 to richfaces 4, jsf 1.2 to jsf 2.
Following is my code that worked fine before migration.



Please help. i could not figure out what is wrong since i am new to jsf and richfaces and also not good with javascript.
9 years ago
JSF
Thanks for the reply. I changed to reRender. but the view still has the files uploaded. After I close and reopen it then, I see that the file is deleted.
9 years ago
JSF
Hi,

I have a popuppanel which displays a list of files uploaded. it contains a delete button(which is a command link). when I click on the delete, the file is deleted but the popuppanel still displays the file and now the close also does not work.

following is my popuppanel code.

Stuck on this since 2days. Any help and advice is greatly appreciated.

Thanks in advance.
9 years ago
JSF
Thanks Tim for the reply.

Yes, the problem is due to the nested forms. Though I have already included the popup in a separate form , the popup already has a form inside. when I removed the inside form, the problem is resolved.
9 years ago
JSF
Hi,

working to solve this since 3days and nothing resolved. I have a dataTable which has a link to edit the row. onClick, a popup panel is displayed with the corresponding row details. But, after modifying and clicking the save button, I am getting the following exception

4:07:56,518 SEVERE [org.richfaces.log.Context] (http-localhost/127.0.0.1:8082-2) /search.xhtml @247,67 value="#{selectedPart.data1}": Target Unreachable, 'selectedPart' returned null on 'org.javassist.tmp.java.lang.Object_$$_javassist_seam_12': javax.el.PropertyNotFoundException:data1: Target Unreachable, selectedPart returned null on 'org.javassist.tmp.java.lang.Object_$$_javassist_seam_12'
at com.sun.faces.facelets.el.TagValueExpression.getType(TagValueExpression.java:100) [jsf-impl-2.1.7-redhat-1.jar:2.1.7-redhat-1]
at com.sun.faces.renderkit.html_basic.HtmlBasicInputRenderer.getConvertedValue(HtmlBasicInputRenderer.java:95) [jsf-impl-2.1.7-redhat-1.jar:2.1.7-redhat-1]
at javax.faces.component.UIInput.getConvertedValue(UIInput.java:1030) [jboss-jsf-api_2.1_spec-2.0.2.Final-redhat-1.jar:2.0.2.Final-redhat-1]
at javax.faces.component.UIInput.validate(UIInput.java:960) [jboss-jsf-api_2.1_spec-2.0.2.Final-redhat-1.jar:2.0.2.Final-redhat-1]


I have tried enclosing the popuppanel in a form. adding the domElementAttachment="form" to the rich:popupPanel. But nothing working.

Any help is appreciated.

Thanks in advance.
9 years ago
JSF