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

Similar Messages

  • 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

  • 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.

  • 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

  • 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

  • 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

  • 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 href

    Hi,
    I tried to append the context path in front of the link using anchor:
    <netui:anchor href="<%=request.getContextPath()%>/..." >
    But it seems that anchor takes it as is.
    java.net.URISyntaxException: Illegal character in path at index 32: /appmanager/myPortal/<%=request.getContextPath()%>/......
    at java.net.URI$Parser.fail(URI.java:2752)
    at java.net.URI$Parser.checkChars(URI.java:2925)
    at java.net.URI$Parser.parseHierarchical(URI.java:3009)
    at java.net.URI$Parser.parse(URI.java:2967)
    at java.net.URI.<init>(URI.java:574)
    at com.bea.wlw.netui.pageflow.util.TemplateHelper.setUrl(TemplateHelper.
    java:371)
    How can I code the link? Thanks

    Hi
    I tried
    <netui:anchor href="${pageContext.request.contextPath}/index.jsp" value="Click"/>
    and it seems to work
    Vimala-

  • Extending netui Anchor tag

    Has anyone extended netui anchor tag and created custom tag?
    I am considering writing a custom pagination tag extending the anchor tag.
    Appreciate any suggestions ..sample code
    Thanks

    Just need to provide a caveat with extending the 8.1 NetUI JSP tags...
    Unfortunately, the Workshop 8.1 JSP tags did not provide a supported extensibility API. If the 8.1 JSP tags are extended, BEA / Workshop do not make any guarantees about the forward compatibility of these APIs in future releases. A NetUI JSP tag API will be available in the 9.2 GA release of Apache Beehive, which will be included in Workshop 9.2.
    Hope that helps...
    Eddie

  • 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

  • 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

  • Anchor netui repeater

    Hi,
    Im new to netui and im using a repeater which has an anchored label. The process is to hide the sub component of the div part using netui anchor tag.
    It seems that i cannot pass the value of the div within the my javascript to do the hiding and showing of the sub components
    Below is my javascript code and netui code
    <br>
    function showHideAddProdServAndSel(cartItemCode){
    var bolExpand = false;
    alert(cartItemCode);
    for(i=0;i<planArr.length;i++){
    if(planArr==document.getElementById(cartItemCode).innerHTML){
    alert("testing");
    if(document.getElementById(planArr[i]).style.display="none"){
    document.getElementById(planArr[i]).style.display="block";
    }else{
    document.getElementById(planArr[i]).style.display="none"
    return false;
    <!-- Html Netui code -->
    <netui-data:repeater dataSource="{session.ShoppingCart.itemList}">
    <netui-data:repeaterItem>
    ----------------------- <br>
    <netui:anchor href="#" style="text-decoration: underline; color: blue;" onClick="javascript:return showHideAddProdServAndSel(getNetuiTagName('item01'));">
    <netui:label styleClass="portlet-section-body-label"value="Product Type :"/><netui:label value="{container.item.productType}"></netui:label>
    </netui:anchor>
    <br>
    <div id="<netui:content value="{container.item.cartItemCode}"/>" style="display:none">
    <netui:label styleClass="portlet-section-body-label"value="Plan Name :"/>
    <netui:label style="color:#996600;font-size:11px;" value="{container.item.cartItemCode}" tagId="item01">
    </netui:label>
    <br>
    <netui-data:repeater dataSource="{container.item.packageList}">
    <netui-data:repeaterItem>
    <netui:label styleClass="portlet-section-body-label"value="Plan Name :"/><netui:label style="color:#996600;font-size:11px;" value="{container.package.plan.description}"></netui:label><br>
    <netui:label styleClass="portlet-section-body-label"value="Monthly :"/><netui:label style="color:#996600;font-size:11px;" value="{container.package.plan.rate}"></netui:label><br>
    <netui:label styleClass="portlet-section-body-label"value="Upfront :"/><netui:label style="color:#996600;font-size:11px;" value="{container.package.plan.upFrontNonRecurringCharge}"></netui:label><br>
    </netui-data:repeaterItem>
    </netui-data:repeater>
    </div>
    </netui-data:repeaterItem>
    </netui-data:repeater>
    Message was edited by:
    skylock

    Hi,
    You should be able to achieve this using the netui-data:getData tag.
    This tag is capable of binding the value of an xScript reference to an attribute in the pageContext. Having put the value in context, you should be able to set it anywhere.
    sample :
    <netui-data:getData resultId="idx" value="{container.index}"/>
    should place the value in pagecontext, access this by
    <%
    pageContext.getAttribute("idx");
    %>
    http://e-docs.bea.com/workshop/docs81/doc/en/workshop/taglib/www.bea.com/workshop/netui-tags-databinding-1.0/getData.html
    - Anders M.

  • A list of inputs using netui tags

    Hi all,
    we have a family of netui problems which occur quite frequently.
    The main problem is: what to do when we have a list of items (we don't
    now how many), and we want to display them, and get some input from the
    user.
    1. The simplest form, when the user only has to select one, is ok: we
    create a list of netui:anchor -s, with parameters, or we use a
    netui:select (but even in this case we don't know what to do if the name
    and the key of the items are different).
    2. The user should choose more then one item.
    a) We tried to use netui:select multiple=true. It renders fine, but we
    can't get the results properly. If the user selects only one item,
    it's ok, we can get it with a String field in the actionform. But if the
    user selects more items, then we can't catch them.
    We tried with String and List fields, but none of them worked (they
    contained null).
    b)It is more complicated, if we also want to display some attributes of
    the items, like:
    <checkBox> name1 description1 other attribute1
    <checkBox> name2 description2 other attribute1
    <checkBox> name3 description3 other attribute1
    3. The user should enter some text or number for each item
    e.g. (quite similar to 2.b)
    name1 description1 <input type='text'/>
    name2 description2 <input type='text'/>
    name3 description3 <input type='text'/>
    For 2.b) and 3) we have a workaround: we don't use netui:checbox or
    netui:textfield, but manually construct input boxes. The names of the
    boxes are the same that would be created by netui tags (e.g.
    {actionForm.input[1]}), so when the user submits the form the framework
    thinks that they were normal netui stuff and fills the actionForm with
    their data.
    4. The user can create a list on the fly, so he/she can even add more
    elements to the list. We can do it with a submit per new item method,
    but it would be better if could do it on the client side, and the user
    would click on submit only when he finished editing. e.g.:
    we want discounts in a tiered fashion: when the user buys at least 10
    pieces of a product, he gets 10%, more then 100 means 15%, and more then
    1000 means 20%. But it shouldn't be a fixed list, the administrator
    should be able to create as many ranges as he wants. It looks like this:
    Limit Discount
    <input1_L> <input1_D>
    <input2_L> <input2_D>
    <add more button>
    On the client side we can create the input boxes dynamically, with
    proper names, so the system will know which field(s) of the actionform
    we try to set. The problem is that when he submits the form, we get
    IndexOutOfBoundsException, since the field of the actionForm doesn't
    contain enough space for the items. Of course, we can initialize the
    field in the reset() method of the actionform, but at this time we don't
    know how many elements will it store.
    We checked the docs, samples, and the bea newsgroups, but couldn't find
    solutions to these questions (We have seen some similar questions in the
    newsgroups, so it seems other people also have some of these problems).
    I hope I described them clearly and you will be able to find ways to
    solve (at least some of ) them.
    Thanks in advance,
    don

    Hi all,
    we have a family of netui problems which occur quite frequently.
    The main problem is: what to do when we have a list of items (we don't
    now how many), and we want to display them, and get some input from the
    user.
    1. The simplest form, when the user only has to select one, is ok: we
    create a list of netui:anchor -s, with parameters, or we use a
    netui:select (but even in this case we don't know what to do if the name
    and the key of the items are different).
    2. The user should choose more then one item.
    a) We tried to use netui:select multiple=true. It renders fine, but we
    can't get the results properly. If the user selects only one item,
    it's ok, we can get it with a String field in the actionform. But if the
    user selects more items, then we can't catch them.
    We tried with String and List fields, but none of them worked (they
    contained null).
    b)It is more complicated, if we also want to display some attributes of
    the items, like:
    <checkBox> name1 description1 other attribute1
    <checkBox> name2 description2 other attribute1
    <checkBox> name3 description3 other attribute1
    3. The user should enter some text or number for each item
    e.g. (quite similar to 2.b)
    name1 description1 <input type='text'/>
    name2 description2 <input type='text'/>
    name3 description3 <input type='text'/>
    For 2.b) and 3) we have a workaround: we don't use netui:checbox or
    netui:textfield, but manually construct input boxes. The names of the
    boxes are the same that would be created by netui tags (e.g.
    {actionForm.input[1]}), so when the user submits the form the framework
    thinks that they were normal netui stuff and fills the actionForm with
    their data.
    4. The user can create a list on the fly, so he/she can even add more
    elements to the list. We can do it with a submit per new item method,
    but it would be better if could do it on the client side, and the user
    would click on submit only when he finished editing. e.g.:
    we want discounts in a tiered fashion: when the user buys at least 10
    pieces of a product, he gets 10%, more then 100 means 15%, and more then
    1000 means 20%. But it shouldn't be a fixed list, the administrator
    should be able to create as many ranges as he wants. It looks like this:
    Limit Discount
    <input1_L> <input1_D>
    <input2_L> <input2_D>
    <add more button>
    On the client side we can create the input boxes dynamically, with
    proper names, so the system will know which field(s) of the actionform
    we try to set. The problem is that when he submits the form, we get
    IndexOutOfBoundsException, since the field of the actionForm doesn't
    contain enough space for the items. Of course, we can initialize the
    field in the reset() method of the actionform, but at this time we don't
    know how many elements will it store.
    We checked the docs, samples, and the bea newsgroups, but couldn't find
    solutions to these questions (We have seen some similar questions in the
    newsgroups, so it seems other people also have some of these problems).
    I hope I described them clearly and you will be able to find ways to
    solve (at least some of ) them.
    Thanks in advance,
    don

