Augustine Chelliah

Greenhorn
+ Follow
since Mar 12, 2009
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 Augustine Chelliah

Got it. When we did a window.open, the file we mapped to was *.xhtml; when we changed this to *.jsf, it worked. In the web.xml, we had configured for the URL pattern *.jsf . We also had an entry for xhtml just that faces servlet was not called and hence no JSF components were displayed. So *.xhtml will work if it is forward from one page, but not during a window.open .
12 years ago
JSF
Thanks for the reply Ajeeth. The popup window does not have the same template as in other pages. I just need to display data with some message.
12 years ago
JSF
Can somebody help ?
12 years ago
JSF
Hello,

I need to open a pop-up window from a page. I used window.open in JavaScript and am calling that from an 'onclick' attribute of a command link. In the pup-op window, the JSF components are not getting rendered on the screen. But when I type some HTML content, it is displayed on the screen. Am using JSF 1.2 (facelets and xhtml).

Need Help.


Augustine J
12 years ago
JSF
Hello,
The description for the 'rows' attribute says this:- "The number of rows to be displayed. Specify zero for all remaining rows in the table."

Suppose, I have a list of 10 objects, and I want to display only 7. How do I use the above attribute to hide the remaining rows ? i.e. how do I specify 'zero' to all the other rows in the table ?
13 years ago
JSF
Thank you Jennifer. As I said, my project does not allow to use rich faces. Also the requirements are changed now and so probably will not have this scenario. But Even if this scenario arises, I'll get back to the "html table tags iterated over a datalist" solution. Also will be using a4j for the expand collapse operation.
13 years ago
JSF
Thanks Tim..
My project does not allow rich faces or icefaces to be added. So cannot use them.

I just tried using plain html table tags and iterated over 2 <t:datalist> tags... It worked fine... Just got struck with an ajax call where the selected row Index is not correctly set when the action listner is called. Am checking it and will let you know if I was successful in implementing the same.

Thanks again for your reply.
13 years ago
JSF
Hello friends.

I have a datatable with some rows.. Each row will have a '[+]' link. On click of that link, I need to display some details concerning that row. The details are again a datatable. How do I implement this?

I need something like what is below...

Before expanding, the table should look like this...

XXXXX Col1Head Col2Head Col3Head Col4Head
------------------------------------------------------------------
[+] Row1Val1 Row1Val2 Row1Val3 Row1Val4

[+] Row2Val1 Row2Val2 Row2Val3 Row2Val4

[+] Row3Val1 Row3Val2 Row3Val3 Row3Val4

[+] Row4Val1 Row4Val2 Row4Val3 Row4Val4


After expanding (by clicking the [+] link) the table should look like this

XXXXX Col1Head Col2Head Col3Head Col4Head
------------------------------------------------------------------
[+] Row1Val1 Row1Val2 Row1Val3 Row1Val4

[-] Row2Val1 Row2Val2 Row2Val3 Row2Val4

SubCol1Head SubCol2Head SubCol3Head

SubRow1Val1 SubRow1Val2 SubRow1Val3

SubRow2Val1 SubRow2Val2 SubRow2Val3

SubRow3Val1 SubRow3Val2 SubRow3Val3

[+] Row3Val1 Row3Val2 Row3Val3 Row3Val4

[+] Row4Val1 Row4Val2 Row4Val3 Row4Val4


Also let me know if this is possible without using Javascript and just by JSF tags

Thank you in advance
13 years ago
JSF
Hello friends,

I need to write a custom pomponent which extends a HTML panel grid. I have done that quite ok and the JSP displays the page without any errors. But the component is not rendered. I checked the logs and found "No renderer for component found". I see that I need to write a renderer class extending Renderer. I do not know how to write a renderer for a panel grid. The number of colums in panel grid is fixed as 2 and will have output text in all cells. Can any one help me in writing this renderer with say 5 rows of output text in the panelgrid ???
13 years ago
JSF
Helllo,
First of all Sorry for posting this in the wrong forum . I'm new to CodeRanch and so thought this would be appropriate. I'll take care of chosing the right forum in future .

Thanks for the replies. I got it.
Hello friends,
I have a datatable in a JSP and a command button below it. On click of the command button, an AJAX call is made to retrieve some more data to be displayed in the datatable. When the call is being made, An GIF image 'Loading.gif', will be displayed till the datatable re-renders. Upon rerender the image will be hidden.
Now if the data in the datatable is too many that It goes over a page, I will have to scroll to click the command button(to get the next set of data). Now on click I need the image to be displayed right in the middle of the page irrespective of the scroll position(at all times). Is there a way to do this with just HTML and javascript ?
Thanks in advance
Friends,
I just happen to find the problem. There is one JS file called JSPopup.js in the tomahawk jar file which is not getting loaded in one peculiar scenario in my application. Now I want this JS to be included in my JSP. Is there any way to include this .js file in my JSP ? If there is nothing that can be done, then I'll have to copy the js file, put it in the workspace and then include... Just let me know if this is OK or if we can have a better solution.
Thanks in advance
14 years ago
JSF
hello all,

I get this JS error message ('orgApacheMyFacesPopup' is undefined) when using t:popup inside t:datatable. Why is it coming and is there any way to fix this ?
Thanks in advance
14 years ago
JSF
Hello all,
I have a requirement where i need to click a command link and a PDF file to be opened in a new window. The path of the PDF file is to be taken from a database. So in the backing bean, I get the path, set the contentType to 'application/pdf' and of course writing to a new byte steam. When i run it , a new window opens but the file does not get displayed.... when i checked the logs, I think Ajax4JSF is interfering with this process..... check out the below logs..

[WebContainer : 4] DEBUG org.ajax4jsf.framework.ajax.AjaxContext - Process component tree for collect used scripts and styles
2009-08-05 04:54:22,478 [WebContainer : 4] DEBUG org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlResponseWriterImpl - No content type given, using default content type text/html
2009-08-05 04:54:22,478 [WebContainer : 4] DEBUG org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlResponseWriterImpl - No character encoding given, using default character encoding ISO-8859-1
2009-08-05 04:54:22,478 [WebContainer : 4] DEBUG org.ajax4jsf.framework.renderer.AjaxPhaseListener - Process after phase RENDER_RESPONSE(6)
2009-08-05 04:54:22,478 [WebContainer : 4] DEBUG org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter - create HTML/XML parser for content type: application/pdf
2009-08-05 04:54:22,478 [WebContainer : 4] DEBUG org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter - Parser not have support for the such content type, send response as-is

Why does it say no content type given when I have explicitly set the content type ?
Has anybody faced this...??
14 years ago
JSF
hello,
I need to know what is the equivalent of input type="button". I've tried <t:commandButton type="button"> but it did not work.

I have three buttons in one JSP. All are <t:commandbutton> the quivalent in html is input type="submit". When I start typing in a text field the first button gets focussed so when the user presses enter the first button's action is called. I want the last button's focus to be set as default. If we have input type button then will it work??? Are there any other better ways on implementing this ??
14 years ago
JSF