incubator-adffaces-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Adam Winer" <awi...@gmail.com>
Subject Re: Opening link in a new external window
Date Thu, 26 Oct 2006 20:46:38 GMT
Yes, you can use them interchangeably with core JSF tags.

-- Adam


On 10/26/06, Causevic, Dzenan <dcausevic@navisite.com> wrote:
>
>
> It's not working correctly. The link is not opening in an external new
> window but in the very same window. Am I using a wrong syntax. Should
> <tr:commandLink ..> be included necessarily within <tr:panelGroup ..> etc.
> Can I use Trinidad tags interchangably with core JSF tags? Here is the code:
>
> <%@page contentType="text/html"%>
> <%@page pageEncoding="UTF-8"%>
>
> <%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
> <%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
> <%@taglib prefix="tr" uri="http://myfaces.apache.org/trinidad"%>
> <%@taglib prefix="trh" uri="http://myfaces.apache.org/trinidad/html"%>
>
> <f:view>
>     <trh:html>
>         <tr:form>
>             <trh:head title="Client Login/Register - Home">
>                 <link href="/seekerreg/stylesheet/stylesheet.css"
> rel="stylesheet">
>             </trh:head>
>
>             <trh:body>
>                 <h:panelGrid columnClasses="contentTD" title="Home"
> styleClass="contentTable">
>                       <h:panelGroup>
>                           <%--<h:commandLink style="margin-left:10px;"
> action="passwordRetr" value="Forgot your password?" />--%>
>                           <tr:commandLink action="passwordRetr"
> text="Forgot your password?" useWindow="true"/>
>                       </h:panelGroup>
>                 </h:panelGrid>
>             </trh:body>
>         </tr:form>
>     </trh:html>
> </f:view>
>
>
> -----Original Message-----
> From: Döring Markus [mailto:Markus.Doering@tcc-products.de]
> Sent: Thu 10/26/2006 10:40 AM
> To: adffaces-user@incubator.apache.org
> Subject: AW: Opening link in a new external window
>
> Don't used it yet, but the <tr:commandLink> has attributes for this.
> Try:
>
> <tr:commandLink test="Forgot your password?" action="passwordRetr"
> useWindow="true" windowHeight="yyy" windowWidht="xxx" />
>
> > -----Urspr√ľngliche Nachricht-----
> > Von: Causevic, Dzenan [mailto:dcausevic@navisite.com]
> > Gesendet: Donnerstag, 26. Oktober 2006 16:32
> > An: adffaces-user@incubator.apache.org
> > Betreff: Opening link in a new external window
> >
> >
> > I am using <h:commandLink style="margin-left:10px;"
> action="passwordRetr"
> > value="Forgot your password?" /> as a link to the Password Retrieval
> page,
> > however I want to open it in a new external window with specified
> > position, height and widht like I would use to do with regular HTML <a
> > href="javascript:OpenUp(list of arguments...)"> where OpenUp would be a
> > Java Script function that opens a new window.
> > How do I implement this same approach using JSF tag <h:commandLink...>
> > mentioned above?
> >
> > passwordRetr is defined in navigation-faces.xml as following:
> > <navigation-rule>
> >         <from-view-id>/jsp/registration/loginJSF.jsp</from-view-id>
> >         <navigation-case>
> >             <from-outcome>passwordRetr</from-outcome>
> >
> <to-view-id>/jsp/registration/passwordRetrJSF.jsp</to-view-id>
> >         </navigation-case>
> > </navigation-rule>
>
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message