How to implement smart navigation in JSF or JSP

hi,dear all:
we design a jsp page with tiles,everything is ok.
But we got a problem: when we design many input text or radio button or listbox on our page1.jsf,it will reload to itself when it got error with the component that user keyin and render the page on the top place.
we want user will see the place that he keyin error (droll automatic) not the top of the page.
we see that already done by asp.net's "smart navigation",but we must write in jsf.
How to do that next step? thank you very much.

Hi Dan,
Here is some key listner code that makes sure the user only enters numbers. Maybe you can change it for the return button (I think the charCode of the return button is 10, btw)
<script type="text/javascript">
function checkIt(evt)      
     var charCode = (evt.charCode) ? evt.charCode : ((evt.which) ? evt.which : evt.keyCode);
     if (charCode > 31 && (charCode < 48 || charCode > 57))
          alert("Please make sure entries are numbers only.");
          return false;
          return true;
</script>And in the h:inputText I have onkeypress="return checkIt(event)"
Cheers,
Illu

Similar Messages

  • How to implement Side Navigation programmatically

    Hi,
    My requirement is I want to implement side navigation for one of my task.(Like Functional Administrator =>Personalization =>Import/Export). I have gone through the tutorial given in Jdeveloper Help for side navigation in which it refers how programmatically we can add a content container with a bulleted list to the page. But this is not as per my requirement and the steps given to achieve the required side navigation in Jdev help are Core app's menu based..
    Can we achieve this Programmatically ?
    Thanks in advance .
    Regards,
    Anant.

    Any page/url that is to be accessed from inside apps context must be defined as a valid function and have the valid function security context.
    any function you define as the third level menu item must appear on the sidenavbar.
    You can manipulate the sidenavbar via code using the method getStart() in PageLayoutBean, I have used it to display/hide certain functions based on roles in fwk 5.6.
    you can decompile this class and see how the usage is
    oracle.apps.igs.admissions.webui.AdPageControllerImpl
    Thanks
    Tapash

  • How to implement Top navigation in endeca

    Hi,
    How do I implement top nav in endeca instead of left nav? Currently the top nav that I have is simply the same as left nav, so on selecting refinements, the top nav gets filtered and disappears. Please help with this!
    Thanks!

    User975726,
    There are various approaches that you can use to build your Top Navigation.  I can't give yu a full solution on this forum but here are a few thoughts to get started. I am going to assume that you can use presentation API to build your application.
    Execute a seperate N=0 with all dimensions exposed and use the navigation object to build your top menu.  Note that exposing all refinements is expensive and if you have hierarchical dimension then all the nodes will not be exposed at the same time. Cache the menu at a session or application level if possible.
    If you have hierachical dimension then you might want to build an offline process that executes a seperate query for each node and builds and caches the entire top menu.  It might not be a bad idea to do this offline (after baseline or partials) and store the results as xml or json that your application can then use to construct the menu.
    If you are not using the Url Optimization API then you can also use the actual dimension xml to build your menu.  This will be a bit more complicated if autogen and external dimensions are to be included but is an option.
    I am sure one can come up with other alternatives but in general try to build your menu and cache it.  Also keep in mind that the process can get more complecated if you have record filters and roles or other parameters to consider.
    IHTH.
    Best,
    Kaush

  • How to implement this interface using jsf

    This problem's been bothering me for serval days.
    Just a simple question, how to render the following case purely by JSF?
    http://www.hcj-sh.com/temp/case.gif
    case 1.
    It includes 2 radio button2, these 2 radios are in virtual layout, this is not different,
    but I need attach other items(such as input text filed, select menu... etc) after each
    radio button,,,,,
    case 2.
    5 raidos, 3 one the first row, and the others 2 on the second row....
    I had sleep on it for a long time, but still no answer...
    anyone can help me?
    Thanks a lot.

    I am not sure what you mean by case.? do you want to
    insert other components between the radio buttons ? in
    that case why don't you make them as two separate
    lists ?yes, I want to insert other components between the 2 radio buttons.
    the 2 raido buttons are in the same group, check one will auto uncheck another,
    so i think two spearate lists is not fit my require.
    For case 2, try using two SelectItemGroups, one for
    each set of radio buttons and see if that gives you
    the layout you want.SelectitemGroups? i donot found this tag in JSF, can you tell me more about it
    Thanks.
    David

  • How to implement a keyListener in JSF/JSP

    Hello,
    I�m using JSC and want to implement a keyListener in my application. I want to press ENTER and a method in my java class should be called (regardless of the component, which has the focus). Is this possible (normally, a component must have the focus for that)?
    I can get the pressed key using javascript but how can I call the corresponding java method? And if I use javascript, that means that a UI-component should gain the focus first to call its javascript method. In this case I don`t even need javascript, because I need a general possibility to catch a key pressed event.
    Thanks for suggestions

    Hi Dan,
    Here is some key listner code that makes sure the user only enters numbers. Maybe you can change it for the return button (I think the charCode of the return button is 10, btw)
    <script type="text/javascript">
    function checkIt(evt)      
         var charCode = (evt.charCode) ? evt.charCode : ((evt.which) ? evt.which : evt.keyCode);
         if (charCode > 31 && (charCode < 48 || charCode > 57))
              alert("Please make sure entries are numbers only.");
              return false;
              return true;
    </script>And in the h:inputText I have onkeypress="return checkIt(event)"
    Cheers,
    Illu

  • How to implement JavaScript validation in JSF

    Dear all,
    if i wish to implement JavaScript front end validation function in JSF. what should i do?
    thanks.

    Hi,
    in Core JSF from David Geary there is a chapter on using
    Jakarta Commons Validator for javaScript validation
    source could be found here:
    http://www.horstmann.com/corejsf/
    HTH,
    Matthias

  • Panel Navigation in JSF

    I am new to JSF. I want to implement panel navigation in JSF. Any links to implementing the same are appreciated.
    Thnx in adv,
    Sir

    You can do it easily by using apache myfaces tomahawk implementation please see the link
    http://myfaces.apache.org/tomahawk/panelNavigation2

  • How to implements the single thread modal?

    how to implement the singlethread modal in servler/jsp?

    Do you mean 'model?' and 'servlet?' and are you referring to the interface with that name? which your servlet class just has to declare that it implements?

  • How to implement isTokenValid in JSF ?

    Hi guys,
    How to implement a same function in JSF for the org.apache.struts.action.Action.isTokenValid in struts ? Please help, Thanks !
    cheers,
    Mark

    Put your question in a Struts forum.

  • How to Implement Strut Tiles  Framework in JSF

    Hi
    I am new to JSF tried to implent struts tiles in jsf 1.2 but i am facing some problm.
    is any one have ideas about how to implementing struts tiles framework in jsf??....
    Cheers
    Sekar M

    Hope the below URLs should answer your question
    [http://www.jroller.com/HazemBlog/entry/how_to_use_struts_tiles]
    [http://www.ibm.com/developerworks/library/j-integrate/]
    [http://www.laliluna.de/blog/2007/02/28/struts_tiles_jsf_myfaces_migration_or_integration.html]

  • How to implement navigation control inside view controller project

    Hi,
    I am trying to implement an navigation control in a view controller project.
    I am unable to do that process.
    Can anyone please suggest me how to do this navigation flow which should be placed inside view controller.
    SRI.

    Hi,
    I am using Jdeveloper 11.1.1.4.0.
    To use the appModules methods, I am creating the service interface and then I am creating the webservice proxy into another view controller project and access the appModule methods.
    Now, I don't want to create the webservice proxy. I want to directly access the appModule methods.
    Thanks,
    Rohit.

  • How to implement Object based navigation

    Hi all,
    Can any one guide me the steps for Implementing Object based Navigation.
    Thanks in advance,
    Satish J

    Hi Sathish,
    sorry for the delay. hope it is not too late
    I have updated wiki with the content. i am just building it up..not yet completed.
    i think you can go thru the example which i have completed to have a detailed view of how to implement obn.
    please refer the link.
    https://wiki.sdn.sap.com/wiki/x/SZ
    You can send your comments regarding the page so tat i can incorporate the same in the content which i am preparing now.
    Regards,
    Sharadha

  • How do I implement smart print ?

    I need step by step on how to use smart print. Thanks

    Hi there, here's a link to the Smart Print download page complete with FAQ's 
    http://h41112.www4.hp.com/smartprint/us/en/smart.html?jumpid=ex_r602_ww/en/hho/ipg/xx-mu-aw_chev/sma...
    Post back if you're unsure of anything after reviewing the information.
    Best
    If my reply helped you, feel free to click on the Kudos button (hover over the "thumbs up").
    If my reply solved your problem please click on the Accepted Solution button so other Forum users may benefit from viewing the post.
    I am an HP employee.

  • How to implement this need help

    I created a datacontrol for a named query which (using Ejb entity beans) which accepted a employee id and click on find show me the respected employee details in a table.
    case 1: In one single page
    when i added the form consisting of a single text box , button and the table to show the result of the find method in one single page it worked out perfectly,,,
    case 2 : using 2 different pages
    But then i tried adding only the form in one page named page1 and and the table to show the result in another page i.e page2 , Also in the command action of find button of page1 i asked it to redirect to page 2 and show result . But it never showed me any results..
    Question :
    1) How to implement case2 i.e to have a form on one page and the resultant table to be show on another page i.e When users sees first page he adds the employee id in text box and clicks find .The user then needs to be redirected to page2 and the result of search should be shown in table...
    Can anyone guide me over this... ???

    Hi,
    you use a method on the EJB that takes a argument (e.g. the employee ID). You then put the method result set on page 2 (the method argument shall be pointed to a request or session attribute using EL : #{sessionScope.EmployeeId}
    On the search page - when the user hits the search button - you set the attribute "EmployeeId" in the session before navigating to the next page
    Frank

  • What is serialization? and how to implement it?

    what is serialization? and how to implement it?

    why not try googling rather than spamming the forum with your homework questions? This spitting out questions without showing that you've done any work (even if you have done the work) is guaranteed to piss us off. Please learn to ask a question the smart way:
    http://www.catb.org/~esr/faqs/smart-questions.html

Maybe you are looking for

  • Creating Forms (Text Fields)

    I am using Class Room in a Book "Adobe Acrobat X ISBN-13 978-0-321-75125-6.In lesson 10 page 253, I completed all the properties for the "Order_Start.pdf." when I entered data in the "price" and "quantity" the "total" for that line updated as usual;

  • Access priveleges in illustrator CS2

    I have lots of Illustrator 10 documents.  Some have been converted to CS2.  After they have been updated and I edit in them it will not save.  A box pops up tell me I do not have enough access privileges. How do I change this so I do not have to re-c

  • TS2446 I purchased an I phone from a friend of mine that is locked. How do I unlock it?

    I purchased an Iphone 3 from my buddy, it is locked up and he doesnt remember the password. How do I unlock it for my own use?

  • Gaussian Blur Problem

    Hi there I am having trouble getting the gaussian blur to work properly. I have an image that is split up into layers using photoshop and I am trying to blur one of the layers. The only problem is that I am getting a white halo round the image as it

  • Erazer doesn't recognize Nvidia Geforce 650 card

    In brief, after a series of failed attmepts to repair my H530 desktop, Lenovo replaced it with an Erazer x510, since the H530 was no longer in production. When the Erazer arrived, I was unable to get a video signal. I tried my HDMI and VGA cables. I