Posted by
cjhowe on
URL: http://ofbiz.116.s1.nabble.com/Dev-Invoke-a-JSP-page-in-a-FTL-file-tp167602p167605.html
i believe your target="popup" route loses the
relationship between the parent and child documents
if your href=
"javascript:call_fieldlookup2(document.salesentryform.partyId,'LookupPartyName');"
then it sould keep the relationship between parent and
child documents because the javascript is making the
request. That's my best guess anyway.
--- Lei Gao <
[hidden email]> wrote:
> That's pretty much all I did, the JSP file is just a
> usual JSP file nothing
> more. but if there is some information you need,
> I'll provide all of them.
>
> Lei
>
>
>
>
> On 4/7/06, Chris Howe <
[hidden email]> wrote:
> >
> > to give you a complete answer, I'd need more
> > informatin, but this should set you in the right
> > direction.
> >
> > you need to use javascript for the popup like in
> > ordermgr/control/orderentry for the partyId lookup
> > in the order manager app
> > ....
> > <a href
> >
>
="javascript:call_fieldlookup2(document.salesentryform.partyId
> > ,'LookupPartyName');
> > >
> > --- Lei Gao <
[hidden email]> wrote:
> >
> > > Hi group,
> > >
> > > I am trying to popup a JSP page in a FTL page,
> and I
> > > want to keep the new
> > > page within the same session, and security
> context.
> > > Here is what I did.
> > >
> > > in orderheader.ftl
> > > ....
> > > <a
> > >
> >
>
herf="<@ofbizUrl>editPaymentTerm?orderId=${orderId}</@ofbizUrl
> > > target="popup">">Edit it</a>
> > > ....
> > >
> > > in control.xml
> > > <requet-map uri="editPaymentTerm">
> > > <response name="success" type="view"
> > > value="editPaymentTerm" />
> > > </requet-map>
> > > ....
> > > <view-map name="editPaymentTerm" type="jsp"
> > > page="/control/jspdir/EditPaymentTerm.jsp" />
> > > .....
> > >
> > > Obviously I still missed something, cause it
> dose
> > > not work. Can anybody show
> > > me what I missed?
> > >
> > > Thanks
> > > Lei
> > > >
> > > _______________________________________________
> > > Dev mailing list
> > >
[hidden email]
> > >
http://lists.ofbiz.org/mailman/listinfo/dev> >
> >
> > _______________________________________________
> > Dev mailing list
> >
[hidden email]
> >
http://lists.ofbiz.org/mailman/listinfo/dev> >
> >
> _______________________________________________
> Dev mailing list
>
[hidden email]
>
http://lists.ofbiz.org/mailman/listinfo/dev
_______________________________________________
Dev mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/dev