vish som

Greenhorn
+ Follow
since Aug 06, 2008
Merit badge: grant badges
For More
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 vish som

Hi All,
I am working on customizing an Alfresco page browse.jsp. And i have been finding it very difficult to pass parameters from the jsp to my Backing bean.After analysing a few f:param tags in the browse.jsp page i stumbled upon line no 271

The actionListener 'BrowseBean.clickSpace' inside BrowseBean.java is


The inference i have drawn from the above two code sources is that
1)Considering the JSP code, i assume that the id parameter passed using f:param is 'one id for every content'.Almost like a collection of id's
2) The actionListener BrowseBean.clickSpace is called for every id of the content .So if i had an arrayList to capture all the id's from inside the clickSpace actionListener i will be successfull in doing that.
3)I will be able to pass the parameter like are.name in the place of are.id.

Just need a confirmation on whether my assumptions are true.I have tried customizing the page using these inferences but have failed.Thank You.
14 years ago
JSF
Hi All,
I am working on a page 'browse.jsp' to implement a customization in the Alfresco CMS wherin in the "details" view, inclusion of checkboxes besides the document names and their checking and submission will result in thier display in a subsequent JSP.
Here is my code snippet from line no 411 of 'browse.jsp'
BeanForSendMultiple.java is my backing bean.

Here is my backing bean BeanForSendMultiple

and here are the getters and setters for the document

But on running the application i am getting the following stack trace: The issue being a NullPointer exception in obtaining documentDetails.length from the BeanForSendMultiple


Could any one please guide me on my approach where i am missing out.
Thank You
14 years ago
JSF
Hello All,
I have a need to implement checkboxes besides the names of document names in a JSF so that they can be sent to a web service on being checked and submitted.
To visualize:
Checkbox Filename1
Checkbox Filename 2
As a first step towards achieving this target, I have identified the concerned JSP seen in the UI called ‘browse.jsp’ and added the following piece of code by adding a new column to the existing table to house the checkboxes

Also I have written a bean MyBean which paves the way to display 3 checkboxes in that column.


I have added two entries into the faces-config-bean.xml
1) Added the setters to the BrowseBean.jsp which is the parent governing bean responsible for the default display of filenames


2) Added the Bean declaration for the newly created Mybean like BrowseBean (just below it).

After making these changes , I am getting the following error

Can anyone kindly help me in fixing this.
Thank You
14 years ago
JSF
Hi Tim
Are you pointing to the id i have used for converter or for the inputText?
Can you please correct the above snippet with the best practice.I would surely like to adopt that methodology.

Thanks
14 years ago
JSF
I changed the code with this



and it worked!

Reason :The <f:converter> doesn't have an id attribute: http://java.sun.com/javaee/javaserverfaces/1.2_MR1/docs/tlddocs/f/converter.html.
14 years ago
JSF
I have been trying out clues from the link : http://www.ibm.com/developerworks/java/library/j-jsf3/
But when i implement

I get the following error on my jsp page


javax.faces.FacesException: /jsp/ml/freeway-page.jsp(183,1) Attribute id invalid for tag converter according to TLD
caused by:
org.apache.jasper.JasperException: /jsp/ml/freeway-page.jsp(183,1) Attribute id invalid for tag converter according to TLD
14 years ago
JSF
Hello
I hav an input text in my JSP which obtains value from the user.The name of the field is "Volume" and it is a 'double' datatype in my backing bean.The user entered value is to be set as the double value in the setter.


I need to ensure that only numeric values can be obtained from the user.The non numeric values from the user should throw a validation error.How can this be done using validators in JSF?
Thanks
14 years ago
JSF
I am consuming a webservice which takes in 10 parameters.
The aim of the call to the webservice is to obtain a Task ID.All the parameters for the call are supplied from a JSP page(using JSF).
The following is the web service call

The following is the JSP page:


The thing which i am not able to understand is this error at my Tomcat console:



The ticket and project ID are available within the bean.The rest 8 parameters are made available frm the JSP.
On selecting fields like Subjects etc from my dropdown box, the web service call in the bean throws an error regarding the ID of the field.
Why is my web service call checking the dropdown box field id's!when all the required parameters have been passed to the service through my bean and its arrangement of setters and getters.


Thank You
14 years ago
I did one change of giving grant options to the Alfresco database, and now hav got rid of most of the errors.
The console which i see now is like this.



The text in bold in the above console seems to be the issue. The Alfresco 'dir.root' property is
set to a relative path './alf_data'. 'dir.root' should be overridden to point to a specific folder. I cant seem to figure out where to do the changes.

Suggestions are welcome. Thanks.
Hi,
I hav an Alfresco CMS application running on my machine.It has been developed using the Netbeans IDE using Tomcat 6.0.18.The process of running the server is as follows:
1) Creating the build in netbeans.
2) The alfresco war gets placed in the 'webapps' folder of Tomcat.
3) Going to the path D:\apache-tomcat-6.0.18\bin and giving the 'startup.bat' command from CMD.
4) The server startsup after the following console messages



5)The application works fine on my system after the startup..
6) But when i migrate the war on to another system, setting up everything required on this other machine i.e. place the war in the "webapps" folder of the tomcat in the other system,
i get the following errors on its console.

Searching for clues on the forums i added two jars, ehcache-1.1.jar as well as jta1.0.1.jar but still the errors persist.
Could any one please suggest a solution.I guess the problem is with insufficient Spring infrastructure on my new machine.

Thank You