Problems in tag h:commandLink

i use this tag in the test.jsp like this:
<h:commandLink action="details">
<h:outputText value="Details" />
</h:commandLink>
faces-config.xml like this:
<navigation-rule>
<from-view-id>test.jsp</from-view-id>
<navigation-case>
<from-outcome>details</from-outcome>
<to-view-id>details.jsp</to-view-id>
<redirect />
</navigation-case>
But when i click "Details",the routing doesn't work.
if i change the tag <h:commandLink> into <h:commandButton> like this:
<h:commandButton value="Details" action="details" />
then it works.
What's the problem with the tag <h:commandLink>?

this is the example from "Java Server Face in Action"
<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<f:view>
     <html>
          <head>
               <title>
                    <h:outputText value="ProjectTrack - Inbox" />
               </title>
               <link rel="stylesheet" type="text/css" href="../stylesheet/stylesheet.css" />
          </head>
          <body class="page-background">
               <jsp:include page="header.jsp"/>
               <h:form>
                    <h:panelGrid headerClass="page-header" styleClass="table-background"
                              columns="1" cellpadding="5">
                         <f:facet name="header">
                              <h:outputText value="Inbox -approve or reject projects" />
                         </f:facet>
                         <h:outputText value="Application messages."
                                   styleClass="errors" />
                         <h:panelGrid columns="6" styleClass="table-background"
                                   rowClasses="table-odd-row,table-even-row"
                                   cellpadding="3">
                              <h:commandLink styleClass="table-header">
                                   <h:outputText value="Project name" />
                              </h:commandLink>
                              <h:commandLink styleClass="table-header">
                                   <h:outputText value="Type" />
                              </h:commandLink>
                              <h:commandLink styleClass="table-header">
                                   <h:outputText value="Status" />
                              </h:commandLink>
                              <h:panelGroup/>
                              <h:panelGroup/>
                              <h:panelGroup/>
                              <h:outputText value="Inventory Manager v2.0"/>
                              <h:outputText value="Internal Desktop Application" />
                              <h:outputText value="Requirements/Analysis" />
                              <h:commandButton action="approve" value="Approve" >
                              </h:commandButton>
                              <h:commandLink action="reject">
                                   <h:outputText value="Reject" />
                              </h:commandLink>
                              <h:commandLink action="details">
                                   <h:outputText value="Details" />
                              </h:commandLink>
                              <h:outputText value="TimerTracker"/>
                              <h:outputText value="Internal Web Application" />
                              <h:outputText value="Requirements/Analysis" />
                              <h:commandLink action="approve" value="Approve" immediate="true">
                              </h:commandLink>
                              <h:commandLink action="reject">
                                   <h:outputText value="Reject" />
                              </h:commandLink>
                              <h:commandLink action="details">
                                   <h:outputText value="Details" />
                              </h:commandLink>
                         </h:panelGrid>
                    </h:panelGrid>
               </h:form>
          </body>
     </html>
</f:view>

