Ravi Mirani

Greenhorn
+ Follow
since Aug 09, 2011
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Ravi Mirani

Yes you might be correct, I might have made some mistake while configuring web.xml.

Can you please provide me what entries should be there in web.xml file for ICEFaces 3.0.

I agree to your point that FacesServlet is the controller and not myMB.

Is there any specific class in ICEFaces 3.0 which I should mention in web.xml as my Controller for all *.jsf resources.

Please also let me know if there is page2.xml which is in another folder e.g. webcontent/abc/page2.xhtml and I want to call page2.xhtml instead of page1.xhtml, what should I specify in <to-view-id> tag.

Thanks for replying my quries.
13 years ago
JSF
Thanks for you reply.

I did the changes suggested by you, but issue still pending.

I don't think so that navigation rule is not found by the controller (even if I give file extention as .xhtml in faces-config), as user is sucessfully navigated to the page given in the <to-view-id>.

But after he is navigated to that page he gets an error

Unable to find matching navigation case with from-view-id '/user/page1.xhtml' for action '#{myMB.getPageOutCome()}' with outcome 'PAGE1'

.

I m not able to understand why in above message from-view-id in quotes is displayed as to-view-id of face-config.xml file.

Please help me in understanding how exactly this works.

Note:
One of previously reported issue (https://coderanch.com/t/569753/JSF/java/calling-javascript-function-after-execution) got resoved after I started specifying value in from-view-id instead of * sign.

13 years ago
JSF
Thanks for your reply.

I made given changes, but now I am not able to navigate to page1.xhtml.
I am not sure whether I have implemented this correctly, hence request you to correct me, if I am wrong.



in web.xml


Please also let me know if there is page2.xml which is in another folder e.g. webcontent/abc/page2.xhtml and I want to call page2.xhtml instead of page1.xhtml, what should I specify in <to-view-id> tag.
13 years ago
JSF
Please provide help on this issue....
13 years ago
JSF
I have 2 xhtml files mypage.xhtml, page1.xtml.
On mypage.xhtml I am calling a managed bean method which returns "PAGE1". I have also defined the necessary navigation rule in faces-config.xml.

Below is code



myMB in the above code is of viewscope and returan String as "PAGE1".



Clicking on link of mypage,xhtml , user is navigated to page1.xhtml but in <ice:messages /> I am getting below mentioned error

Unable to find matching navigation case with from-view-id 'user/page1.xhtml' for action '#{myMB.getPageOutCome()}' with outcome 'PAGE1'.

13 years ago
JSF
Thanks for you reply.

I tried using f:view in the template file, but same result .

Below is another issue which I think is due to similar reason.

I'm trying to use ace:tooltip component of ICEFaces which adds some js file in the head tag.

If I access this page by typing the URL of the page in the browser, component work's as expected, but if the page is called from some other page, I get js error (as required js files are not getting added in the head tag of the template).

Please help.

13 years ago
JSF
Thanks Tim for your reply.

My project contains 2 xhtml files mypage.xhtml and userDetails.xhtml.

I have a backing bean method getUpdateUserPage() which returns a navigation string for navigating to userDetails.xhtml.

I have used same template in both mypage.xhml and userDetails.xhtml, and trying to update a head tag of the template with a javascript file which is required for userDetails.xhtml.

On mypage.xhtml I m calling getUpdateUserPage from action attribute of a command button.

Clicking on button, userDetails.xhtml is getting called successfully, but URL of the browser is not changed and also head tag is not getting updated as per the userDetails.xhtml.

Content of page is getting included in the body part of template, but content of head tag is not getting updated.

Please help.





13 years ago
JSF

I'm calling method on actionListener of a button which changes the UI by hiding / unhiding some components.

I want to call a javascript method immediately after the output is rendered (i.e. after completion of method specified in actionListener).

Please suggest, if there any way to achieve above mentioned requirement.
13 years ago
JSF
Requirement:
Adding javascript file for a given page (which uses templates).

Details:
After successful login, user is navigated to a page, where he can perform different actions.
I have used common template in all the pages (apart from login page).
The template contains head tag, code for including header, footer and body (in which dynamic content will be included).

I observed that contents of head tag of the template are not getting updated (i.e. title tag, script tag).
The contents of head tag remains same as that of login page and also the URL of my browser.

Can you please let me know the possible cause for above.



13 years ago
JSF
have you found solution to your problem? If yes, please help me.
13 years ago
JSF
Hi,

Can any one help me by providing a link for using richfaces in eclipse.

Is there a plugin using which I can drag and drop richfces components in my code.

Thanks
13 years ago
JSF
I request someone to help me on given topic ?
13 years ago
JSF
Add a property layout="pageDirection" to h:selectOneMenu tag.
13 years ago
JSF
I am new in JSF world and would appreciate if some helps in solving my below queries.


Which one of three(RichFaces, ICEFaces, PrimeFaces) is

1. Better to use for enterprise applications?
2. Most secured when using AJAX?
3. Getting updated frequently.
13 years ago
JSF
thanks for your reply.
I have created 2 jsp files. /test.jsp and company/x/y/firstview.jsp. On test.jsp I have provide a link and called method of ManagedBean which returns a string and navigates to company/x/y/firstview.jsp (using faces-config.xml). This works fine.
On firstview.jsp, I have used JSF tags and fileds (i.e. radio buttons, button etc) and are linked with managed bean. I have also provided a button on firstview.jsp which calls the action method of managed bean and as per business logic it should get navigated back to test.jsp.
Action method is called successfully, but the page is not navigated.
Can you please more detail on Point 4 that you have mentioned, or provide an external URL for detail reference.
13 years ago
JSF