You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Christofer Dutz <du...@c-ware.de> on 2005/09/14 21:06:45 UTC
Accessing widget-content for usage in link url
Hi,
I am working on a small CForm application and have run into a problem.
I have two forms. The first shows a list of news-headlines. Each news-entry
has an id, which is available as a standard cforms widget. I don't want to
output the id but want to use it to open a popup showing the complete news
article. For this I have to somehow output the information directly. How can
I access a widgets value directly inside my template?
Thanks in advance,
Christofer
AW: AW: Accessing widget-content for usage in link url
Posted by Christofer Dutz <du...@c-ware.de>.
Well I got everything working in the meanwhile.
The thing I really had to change was to use the JXTemplateGenerator and the
jx-macros.xml.
Now everything works fine.
It would be nice if the Cocoon-Docs would be updated to direct one to use
jx-macros.xml instead of the old macro-file. Sort of delayed my progress a
little ;)
Thank you anyway,
Christofer
_____
Von: Joose Vettenranta [mailto:joose@iki.fi]
Gesendet: Donnerstag, 15. September 2005 10:16
An: users@cocoon.apache.org
Betreff: Re: AW: Accessing widget-content for usage in link url
<ft:repeater-widget id="rep">
id = ${widget.lookupWidget("id").getValue()}
</ft:repeater-widget>
HTH,
Joose
Christofer Dutz kirjoitti 15.9.2005 kello 11:57:
Thanks for your help.
Unfortunately this didn't work. The widget is part of a repeater called
"news" so the real path would be some kind of form.news.row.id.getValue() (I
know that this will probably not work. I just used to illustrate the path)
Please help me.
Chris
_____
Von: Gerry Kaplan [mailto:gkaplan@kaplansoftware.com]
Gesendet: Mittwoch, 14. September 2005 20:13
An: <ma...@cocoon.apache.org> users@cocoon.apache.org
Betreff: RE: Accessing widget-content for usage in link url
Use an JXpath expression like:
${form.lookupWidget("someWidget").getValue()}
or...
${someWidget.getValue()}
See if that helps.
_____
From: Christofer Dutz [mailto:dutz@c-ware.de]
Sent: Wednesday, September 14, 2005 3:07 PM
To: <ma...@cocoon.apache.org> users@cocoon.apache.org
Subject: Accessing widget-content for usage in link url
Hi,
I am working on a small CForm application and have run into a problem.
I have two forms. The first shows a list of news-headlines. Each news-entry
has an id, which is available as a standard cforms widget. I don't want to
output the id but want to use it to open a popup showing the complete news
article. For this I have to somehow output the information directly. How can
I access a widgets value directly inside my template?
Thanks in advance,
Christofer
--
"Always remember that you are unique, just like everyone else!"
* http://iki.fi/joose/ * joose@iki.fi * +358 44 561 0270 *
Re: AW: Accessing widget-content for usage in link url
Posted by Joose Vettenranta <jo...@iki.fi>.
<ft:repeater-widget id="rep">
id = ${widget.lookupWidget("id").getValue()}
</ft:repeater-widget>
HTH,
Joose
Christofer Dutz kirjoitti 15.9.2005 kello 11:57:
> Thanks for your help.
>
>
>
> Unfortunately this didn’t work. The widget is part of a repeater
> called “news” so the real path would be some kind of
> form.news.row.id.getValue() (I know that this will probably not
> work. I just used to illustrate the path)
>
>
>
> Please help me.
>
>
>
> Chris
>
>
>
>
>
> Von: Gerry Kaplan [mailto:gkaplan@kaplansoftware.com]
> Gesendet: Mittwoch, 14. September 2005 20:13
> An: users@cocoon.apache.org
> Betreff: RE: Accessing widget-content for usage in link url
>
>
>
> Use an JXpath expression like:
>
>
>
> ${form.lookupWidget("someWidget").getValue()}
>
>
>
> or...
>
>
>
> ${someWidget.getValue()}
>
>
>
> See if that helps.
>
>
>
> From: Christofer Dutz [mailto:dutz@c-ware.de]
> Sent: Wednesday, September 14, 2005 3:07 PM
> To: users@cocoon.apache.org
> Subject: Accessing widget-content for usage in link url
>
> Hi,
>
>
>
> I am working on a small CForm application and have run into a problem.
>
> I have two forms. The first shows a list of news-headlines. Each
> news-entry has an id, which is available as a standard cforms
> widget. I don’t want to output the id but want to use it to open a
> popup showing the complete news article. For this I have to somehow
> output the information directly. How can I access a widgets value
> directly inside my template?
>
>
>
> Thanks in advance,
>
> Christofer
>
>
--
"Always remember that you are unique, just like everyone else!"
* http://iki.fi/joose/ * joose@iki.fi * +358 44 561 0270 *
AW: Accessing widget-content for usage in link url
Posted by Christofer Dutz <du...@c-ware.de>.
Thanks for your help.
Unfortunately this didn't work. The widget is part of a repeater called
"news" so the real path would be some kind of form.news.row.id.getValue() (I
know that this will probably not work. I just used to illustrate the path)
Please help me.
Chris
_____
Von: Gerry Kaplan [mailto:gkaplan@kaplansoftware.com]
Gesendet: Mittwoch, 14. September 2005 20:13
An: users@cocoon.apache.org
Betreff: RE: Accessing widget-content for usage in link url
Use an JXpath expression like:
${form.lookupWidget("someWidget").getValue()}
or...
${someWidget.getValue()}
See if that helps.
_____
From: Christofer Dutz [mailto:dutz@c-ware.de]
Sent: Wednesday, September 14, 2005 3:07 PM
To: users@cocoon.apache.org
Subject: Accessing widget-content for usage in link url
Hi,
I am working on a small CForm application and have run into a problem.
I have two forms. The first shows a list of news-headlines. Each news-entry
has an id, which is available as a standard cforms widget. I don't want to
output the id but want to use it to open a popup showing the complete news
article. For this I have to somehow output the information directly. How can
I access a widgets value directly inside my template?
Thanks in advance,
Christofer
RE: Accessing widget-content for usage in link url
Posted by Gerry Kaplan <gk...@kaplansoftware.com>.
Use an JXpath expression like:
${form.lookupWidget("someWidget").getValue()}
or...
${someWidget.getValue()}
See if that helps.
_____
From: Christofer Dutz [mailto:dutz@c-ware.de]
Sent: Wednesday, September 14, 2005 3:07 PM
To: users@cocoon.apache.org
Subject: Accessing widget-content for usage in link url
Hi,
I am working on a small CForm application and have run into a problem.
I have two forms. The first shows a list of news-headlines. Each news-entry
has an id, which is available as a standard cforms widget. I don't want to
output the id but want to use it to open a popup showing the complete news
article. For this I have to somehow output the information directly. How can
I access a widgets value directly inside my template?
Thanks in advance,
Christofer