Win a copy of Head First Android this week in the Android forum!

amar mahtani

Greenhorn
+ Follow
since Feb 08, 2009
Dallas, TX
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 amar mahtani

Hi Paul, I am sorry I had the wrong information regarding Apache. For my requirements I don't actually need to use Apache at all. I just wanted a more intuitive name in order to access tomcat, for that purpose I would need to create a new host name in the DNS and change 8080 to 80 and I am done. However thanks for replying to my post.

Regards,
Amar
12 years ago
Hi,
To access the tomcat home page or any web application, I am currently using http://<ipaddress>:8080 or http://<ipaddress>:8080/<project context>.
I would like to know if there is a way to replace the "<ipaddress>:8080" with a more proper host name such as "abc.myname.xyz". I was told I could use the Apache server along with Tomcat to achieve this. But I am not sure how to implement it. If you could please help me in figuring this out, it would be awesome!! Thank you.

Regards,
Amar
12 years ago
Hi, I have a set of HTML files which has links pointing to one another and also pointing to a set of PDF files.

Folder Structure

../HTML/*.html
../PDF/*.pdf
also
../PDF/SubFolder1/Sub1.1/*.pdf
../PDF/SubFolder1/Sub1.2/*.pdf

I would like to know, if its possible to convert and merge all these files into one single PDF and have the newly converted HTML files retain their link destination to the various PDF files and HTML files.

This task is possible with the Acrobat Professional tool, where in we select Create PDF from web page and select the option to get Entire Site, so this way all the HTML files and their link destination files (i.e. other HTML files and PDF files) are included in the newly created single PDF File.

I have tried using iText, but it does not retain the link destinations correctly, in that it still thinks the link is a web link instead of a normal pdf bookmark or a pdf link. Any help from you would be really appreciated, Thank you.

Regards,
Amar Mahtani
12 years ago
Hi, I have a set of HTML files which has links pointing to one another and also pointing to a set of PDF files.

Folder Structure

../HTML/*.html
../PDF/*.pdf
also
../PDF/SubFolder1/Sub1.1/*.pdf
../PDF/SubFolder1/Sub1.2/*.pdf

I would like to know, if its possible to convert and merge all these files into one single PDF and have the newly converted HTML files retain their link destination to the various PDF files and HTML files.

This task is possible with the Acrobat Professional tool, where in we select Create PDF from web page and select the option to get Entire Site, so this way all the HTML files and their link destination files (i.e. other HTML files and PDF files) are included in the newly created single PDF File.

I have tried using iText, but it does not retain the link destinations correctly, in that it still thinks the link is a web link instead of a normal pdf bookmark or a pdf link. Any help from you would be really appreciated, Thank you.

Regards,
Amar Mahtani
12 years ago
Hi,
In my application I have two list boxes (selectOneListbox), one shows Available Items and the other shows Selected Items. I use javascript to transfer items between the two list boxes. When I click on the commandButton, the desired action method is not executed, rather the list boxes get reset to their previous state (i.e. all the items from Selected List go back to the Available List.) And when I click on the commandButton again immediately, then the action method is executed.

My doubt here is does JSF not like javascript performing a task and hence resets it when we try to submit the form. Any suggestions to work around this issue, and to be able to submit the form when I have items in Selected List and to make those items available in the backing bean. Thanks for your responses.

Amar
12 years ago
JSF
Thanks Bear for the suggestion.
12 years ago
JSF
Hi,
In my application I have two list boxes (selectOneListBox) one representing available values (pre populated) and one representing selected values (empty). Both list boxes are have the f:selectItems tag which is bound to a variable in the backing bean. When I choose a value from the Available list and click on the "add" button, I use JQuery to transfer the selected item from the Available list to the Selected List. All this works fine.

However when I click on the save button (h:commandButton) my application goes through the various life cycle phases and when it reaches the process validation phase, it performs a SelectItemsIterator on both Lists but fails on the Selected List with the error "NoSuchElementException()" since it was initially empty. I initialized the List Boxes as follows.




I have tried initializing the Map to have an empty key and value pair, but when I run the application,
the list item contains an empty entry, and that is also allowed to be moved between lists when I add to or remove from the Selected List.

I would like to know if there is a way to bypass the list validation.

All I require is that After I transfer the Items from Available List to Selected List and hit submit, I need to be able to access the List items in the backing bean. If you have a work around to my problem stated above or if you have a completely different approach in handling this problem I would be really happy to hear from you. thanks for your replies in advance.

Regards,
Amar Mahtani
12 years ago
JSF