Where the netui:anchor is translated by a portal?

I’m just wondering… How it’s possible, that I can use existing page flows as a portlets, without any changes to the existing JSPs. In those JSP I’ve got links created by <netui:nachor action=”actonName”>, but those are beehive tags, not connected with the portal implementation.
Of course, when I deploy this flow as a portlet, created URL are different, to accommodate portal context. So, where the magic takes place? In other words, where the default output of the netui:anachor is overridden?
I just like to know, how things are working…
Brgds,
Pawel Kozlowski

This is done via a URL rewriting framework within WLP. We use this
mechanism for all URLs generated portlets as long as portlets use some
known tags/APIs to create URLs.
For instance, when you use an anchor tag, depending on how it is used,
the following will happen:
a. Use the page flow directly: The anchor tag generates a URL based a
page flow specific URL rewriter.
b. Use a page flow as a local portlet: The anchor tag delegates URL
generation to a URL rewriter deployed by the portal framework.
c. Use a page flow as a portlet deployed on a WSRP producer: The anchor
tag delegates URL generation to a URL rewriter deployed by the WSRP
producer.
In each case, the output will be different, and is specific to how the
page flow is being used. The same approach applies to struts apps
deployed as portlets.
This is the reason WLP always requires you to use some known tags (like
pageflows, struts, or WLP's render tags, or the JSR168 API) to create
links. If you create links directly without using these tags, the
generated URLs may or may not work.
Subbu
Pawel Kozlowski wrote:
I???m just wondering??? How it???s possible, that I can use existing page flows as a portlets, without any changes to the existing JSPs. In those JSP I???ve got links created by <netui:nachor action=???actonName???>, but those are beehive tags, not connected with the portal implementation.
Of course, when I deploy this flow as a portlet, created URL are different, to accommodate portal context. So, where the magic takes place? In other words, where the default output of the netui:anachor is overridden?
I just like to know, how things are working???
Brgds,
Pawel Kozlowski

Similar Messages

  • Problem in onClick attribute of the netui:anchor tag

    Hi,
    I have a String object to be passed to the javascript function with onClick attribute.
    eg: <%String st = new String("helo");%>
    <netui:anchor action="display" onClick="display()">
    I want to pass the object st to the java script so that I can do some validations. how can I do that. If I say,
    onClick="display('<%=st%>')" it is not working. can you please suggest me a solution.
    Regards,
    Satish.

    I haven't tried this with the netui:anchor tag, but it works with the netui:button tag.
    <%
    String onCl = "display('" + st + "')";
    %>
    <netui:anchor action="display" onClick="<%=onCl%>">
    Apparently, you can place a scriptlet inside the onClick attribute, but you cannot intermingle the scriptlet with plain text.
    Also, the onclick attribute appears not to support XScript ({request.whatever}). I find that weird.

  • Output of netui:anchor - 1563

    Hello,
    I have a requirement, where I need to pass the output generated by netui:anchor
    to a javascript. Basically I need to capture an portlet action url along with
    the portal desktop and sendit to mailto functionality. I tried using the id attribute
    of the netui:anchor tag and unfortunately it is not working. The id is set to
    null by the tag.
    Is there a way to capture a porlet's action url?
    Thanks for your help.
    Senthil Kumar.S

    Nevermind. I solved it.
    Thanks
    Kunal
    "Kunal Mittal" <[email protected]> wrote:
    >
    I have my WebLogic Server running on port 7110. There are several places
    where
    I use the netui:anchor tag to generate links and form submit. However,
    the url
    that gets generated in the html output (I did a view source in IE to
    see this),
    all have 7001 as the port instead of 7110.
    Thanks
    Kunal

  • Netui:anchor

    Hi,
    I want to open a link(Fr eg www.yahoo.com) in a new browser window.I am using netui:anchor tag but a not able to display the link in the new page.A popup window opens but the url doesnt load.
    <netui:anchor href="${container.item.urlName}" popup="true">${container.item.urlName}
    <netui:configurePopup width="500" height="500"/>
    </netui:anchor>
    Please let me know how this can be done.
    Thanks in advance.
    Sri

    Maybe a <netui:parameter/> in the <netui:anchor/> would do the trick. In
    your action, you could check for a request parameter to determine where
    it come from.
    gerry rodman wrote:
    Lets say that I have two netui:anchor's that transfer control to the same action
    method in a page flow. How can I pass a paramter to the pageflow (upong clicking
    the anchor) to detect which anchor was clicked?
    thx
    gr

  • Netui:anchor generates port as 7001 instead of another port

    Hi...
    I have my WebLogic Server running on port 7110. There are several places where
    I use the netui:anchor tag to generate links and form submit. However, the url
    that gets generated in the html output (I did a view source in IE to see this),
    all have 7001 as the port instead of 7110.
    Any clues?
    Thanks
    Kunal

    There should be an xml file in your web-apps WEB-INF dir called something like
    url-template-config.xml which has server settings like port number etc. I believe
    this is used to generate URLs for page flows etc.
    "Troy Hamsher" <[email protected]> wrote:
    >
    So... how did you figure this out?
    "Kunal Mittal" <[email protected]> wrote:
    Never mind. I figured this out.
    Kunal
    "Kunal Mittal" <[email protected]> wrote:
    Hi...
    I have my WebLogic Server running on port 7110. There are several places
    where
    I use the netui:anchor tag to generate links and form submit. However,
    the url
    that gets generated in the html output (I did a view source in IE to
    see this),
    all have 7001 as the port instead of 7110.
    Thanks
    Kunal

  • Netui: anchor tag with target attribute.

    I am using the netui:anchor tag inside an iframe to post to an action. But the
    resulting page is displayed within the iframe. Will the target attribute of the
    netui:anchor tag help solve the problem. What is a valid value of the target
    attribute.
    thanks,
    Shankar

    does the action have a formSubmit = true? If not then your modal dialog should be shown via the onclick and you have to javascript the link click (based on your modal dialog options)
    If you do have a formSubmit=true, then you'd have the onclick show the modal dialog and you would have to write additional javascript to submit the form (Along with setting its action)
    regards
    deepak

  • Netui:anchor renders absolute url

    Hi there,
    I've got a Workshop application that runs in a clustered environment. Say, the application address is http://server1:7001/MyApp/Controller.jpf.
    The cluster has an IIS frontend. When I go to the URL https://frontend:1111/MyApp/Controller.jpf, the frontend host forwards my request to http://server1:7001/MyApp/Controller.jpf.
    This is all OK, but when my application uses authentication, the netui:anchors inside it render to absolute URL's like https://frontend:7001/MyApp/action.do.... , and I can't get past the opening page, because the frontend listens at port 7001.
    Whenever I remove authentication, the anchors are rendered to relative URLs.
    The anchors point to actions in the page flow. The WEB-INF/web.xml contains the following section:
    <security-constraint>
    <display-name>MyAppName</display-name>
    <web-resource-collection>
    <web-resource-name>myappname</web-resource-name>
    <url-pattern>/*</url-pattern>
    <http-method>GET</http-method>
    <http-method>POST</http-method>
    </web-resource-collection>
    <auth-constraint>
    <role-name>MyRole</role-name>
    </auth-constraint>
    <user-data-constraint>
    <transport-guarantee>NONE</transport-guarantee>
    </user-data-constraint>
    </security-constraint>
    <login-config>
    <auth-method>BASIC</auth-method>
    </login-config>
    <security-role>
    <role-name>MyRole</role-name>
    </security-role>
    When calling the server host directly, everything goes well with authentication, and also everything works well when calling the frontend with authentication disabled.
    Can anybody help me?
    Thanks,
    Warper

    Here's the answer.
    id="{pageContext.itemScript}"
    "JClaude" <[email protected]> wrote:
    >
    Hello I'm using a javascript that uses a calcultated id in the url link
    if I write the following:
    <netui:anchor action="navigate" id="<%=itemScript%>">
    </netui:anchor>
    I get the message : "this attribute does not support request time values."
    And if I write the following, I obviously get a string "{itemScript}"
    and not
    the value:
    <netui:anchor action="navigate" id="{itemScript}" >
    </netui:anchor>
    Is there a workaround other than "don't use javascript" or use <a>?
    Thanks,
    JC

  • Details: Numbers not translating an Excel document with column headings where the text is rotated counter clockwise 90 degrees with-in the cell.  Can you tell me how I can rotate the contents with-in a cell?

    Details: Numbers not translating an Excel document with column headings where the text is rotated counter clockwise 90 degrees with-in the cell.  Can you tell me how I can rotate the contents with-in a cell?

    Numbers does not have rotated text within cells.  You can place a text box over the cell that has rotated text but you cannot rotate text within a cell.

  • The middle handle on the rectangle is not there anymore when I select it with the black arrow (v) tool. Show bounding box and edges are both on. Where dd the middle anchor go??

    The middle handle on the rectangle is not there anymore when I select it with the black arrow (v) tool. Show bounding box and edges are both on. Where dd the middle anchor go??

    haggyabeken,
    I am afraid you have come across the Live Rectangle bug which is limited to the MAC versions starting with 10.7 and 10.8, but not 10.9 (Mavericks), see this thread linked to below.
    https://forums.adobe.com/thread/1595973
    So a switch to Mavericks with a reinstallation might be the way to solve it here and now.
    To get round it in each case, it is possible to Expand the Live Rectangles to get normal old fashioned rectangles, or to Pathfinder>Unite, or to use the Scale Tool.
    A more permanent way round that is to create normal old fashioned rectangles, after running the free script created by Pawel, see this thread with download link:
    https://forums.adobe.com/thread/1587587

  • Error in form submit through netui:anchor tag onClick event

    Hello,
    I am working on a portal application. Below is my jsp code of a simple search screen. The search parameter is customername.
    <netui:form action="searchCustomer" style="form" tagId="myForm">
    <netui:textBox dataSource="{actionForm.customerName}"></netui:textBox>
    <netui:anchor onClick="sayHello(); return false;" styleClass="button" action="searchCustomer" formSubmit="true"> Search</netui:anchor>
    </netui:form>
    I have an onClick event as I want to implement some customer logic on click of the anchor tag.
    function sayHello(){
    // customer implementation here
    document.forms[getNetuiTagName("myForm",this)].method="POST";
    document.forms[getNetuiTagName("myForm",this)].action="/searchCustomer.do";
    document.forms[getNetuiTagName("myForm",this)].submit();
    In the searchCustomer method of the controller, the form has zero parameters. The customerName has null value.
    Can anyone tell me what am I doing wrong here.
    Any help is appreciated.
    Thanks
    Manju

    I also want to add a confirm() dialog before submitting. However, setting the onClick handler overrides the one generated when formSubmit="true". I worked around this by calling the generated function directly:
    <... onClick="if (confirm('[msg]')) { anchor_submit_form(getNetuiTagName('[formName]'), this.href) } return false;">
    Where [msg] is the message to display and [formName] is the name of the form containing the anchor.
    Hope this helps someone.

  • How can I make rectangular speech bubbles that adapt to the text inside them without the "arrow" that points towards where the bubble is coming from getting changed?

    I have to make lots of speech bubbles (150+) that all have texts inside them which differ in length. I want the speech bubbles to look the same in terms of style, but I need different sizes of course for each text. This means that the rectangular part of the speech bubble should adapt in length and width to the text inside it, while the "arrow" pointing towards where the bubble is coming from (e.g. the person who speaks) should stay the same on every bubble. So is there a way or a workaround to make such "adapting" speech bubbles?
    I appreciate any kinds of help
    Thanks in advance!

    Here's another way I found:
    1. Draw a speech bubble. Mine is a rectangle with rounded corners and a triangular pointer added with Pathfinder > Add
    2. Drag out a frame the same size as the speech bubble. Select the speech bubble and Copy; then select the empty frame and choose Edit > Paste Into...
    3. Alt-Drag the frame with the pasted speech bubble to make a copy, then crop one copy to leave only the top of the bubble showing, and crop the other copy to leave only the bottom.
    4. Drag out a text frame and insert a table consisting of 1 column, 3 rows. Set the text frame to Autosize > Height Only.
    5. Set the stroke/fill of the top and bottom rows to none, and style the middle row to match the speech bubble, (in my case a white fill and 2pt stroke; left and right).
    6. Anchor (paste) a copy of the speech bubble top in the top table row, and a copy of the speech bubble bottom in the bottom row.
    Getting the 3 parts to match up with is where you just have to work on it until you get it right. Use the positioning tools in Anchored Object options and the column width setting in Cell options to line everything up.
    Enter your text in the middle row. (Hey, look at that...a valid application of Comic Sans!) With the Cell Height set to an "At Least" setting, the cell will expand to fit whatever text you enter, pushing the the bottom row down, with the text frame auto-sizing to keep everything in play...

  • I would like to calculate a frequency in the Dutch version of Numbers where the "frequency" command does not exist. Suggestions?

    Hi,
    I am trying to do a Histogram in Numbers using the formula: = INDEX( FREQUENCY (....;....) ....).
    However, I am using the Dutch version where the command "FREQUENCY" doesn't exist.
    The litteral translation would be "FREQUENTIE" but there is nothing like it that fits the description.
    I could really use some help!!
    Thank you,
    Anna

    Hi Anna
    Yvan Koenig has produced a table of function name equivalents. According to his table, the Dutch equivalent of FREQUENCY is INTERVAL.
    Regards,
    Jerry

  • Netui anchor tag in netui:form

    I have some code like following:
    <netui:form action="action1" >
    <netui:anchor action="action2">Check</netui:anchor>
    </netui:form>
    Action1 and action2 willl be finally redirected to the same JSP(for example one.jsp).
    The weird thing is that: according to log output, it seems that one.jsp has been hit twice when user click "check" link.
    Is it possible that when user click "check" link, weblogic not only trigger action2 but also trigger action1? forsubmit attribute is not set to true explicitly for netui:anchor tag.
    Thanks in advance

    hi
    verify from a browser trace tool (e.g. livehttpheaders, fiddler or firebug) how many requests your browser is making. (or you can inspect the code that portal generates in the HTML). Once we have determined whether its the browser making the two requests or something on the server, we can see if there are workarounds.
    regards
    deepak

  • Netui Anchor Tag

    Can we use href and action attribute in netui:anchor tag both at a time...*href* is for opening a modal dialog and action is page flow action

    does the action have a formSubmit = true? If not then your modal dialog should be shown via the onclick and you have to javascript the link click (based on your modal dialog options)
    If you do have a formSubmit=true, then you'd have the onclick show the modal dialog and you would have to write additional javascript to submit the form (Along with setting its action)
    regards
    deepak

  • Title attribute for netui:anchor

    Does anybody know how to set an title on a <netui:anchor> tag? I can't see anyway
    of doing this from the documentation.
    As of Oct 04 this will be illegal in Europe when the Disability Discrimaination
    Act legislation comes into effect.
    Many Thanks
    Tony

    There's not a way to do that currently. This is a bug that will be fixed in
    the next version.
    Rich
    "Tony Cromarty" <[email protected]> wrote in message
    news:400c0e2a$[email protected]..
    >
    Does anybody know how to set an title on a <netui:anchor> tag? I can't seeanyway
    of doing this from the documentation.
    As of Oct 04 this will be illegal in Europe when the DisabilityDiscrimaination
    Act legislation comes into effect.
    Many Thanks
    Tony

Maybe you are looking for

  • Create custom stamps - where do I find this in X?

    Hello, Just recently upgraded from Acrobat 9 Professional to X Pro and can't find where the custom stamp command is now located.  This is something I use frequently in my work - either QC stamps or design info stamps on plan drawing pdf - where I cre

  • Horizontal Menu Bar Placement Problem in IE

    I am having problem determining which CSS rule is causing a horizontal menu bar to show correctly in the Dreamweaver Design view, correctly in Firefox, but incorrectly in IE7. I have a background image in the header, but the menu bar cover it up on t

  • Use of  RRKMULTIPROVHINT in multiprovider

    Hi All, Could you explain me what is the use of the above table? I was reading a document named "How to create efficient multiprovider queries". It says In the RRKMULTIPROVHINT table, you can specify the MultiProvider and a characteristic for partiti

  • Indian Withholding Taxes Doubt

    Can any one say me on what basis is that Business Places for a Company code be Created? is TIN Number and TAN Number serve the same purpose for a Company code Configuration ? Best Regards,

  • Need to re-activate prior iPhone to a new number

    I just traded in my 4Gig iPhone for an 8Gig iPhone. I then kept the 4Gig iPhone to use as a second family cell phone. I was able to activate the new 8Gig iPhone with the phone number from the 4Gig iPhone but can't activate the old 4Gig iPhone with a