Maybe you are looking for

  • Migratiing files from a MacBook Pro to a new iMac via firewire connection

    The firewire connection does not appear to work between my older MacBook Pro running 10.4.11 and my new iMac running 10.5.6. I've been trying to use migration assistant and it never gets passed "waiting for old mac to restart". I 've put the target m

  • Win 7 Clipboard clears contents when opening a new application or window

    There are similar posts on this issue, but I see none with a satisfactory fix. I have a brand new Dell Laptop, running Win 7 Pro 64-bit SP1. If I copy anything to the Clipboard, it works fine *IF* where I want to paste it is already open. However, If

  • Lockin headers in case of a scroll in a table

    Hi I am using a scroll container to show a scroll for the table but when i scroll the entire table scrolls along wid the scrolling bar. I want to lock the headers. can any one of u suggest me the method of doing it. I am workin on NWDS 7.0.13 pls sug

  • Java Pet Store and connection pooling

    Hi. Does the Java Petstore version 1.2 use connection pooling? I know in the database.properties file it has the following variables: Pool.MaximumActiveConnections=10 Pool.MaximumIdleConnections=5 Pool.MaximumCheckoutTime=120000 Pool.TimeToWait=10000

  • Users can see, but can't open image files

    We store all of our digital photos (jpg's) on an Xserve RAID attached to an Xserve. Twice in the last 3 weeks I have started getting calls from staff members to tell me that they can see the files but can't open them. The jpg files aren't recognized.