Similar Messages

  • Upgraded to iTunes 11. Now, I can not sync my music to my iPhone 4S (iOS 6.0.1) Apps, movies and videos sync OK. Music is the problem. Tags are correctly check-marked. Any ideas ???

    Upgraded to iTunes 11. Now, I can not sync my music to my iPhone 4S (iOS 6.0.1).  Apps, movies and videos sync OK. Music is the problem. Tags are correctly check-marked. NO ERROR MESSAGE THOUGH. Just a No Content in the Music App in the iPhone. Any ideas ???

    Bump!

  • Having problems removing tags from script.

    I'm not using the browser to run Adobe Story, but the Desktop version from my iMac.  Cmd + Double Click works, but once every 30 times.  Is anyone else having this problem removing tags from a script?

    There are other ways to remove tags from a script
    From Tagging Panel:
    - Open Tagging Panel from View Menu
    - Click on Edit button. Here you have the option to delete individual tag-items or remove all from the scene.
    From File Menu
    - Open File - Tagging menu
    Here you will find the options to delete all/manually added/automatically added tags.

  • Problems in JSF t:commandlink

    Hello,
    I am facing a problem with JSF Command link
    I have three JSP pages with one backing bean in session scope.The property defined in the backing bean is an Object type which contains fields mapped to the database.
    The navigation between pages is through hyperlinks.
    I enter data on page 1 and move to page 2.Again due to some reasons if I come back to first page I dont see values restored on the textfields on page 1.It is again reset when page 1 loads.I have to restore values and I have to do it using command links.I do not want button to navigate between two pages.
    How can I restore data
    I set the data on textfields as #{BackingBean.property.property_field}
    I am new to JSF.can anyone suggest how to restore values while navigating.
    [email protected]
    Thankyou,
    Pankaj Shirke

    on the commandLink tag are you using the immediate = "ture" if so remove it or set it to false

  • Problem passing parameters to commandLink in a column

    Hi.
    I'm using JDeveloper 11.1.1.7.0
    I'm having this problem and I can't understand what I'm doing wrong.
    I have a table like this:
    <af:table value="#{bindings.myView.collectionModel}"
                var="row"
                rows="#{bindings.myView.rangeSize}"
                emptyText="#{bindings.myView.viewable ? 'No data to display.' : 'Access Denied.'}"
                fetchSize="#{bindings.myView.rangeSize}"
                rowBandingInterval="0"
                binding="#{backingBeanScope.myBean.t1}"
                id="t1"
                rowSelection="single"
                contentDelivery="immediate">
        <af:column sortProperty="#{bindings.myView.hints.PrId.name}"
                   sortable="false"
                   headerText="Nro. Proc."
                   id="c2" width="50">
          <af:outputText value="#{row.PrId}" id="ot5"/>
        </af:column>
        <af:column id="c8" headerText="Check" align="center" width="70">
          <af:commandLink text="rowCheck" id="cl1" partialSubmit="true">
            <f:attribute name="rowKey" value="#{row.rowKey}"/>
            <af:serverListener type="serverAction" method="#{backingBeanScope.myBean.linkEvaluacionServerAction}"/>
            <af:clientListener type="action" method="clientAction"/>
          </af:commandLink>
        </af:column>
    </af:table>
    After lot of tests, serverListener + clientListener is the only way to run some code after clicking the link. I don't know why, but actionListener in the link only works the first time. The second time and so on, actionListener did not fire.
    My problem is how to pass rowKey parameter to linkEvaluacionServerAction method:
      public void linkEvaluacionServerAction(ClientEvent ce){
        Object key1 = ce.getComponent().getAttributes().get("rowKey");
         // actions with key1
    I don't know why, but rowKey link attribute only takes its related value the first time I clicked on a link.
    From the second and so on, key1 values null
    How can I solve this? Any help is very appreciated.
    Regards

    Well, I rethink (again) the approach and solve it in  this way:
    <af:column id="c9" headerText="Evaluación">
                      <af:commandLink text="Evaluar Procedimiento" id="cl3"
                                      partialSubmit="true"
                                      actionListener="#{bindings.setCurrentRowWithKey.execute}"
                                      action="#{backingBeanScope.myBean.linkEvaluacionAction}"/>
                    </af:column>
    Parameter for setCurrentRowWithKey is #{row.rowKeyStr}
    In my method linkEvaluacionAction I do some additional checks.
    Hope this helps. Regards

  • Problems importing tagged text

    IDD CS5.5, 7.5.2
    what I do
    prepare IDD tagged text file, using DOS/Windows line ends and ANSII encoding
    open IDD CS5.5 file with formatted content
    select all content
    File > Place InDesign tagged text file, using "show list of problem tags" option
    what I get
    no angle brackets imported, no errors in the list of problem tags …
    74 paragraphs, all using the first paragraph style specified in the tagged text
    I wish IDD tagged text were as easy to get on with as FrameMaker's MML … that would also make it easier for me to start with one tagged source file and use the content in different applications with a minimum of effort. Any tips on _exactly_ what has to be done to placate the IDD Import goblins welcome!

    Give this script a try:
    // DESCRIPTION: This InDesign script reads the tags of an imported MML file and applies their corresponding paragraph styles.
    // USAGE: Place the MML file in InDesign. Using the Text tool, select all or part of the imported text. Run this script.
    var myDocument = app.activeDocument;
    if (app.documents.length != 0){
    //If the selection contains more than one item, the selection
    //is not text selected with the Type tool.
    if (app.selection.length == 1){
    //Evaluate the selection based on its type.
      switch (app.selection[0].constructor.name){
       case "Character":
       case "Word":
       case "TextStyleRange":
       case "Line":
       case "Paragraph":
       case "TextColumn":
       case "Text":
        convertMML(app.selection[0]);
       break;
       default:
        alert("Please select all or part of the text using the Text Tool.");
       break;
    } else {
      alert("No valid selection.");
    function convertMML(theSelection) {
    // this sequence collects the names of the paragraph styles in the MML file
    var theContent = theSelection.contents;
      var theParagraphs = theContent.split("\r");
      var theParagraphStyles = [];
      for (var i = 0; i < theParagraphs.length; i++) {
        if (theTag = theSelection.paragraphs[i].contents.match(/<!DefineTag (.+?)>/)) {
          theParagraphStyles.push(theTag[1]);
    // ********* this sequence adds dummy paragraph styles in the document, if necessary
    for (var i = 0; i < theParagraphStyles.length; i++) {
      var currentStyle = theParagraphStyles[i];
            try { myDocument.paragraphStyles.add({ name: currentStyle }) } catch(err){};
    // ********* This sequence set the preferences of the Grep queries
    app.findChangeGrepOptions.includeFootnotes = true;
    app.findChangeGrepOptions.includeHiddenLayers = false;
    app.findChangeGrepOptions.includeLockedLayersForFind = false;
    app.findChangeGrepOptions.includeLockedStoriesForFind = true;
    app.findChangeGrepOptions.includeMasterPages = true;
    app.findGrepPreferences = NothingEnum.nothing;
    app.changeGrepPreferences = NothingEnum.nothing;
    // ********* The action begins here
    // ********* This sequence removes spaces and/or TABs in the beginning of the lines
    app.findGrepPreferences.findWhat = '^\\s+';
    app.changeGrepPreferences.changeTo = '';
    myDocument.changeGrep();
    // ********* This sequence consolidates multiple paragraph returns into one
    app.findGrepPreferences.findWhat = '\\r\\r+';
    app.changeGrepPreferences.changeTo = '\\r';
    myDocument.changeGrep();
    // ********* This sequence removes the header and the paragraph declarations
    app.findGrepPreferences.findWhat = '((^<MML>\\r)|(^<!DefineTag .+?>\\r))';
    app.changeGrepPreferences.changeTo = '';
    myDocument.changeGrep();
    // ********* Now that everything is cleared up and in place, we can make the required changes
    for (var i = 0; i < theParagraphStyles.length; i++) {
      app.findGrepPreferences = NothingEnum.nothing;
      app.changeGrepPreferences = NothingEnum.nothing;
      var currentStyle = theParagraphStyles[i];
      var theGrepString = '^<' + currentStyle + '>';
      app.findGrepPreferences.findWhat = theGrepString;
      app.changeGrepPreferences.appliedParagraphStyle = myDocument.paragraphStyles.itemByName(currentStyle);
      myDocument.changeGrep();
      app.findGrepPreferences = NothingEnum.nothing;
      app.changeGrepPreferences = NothingEnum.nothing;
      app.findGrepPreferences.findWhat = theGrepString;
      app.changeGrepPreferences.changeTo = '';
      myDocument.changeGrep();
    It worked in your sample. To install it, select the text between the multi-hyphens lines, copy it to a text editor, save it with the ".js" or ".jsx" extension and put it on your Scripts Panel folder.
    To run it, place the MML in InDesign as unformatted text, select everything with the Text tool and double click the script in the Scripts panel. All the tags will be eliminated and the paragraphs will be formatted according with the MML tags. Be aware that this script doesn't contemplate character styles and any other formatting; only paragraph tags, like your sample.
    Hope it helps.

  • Weird problem - Custom Tags

    Hello,
    I'm having a strange problem with my app. I've developed a custom tag and placed it on one of my xhtml files, but it never gets interpreted, no error messages, nothing. When i check the source code i see the tag exactly as i wrote it.
    Does anyone faced a similar problem?
    BTW, i'm using myFaces and Facelets.
    Thanks for any help.

    You can't do it through the value attribute of the c:set tag. But, if you do not have a value attribute in the set tag, you can use the body of the set tag to assign to the var... for example:
    <c:set var="foo">
      <mtag:bar baz="mic"/>
    </c:set>

  • CUCM 10 Self Provisioning Problem with TAGs on Universal Device Template

    Hi friends.
    I've been provisioning IP Phone by Self Povisioning. The phones were provisioned almost perfectly. I notice the TAGs that i filed up on Device Template (look above), are not "translated" on Device Phone.
    Universal Device Template
    The Tags on Universal Line Template comes  perfectly to Line Description.
    Had you ever seen something like this?
    Kind Regards
    Fernando Penteado

    Hi folks. I could identify the problem with Variable and TAG. In order to Self Provisioning works fine, we need to mark Owner User on Universal Device Template.
    Look that.
    Thanks

  • Problem with tags. Different languages and no colors?

    Hello
    does anyone know how this come? Before Yosemite there was no problem,... On other accounts is everything like it should be.
    http://kevinroelands.be/img/tags.png
    Thank you.
    Message was edited by: ziddu.be - Found the solution.

    It's possible you have some files that have those tags. I've seen tags show up like that when I've downloaded files.
    You can just delete the unused tags that say "Green" but have no color and are in English. Just keep the tags you want. You may wish to click on the tags and see what file may be tagged with them first.

  • InDesign CC Probleme mit Tags

    Guten Tag zusammen,
    Ich habe vor kurzer Zeit eine neue Stelle angefangen und arbeite seit dem mit einem neuen System - Tags.
    Die Daten werden automatisch aus einem externen Kundenverzeichnis geladen und über Tags in InDesign CC eingebunden.
    Wir haben jetzt folgende Probleme:
    1.) Wenn ein Tag "leer" ist wird ein Leerzeichen eingefügt (so entstehen ungewollte Einzüge).
    2.) Es werden alle Absätze rausgeschmissen.
    Ich weiß, es ist ein sehr komplexes Problem, aber vielleicht kennt jemand diese Problematik aus dem Stehgreif?
    Hier ist noch ein Bildschirmfoto zur Veranschaulichung.
    Über Anregungen und Antworten würde ich mich sehr freuen!
    Gruß
    Raphael

    Es handelt sich um einen XML-Import.
    Die Leerräume sind auch sichtbar, wenn die unsichtbaren Zeichen ausgeschaltet sind.
    Welche Optionen kann man beim Import wählen, damit die Leerzeichen verschwinden?
    Vielen Dank für die schnelle Antwort!
    Gruß
    Raphael

  • PSE9 - problems with tags and Outlook.  Was working fine Friday!

    I had PSE8.  Would no longer print or use Outook on Windows 7.  Kept having to revert to a restore point.  Purchased PSE9 and installed 2 days ago.  Worked perfectly.  Used my original keyword tags, printed and sent email via Outlook without a problem.  Turned on the computer this moring and tried to send email and the program crashed and crashed and crashed.  Also, now I have a bunch of boring keyword icons instead of the one I have chosen on all my photos.  They are organized correctly but the icons are not the ones I chose which are listed in the organizer pane.  There was some kind of Adobe update and this morning I had to go to a restore point in order to be able to email again.  I have been having this issue for over a month now since I started using Windows 7.  The only program I have had any problem with is PSE!!!!!  After installing PSE9, I deleted PSE8 and things were still working fine 2 days ago.  Am not happy and am sick of spending my precious time dealing with PSE on a daily basis.

    I did assure that Outlook is set as my default email program before I posted this. 

  • Problems with tags img

    Hello, i`m here again, now i have a little problem that when
    i have a dataset in a table, and in the repeat region not showme
    images when ar einside the text, only showme undefine in this
    current row, somebody cuold help me to know what are wrong?

    HI Kin, yes sorry, i forget, look i will push part of my
    class, when i use the code of spry, in this first funciton i make a
    query from the database and i list all message from a guestbook
    public function MostrarGuest(){
    $Consulto="SELECT IdGuest AS id_query, Titulo, Mensaje,
    NombreVisitante FROM guestusuarios usuGuets JOIN `reg_usuarios` reg
    on reg.`id_registros`=usuGuets.id_registros WHERE
    reg.`usuario`='".$this->usuario."' ORDER BY IdGuest";
    $datosCantidad=count($this->db->ejecutarQuery($Consulto));
    $marioSpry=new SpryDelfino();
    //genero el query para el list box
    $camposxml="MensajesUsu,Mensajes";
    $camposHijos="Mensaje,NombreVisitante";
    $html=$marioSpry->CargaArchivos(constant("RUTA")."php_Files/clases/SpryDelfino/xpath,".co nstant("RUTA")."php_Files/clases/SpryDelfino/SpryData").$marioSpry->DataSetSpryDelfino(con stant("RUTA")."php_Files/clases/SpryDelfino/xml.php?query=$Consulto&camposxml=$camposxml&c amposhijos=$camposHijos","dsUsuarios","/MensajesUsu/Mensajes");
    $tabla= new tablaccs('domtable',"My Guest
    Book",$datosCantidad." Message Found");
    $html.="<div spry:region=\"dsUsuarios\">";
    $html.=$tabla->DibujoEncabezado();
    $html.="<tr
    spry:repeat=\"dsUsuarios\"><td><div
    class=resultListItems>
    <ul ><li class='resultListTitle'>";
    $html.="{NombreVisitante}";
    $html.="</li></ul>";
    $html.="<div id=contenido class=CeltasDescripEvent>";
    $html.="{Mensaje}";
    $html.="</div></div></td></tr>";
    $html.=$tabla->dinujoFIntabla();
    $html.="</div>";
    return $html;
    in the line when say $html=$marioSpry->CargaArchivos are a
    class where i load the js spry and when i pass the query to reload
    the xml, this ist not the problem, my real problem are that when i
    have in the data from the database like this
    "This are a sample from the guest<img alt=""
    src="/tglife2ver/php_Files/clases/Formularios/fckeditor/editor/images/smiley/msn/teeth_sm ile.gif"
    />"
    the xml read the tag <img like another row i guess, so i
    need to know how i can make this to insert image in middle of the
    text
    Thank you

  • Problem (manually) tagging document:  Tagging one text area tags all text in document

    I've been having some trouble getting a inDesign document to tag properly in InDesign CS5.
    The document has several different blocks of text, and I can see that they are each separate in the layer panel, and that they are not locked or grouped.
    Yet, when I try tagging the document, it is treated as though all the text is in one element and the entire text of the document is tagged together.
    The only element that seems to be able to be tagged separately is some text in the header, but it is not relevant for the XML I plan to export.
    Any tips on getting this to work? I suspect the original file might have been created in a different version of InDesign, maybe that has some affect?

    It sounds like you applied a tag to a portion of text in the flow of threaded frames, and all of the text within the threaded frames is now applied the story tag. This is normal and if you need to, you can create additional tags and apply within the story.

  • Problem Mapping Tags to Styles in CS2

    Hello, I am running CS2 (V4.0.5) on XP SP2. I have XML-tagged text that I am mapping to styles/map by name. While the paragraph styles apply correctly, character style sheets that shouldn't apply are being applied as well. I have replicated this multiple times.

    Hi,
    Can you provide some text examples from your xml file. This because to identify the concern in the xml coding.
    Regards
    Thiyagu

  • Problem with tags executing after update3 being applied

    has anyone else encoutered this issue, it seems to be affecting both cfx tags and custom tags

    Haveto wrote:
    Looks like a my have applied the wrong update
    You have indeed. It is Coldfusion 8.0 that has Cumulative Hot Fix 3 (chf8000003.jar). The latest fix for Coldfusion 8.0.1 is Cumulative Hot Fix 2.(chf8010002.jar).
    how can I back it out?
    Easy. Just follow these steps
    1) Shut down Coldfusion
    2) Delete the Hotfix 3 Jar file. Its location is
    On linux: /WEB-INF/cfusion/lib/updates/chf8000003.jar
    On Windows: {CF_installation_directory}/lib/updates/chf8000003.jar
    3) Download chf8010002.zip. Extract the file chf8010002.jar to the updates directory
    On linux: /WEB-INF/cfusion/lib/updates/
    On Windows: {CF_installation_directory}/lib/updates/
    4) Restart Coldfusion

Maybe you are looking for

  • Date format in query results

    HI, newbie to sql and Oracle. Quick question, my associate and I view date and timestamps in the same column in our db tables. We can run a query requesting date and time returned in sqlplus and it displays the date then the time. However, running th

  • Printing  page number and continu text in sap script

    Hi   I have created sapscript to print PO and using standard print program with three pages. My thrid page called with NEWPAGE <> from Main window of first or sencond page wokign fine but the page number is coming like page 1 of 2, 2 of 2 and 3 of 2

  • How to call a session variable into sql?

    for example, I have a coldfusion session variable - session.testvar I am writing a Stored procedure in sql server 2000. The query within my stored procedure needs to insert a value into a table. The value needs to be my CF session variable. I have no

  • IChat video not in sync with audio

    Hi Everyone, For the past six months I have been trying to resolve issues with the video chat. It all started with me updating my brother-in-law's iMac G5 from Tiger to Leopard. Before the update we were able to video chat with no problems. Since the

  • LC open order value not accurate

    Dear Guru, 1: A financial Document (Payment Guarentee) in vx13n has total value of 15 Million. 2: 12.5 Million is consumed by Sales orders. 3: Remaining amount as open should be 2.5 Million. 4: But VX13n Shows only 0.75 Million as open. 5: I have che