XForms:Select1 and Language-Option in Epilogue/Theme-portal?

classic Classic list List threaded Threaded
21 messages Options
12
Reply | Threaded
Open this post in threaded view
|

XForms:Select1 and Language-Option in Epilogue/Theme-portal?

Marcus-2
Hi,
i was wondering if it is possible to set some options to the standard epilogue, so that they are reachable on every page - just like a stadard menu? But it seems not to work :-(
 
Can someone help me with that?
Thanks, Marcus


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: XForms:Select1 and Language-Option in Epilogue/Theme-portal?

Alessandro Vernet
Administrator
Marcus,

Set some options, what options are you talking about?

Alex

On 5/11/07, Marcus <[hidden email]> wrote:

>
>
> Hi,
> i was wondering if it is possible to set some options to the standard
> epilogue, so that they are reachable on every page - just like a stadard
> menu? But it seems not to work :-(
>
> Can someone help me with that?
> Thanks, Marcus
>
> --
> You receive this message as a subscriber of the [hidden email]
> mailing list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
>
>

--
Orbeon Forms - Web 2.0 Forms for the Enterprise
http://www.orbeon.com/



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: XForms:Select1 and Language-Option in Epilogue/Theme-portal?

Ryan Puddephatt
Marcus,
    The /config/theme-plain.xsl could be used, or for adding xforms to each page you could add an XSL in xforms-epilogue.xpl (which is now in one of the ops jars) around about the processor that adds in widget controls

Ryan

Ryan Puddephatt
Software Engineer
 
Teleflex Group - IT UK
1 Michaelson Square
Livingston
West Lothian
Scotland
EH54 7DP
 
e> [hidden email]
t> +44(0)1506 407 110
f> +44(0)1506 407 108
w> www.teleflex.com

"Measuring programming progress by lines of code is like measuring aircraft building progress by weight." - Bill Gates
"If you lie to the compiler, it will get its revenge." - Henry Spencer
"It's hard enough to find an error in your code when you're looking for it; it's even harder when you've assumed your code is error-free." - Steve McConnell
"If builders built buildings the way programmers wrote programs, then the first woodpecker that came along would destroy civilization." - Gerald Weinberg



Alessandro Vernet wrote:
Marcus,

Set some options, what options are you talking about?

Alex

On 5/11/07, Marcus [hidden email] wrote:


Hi,
i was wondering if it is possible to set some options to the standard
epilogue, so that they are reachable on every page - just like a stadard
menu? But it seems not to work :-(

Can someone help me with that?
Thanks, Marcus

--
You receive this message as a subscriber of the [hidden email]
mailing list.
To unsubscribe: [hidden email]
For general help: [hidden email]
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws





-- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: [hidden email] For general help: [hidden email] ObjectWeb mailing lists service home page: http://www.objectweb.org/wws


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: XForms:Select1 and Language-Option in Epilogue/Theme-portal?

Marcus-2
In reply to this post by Alessandro Vernet
Hi Alex,
i based my app on the goverment-forms and added some other functionality.
But i ment i.e. the Language-Function. I have german and english as options
and i want to insert the xforms-select1 to the epilog or the theme-portal
page, so that it is a part of the menu and i don't have to insert it to
every page. Do you need more information or was that was you were asking?

Marcus

----- Original Message -----
From: "Alessandro Vernet" <[hidden email]>
To: <[hidden email]>
Sent: Friday, May 11, 2007 11:55 PM
Subject: Re: [ops-users] XForms:Select1 and Language-Option in
Epilogue/Theme-portal?


> Marcus,
>
> Set some options, what options are you talking about?
>
> Alex
>
> On 5/11/07, Marcus <[hidden email]> wrote:
>>
>>
>> Hi,
>> i was wondering if it is possible to set some options to the standard
>> epilogue, so that they are reachable on every page - just like a stadard
>> menu? But it seems not to work :-(
>>
>> Can someone help me with that?
>> Thanks, Marcus
>>
>> --
>> You receive this message as a subscriber of the [hidden email]
>> mailing list.
>> To unsubscribe: mailto:[hidden email]
>> For general help: mailto:[hidden email]?subject=help
>> ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
>>
>>
>
>
> --
> Orbeon Forms - Web 2.0 Forms for the Enterprise
> http://www.orbeon.com/
>
>

--------------------------------------------------------------------------------


>
> --
> You receive this message as a subscriber of the [hidden email]
> mailing list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
>




--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: XForms:Select1 and Language-Option in Epilogue/Theme-portal?

Marcus-2
In reply to this post by Ryan Puddephatt
Hi Ryan,
where is the different between the /config/theme-plain.xsl and /config/theme-portal.xsl.
I used the theme-portal until now - should i copy my changes to the theme-plain? And there it will work?
Why doesn't it work at the theme-portal?
 
Thanks, Marcus
 
----- Original Message -----
Sent: Saturday, May 12, 2007 12:00 AM
Subject: Re: [ops-users] XForms:Select1 and Language-Option in Epilogue/Theme-portal?

Marcus,
    The /config/theme-plain.xsl could be used, or for adding xforms to each page you could add an XSL in xforms-epilogue.xpl (which is now in one of the ops jars) around about the processor that adds in widget controls

Ryan

Ryan Puddephatt
Software Engineer
 
Teleflex Group - IT UK
1 Michaelson Square
Livingston
West Lothian
Scotland
EH54 7DP
 
e> [hidden email]
t> +44(0)1506 407 110
f> +44(0)1506 407 108
w> www.teleflex.com

"Measuring programming progress by lines of code is like measuring aircraft building progress by weight." - Bill Gates
"If you lie to the compiler, it will get its revenge." - Henry Spencer
"It's hard enough to find an error in your code when you're looking for it; it's even harder when you've assumed your code is error-free." - Steve McConnell
"If builders built buildings the way programmers wrote programs, then the first woodpecker that came along would destroy civilization." - Gerald Weinberg



Alessandro Vernet wrote:
Marcus,

Set some options, what options are you talking about?

Alex

On 5/11/07, Marcus [hidden email] wrote:


Hi,
i was wondering if it is possible to set some options to the standard
epilogue, so that they are reachable on every page - just like a stadard
menu? But it seems not to work :-(

Can someone help me with that?
Thanks, Marcus

--
You receive this message as a subscriber of the [hidden email]
mailing list.
To unsubscribe: [hidden email]
For general help: [hidden email]
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws





-- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: [hidden email] For general help: [hidden email] ObjectWeb mailing lists service home page: http://www.objectweb.org/wws



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: XForms:Select1 and Language-Option in Epilogue/Theme-portal?

Ryan Puddephatt
The difference between the two depends on how you use Orbeon Forms. If you run portlets use theme-portlets.xsl, if you run servlets use theme-plain.xsl

Hope that clears it up

Ryan

Ryan Puddephatt
Software Engineer
 
Teleflex Group - IT UK
1 Michaelson Square
Livingston
West Lothian
Scotland
EH54 7DP
 
e> [hidden email]
t> +44(0)1506 407 110
f> +44(0)1506 407 108
w> www.teleflex.com

"Measuring programming progress by lines of code is like measuring aircraft building progress by weight." - Bill Gates
"If you lie to the compiler, it will get its revenge." - Henry Spencer
"It's hard enough to find an error in your code when you're looking for it; it's even harder when you've assumed your code is error-free." - Steve McConnell
"If builders built buildings the way programmers wrote programs, then the first woodpecker that came along would destroy civilization." - Gerald Weinberg



Marcus wrote:
Hi Ryan,
where is the different between the /config/theme-plain.xsl and /config/theme-portal.xsl.
I used the theme-portal until now - should i copy my changes to the theme-plain? And there it will work?
Why doesn't it work at the theme-portal?
 
Thanks, Marcus
 
----- Original Message -----
Sent: Saturday, May 12, 2007 12:00 AM
Subject: Re: [ops-users] XForms:Select1 and Language-Option in Epilogue/Theme-portal?

Marcus,
    The /config/theme-plain.xsl could be used, or for adding xforms to each page you could add an XSL in xforms-epilogue.xpl (which is now in one of the ops jars) around about the processor that adds in widget controls

Ryan

Ryan Puddephatt
Software Engineer
 
Teleflex Group - IT UK
1 Michaelson Square
Livingston
West Lothian
Scotland
EH54 7DP
 
e> [hidden email]
t> +44(0)1506 407 110
f> +44(0)1506 407 108
w> www.teleflex.com

"Measuring programming progress by lines of code is like measuring aircraft building progress by weight." - Bill Gates
"If you lie to the compiler, it will get its revenge." - Henry Spencer
"It's hard enough to find an error in your code when you're looking for it; it's even harder when you've assumed your code is error-free." - Steve McConnell
"If builders built buildings the way programmers wrote programs, then the first woodpecker that came along would destroy civilization." - Gerald Weinberg



Alessandro Vernet wrote:
Marcus,

Set some options, what options are you talking about?

Alex

On 5/11/07, Marcus [hidden email] wrote:


Hi,
i was wondering if it is possible to set some options to the standard
epilogue, so that they are reachable on every page - just like a stadard
menu? But it seems not to work :-(

Can someone help me with that?
Thanks, Marcus

--
You receive this message as a subscriber of the [hidden email]
mailing list.
To unsubscribe: [hidden email]
For general help: [hidden email]
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws





-- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: [hidden email] For general help: [hidden email] ObjectWeb mailing lists service home page: http://www.objectweb.org/wws



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: [hidden email]
For general help: [hidden email]
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws

-- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: [hidden email] For general help: [hidden email] ObjectWeb mailing lists service home page: http://www.objectweb.org/wws


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: XForms:Select1 and Language-Option in Epilogue/Theme-portal?

Marcus-2
Hi Ryan,
i don't use Portlets. But i can't find there any theme-portlets.xsl!?
There is theme-plain.xsl and theme-portal.xsl.
Last one is used in the standard ops with all the examples and the theme-plain.xsl seems to be a blank page without any other configuration. I thought i could use the standrad theme-portal - is there a missunderstandig?
 
Don't know what this has to do with the "portlets"? Sorry, didn't wrote anything about it.
Marcus
 
 
 
----- Original Message -----
Sent: Saturday, May 12, 2007 12:26 AM
Subject: Re: [ops-users] XForms:Select1 and Language-Option in Epilogue/Theme-portal?

The difference between the two depends on how you use Orbeon Forms. If you run portlets use theme-portlets.xsl, if you run servlets use theme-plain.xsl

Hope that clears it up

Ryan

Ryan Puddephatt
Software Engineer
 
Teleflex Group - IT UK
1 Michaelson Square
Livingston
West Lothian
Scotland
EH54 7DP
 
e> [hidden email]
t> +44(0)1506 407 110
f> +44(0)1506 407 108
w> www.teleflex.com

"Measuring programming progress by lines of code is like measuring aircraft building progress by weight." - Bill Gates
"If you lie to the compiler, it will get its revenge." - Henry Spencer
"It's hard enough to find an error in your code when you're looking for it; it's even harder when you've assumed your code is error-free." - Steve McConnell
"If builders built buildings the way programmers wrote programs, then the first woodpecker that came along would destroy civilization." - Gerald Weinberg



Marcus wrote:
Hi Ryan,
where is the different between the /config/theme-plain.xsl and /config/theme-portal.xsl.
I used the theme-portal until now - should i copy my changes to the theme-plain? And there it will work?
Why doesn't it work at the theme-portal?
 
Thanks, Marcus
 
----- Original Message -----
Sent: Saturday, May 12, 2007 12:00 AM
Subject: Re: [ops-users] XForms:Select1 and Language-Option in Epilogue/Theme-portal?

Marcus,
    The /config/theme-plain.xsl could be used, or for adding xforms to each page you could add an XSL in xforms-epilogue.xpl (which is now in one of the ops jars) around about the processor that adds in widget controls

Ryan

Ryan Puddephatt
Software Engineer
 
Teleflex Group - IT UK
1 Michaelson Square
Livingston
West Lothian
Scotland
EH54 7DP
 
e> [hidden email]
t> +44(0)1506 407 110
f> +44(0)1506 407 108
w> www.teleflex.com

"Measuring programming progress by lines of code is like measuring aircraft building progress by weight." - Bill Gates
"If you lie to the compiler, it will get its revenge." - Henry Spencer
"It's hard enough to find an error in your code when you're looking for it; it's even harder when you've assumed your code is error-free." - Steve McConnell
"If builders built buildings the way programmers wrote programs, then the first woodpecker that came along would destroy civilization." - Gerald Weinberg



Alessandro Vernet wrote:
Marcus,

Set some options, what options are you talking about?

Alex

On 5/11/07, Marcus [hidden email] wrote:


Hi,
i was wondering if it is possible to set some options to the standard
epilogue, so that they are reachable on every page - just like a stadard
menu? But it seems not to work :-(

Can someone help me with that?
Thanks, Marcus

--
You receive this message as a subscriber of the [hidden email]
mailing list.
To unsubscribe: [hidden email]
For general help: [hidden email]
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws





-- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: [hidden email] For general help: [hidden email] ObjectWeb mailing lists service home page: http://www.objectweb.org/wws



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: [hidden email]
For general help: [hidden email]
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws

-- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: [hidden email] For general help: [hidden email] ObjectWeb mailing lists service home page: http://www.objectweb.org/wws



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: XForms:Select1 and Language-Option in Epilogue/Theme-portal?

Ryan Puddephatt
Marcus,
    Sorry mispelt the portal one. In the examples Orbeon use portals to show the examples. If you are using a servlets then try the theme-plain.xsl, it might work.

Ryan

Ryan Puddephatt
Software Engineer
 
Teleflex Group - IT UK
1 Michaelson Square
Livingston
West Lothian
Scotland
EH54 7DP
 
e> [hidden email]
t> +44(0)1506 407 110
f> +44(0)1506 407 108
w> www.teleflex.com

"Measuring programming progress by lines of code is like measuring aircraft building progress by weight." - Bill Gates
"If you lie to the compiler, it will get its revenge." - Henry Spencer
"It's hard enough to find an error in your code when you're looking for it; it's even harder when you've assumed your code is error-free." - Steve McConnell
"If builders built buildings the way programmers wrote programs, then the first woodpecker that came along would destroy civilization." - Gerald Weinberg



Marcus wrote:
Hi Ryan,
i don't use Portlets. But i can't find there any theme-portlets.xsl!?
There is theme-plain.xsl and theme-portal.xsl.
Last one is used in the standard ops with all the examples and the theme-plain.xsl seems to be a blank page without any other configuration. I thought i could use the standrad theme-portal - is there a missunderstandig?
 
Don't know what this has to do with the "portlets"? Sorry, didn't wrote anything about it.
Marcus
 
 
 
----- Original Message -----
Sent: Saturday, May 12, 2007 12:26 AM
Subject: Re: [ops-users] XForms:Select1 and Language-Option in Epilogue/Theme-portal?

The difference between the two depends on how you use Orbeon Forms. If you run portlets use theme-portlets.xsl, if you run servlets use theme-plain.xsl

Hope that clears it up

Ryan

Ryan Puddephatt
Software Engineer
 
Teleflex Group - IT UK
1 Michaelson Square
Livingston
West Lothian
Scotland
EH54 7DP
 
e> [hidden email]
t> +44(0)1506 407 110
f> +44(0)1506 407 108
w> www.teleflex.com

"Measuring programming progress by lines of code is like measuring aircraft building progress by weight." - Bill Gates
"If you lie to the compiler, it will get its revenge." - Henry Spencer
"It's hard enough to find an error in your code when you're looking for it; it's even harder when you've assumed your code is error-free." - Steve McConnell
"If builders built buildings the way programmers wrote programs, then the first woodpecker that came along would destroy civilization." - Gerald Weinberg



Marcus wrote:
Hi Ryan,
where is the different between the /config/theme-plain.xsl and /config/theme-portal.xsl.
I used the theme-portal until now - should i copy my changes to the theme-plain? And there it will work?
Why doesn't it work at the theme-portal?
 
Thanks, Marcus
 
----- Original Message -----
Sent: Saturday, May 12, 2007 12:00 AM
Subject: Re: [ops-users] XForms:Select1 and Language-Option in Epilogue/Theme-portal?

Marcus,
    The /config/theme-plain.xsl could be used, or for adding xforms to each page you could add an XSL in xforms-epilogue.xpl (which is now in one of the ops jars) around about the processor that adds in widget controls

Ryan

Ryan Puddephatt
Software Engineer
 
Teleflex Group - IT UK
1 Michaelson Square
Livingston
West Lothian
Scotland
EH54 7DP
 
e> [hidden email]
t> +44(0)1506 407 110
f> +44(0)1506 407 108
w> www.teleflex.com

"Measuring programming progress by lines of code is like measuring aircraft building progress by weight." - Bill Gates
"If you lie to the compiler, it will get its revenge." - Henry Spencer
"It's hard enough to find an error in your code when you're looking for it; it's even harder when you've assumed your code is error-free." - Steve McConnell
"If builders built buildings the way programmers wrote programs, then the first woodpecker that came along would destroy civilization." - Gerald Weinberg



Alessandro Vernet wrote:
Marcus,

Set some options, what options are you talking about?

Alex

On 5/11/07, Marcus [hidden email] wrote:


Hi,
i was wondering if it is possible to set some options to the standard
epilogue, so that they are reachable on every page - just like a stadard
menu? But it seems not to work :-(

Can someone help me with that?
Thanks, Marcus

--
You receive this message as a subscriber of the [hidden email]
mailing list.
To unsubscribe: [hidden email]
For general help: [hidden email]
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws





-- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: [hidden email] For general help: [hidden email] ObjectWeb mailing lists service home page: http://www.objectweb.org/wws


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: [hidden email]
For general help: [hidden email]
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws

-- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: [hidden email] For general help: [hidden email] ObjectWeb mailing lists service home page: http://www.objectweb.org/wws



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: [hidden email]
For general help: [hidden email]
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws

-- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: [hidden email] For general help: [hidden email] ObjectWeb mailing lists service home page: http://www.objectweb.org/wws


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: XForms:Select1 and Language-Option in Epilogue/Theme-portal?

Marcus-2
Hi Ryan,
I'm sorry, but i have to tell you, that also with the theme-plain.xsl it doesn't work to insert i.e. the language xform:select1 into the main-menu!
Don't know if i should also change some setting in the standard epilogue? I just copied the link to the theme-plain.xsl over the theme-portal.xsl, but that's all i did!?
 
But as i said, it does not work! There is no pulldown menu for the language choice, only the two values de/en as plain text are visible :-(
 
Marcus
 
----- Original Message -----
Sent: Saturday, May 12, 2007 12:51 AM
Subject: Re: [ops-users] XForms:Select1 and Language-Option in Epilogue/Theme-portal?

Marcus,
    Sorry mispelt the portal one. In the examples Orbeon use portals to show the examples. If you are using a servlets then try the theme-plain.xsl, it might work.

Ryan

Ryan Puddephatt
Software Engineer
 
Teleflex Group - IT UK
1 Michaelson Square
Livingston
West Lothian
Scotland
EH54 7DP
 
e> [hidden email]
t> +44(0)1506 407 110
f> +44(0)1506 407 108
w> www.teleflex.com

"Measuring programming progress by lines of code is like measuring aircraft building progress by weight." - Bill Gates
"If you lie to the compiler, it will get its revenge." - Henry Spencer
"It's hard enough to find an error in your code when you're looking for it; it's even harder when you've assumed your code is error-free." - Steve McConnell
"If builders built buildings the way programmers wrote programs, then the first woodpecker that came along would destroy civilization." - Gerald Weinberg



Marcus wrote:
Hi Ryan,
i don't use Portlets. But i can't find there any theme-portlets.xsl!?
There is theme-plain.xsl and theme-portal.xsl.
Last one is used in the standard ops with all the examples and the theme-plain.xsl seems to be a blank page without any other configuration. I thought i could use the standrad theme-portal - is there a missunderstandig?
 
Don't know what this has to do with the "portlets"? Sorry, didn't wrote anything about it.
Marcus
 
 
 
----- Original Message -----
Sent: Saturday, May 12, 2007 12:26 AM
Subject: Re: [ops-users] XForms:Select1 and Language-Option in Epilogue/Theme-portal?

The difference between the two depends on how you use Orbeon Forms. If you run portlets use theme-portlets.xsl, if you run servlets use theme-plain.xsl

Hope that clears it up

Ryan

Ryan Puddephatt
Software Engineer
 
Teleflex Group - IT UK
1 Michaelson Square
Livingston
West Lothian
Scotland
EH54 7DP
 
e> [hidden email]
t> +44(0)1506 407 110
f> +44(0)1506 407 108
w> www.teleflex.com

"Measuring programming progress by lines of code is like measuring aircraft building progress by weight." - Bill Gates
"If you lie to the compiler, it will get its revenge." - Henry Spencer
"It's hard enough to find an error in your code when you're looking for it; it's even harder when you've assumed your code is error-free." - Steve McConnell
"If builders built buildings the way programmers wrote programs, then the first woodpecker that came along would destroy civilization." - Gerald Weinberg



Marcus wrote:
Hi Ryan,
where is the different between the /config/theme-plain.xsl and /config/theme-portal.xsl.
I used the theme-portal until now - should i copy my changes to the theme-plain? And there it will work?
Why doesn't it work at the theme-portal?
 
Thanks, Marcus
 
----- Original Message -----
Sent: Saturday, May 12, 2007 12:00 AM
Subject: Re: [ops-users] XForms:Select1 and Language-Option in Epilogue/Theme-portal?

Marcus,
    The /config/theme-plain.xsl could be used, or for adding xforms to each page you could add an XSL in xforms-epilogue.xpl (which is now in one of the ops jars) around about the processor that adds in widget controls

Ryan

Ryan Puddephatt
Software Engineer
 
Teleflex Group - IT UK
1 Michaelson Square
Livingston
West Lothian
Scotland
EH54 7DP
 
e> [hidden email]
t> +44(0)1506 407 110
f> +44(0)1506 407 108
w> www.teleflex.com

"Measuring programming progress by lines of code is like measuring aircraft building progress by weight." - Bill Gates
"If you lie to the compiler, it will get its revenge." - Henry Spencer
"It's hard enough to find an error in your code when you're looking for it; it's even harder when you've assumed your code is error-free." - Steve McConnell
"If builders built buildings the way programmers wrote programs, then the first woodpecker that came along would destroy civilization." - Gerald Weinberg



Alessandro Vernet wrote:
Marcus,

Set some options, what options are you talking about?

Alex

On 5/11/07, Marcus [hidden email] wrote:


Hi,
i was wondering if it is possible to set some options to the standard
epilogue, so that they are reachable on every page - just like a stadard
menu? But it seems not to work :-(

Can someone help me with that?
Thanks, Marcus

--
You receive this message as a subscriber of the [hidden email]
mailing list.
To unsubscribe: [hidden email]
For general help: [hidden email]
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws





-- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: [hidden email] For general help: [hidden email] ObjectWeb mailing lists service home page: http://www.objectweb.org/wws


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: [hidden email]
For general help: [hidden email]
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws

-- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: [hidden email] For general help: [hidden email] ObjectWeb mailing lists service home page: http://www.objectweb.org/wws



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: [hidden email]
For general help: [hidden email]
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws

-- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: [hidden email] For general help: [hidden email] ObjectWeb mailing lists service home page: http://www.objectweb.org/wws



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: XForms:Select1 and Language-Option in Epilogue/Theme-portal?

Joseph Lawrence
Hi Marcus,
    I am not sure of whether I comprehended your requirement completely. However I think modifying the oxf:/config/xforms-widgets.xsl such as to add your desired template might help. I am attaching a case that might work for you. Replace the existing 'xforms-widgets.xsl' file with the attached 'xforms-widgets.xsl' file.
    Or the other option is to modify the oxf:/ops/pfc/xforms-eplilogue.xpl to include  your custom xsl file. I am attaching such a sample as well. For this to work extract the attached WEB-INF.zip into your 'project home' directory. hope either of  this might work for you.

Thanks
Joseph Lawrence 
Stabilix Solutions


Marcus <[hidden email]> wrote:
Hi Ryan,
I'm sorry, but i have to tell you, that also with the theme-plain.xsl it doesn't work to insert i.e. the language xform:select1 into the main-menu!
Don't know if i should also change some setting in the standard epilogue? I just copied the link to the theme-plain.xsl over the theme-portal.xsl, but that's all i did!?
 
But as i said, it does not work! There is no pulldown menu for the language choice, only the two values de/en as plain text are visible :-(
 
Marcus
 
----- Original Message -----
Sent: Saturday, May 12, 2007 12:51 AM
Subject: Re: [ops-users] XForms:Select1 and Language-Option in Epilogue/Theme-portal?

Marcus,
    Sorry mispelt the portal one. In the examples Orbeon use portals to show the examples. If you are using a servlets then try the theme-plain.xsl, it might work.

Ryan
Ryan Puddephatt
Software Engineer
 
Teleflex Group - IT UK
1 Michaelson Square
Livingston
West Lothian
Scotland
EH54 7DP
 
e> [hidden email]
t> +44(0)1506 407 110
f> +44(0)1506 407 108
w> www.teleflex.com
"Measuring programming progress by lines of code is like measuring aircraft building progress by weight." - Bill Gates
"If you lie to the compiler, it will get its revenge." - Henry Spencer
"It's hard enough to find an error in your code when you're looking for it; it's even harder when you've assumed your code is error-free." - Steve McConnell
"If builders built buildings the way programmers wrote programs, then the first woodpecker that came along would destroy civilization." - Gerald Weinberg


Marcus wrote:
Hi Ryan,
i don't use Portlets. But i can't find there any theme-portlets.xsl!?
There is theme-plain.xsl and theme-portal.xsl.
Last one is used in the standard ops with all the examples and the theme-plain.xsl seems to be a blank page without any other configuration. I thought i could use the standrad theme-portal - is there a missunderstandig?
 
Don't know what this has to do with the "portlets"? Sorry, didn't wrote anything about it.
Marcus
 
 
 
----- Original Message -----
Sent: Saturday, May 12, 2007 12:26 AM
Subject: Re: [ops-users] XForms:Select1 and Language-Option in Epilogue/Theme-portal?

The difference between the two depends on how you use Orbeon Forms. If you run portlets use theme-portlets.xsl, if you run servlets use theme-plain.xsl

Hope that clears it up

Ryan
Ryan Puddephatt
Software Engineer
 
Teleflex Group - IT UK
1 Michaelson Square
Livingston
West Lothian
Scotland
EH54 7DP
 
e> [hidden email]
t> +44(0)1506 407 110
f> +44(0)1506 407 108
w> www.teleflex.com
"Measuring programming progress by lines of code is like measuring aircraft building progress by weight." - Bill Gates
"If you lie to the compiler, it will get its revenge." - Henry Spencer
"It's hard enough to find an error in your code when you're looking for it; it's even harder when you've assumed your code is error-free." - Steve McConnell
"If builders built buildings the way programmers wrote programs, then the first woodpecker that came along would destroy civilization." - Gerald Weinberg


Marcus wrote:
Hi Ryan,
where is the different between the /config/theme-plain.xsl and /config/theme-portal.xsl.
I used the theme-portal until now - should i copy my changes to the theme-plain? And there it will work?
Why doesn't it work at the theme-portal?
 
Thanks, Marcus
 
----- Original Message -----
Sent: Saturday, May 12, 2007 12:00 AM
Subject: Re: [ops-users] XForms:Select1 and Language-Option in Epilogue/Theme-portal?

Marcus,
    The /config/theme-plain.xsl could be used, or for adding xforms to each page you could add an XSL in xforms-epilogue.xpl (which is now in one of the ops jars) around about the processor that adds in widget controls

Ryan
Ryan Puddephatt
Software Engineer
 
Teleflex Group - IT UK
1 Michaelson Square
Livingston
West Lothian
Scotland
EH54 7DP
 
e> [hidden email]
t> +44(0)1506 407 110
f> +44(0)1506 407 108
w> www.teleflex.com
"Measuring programming progress by lines of code is like measuring aircraft building progress by weight." - Bill Gates
"If you lie to the compiler, it will get its revenge." - Henry Spencer
"It's hard enough to find an error in your code when you're looking for it; it's even harder when you've assumed your code is error-free." - Steve McConnell
"If builders built buildings the way programmers wrote programs, then the first woodpecker that came along would destroy civilization." - Gerald Weinberg


Alessandro Vernet wrote:
Marcus,

Set some options, what options are you talking about?

Alex

On 5/11/07, Marcus [hidden email] wrote:


Hi,
i was wondering if it is possible to set some options to the standard
epilogue, so that they are reachable on every page - just like a stadard
menu? But it seems not to work :-(

Can someone help me with that?
Thanks, Marcus

--
You receive this message as a subscriber of the [hidden email]
mailing list.
To unsubscribe: [hidden email]
For general help: [hidden email]
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws





-- You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: [hidden email] For general help: [hidden email] ObjectWeb mailing lists service home page: http://www.objectweb.org/wws


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: [hidden email]
For general help: [hidden email]
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws

-- You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: [hidden email] For general help: [hidden email] ObjectWeb mailing lists service home page: http://www.objectweb.org/wws


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: [hidden email]
For general help: [hidden email]
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws

-- You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: [hidden email] For general help: [hidden email] ObjectWeb mailing lists service home page: http://www.objectweb.org/wws


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws

--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws


Take the Internet to Go: Yahoo!Go puts the Internet in your pocket: mail, news, photos & more.
<!--
    Copyright (C) 2004-2007 Orbeon, Inc.

    This program is free software; you can redistribute it and/or modify it under the terms of the
    GNU Lesser General Public License as published by the Free Software Foundation; either version
    2.1 of the License, or (at your option) any later version.

    This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
    without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
    See the GNU Lesser General Public License for more details.

    The full text of the license is available at http://www.gnu.org/copyleft/lesser.html
-->
<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:xforms="http://www.w3.org/2002/xforms"
    xmlns:xxforms="http://orbeon.org/oxf/xml/xforms"
    xmlns:ev="http://www.w3.org/2001/xml-events"
    xmlns:widget="http://orbeon.org/oxf/xml/widget"
    xmlns:xs="http://www.w3.org/2001/XMLSchema"
    xmlns:f="http://orbeon.org/oxf/xml/formatting"
    xmlns:xhtml="http://www.w3.org/1999/xhtml">

    <xsl:variable name="has-xforms-instance-inspector" as="xs:boolean" select="exists(//widget:xforms-instance-inspector)"/>

    <xsl:template match="@*|node()" priority="-100">
        <xsl:copy>
            <xsl:apply-templates select="@*|node()"/>
        </xsl:copy>
    </xsl:template>

    <xsl:template match="xhtml:head">
        <xsl:copy>
            <xsl:copy-of select="@* | node()"/>
            <xforms:model id="lang-model">
                <xforms:instance id="lang-instance">
                    <lang-instance/>
                </xforms:instance>
            </xforms:model>
            <xsl:if test="$has-xforms-instance-inspector">
                <xsl:call-template name="widget:xforms-instance-inspector-model"/>
                <xhtml:script language="Javascript" type="text/javascript">
                    window.onload = sourceInit;
                    window.onresize = sourceResize;

                    function sourceInit() {
                        sourceResize();
                    }

                    function sourceResize() {
                        var divElement = document.getElementById('widgets-xforms-instance-inspector');
                        var height = document.body.clientHeight - findTopPosition(divElement) - 18;
                        divElement.style.height = (height &lt; 100 ? 100 : height) + "px";
                    }

                    function findTopPosition(element) {
                        var curtop = 0;
                        if (element.offsetParent) {
                            while (element.offsetParent) {
                                curtop += element.offsetTop
                                element = element.offsetParent;
                            }
                        } else if (element.y) {
                            curtop += element.y;
                        }
                        return curtop;
                    }
                </xhtml:script>
            </xsl:if>
            <xhtml:link rel="stylesheet" href="/config/theme/xforms-widgets.css" type="text/css"/>
        </xsl:copy>
    </xsl:template>
    <xsl:template match="xhtml:body">
        <xsl:copy>
            <xsl:copy-of select="@*"/>
            <xhtml:div>
                <xforms:select1 ref="instance('lang-instance')" model="lang-model">
                    <xforms:choices>
                        <xforms:item>
                            <xforms:label>English</xforms:label>
                            <xforms:value>en</xforms:value>
                        </xforms:item>
                        <xforms:item>
                            <xforms:label>French</xforms:label>
                            <xforms:value>fr</xforms:value>
                        </xforms:item>
                    </xforms:choices>
                </xforms:select1>
            </xhtml:div>
            <xsl:copy-of select="node()"/>
        </xsl:copy>
    </xsl:template>
    <xsl:template match="widget:tabs">
        <xsl:variable name="tabs-element" select="."/><!-- as="element()"  -->
        <xsl:variable name="tabs" select="widget:tab"/><!-- as="element()*"  -->
        <xhtml:table class="widget-tabs" cellpadding="0" cellspacing="0" border="0">
            <xsl:copy-of select="@*"/>
            <xhtml:tr>
                <xhtml:td class="widget-tab-spacer-side"/>
                <!-- Tabs at the top -->
                <xsl:variable name="selected-tab-specified" select="count(widget:tab[@selected = 'true']) = 1"/><!-- as="xs:boolean"  -->
                <xsl:for-each select="$tabs">
                    <xsl:variable name="tab-id" select="@id"/><!-- as="xs:string"  -->
                    <xsl:if test="position() > 1">
                        <xhtml:td class="widget-tab-spacer-between"/>
                    </xsl:if>
                    <xhtml:td class="widget-tab">
                        <xforms:switch>
                            <xsl:if test="$tabs-element/@ref">
                                <xsl:attribute name="ref" select="$tabs-element/@ref"/>
                            </xsl:if>
                            <!-- Case where this tab is inactive -->
                            <xforms:case id="{$tab-id}-inactive">
                                <xhtml:div class="widget-tab-inactive">
                                    <xforms:trigger appearance="xxforms:link" id="{@id}-trigger">
                                        <xsl:choose>
                                            <xsl:when test="widget:label/@ref">
                                                <xforms:label ref="{widget:label/@ref}"/>
                                            </xsl:when>
                                            <xsl:otherwise>
                                                <xforms:label><xsl:value-of select="widget:label"/></xforms:label>
                                            </xsl:otherwise>
                                        </xsl:choose>
                                        <xforms:action ev:event="DOMActivate">
                                            <xforms:toggle case="{$tab-id}"/>
                                            <xforms:toggle case="{$tab-id}-active"/>
                                            <xsl:for-each select="$tabs[@id != $tab-id]">
                                                <xforms:toggle case="{@id}-inactive"/>
                                            </xsl:for-each>
                                        </xforms:action>
                                    </xforms:trigger>
                                </xhtml:div>
                            </xforms:case>
                            <!-- Case where this tab is active -->
                            <xforms:case id="{$tab-id}-active">
                                <xsl:if test="(not($selected-tab-specified) and position() = 1) or @selected = 'true'">
                                    <xsl:attribute name="selected">true</xsl:attribute>
                                </xsl:if>
                                <xhtml:div class="widget-tab-active">
                                    <xsl:choose>
                                        <xsl:when test="widget:label/@ref">
                                            <xforms:output value="{widget:label/@ref}"/>
                                        </xsl:when>
                                        <xsl:otherwise>
                                            <xsl:value-of select="widget:label"/>
                                        </xsl:otherwise>
                                    </xsl:choose>
                                </xhtml:div>
                            </xforms:case>
                        </xforms:switch>
                    </xhtml:td>
                </xsl:for-each>
                <xhtml:td class="widget-tab-spacer-side"/>
            </xhtml:tr>
            <!-- Main area with the switch -->
            <xhtml:tr>
                <xhtml:td class="widget-tabs-panel" colspan="{count(widget:tab) * 4 + 1}">
                    <xforms:switch>
                        <xsl:if test="$tabs-element/@ref">
                            <xsl:attribute name="ref" select="$tabs-element/@ref"/>
                        </xsl:if>
                        <xsl:for-each select="widget:tab">
                            <xforms:case>
                                <xsl:copy-of select="@*"/>
                                <xhtml:div class="widget-tab-panel">
                                    <xsl:apply-templates select="node()"/>
                                </xhtml:div>
                            </xforms:case>
                        </xsl:for-each>
                    </xforms:switch>
                </xhtml:td>
            </xhtml:tr>
        </xhtml:table>
    </xsl:template>

    <xsl:template match="widget:label"/>

    <xsl:template match="widget:xforms-instance-inspector[$has-xforms-instance-inspector]">

        <xforms:group model="orbeon-xforms-instance-inspector-model" class="widgets-xforms-instance-inspector">

            <xhtml:h2>Orbeon Forms XForms Instance Inspector</xhtml:h2>
            <xforms:group>
                <xhtml:table>
                    <xhtml:tr>
                        <xhtml:td>
                            <xforms:select1 ref="instance('orbeon-xforms-instance-inspector-instance')/function" appearance="full">
                                <xforms:item>
                                    <xforms:label>View instance</xforms:label>
                                    <xforms:value>view-instance</xforms:value>
                                </xforms:item>
                            </xforms:select1>
                        </xhtml:td>
                        <xhtml:td>
                            <xforms:group>
                                <xforms:dispatch ev:event="xforms-value-changed" name="DOMActivate" target="orbeon-xforms-instance-inspector-xpath"/>
                                <!-- Model section -->
                                <xforms:group ref=".[count(instance('orbeon-xforms-instance-inspector-itemset')/model) gt 1]">
                                    <xforms:select1 ref="instance('orbeon-xforms-instance-inspector-instance')/current-model">
                                        <xforms:label>Model: </xforms:label>
                                        <xforms:itemset nodeset="instance('orbeon-xforms-instance-inspector-itemset')/model">
                                            <xforms:label ref="@id"/>
                                            <xforms:value ref="@id"/>
                                        </xforms:itemset>
                                        <xforms:action ev:event="xforms-value-changed">
                                            <xforms:setvalue ref="instance('orbeon-xforms-instance-inspector-instance')/current-instance"/>
                                        </xforms:action>
                                    </xforms:select1>
                                </xforms:group>
                                <xforms:group ref=".[count(instance('orbeon-xforms-instance-inspector-itemset')/model) = 1]">
                                    <xforms:output value="instance('orbeon-xforms-instance-inspector-instance')/current-model">
                                        <xforms:label>Model: </xforms:label>
                                    </xforms:output>
                                </xforms:group>
                                <xhtml:span>&#160;</xhtml:span>
                                <!-- Instance selection -->
                                <xforms:group ref=".[count(instance('orbeon-xforms-instance-inspector-itemset')/model[@id = instance('orbeon-xforms-instance-inspector-instance')/current-model]/instance) gt 1]">
                                    <xforms:select1 ref="instance('orbeon-xforms-instance-inspector-instance')/current-instance">
                                        <xforms:label>Instance: </xforms:label>
                                        <xforms:itemset nodeset="instance('orbeon-xforms-instance-inspector-itemset')/model[@id = instance('orbeon-xforms-instance-inspector-instance')/current-model]/instance">
                                            <xforms:label ref="@id"/>
                                            <xforms:value ref="@id"/>
                                        </xforms:itemset>
                                    </xforms:select1>
                                </xforms:group>
                                <xforms:group ref=".[count(instance('orbeon-xforms-instance-inspector-itemset')/model[@id = instance('orbeon-xforms-instance-inspector-instance')/current-model]/instance) = 1]">
                                    <xforms:output value="instance('orbeon-xforms-instance-inspector-instance')/current-instance">
                                        <xforms:label>Instance: </xforms:label>
                                    </xforms:output>
                                </xforms:group>
                            </xforms:group>
                        </xhtml:td>
                    </xhtml:tr>
                    <xhtml:tr>
                        <xhtml:td>
                            <xforms:select1 ref="instance('orbeon-xforms-instance-inspector-instance')/function" appearance="full">
                                <xforms:item>
                                    <xforms:label>Evaluate XPath</xforms:label>
                                    <xforms:value>evaluate-xpath</xforms:value>
                                </xforms:item>
                                <xforms:setfocus ev:event="xforms-value-changed" if=". = 'evaluate-xpath'"
                                        control="orbeon-xforms-instance-inspector-xpath"/>
                            </xforms:select1>
                        </xhtml:td>
                        <xhtml:td>
                            <!-- XPath expression and trigger -->
                            <xforms:group ref="instance('orbeon-xforms-instance-inspector-instance')/xpath">
                                <xforms:action ev:event="DOMActivate">
                                    <xforms:delete while="exists(instance('orbeon-xforms-instance-inspector-instance')/xml-output/node())"
                                            nodeset="instance('orbeon-xforms-instance-inspector-instance')/xml-output/node()"/>
                                    <xforms:insert if="instance('orbeon-xforms-instance-inspector-instance')/xpath != ''"
                                            context="instance('orbeon-xforms-instance-inspector-instance')/xml-output"
                                            origin="xxforms:instance(instance('orbeon-xforms-instance-inspector-instance')/current-instance)/
                                                saxon:evaluate(instance('orbeon-xforms-instance-inspector-instance')/xpath)"/>
                                </xforms:action>
                                <xforms:input ref="." id="orbeon-xforms-instance-inspector-xpath">
                                    <xforms:label>XPath expression: </xforms:label>
                                </xforms:input>
                                <xforms:trigger ref=".">
                                    <xforms:label>Run XPath</xforms:label>
                                    <xforms:help>
                                        <xhtml:ul>
                                            <xhtml:li>
                                                To trigger the evaluation of your expression, either press on the "Run
                                                XPath" button or just enter in the text field.
                                            </xhtml:li>
                                            <xhtml:li>
                                                Your XPath expression is evaluated on the currently selected instance.
                                            </xhtml:li>
                                        </xhtml:ul>
                                    </xforms:help>
                                </xforms:trigger>
                            </xforms:group>
                        </xhtml:td>
                    </xhtml:tr>
                    <xhtml:tr>
                        <xhtml:td/>
                        <xhtml:td>
                            <!-- Mode for formatting -->
                            <xforms:select1 appearance="full" ref="instance('orbeon-xforms-instance-inspector-instance')/mode">
                                <xforms:label>Mode: </xforms:label>
                                <xforms:item>
                                    <xforms:label>Formatted</xforms:label>
                                    <xforms:value>formatted</xforms:value>
                                </xforms:item>
                                <xforms:item>
                                    <xforms:label>Plain</xforms:label>
                                    <xforms:value>plain</xforms:value>
                                </xforms:item>
                            </xforms:select1>
                        </xhtml:td>
                    </xhtml:tr>
                </xhtml:table>
            </xforms:group>
            <div class="widgets-xforms-instance-inspector-source" id="widgets-xforms-instance-inspector">
                <xforms:group ref="instance('orbeon-xforms-instance-inspector-instance')">
                    <xforms:group ref="if (function = 'evaluate-xpath') then xml-output else
                            xxforms:instance(instance('orbeon-xforms-instance-inspector-instance')/current-instance)">
                        <!-- Display atomic value -->
                        <xforms:group ref=".[not(self::*)]">
                            <xforms:output value="."/>
                        </xforms:group>
                        <!-- Display element -->
                        <xforms:group ref=".[self::*]">
                            <xforms:group ref=".[instance('orbeon-xforms-instance-inspector-instance')/mode = 'formatted']">
                                <xforms:output mediatype="text/html"
                                        value="xxforms:serialize(xxforms:call-xpl(
                                                concat('oxf:/ops/utils/formatting/format',
                                                if (instance('orbeon-xforms-instance-inspector-instance')/function = 'evaluate-xpath') then '-multiple' else '',
                                                '.xpl'), 'data', ., 'data')/*, 'html')"/>
                            </xforms:group>
                            <xforms:group ref=".[instance('orbeon-xforms-instance-inspector-instance')/mode = 'plain']">
                                <xforms:output mediatype="text/html"
                                               value="replace(replace(replace(replace(xxforms:serialize(., 'xml'),
                                               '&amp;', '&amp;amp;'), '&lt;', '&amp;lt;'), '&#x0a;', '&lt;br>'), ' ', '&#160;')"/>
                            </xforms:group>
                        </xforms:group>
                    </xforms:group>
                </xforms:group>
            </div>
        </xforms:group>

    </xsl:template>

    <xsl:template name="widget:xforms-instance-inspector-model">
        <xforms:model id="orbeon-xforms-instance-inspector-model">

            <xforms:action ev:event="xforms-ready">
                <!-- Initialize itemset -->
                <xforms:action while="count(instance('orbeon-xforms-instance-inspector-itemset')/model) != count(xxforms:list-models())">
                    <xforms:insert context="instance('orbeon-xforms-instance-inspector-itemset')" nodeset="model"
                                   origin="instance('orbeon-xforms-instance-inspector-model-template')"/>
                    <xforms:setvalue ref="instance('orbeon-xforms-instance-inspector-itemset')/model[last()]/@id"
                                     value="xxforms:list-models()[count(instance('orbeon-xforms-instance-inspector-itemset')/model)]"/>
                    <xforms:action while="count(instance('orbeon-xforms-instance-inspector-itemset')/model[last()]/instance)
                                            != count(xxforms:list-instances(instance('orbeon-xforms-instance-inspector-itemset')/model[last()]/@id))">
                        <xforms:insert context="instance('orbeon-xforms-instance-inspector-itemset')/model[last()]" nodeset="instance"
                                       origin="instance('orbeon-xforms-instance-inspector-instance-template')"/>
                        <xforms:setvalue ref="instance('orbeon-xforms-instance-inspector-itemset')/model[last()]/instance[last()]/@id"
                                         value="xxforms:list-instances(instance('orbeon-xforms-instance-inspector-itemset')/model[last()]/@id)[count(instance('orbeon-xforms-instance-inspector-itemset')/model[last()]/instance)]"/>
                    </xforms:action>
                </xforms:action>
                <xforms:delete context="instance('orbeon-xforms-instance-inspector-itemset')" nodeset="model[starts-with(@id, 'orbeon-')]"/>
                <xforms:setvalue ref="instance('orbeon-xforms-instance-inspector-instance')/current-model" value="instance('orbeon-xforms-instance-inspector-itemset')/model[1]/@id"/>
            </xforms:action>
            <xforms:instance id="orbeon-xforms-instance-inspector-itemset">
                <models xmlns=""/>
            </xforms:instance>
            <xforms:instance id="orbeon-xforms-instance-inspector-model-template" xxforms:readonly="true">
                <model xmlns="" id=""/>
            </xforms:instance>
            <xforms:instance id="orbeon-xforms-instance-inspector-instance-template" xxforms:readonly="true">
                <instance xmlns="" id=""/>
            </xforms:instance>

            <xforms:instance id="orbeon-xforms-instance-inspector-instance">
                <instance xmlns="">
                    <current-model/>
                    <current-instance/>
                    <mode>formatted</mode>
                    <function/>
                    <xpath/>
                    <xml-output/>
                    <html-output/>
                </instance>
            </xforms:instance>
            <xforms:bind nodeset="instance('orbeon-xforms-instance-inspector-instance')">
                <xforms:bind nodeset="current-instance" readonly="false()"
                             calculate="if (. = '') then instance('orbeon-xforms-instance-inspector-itemset')
                             /model[@id = instance('orbeon-xforms-instance-inspector-instance')/current-model]/instance[1]/@id else ."/>
                <xforms:bind nodeset="xpath" readonly="../function != 'evaluate-xpath'"/>
            </xforms:bind>
            <xforms:setvalue ev:event="xforms-ready"
                    ref="instance('orbeon-xforms-instance-inspector-instance')/function">view-instance</xforms:setvalue>
        </xforms:model>

    </xsl:template>

</xsl:stylesheet>


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws

WEB-INF.zip (4K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: XForms:Select1 and Language-Option in Epilogue/Theme-portal?

Marcus-2
Hi Joseph,
thanks for the try, but i wanted this language option in my "menu" field, which is declared in the theme-plain.xsl now I tried the theme-widgets.xsl, but it does not place this option to my menu, but to the main body at the beginning of my page :-( I don't know how this should help me :-(
I#M not so confirm with the xsl language - so might there be a solution telling the stylesheet to cope that language option to my menu? But another problem is, that i need the language resources in the main-menu too! and that doesn't work either :-( Cause changing the language should not only change the rest of the page, but also the text of my menu - you understand? So based on the gov-forms the "resources" should there be available too if possible...
 
Just another similar problem i'm facing with the authentication-page. The "problem" seems to be that main-form wich surounds everything on that page. So i need two options in the epilogue:
1. A place where i can place my code, so after building the page it is "inside" that main-form - that would be for the löanguage-choice
2. A possibility to place some code on my view.xhtml, so that the epilogue won't copy it inside that main-form, cause my authentication-form doesn't work inside another form.
 
Or someone could tell me, how to workaround that two problems without copy the login-form to the epilogue or placing my main menu on every singel page. Hope that makes my problem some more clearer. Don't know at the moment how i could explain it more detaild :-( Perhaps by placing the sourcecode of my loaded page in the browser!?
 
<!DOCTYPE html
  PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
 <head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  <link rel="stylesheet" href="/kkbib-new/config/theme/orbeon.css" type="text/css">
  <link rel="stylesheet" href="/kkbib-new/xforms-server/xforms-min.css" type="text/css">
<script type="text/javascript" src="/kkbib-new/xforms-server/xforms-min.js"></script>
<script type="text/javascript">var opsXFormsServerBase = "http://localhost:8085/kkbib-new/";</script>
<link rel="stylesheet" type="text/css" href="/kkbib-new/apps/forms/style.css"> <link rel="stylesheet" href="/kkbib-new/config/theme/xforms-widgets.css" type="text/css"> <title>Search</title> <meta name="generator" content="Orbeon Forms 3.5.1.200703310056"> </head> <body> <table id="main" width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td> <div style="float: left"><img width="140" height="90" style="border: 0 #fff6d4; margin: 0;" src="/kkbib-new/apps/images/logo.jpg" alt="home"></div> </td> <td> <table> <tr> <td colspan="2"> <div><span class="menu-head">Bibliothek des Katharinenklosters Nürnberg (Datenbank)</span></div> </td> </tr> <tr> <td align="left">         |<a href="/kkbib-new/forms/">Administration</a>         |<a href="/kkbib-new/search/">Search</a>| </td> <td align="right"> |<a href="http://www.orbeon.com/">Orbeon.com</a>         | <xforms:select1 model="resources-model" ref="instance('language-instance')"> <xforms:label ref="instance('resources-instance')/search/labels/language-choice"></xforms:label> <xforms:item> <xforms:label ref="instance('resources-instance')/search/labels/lang-de"></xforms:label> <xforms:value>de</xforms:value> </xforms:item> <xforms:item> <xforms:label ref="instance('resources-instance')/search/labels/lang-en"></xforms:label> <xforms:value>en</xforms:value> </xforms:item> <xforms:send ev:event="xforms-value-changed" submission="update-language-submission"></xforms:send> </xforms:select1>         | </td> </tr> </table> </td> </tr> </table> <form class="xforms-form" action="/kkbib-new/xforms-server-submit" method="POST" onsubmit="return false">
    <input type="hidden" name="$static-state" value="session:91B99E68-C076-9F60-4116-09C0E9A7241B">
    <input type="hidden" name="$dynamic-state" value="session:9F6E5D1C-7BBE-5B28-9D95-8B210ACA100F">
    <input type="hidden" name="$server-events" value=""><input type="hidden" name="$client-state" value="">
    <input type="hidden" name="$repeat-tree" value=""><input type="hidden" name="$repeat-indexes" value="">
    <span class="xforms-loading-loading"> Loading... </span><span class="xforms-loading-none"></span><span class="xforms-loading-error"></span>
    <div><select id="xforms-element-45" class="xforms-control xforms-select1 xforms-select1-appearance-minimal"> <option value="en">English</option> <option value="fr">French</option></select>
    <label class="xforms-alert xforms-alert-inactive" for="xforms-element-45"></label></div> <div id="xforms-element-53" class="xforms-control xforms-output xforms-mediatype-text-html xforms-mediatype-text xforms-disabled"></div>
    <label class="xforms-alert xforms-alert-inactive xforms-disabled" for="xforms-element-53"></label><table class="forms-title-table"> <tr> <td><span id="xforms-element-54" class="xforms-control xforms-output">Datenbank - Volltextsuche</span></td> </tr> </table> <table class=""> <form id="loginForm" action="response.encodeURL(j_security_check)" method="POST"> <tr> <td>Username:</td> <td><input type="text" name="j_username" value="username"></td> </tr> <tr> <td>Password:</td> <td><input type="password" name="j_password" value="password"></td> </tr> <tr> <td>Remember Me</td> <td><input type="checkbox" name="j_rememberme" value="true"></td> </tr> <tr> <td></td> <td><input type="Submit"></td> </tr> </form> </table> </form> </body> </html>
SO, as you can see, the xforms:select1 isn't transformed to an option inside the main-form, and i think that it doesn't work because of that!?
And the form for authentication is placed inside the main-form, so it doesn't work there either - am i right?
The language-option should be placed with the epilogue, so that i the resources and also the option itself is placed on "every" page!
The login-form should only be inserted with my login.xhtml, but for that it is copied to the main-form and could not work either :-((
Perhaps that makes my problem clear enough!?
 
Thanks, Marcus
 
----- Original Message -----
Sent: Saturday, May 12, 2007 7:32 AM
Subject: Re: [ops-users] XForms:Select1 and Language-Option in Epilogue/Theme-portal?

Hi Marcus,
    I am not sure of whether I comprehended your requirement completely. However I think modifying the oxf:/config/xforms-widgets.xsl such as to add your desired template might help. I am attaching a case that might work for you. Replace the existing 'xforms-widgets.xsl' file with the attached 'xforms-widgets.xsl' file.
    Or the other option is to modify the oxf:/ops/pfc/xforms-eplilogue.xpl to include  your custom xsl file. I am attaching such a sample as well. For this to work extract the attached WEB-INF.zip into your 'project home' directory. hope either of  this might work for you.

Thanks
Joseph Lawrence 
Stabilix Solutions


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: XForms:Select1 and Language-Option in Epilogue/Theme-portal?

Joseph Lawrence
Hi Marcus,
    Is your menu build on xforms controls? In that case, I think that you need to go with the modification  of the  oxf:/ops/pfc/xforms-epilogue.xpl as  I mentioned  earlier.  I don't think that it would be possible to use the xforms control within the theme-plain.xsl as it is preprocessed by the xforms-to-xhtml converter. Here the stylesheet transformations are applied on the xhtml elements. Hence I believe that it won't be possible to place the xforms:select1 in here.

Thanks
Joseph Lawrence
Stabilix Solutions

Marcus <[hidden email]> wrote:
Hi Joseph,
thanks for the try, but i wanted this language option in my "menu" field, which is declared in the theme-plain.xsl now I tried the theme-widgets.xsl, but it does not place this option to my menu, but to the main body at the beginning of my page :-( I don't know how this should help me :-(
I#M not so confirm with the xsl language - so might there be a solution telling the stylesheet to cope that language option to my menu? But another problem is, that i need the language resources in the main-menu too! and that doesn't work either :-( Cause changing the language should not only change the rest of the page, but also the text of my menu - you understand? So based on the gov-forms the "resources" should there be available too if possible...
 
Just another similar problem i'm facing with the authentication-page. The "problem" seems to be that main-form wich surounds everything on that page. So i need two options in the epilogue:
1. A place where i can place my code, so after building the page it is "inside" that main-form - that would be for the löanguage-choice
2. A possibility to place some code on my view.xhtml, so that the epilogue won't copy it inside that main-form, cause my authentication-form doesn't work inside another form.
 
Or someone could tell me, how to workaround that two problems without copy the login-form to the epilogue or placing my main menu on every singel page. Hope that makes my problem some more clearer. Don't know at the moment how i could explain it more detaild :-( Perhaps by placing the sourcecode of my loaded page in the browser!?
 
<!DOCTYPE html
PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="stylesheet" href="/kkbib-new/config/theme/orbeon.css" type="text/css">
<link rel="stylesheet" href="/kkbib-new/xforms-server/xforms-min.css" type="text/css">
<script type="text/javascript" src="/kkbib-new/xforms-server/xforms-min.js"></script>
<script type="text/javascript">var opsXFormsServerBase = "http://localhost:8085/kkbib-new/";</script>
<link rel="stylesheet" type="text/css" href="/kkbib-new/apps/forms/style.css">
<link rel="stylesheet" href="/kkbib-new/config/theme/xforms-widgets.css" type="text/css">
<title>Search</title>
<meta name="generator" content="Orbeon Forms 3.5.1.200703310056">
</head>
<body>
<table id="main" width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td>
<div style="float: left"><img width="140" height="90" style="border: 0 #fff6d4; margin: 0;" src="/kkbib-new/apps/images/logo.jpg" alt="home"></div>
</td>
<td>
<table>
<tr>
<td colspan="2">
<div><span class="menu-head">Bibliothek des Katharinenklosters Nürnberg (Datenbank)</span></div>
</td>
</tr>
<tr>
<td align="left">
        |<a href="/kkbib-new/forms/">Administration</a>
        |<a href="/kkbib-new/search/">Search</a>|
</td>
<td align="right">
|<a href="http://www.orbeon.com/">Orbeon.com</a>
        |
<xforms:select1 model="resources-model" ref="instance('language-instance')">
<xforms:label ref="instance('resources-instance')/search/labels/language-choice"></xforms:label>
<xforms:item>
<xforms:label ref="instance('resources-instance')/search/labels/lang-de"></xforms:label>
<xforms:value>de</xforms:value>
</xforms:item>
<xforms:item>
<xforms:label ref="instance('resources-instance')/search/labels/lang-en"></xforms:label>
<xforms:value>en</xforms:value>
</xforms:item>
<xforms:send ev:event="xforms-value-changed" submission="update-language-submission"></xforms:send>
</xforms:select1>
        |
</td>
</tr>
</table>
</td>
</tr>
</table>
<form class="xforms-form" action="/kkbib-new/xforms-server-submit" method="POST" onsubmit="return false">
    <input type="hidden" name="$static-state" value="session:91B99E68-C076-9F60-4116-09C0E9A7241B">
    <input type="hidden" name="$dynamic-state" value="session:9F6E5D1C-7BBE-5B28-9D95-8B210ACA100F">
    <input type="hidden" name="$server-events" value=""><input type="hidden" name="$client-state" value="">
    <input type="hidden" name="$repeat-tree" value=""><input type="hidden" name="$repeat-indexes" value="">
    <span class="xforms-loading-loading">
Loading...
</span><span class="xforms-loading-none"></span><span class="xforms-loading-error"></span>
    <div><select id="xforms-element-45" class="xforms-control xforms-select1 xforms-select1-appearance-minimal">
<option value="en">English</option>
<option value="fr">French</option></select>
    <label class="xforms-alert xforms-alert-inactive" for="xforms-element-45"></label></div>
<div id="xforms-element-53" class="xforms-control xforms-output xforms-mediatype-text-html xforms-mediatype-text xforms-disabled"></div>
    <label class="xforms-alert xforms-alert-inactive xforms-disabled" for="xforms-element-53"></label><table class="forms-title-table">
<tr>
<td><span id="xforms-element-54" class="xforms-control xforms-output">Datenbank - Volltextsuche</span></td>
</tr>
</table>
<table class="">
<form id="loginForm" action="response.encodeURL(j_security_check)" method="POST">
<tr>
<td>Username:</td>
<td><input type="text" name="j_username" value="username"></td>
</tr>
<tr>
<td>Password:</td>
<td><input type="password" name="j_password" value="password"></td>
</tr>
<tr>
<td>Remember Me</td>
<td><input type="checkbox" name="j_rememberme" value="true"></td>
</tr>
<tr>
<td></td>
<td><input type="Submit"></td>
</tr>
</form>
</table>
</form>
</body>
</html>
SO, as you can see, the xforms:select1 isn't transformed to an option inside the main-form, and i think that it doesn't work because of that!?
And the form for authentication is placed inside the main-form, so it doesn't work there either - am i right?
The language-option should be placed with the epilogue, so that i the resources and also the option itself is placed on "every" page!
The login-form should only be inserted with my login.xhtml, but for that it is copied to the main-form and could not work either :-((
Perhaps that makes my problem clear enough!?
 
Thanks, Marcus
 
----- Original Message -----
Sent: Saturday, May 12, 2007 7:32 AM
Subject: Re: [ops-users] XForms:Select1 and Language-Option in Epilogue/Theme-portal?

Hi Marcus,
    I am not sure of whether I comprehended your requirement completely. However I think modifying the oxf:/config/xforms-widgets.xsl such as to add your desired template might help. I am attaching a case that might work for you. Replace the existing 'xforms-widgets.xsl' file with the attached 'xforms-widgets.xsl' file.
    Or the other option is to modify the oxf:/ops/pfc/xforms-eplilogue.xpl to include  your custom xsl file. I am attaching such a sample as well. For this to work extract the attached WEB-INF.zip into your 'project home' directory. hope either of  this might work for you.

Thanks
Joseph Lawrence 
Stabilix Solutions

--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws


Take the Internet to Go: Yahoo!Go puts the Internet in your pocket: mail, news, photos & more.

--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: XForms:Select1 and Language-Option in Epilogue/Theme-portal?

Alessandro Vernet
Administrator
In reply to this post by Marcus-2
Marcus,

I am confused :). Could you take one problem you have (let's solve
issues one at a time), and formulate it in the form of code you can
share with us and that run the XForms sandbox? I.e. "I have this is
code, it does X, but I would like it to do Y".

Alex

On 5/12/07, Marcus <[hidden email]> wrote:

>
>
> Hi Joseph,
> thanks for the try, but i wanted this language option in my "menu" field,
> which is declared in the theme-plain.xsl now I tried the theme-widgets.xsl,
> but it does not place this option to my menu, but to the main body at the
> beginning of my page :-( I don't know how this should help me :-(
> I#M not so confirm with the xsl language - so might there be a solution
> telling the stylesheet to cope that language option to my menu? But another
> problem is, that i need the language resources in the main-menu too! and
> that doesn't work either :-( Cause changing the language should not only
> change the rest of the page, but also the text of my menu - you understand?
> So based on the gov-forms the "resources" should there be available too if
> possible...
>
> Just another similar problem i'm facing with the authentication-page. The
> "problem" seems to be that main-form wich surounds everything on that page.
> So i need two options in the epilogue:
> 1. A place where i can place my code, so after building the page it is
> "inside" that main-form - that would be for the löanguage-choice
> 2. A possibility to place some code on my view.xhtml, so that the epilogue
> won't copy it inside that main-form, cause my authentication-form doesn't
> work inside another form.
>
> Or someone could tell me, how to workaround that two problems without copy
> the login-form to the epilogue or placing my main menu on every singel page.
> Hope that makes my problem some more clearer. Don't know at the moment how i
> could explain it more detaild :-( Perhaps by placing the sourcecode of my
> loaded page in the browser!?
>
> <!DOCTYPE html
>  PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
> <html>
>  <head>
>  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
>  <link rel="stylesheet"
> href="/kkbib-new/config/theme/orbeon.css" type="text/css">
>  <link rel="stylesheet"
> href="/kkbib-new/xforms-server/xforms-min.css"
> type="text/css">
>  <script type="text/javascript"
> src="/kkbib-new/xforms-server/xforms-min.js"></script>
>  <script type="text/javascript">var opsXFormsServerBase =
> "http://localhost:8085/kkbib-new/";</script>
>  <link rel="stylesheet" type="text/css"
> href="/kkbib-new/apps/forms/style.css">
>  <link rel="stylesheet"
> href="/kkbib-new/config/theme/xforms-widgets.css"
> type="text/css">
>  <title>Search</title>
>  <meta name="generator" content="Orbeon Forms 3.5.1.200703310056">
>  </head>
>  <body>
>  <table id="main" width="100%" border="0" cellpadding="0" cellspacing="0">
>  <tr>
>  <td>
>  <div style="float: left"><img width="140" height="90" style="border: 0
> #fff6d4; margin: 0;" src="/kkbib-new/apps/images/logo.jpg"
> alt="home"></div>
>  </td>
>  <td>
>  <table>
>  <tr>
>  <td colspan="2">
>  <div><span class="menu-head">Bibliothek des Katharinenklosters Nürnberg
> (Datenbank)</span></div>
>  </td>
>  </tr>
>  <tr>
>  <td align="left">
>         |<a href="/kkbib-new/forms/">Administration</a>
>         |<a href="/kkbib-new/search/">Search</a>|
>  </td>
>  <td align="right">
>  |<a href="http://www.orbeon.com/">Orbeon.com</a>
>         |
>  <xforms:select1 model="resources-model"
> ref="instance('language-instance')">
>  <xforms:label
> ref="instance('resources-instance')/search/labels/language-choice"></xforms:label>
>  <xforms:item>
>  <xforms:label
> ref="instance('resources-instance')/search/labels/lang-de"></xforms:label>
>  <xforms:value>de</xforms:value>
>  </xforms:item>
>  <xforms:item>
>  <xforms:label
> ref="instance('resources-instance')/search/labels/lang-en"></xforms:label>
>  <xforms:value>en</xforms:value>
>  </xforms:item>
>  <xforms:send ev:event="xforms-value-changed"
> submission="update-language-submission"></xforms:send>
>  </xforms:select1>
>         |
>  </td>
>  </tr>
>  </table>
>  </td>
>  </tr>
>  </table>
>  <form class="xforms-form"
> action="/kkbib-new/xforms-server-submit" method="POST"
> onsubmit="return false">
>     <input type="hidden" name="$static-state"
> value="session:91B99E68-C076-9F60-4116-09C0E9A7241B">
>     <input type="hidden" name="$dynamic-state"
> value="session:9F6E5D1C-7BBE-5B28-9D95-8B210ACA100F">
>     <input type="hidden" name="$server-events" value=""><input type="hidden"
> name="$client-state" value="">
>     <input type="hidden" name="$repeat-tree" value=""><input type="hidden"
> name="$repeat-indexes" value="">
>     <span class="xforms-loading-loading">
>  Loading...
>  </span><span class="xforms-loading-none"></span><span
> class="xforms-loading-error"></span>
>     <div><select id="xforms-element-45" class="xforms-control xforms-select1
> xforms-select1-appearance-minimal">
>  <option value="en">English</option>
>  <option value="fr">French</option></select>
>     <label class="xforms-alert xforms-alert-inactive"
> for="xforms-element-45"></label></div>
>  <div id="xforms-element-53" class="xforms-control xforms-output
> xforms-mediatype-text-html xforms-mediatype-text xforms-disabled"></div>
>     <label class="xforms-alert xforms-alert-inactive xforms-disabled"
> for="xforms-element-53"></label><table class="forms-title-table">
>  <tr>
>  <td><span id="xforms-element-54" class="xforms-control
> xforms-output">Datenbank - Volltextsuche</span></td>
>  </tr>
>  </table>
>  <table class="">
>  <form id="loginForm" action="response.encodeURL(j_security_check)"
> method="POST">
>  <tr>
>  <td>Username:</td>
>  <td><input type="text" name="j_username" value="username"></td>
>  </tr>
>  <tr>
>  <td>Password:</td>
>  <td><input type="password" name="j_password" value="password"></td>
>  </tr>
>  <tr>
>  <td>Remember Me</td>
>  <td><input type="checkbox" name="j_rememberme" value="true"></td>
>  </tr>
>  <tr>
>  <td></td>
>  <td><input type="Submit"></td>
>  </tr>
>  </form>
>  </table>
>  </form>
>  </body>
> </html>
>
> SO, as you can see, the xforms:select1 isn't transformed to an option inside
> the main-form, and i think that it doesn't work because of that!?
> And the form for authentication is placed inside the main-form, so it
> doesn't work there either - am i right?
> The language-option should be placed with the epilogue, so that i the
> resources and also the option itself is placed on "every" page!
> The login-form should only be inserted with my login.xhtml, but for that it
> is copied to the main-form and could not work either :-((
> Perhaps that makes my problem clear enough!?
>
> Thanks, Marcus
>
>
> ----- Original Message -----
> From: Joseph Lawrence
> To: [hidden email]
> Sent: Saturday, May 12, 2007 7:32 AM
> Subject: Re: [ops-users] XForms:Select1 and Language-Option in
> Epilogue/Theme-portal?
>
> Hi Marcus,
>     I am not sure of whether I comprehended your requirement completely.
> However I think modifying the oxf:/config/xforms-widgets.xsl such as to add
> your desired template might help. I am attaching a case that might work for
> you. Replace the existing 'xforms-widgets.xsl' file with the attached
> 'xforms-widgets.xsl' file.
>     Or the other option is to modify the oxf:/ops/pfc/xforms-eplilogue.xpl
> to include  your custom xsl file. I am attaching such a sample as well. For
> this to work extract the attached WEB-INF.zip into your 'project home'
> directory. hope either of  this might work for you.
>
> Thanks
> Joseph Lawrence
> Stabilix Solutions
>
>
> --
> You receive this message as a subscriber of the [hidden email]
> mailing list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
>
>

--
Orbeon Forms - Web 2.0 Forms for the Enterprise
http://www.orbeon.com/



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: XForms:Select1 and Language-Option in Epilogue/Theme-portal?

Marcus-2
Hi Alex,
sorry for that, didn't thought it would be so confusing and that i shared
the whole problem at ones!
But I'm afraid, i dont think, that i can give you peace of code to enter to
the xforms-sandbox, cause i thing it is just like Joseph said a problem of
"WHEN" is which part of the code tranformed :-(
But while i'm not so confirm with that and how which part is tranformed, i
can't give you much more details :-((

1. I placed the xforms:select1 part into the theme-plain.xsl just where in
the original theme the google-search was placed, but as you can see in the
source code i inserted, this part isn't transformed and therefore does not
work in my menu :-(

2. The second part i mentioned in my last mail - i also opend another thread
with "Authentication problem" - sorry to mix those two up. But as both are
tied with the question - when and where is the "main-form" placed around
every page, i think for working with Ajax, i thought it is ok to mention
both problems in one mail...But i can place the information on that problem
in the other thread as well...

Sorry i can't give you more code on the language-option problem :-(
Any questions on that, or do you face my problem now?
Thanks, Marcus


----- Original Message -----
From: "Alessandro Vernet" <[hidden email]>
To: <[hidden email]>
Sent: Saturday, May 12, 2007 5:30 PM
Subject: Re: [ops-users] XForms:Select1 and Language-Option in
Epilogue/Theme-portal?


Marcus,

I am confused :). Could you take one problem you have (let's solve
issues one at a time), and formulate it in the form of code you can
share with us and that run the XForms sandbox? I.e. "I have this is
code, it does X, but I would like it to do Y".

Alex

On 5/12/07, Marcus <[hidden email]> wrote:

>
>
> Hi Joseph,
> thanks for the try, but i wanted this language option in my "menu" field,
> which is declared in the theme-plain.xsl now I tried the
> theme-widgets.xsl,
> but it does not place this option to my menu, but to the main body at the
> beginning of my page :-( I don't know how this should help me :-(
> I#M not so confirm with the xsl language - so might there be a solution
> telling the stylesheet to cope that language option to my menu? But
> another
> problem is, that i need the language resources in the main-menu too! and
> that doesn't work either :-( Cause changing the language should not only
> change the rest of the page, but also the text of my menu - you
> understand?
> So based on the gov-forms the "resources" should there be available too if
> possible...
>
> Just another similar problem i'm facing with the authentication-page. The
> "problem" seems to be that main-form wich surounds everything on that
> page.
> So i need two options in the epilogue:
> 1. A place where i can place my code, so after building the page it is
> "inside" that main-form - that would be for the löanguage-choice
> 2. A possibility to place some code on my view.xhtml, so that the epilogue
> won't copy it inside that main-form, cause my authentication-form doesn't
> work inside another form.
>
> Or someone could tell me, how to workaround that two problems without copy
> the login-form to the epilogue or placing my main menu on every singel
> page.
> Hope that makes my problem some more clearer. Don't know at the moment how
> i
> could explain it more detaild :-( Perhaps by placing the sourcecode of my
> loaded page in the browser!?
>
> <!DOCTYPE html
>  PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
> <html>
>  <head>
>  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
>  <link rel="stylesheet"
> href="/kkbib-new/config/theme/orbeon.css" type="text/css">
>  <link rel="stylesheet"
> href="/kkbib-new/xforms-server/xforms-min.css"
> type="text/css">
>  <script type="text/javascript"
> src="/kkbib-new/xforms-server/xforms-min.js"></script>
>  <script type="text/javascript">var opsXFormsServerBase =
> "http://localhost:8085/kkbib-new/";</script>
>  <link rel="stylesheet" type="text/css"
> href="/kkbib-new/apps/forms/style.css">
>  <link rel="stylesheet"
> href="/kkbib-new/config/theme/xforms-widgets.css"
> type="text/css">
>  <title>Search</title>
>  <meta name="generator" content="Orbeon Forms 3.5.1.200703310056">
>  </head>
>  <body>
>  <table id="main" width="100%" border="0" cellpadding="0" cellspacing="0">
>  <tr>
>  <td>
>  <div style="float: left"><img width="140" height="90" style="border: 0
> #fff6d4; margin: 0;" src="/kkbib-new/apps/images/logo.jpg"
> alt="home"></div>
>  </td>
>  <td>
>  <table>
>  <tr>
>  <td colspan="2">
>  <div><span class="menu-head">Bibliothek des Katharinenklosters Nürnberg
> (Datenbank)</span></div>
>  </td>
>  </tr>
>  <tr>
>  <td align="left">
>         |<a href="/kkbib-new/forms/">Administration</a>
>         |<a href="/kkbib-new/search/">Search</a>|
>  </td>
>  <td align="right">
>  |<a href="http://www.orbeon.com/">Orbeon.com</a>
>         |
>  <xforms:select1 model="resources-model"
> ref="instance('language-instance')">
>  <xforms:label
> ref="instance('resources-instance')/search/labels/language-choice"></xforms:label>
>  <xforms:item>
>  <xforms:label
> ref="instance('resources-instance')/search/labels/lang-de"></xforms:label>
>  <xforms:value>de</xforms:value>
>  </xforms:item>
>  <xforms:item>
>  <xforms:label
> ref="instance('resources-instance')/search/labels/lang-en"></xforms:label>
>  <xforms:value>en</xforms:value>
>  </xforms:item>
>  <xforms:send ev:event="xforms-value-changed"
> submission="update-language-submission"></xforms:send>
>  </xforms:select1>
>         |
>  </td>
>  </tr>
>  </table>
>  </td>
>  </tr>
>  </table>
>  <form class="xforms-form"
> action="/kkbib-new/xforms-server-submit" method="POST"
> onsubmit="return false">
>     <input type="hidden" name="$static-state"
> value="session:91B99E68-C076-9F60-4116-09C0E9A7241B">
>     <input type="hidden" name="$dynamic-state"
> value="session:9F6E5D1C-7BBE-5B28-9D95-8B210ACA100F">
>     <input type="hidden" name="$server-events" value=""><input
> type="hidden"
> name="$client-state" value="">
>     <input type="hidden" name="$repeat-tree" value=""><input type="hidden"
> name="$repeat-indexes" value="">
>     <span class="xforms-loading-loading">
>  Loading...
>  </span><span class="xforms-loading-none"></span><span
> class="xforms-loading-error"></span>
>     <div><select id="xforms-element-45" class="xforms-control
> xforms-select1
> xforms-select1-appearance-minimal">
>  <option value="en">English</option>
>  <option value="fr">French</option></select>
>     <label class="xforms-alert xforms-alert-inactive"
> for="xforms-element-45"></label></div>
>  <div id="xforms-element-53" class="xforms-control xforms-output
> xforms-mediatype-text-html xforms-mediatype-text xforms-disabled"></div>
>     <label class="xforms-alert xforms-alert-inactive xforms-disabled"
> for="xforms-element-53"></label><table class="forms-title-table">
>  <tr>
>  <td><span id="xforms-element-54" class="xforms-control
> xforms-output">Datenbank - Volltextsuche</span></td>
>  </tr>
>  </table>
>  <table class="">
>  <form id="loginForm" action="response.encodeURL(j_security_check)"
> method="POST">
>  <tr>
>  <td>Username:</td>
>  <td><input type="text" name="j_username" value="username"></td>
>  </tr>
>  <tr>
>  <td>Password:</td>
>  <td><input type="password" name="j_password" value="password"></td>
>  </tr>
>  <tr>
>  <td>Remember Me</td>
>  <td><input type="checkbox" name="j_rememberme" value="true"></td>
>  </tr>
>  <tr>
>  <td></td>
>  <td><input type="Submit"></td>
>  </tr>
>  </form>
>  </table>
>  </form>
>  </body>
> </html>
>
> SO, as you can see, the xforms:select1 isn't transformed to an option
> inside
> the main-form, and i think that it doesn't work because of that!?
> And the form for authentication is placed inside the main-form, so it
> doesn't work there either - am i right?
> The language-option should be placed with the epilogue, so that i the
> resources and also the option itself is placed on "every" page!
> The login-form should only be inserted with my login.xhtml, but for that
> it
> is copied to the main-form and could not work either :-((
> Perhaps that makes my problem clear enough!?
>
> Thanks, Marcus
>
>
> ----- Original Message -----
> From: Joseph Lawrence
> To: [hidden email]
> Sent: Saturday, May 12, 2007 7:32 AM
> Subject: Re: [ops-users] XForms:Select1 and Language-Option in
> Epilogue/Theme-portal?
>
> Hi Marcus,
>     I am not sure of whether I comprehended your requirement completely.
> However I think modifying the oxf:/config/xforms-widgets.xsl such as to
> add
> your desired template might help. I am attaching a case that might work
> for
> you. Replace the existing 'xforms-widgets.xsl' file with the attached
> 'xforms-widgets.xsl' file.
>     Or the other option is to modify the oxf:/ops/pfc/xforms-eplilogue.xpl
> to include  your custom xsl file. I am attaching such a sample as well.
> For
> this to work extract the attached WEB-INF.zip into your 'project home'
> directory. hope either of  this might work for you.
>
> Thanks
> Joseph Lawrence
> Stabilix Solutions
>
>
> --
> You receive this message as a subscriber of the [hidden email]
> mailing list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
>
>

--
Orbeon Forms - Web 2.0 Forms for the Enterprise
http://www.orbeon.com/




--------------------------------------------------------------------------------


>
> --
> You receive this message as a subscriber of the [hidden email]
> mailing list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
>




--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: XForms:Select1 and Language-Option in Epilogue/Theme-portal?

Ryan Puddephatt
Marcus,
 1. the theme-plain.xsl transforms the final html, it cannot add xforms controls, you will have to add another transform to the xforms-epilogue, before/after the processor that transforms xforms-widgets.xsl.

Sorry can't help with 2.

Ryan

Ryan Puddephatt
Software Engineer
 
Teleflex Group - IT UK
1 Michaelson Square
Livingston
West Lothian
Scotland
EH54 7DP
 
e> [hidden email]
t> +44(0)1506 407 110
f> +44(0)1506 407 108
w> www.teleflex.com

"Measuring programming progress by lines of code is like measuring aircraft building progress by weight." - Bill Gates
"If you lie to the compiler, it will get its revenge." - Henry Spencer
"It's hard enough to find an error in your code when you're looking for it; it's even harder when you've assumed your code is error-free." - Steve McConnell
"If builders built buildings the way programmers wrote programs, then the first woodpecker that came along would destroy civilization." - Gerald Weinberg



Marcus wrote:
Hi Alex,
sorry for that, didn't thought it would be so confusing and that i shared the whole problem at ones!
But I'm afraid, i dont think, that i can give you peace of code to enter to the xforms-sandbox, cause i thing it is just like Joseph said a problem of "WHEN" is which part of the code tranformed :-(
But while i'm not so confirm with that and how which part is tranformed, i can't give you much more details :-((

1. I placed the xforms:select1 part into the theme-plain.xsl just where in the original theme the google-search was placed, but as you can see in the source code i inserted, this part isn't transformed and therefore does not work in my menu :-(

2. The second part i mentioned in my last mail - i also opend another thread with "Authentication problem" - sorry to mix those two up. But as both are tied with the question - when and where is the "main-form" placed around every page, i think for working with Ajax, i thought it is ok to mention both problems in one mail...But i can place the information on that problem in the other thread as well...

Sorry i can't give you more code on the language-option problem :-(
Any questions on that, or do you face my problem now?
Thanks, Marcus


----- Original Message ----- From: "Alessandro Vernet" [hidden email]
To: [hidden email]
Sent: Saturday, May 12, 2007 5:30 PM
Subject: Re: [ops-users] XForms:Select1 and Language-Option in Epilogue/Theme-portal?


Marcus,

I am confused :). Could you take one problem you have (let's solve
issues one at a time), and formulate it in the form of code you can
share with us and that run the XForms sandbox? I.e. "I have this is
code, it does X, but I would like it to do Y".

Alex

On 5/12/07, Marcus [hidden email] wrote:


Hi Joseph,
thanks for the try, but i wanted this language option in my "menu" field,
which is declared in the theme-plain.xsl now I tried the theme-widgets.xsl,
but it does not place this option to my menu, but to the main body at the
beginning of my page :-( I don't know how this should help me :-(
I#M not so confirm with the xsl language - so might there be a solution
telling the stylesheet to cope that language option to my menu? But another
problem is, that i need the language resources in the main-menu too! and
that doesn't work either :-( Cause changing the language should not only
change the rest of the page, but also the text of my menu - you understand?
So based on the gov-forms the "resources" should there be available too if
possible...

Just another similar problem i'm facing with the authentication-page. The
"problem" seems to be that main-form wich surounds everything on that page.
So i need two options in the epilogue:
1. A place where i can place my code, so after building the page it is
"inside" that main-form - that would be for the löanguage-choice
2. A possibility to place some code on my view.xhtml, so that the epilogue
won't copy it inside that main-form, cause my authentication-form doesn't
work inside another form.

Or someone could tell me, how to workaround that two problems without copy
the login-form to the epilogue or placing my main menu on every singel page.
Hope that makes my problem some more clearer. Don't know at the moment how i
could explain it more detaild :-( Perhaps by placing the sourcecode of my
loaded page in the browser!?

<!DOCTYPE html
 PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
 <head>
 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
 <link rel="stylesheet"
href="/kkbib-new/config/theme/orbeon.css" type="text/css">
 <link rel="stylesheet"
href="/kkbib-new/xforms-server/xforms-min.css"
type="text/css">
 <script type="text/javascript"
src="/kkbib-new/xforms-server/xforms-min.js"></script>
 <script type="text/javascript">var opsXFormsServerBase =
"http://localhost:8085/kkbib-new/";</script>
 <link rel="stylesheet" type="text/css"
href="/kkbib-new/apps/forms/style.css">
 <link rel="stylesheet"
href="/kkbib-new/config/theme/xforms-widgets.css"
type="text/css">
 <title>Search</title>
 <meta name="generator" content="Orbeon Forms 3.5.1.200703310056">
 </head>
 <body>
 <table id="main" width="100%" border="0" cellpadding="0" cellspacing="0">
 <tr>
 <td>
 <div style="float: left"><img width="140" height="90" style="border: 0
#fff6d4; margin: 0;" src="/kkbib-new/apps/images/logo.jpg"
alt="home"></div>
 </td>
 <td>
 <table>
 <tr>
 <td colspan="2">
 <div><span class="menu-head">Bibliothek des Katharinenklosters Nürnberg
(Datenbank)</span></div>
 </td>
 </tr>
 <tr>
 <td align="left">
        |<a href="/kkbib-new/forms/">Administration</a>
        |<a href="/kkbib-new/search/">Search</a>|
 </td>
 <td align="right">
 |<a href="http://www.orbeon.com/">Orbeon.com</a>
        |
 <xforms:select1 model="resources-model"
ref="instance('language-instance')">
 <xforms:label
ref="instance('resources-instance')/search/labels/language-choice"></xforms:label>
 <xforms:item>
 <xforms:label
ref="instance('resources-instance')/search/labels/lang-de"></xforms:label>
 <xforms:value>de</xforms:value>
 </xforms:item>
 <xforms:item>
 <xforms:label
ref="instance('resources-instance')/search/labels/lang-en"></xforms:label>
 <xforms:value>en</xforms:value>
 </xforms:item>
 <xforms:send ev:event="xforms-value-changed"
submission="update-language-submission"></xforms:send>
 </xforms:select1>
        |
 </td>
 </tr>
 </table>
 </td>
 </tr>
 </table>
 <form class="xforms-form"
action="/kkbib-new/xforms-server-submit" method="POST"
onsubmit="return false">
    <input type="hidden" name="$static-state"
value="session:91B99E68-C076-9F60-4116-09C0E9A7241B">
    <input type="hidden" name="$dynamic-state"
value="session:9F6E5D1C-7BBE-5B28-9D95-8B210ACA100F">
    <input type="hidden" name="$server-events" value=""><input type="hidden"
name="$client-state" value="">
    <input type="hidden" name="$repeat-tree" value=""><input type="hidden"
name="$repeat-indexes" value="">
    <span class="xforms-loading-loading">
 Loading...
 </span><span class="xforms-loading-none"></span><span
class="xforms-loading-error"></span>
    <div><select id="xforms-element-45" class="xforms-control xforms-select1
xforms-select1-appearance-minimal">
 <option value="en">English</option>
 <option value="fr">French</option></select>
    <label class="xforms-alert xforms-alert-inactive"
for="xforms-element-45"></label></div>
 <div id="xforms-element-53" class="xforms-control xforms-output
xforms-mediatype-text-html xforms-mediatype-text xforms-disabled"></div>
    <label class="xforms-alert xforms-alert-inactive xforms-disabled"
for="xforms-element-53"></label><table class="forms-title-table">
 <tr>
 <td><span id="xforms-element-54" class="xforms-control
xforms-output">Datenbank - Volltextsuche</span></td>
 </tr>
 </table>
 <table class="">
 <form id="loginForm" action="response.encodeURL(j_security_check)"
method="POST">
 <tr>
 <td>Username:</td>
 <td><input type="text" name="j_username" value="username"></td>
 </tr>
 <tr>
 <td>Password:</td>
 <td><input type="password" name="j_password" value="password"></td>
 </tr>
 <tr>
 <td>Remember Me</td>
 <td><input type="checkbox" name="j_rememberme" value="true"></td>
 </tr>
 <tr>
 <td></td>
 <td><input type="Submit"></td>
 </tr>
 </form>
 </table>
 </form>
 </body>
</html>

SO, as you can see, the xforms:select1 isn't transformed to an option inside
the main-form, and i think that it doesn't work because of that!?
And the form for authentication is placed inside the main-form, so it
doesn't work there either - am i right?
The language-option should be placed with the epilogue, so that i the
resources and also the option itself is placed on "every" page!
The login-form should only be inserted with my login.xhtml, but for that it
is copied to the main-form and could not work either :-((
Perhaps that makes my problem clear enough!?

Thanks, Marcus


----- Original Message -----
From: Joseph Lawrence
To: [hidden email]
Sent: Saturday, May 12, 2007 7:32 AM
Subject: Re: [ops-users] XForms:Select1 and Language-Option in
Epilogue/Theme-portal?

Hi Marcus,
    I am not sure of whether I comprehended your requirement completely.
However I think modifying the oxf:/config/xforms-widgets.xsl such as to add
your desired template might help. I am attaching a case that might work for
you. Replace the existing 'xforms-widgets.xsl' file with the attached
'xforms-widgets.xsl' file.
    Or the other option is to modify the oxf:/ops/pfc/xforms-eplilogue.xpl
to include  your custom xsl file. I am attaching such a sample as well. For
this to work extract the attached WEB-INF.zip into your 'project home'
directory. hope either of  this might work for you.

Thanks
Joseph Lawrence
Stabilix Solutions


--
You receive this message as a subscriber of the [hidden email]
mailing list.
To unsubscribe: [hidden email]
For general help: [hidden email]
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws





-- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: [hidden email] For general help: [hidden email] ObjectWeb mailing lists service home page: http://www.objectweb.org/wws


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: XForms:Select1 and Language-Option in Epilogue/Theme-portal?

Alessandro Vernet
Administrator
In reply to this post by Marcus-2
Marcus,

On 5/12/07, Marcus <[hidden email]> wrote:
> But I'm afraid, i dont think, that i can give you peace of code to enter to
> the xforms-sandbox, cause i thing it is just like Joseph said a problem of
> "WHEN" is which part of the code tranformed :-(

If one file running in the sandbox is not enough, can you attach all
the files we need to reproduce what you ahve, and tell us where we
need to place those files in the standard ops.war to reproduce the
problem? Put detailed instructions in your message on how to deploy
those files, describe the result you get, and how that result it
different from what you would like to have. I think that will help.

> 2. The second part i mentioned in my last mail - i also opend another thread
> with "Authentication problem"

If there is another thread, I suggest we forget about this one here.
Let's leave that to the other thread.

Alex
--
Orbeon Forms - Web 2.0 Forms for the Enterprise
http://www.orbeon.com/



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: XForms:Select1 and Language-Option in Epilogue/Theme-portal?

Marcus-2
Hi Alex,

i don't know if you got my problem right now, but is it that difficult to
understand? At the moment i don't know what i can do more to discribe my
problem! Ok, let my try another detailed instruction path, so that you can
follow my problem. Also if i think that Ryan my have answered it right now,
i'm not sure how i can do this and perhaps some this would be a great thing
to have for the epilogue without someone have to workaround by himself...

OK, Ryan wrote, that it is not possible to add xforms.controls with the
theme-plain.xsl i need a possibility to do such a thing. In the discription
of the epilogue there was written, that this is the best place to add i.e.
menus for the hole application. But i need xforms-control for my menu, also
if i want to use the menu-example.

So, a detaild discription on how to reproduce what i need and what doesn't
work.
1. Take the goverment-example
2. Copy the code-lines for the language option:

          <xforms:select1 model="resources-model"
ref="instance('language-instance')">
           <xforms:label
ref="instance('resources-instance')/search/labels/language-choice"/>
           <xforms:item>
            <xforms:label
ref="instance('resources-instance')/search/labels/lang-de"/>
            <xforms:value>de</xforms:value>
           </xforms:item>
           <xforms:item>
            <xforms:label
ref="instance('resources-instance')/search/labels/lang-en"/>
            <xforms:value>en</xforms:value>
           </xforms:item>
           <xforms:send ev:event="xforms-value-changed"
submission="update-language-submission"/>
          </xforms:select1>

3. Try to place that peace of code lets say to the theme-portal or
theme-plain, so that we can have this language option in our main-menu and
not have to place it on every singel page. Does this make more clear what i
tryed to do and what i need?

Thats just all, so i hope i have not to copy the whole app. That should be
enough to reproduce my tryings, or isn't it?

Back to Ryans answer:
>the theme-plain.xsl transforms the final html, it cannot add xforms
>controls, you will have to add another transform to the xforms-epilogue,
>before/after the processor that transforms xforms-widgets.xsl.

But i don't know how this fits the point, that the epilogue or the themes
can be used to inserting a global menu i.e. on every page, when
xform-controls don't work there :-( I think that is a bit missleading in the
discribing for what the epilogue is useful, doesn't it?

Thanks, Marcus



----- Original Message -----
From: "Alessandro Vernet" <[hidden email]>
To: <[hidden email]>
Sent: Saturday, May 12, 2007 7:16 PM
Subject: Re: [ops-users] XForms:Select1 and Language-Option in
Epilogue/Theme-portal?


> Marcus,
>
> On 5/12/07, Marcus <[hidden email]> wrote:
>> But I'm afraid, i dont think, that i can give you peace of code to enter
>> to
>> the xforms-sandbox, cause i thing it is just like Joseph said a problem
>> of
>> "WHEN" is which part of the code tranformed :-(
>
> If one file running in the sandbox is not enough, can you attach all
> the files we need to reproduce what you ahve, and tell us where we
> need to place those files in the standard ops.war to reproduce the
> problem? Put detailed instructions in your message on how to deploy
> those files, describe the result you get, and how that result it
> different from what you would like to have. I think that will help.
>
>> 2. The second part i mentioned in my last mail - i also opend another
>> thread
>> with "Authentication problem"
>
> If there is another thread, I suggest we forget about this one here.
> Let's leave that to the other thread.
>
> Alex
> --
> Orbeon Forms - Web 2.0 Forms for the Enterprise
> http://www.orbeon.com/
>
>

--------------------------------------------------------------------------------


>
> --
> You receive this message as a subscriber of the [hidden email]
> mailing list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
>




--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: XForms:Select1 and Language-Option in Epilogue/Theme-portal?

Erik Bruchez
Administrator
Marcus,

Roughly, the epilogue currently perform things in this order for XHTML
documents:

1. Perform XForms processing
2. Run the result through theme-plain.xsl / theme-portal.xsl
3. Serialize to HTML

So you see that if you put XForms in the theme, that XForms won't be
processed, which explains that things don't work.

So if you want to do add XForms which is common to all pages, you must
either:

1. Explicitly add this XForms to all your pages.
2. Add it to an XSLT transformation which takes place *before* XForms
processing.

To do this, you could use the existing xforms-widgets.xsl, or create
your own XSLT file and hook it up in /config/epilogue-servlet.xpl/

We main reason we do not recommend using theme-portal.xpl in your
application is that this stylesheet really is designed to display the
Orbeon Forms examples portal. You are likely not to want that look and
feel or the Orbeon Forms examples in your own application. But if that
works for you, great!

In general, you will use theme-plain.xsl / theme-portal.xsl as a basis
for your own theme, which you can call theme-marcus.xsl ;-), and point
to that theme in epilogue-servlet.xsl.

I hope this helps,

-Erik

Marcus wrote:

> Hi Alex,
>
> i don't know if you got my problem right now, but is it that difficult
> to understand? At the moment i don't know what i can do more to discribe
> my problem! Ok, let my try another detailed instruction path, so that
> you can follow my problem. Also if i think that Ryan my have answered it
> right now, i'm not sure how i can do this and perhaps some this would be
> a great thing to have for the epilogue without someone have to
> workaround by himself...
>
> OK, Ryan wrote, that it is not possible to add xforms.controls with the
> theme-plain.xsl i need a possibility to do such a thing. In the
> discription of the epilogue there was written, that this is the best
> place to add i.e. menus for the hole application. But i need
> xforms-control for my menu, also if i want to use the menu-example.
>
> So, a detaild discription on how to reproduce what i need and what
> doesn't work.
> 1. Take the goverment-example
> 2. Copy the code-lines for the language option:
>
>          <xforms:select1 model="resources-model"
> ref="instance('language-instance')">
>           <xforms:label
> ref="instance('resources-instance')/search/labels/language-choice"/>
>           <xforms:item>
>            <xforms:label
> ref="instance('resources-instance')/search/labels/lang-de"/>
>            <xforms:value>de</xforms:value>
>           </xforms:item>
>           <xforms:item>
>            <xforms:label
> ref="instance('resources-instance')/search/labels/lang-en"/>
>            <xforms:value>en</xforms:value>
>           </xforms:item>
>           <xforms:send ev:event="xforms-value-changed"
> submission="update-language-submission"/>
>          </xforms:select1>
>
> 3. Try to place that peace of code lets say to the theme-portal or
> theme-plain, so that we can have this language option in our main-menu
> and not have to place it on every singel page. Does this make more clear
> what i tryed to do and what i need?
>
> Thats just all, so i hope i have not to copy the whole app. That should
> be enough to reproduce my tryings, or isn't it?
>
> Back to Ryans answer:
>> the theme-plain.xsl transforms the final html, it cannot add xforms
>> controls, you will have to add another transform to the
>> xforms-epilogue, before/after the processor that transforms
>> xforms-widgets.xsl.
>
> But i don't know how this fits the point, that the epilogue or the
> themes can be used to inserting a global menu i.e. on every page, when
> xform-controls don't work there :-( I think that is a bit missleading in
> the discribing for what the epilogue is useful, doesn't it?
>
> Thanks, Marcus
>
>
>
> ----- Original Message ----- From: "Alessandro Vernet" <[hidden email]>
> To: <[hidden email]>
> Sent: Saturday, May 12, 2007 7:16 PM
> Subject: Re: [ops-users] XForms:Select1 and Language-Option in
> Epilogue/Theme-portal?
>
>
>> Marcus,
>>
>> On 5/12/07, Marcus <[hidden email]> wrote:
>>> But I'm afraid, i dont think, that i can give you peace of code to
>>> enter to
>>> the xforms-sandbox, cause i thing it is just like Joseph said a
>>> problem of
>>> "WHEN" is which part of the code tranformed :-(
>>
>> If one file running in the sandbox is not enough, can you attach all
>> the files we need to reproduce what you ahve, and tell us where we
>> need to place those files in the standard ops.war to reproduce the
>> problem? Put detailed instructions in your message on how to deploy
>> those files, describe the result you get, and how that result it
>> different from what you would like to have. I think that will help.
>>
>>> 2. The second part i mentioned in my last mail - i also opend another
>>> thread
>>> with "Authentication problem"
>>
>> If there is another thread, I suggest we forget about this one here.
>> Let's leave that to the other thread.
>>
>> Alex
>> --
>> Orbeon Forms - Web 2.0 Forms for the Enterprise
>> http://www.orbeon.com/
>>
>>
>
>
> --------------------------------------------------------------------------------
>
>
>
>>
>> --
>> You receive this message as a subscriber of the
>> [hidden email] mailing list.
>> To unsubscribe: mailto:[hidden email]
>> For general help: mailto:[hidden email]?subject=help
>> ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
>>
>
>

--
Orbeon Forms - Web Forms for the Enterprise Done the Right Way
http://www.orbeon.com/



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: XForms:Select1 and Language-Option in Epilogue/Theme-portal?

Marcus-2
Hi Erik,
thanks for that explicit detaild information.
I desided to tranfoer the hole Header with the menu to the theme-widgets.xsl
and that works just fine for me!

The only thing i miss there is the possibility of access the
doc("input:request") so that i can't disable the menu-point from the actual
page.
I couldn't find a way to use this part :-(

    <!-- Current application id -->
    <xsl:variable name="current-application-id"
select="tokenize(doc('input:request')/*/request-path, '/')[2]"
as="xs:string"/>

          <xsl:for-each select="$applications/*/section">
          |
           <xsl:for-each select="application">
            <xsl:variable name="selected" as="xs:boolean" select="@id =
$current-application-id"/>
            <xsl:choose>
             <xsl:when test="$selected">
              <xsl:value-of select="@label"/>
             </xsl:when>
             <xsl:otherwise>
              <xhtml:a href="/{@id}/">
               <xsl:value-of select="@label"/>
              </xhtml:a>
             </xsl:otherwise>
            </xsl:choose>
           </xsl:for-each>
          </xsl:for-each>

That does not work in the theme-widgets :-( Or is there a way to get that
information there too?
Thanks,
Marcus


----- Original Message -----
From: "Erik Bruchez" <[hidden email]>
To: <[hidden email]>
Sent: Saturday, May 12, 2007 11:02 PM
Subject: Re: [ops-users] XForms:Select1 and Language-Option in
Epilogue/Theme-portal?


> Marcus,
>
> Roughly, the epilogue currently perform things in this order for XHTML
> documents:
>
> 1. Perform XForms processing
> 2. Run the result through theme-plain.xsl / theme-portal.xsl
> 3. Serialize to HTML
>
> So you see that if you put XForms in the theme, that XForms won't be
> processed, which explains that things don't work.
>
> So if you want to do add XForms which is common to all pages, you must
> either:
>
> 1. Explicitly add this XForms to all your pages.
> 2. Add it to an XSLT transformation which takes place *before* XForms
> processing.
>
> To do this, you could use the existing xforms-widgets.xsl, or create
> your own XSLT file and hook it up in /config/epilogue-servlet.xpl/
>
> We main reason we do not recommend using theme-portal.xpl in your
> application is that this stylesheet really is designed to display the
> Orbeon Forms examples portal. You are likely not to want that look and
> feel or the Orbeon Forms examples in your own application. But if that
> works for you, great!
>
> In general, you will use theme-plain.xsl / theme-portal.xsl as a basis
> for your own theme, which you can call theme-marcus.xsl ;-), and point
> to that theme in epilogue-servlet.xsl.
>
> I hope this helps,
>
> -Erik
>
> Marcus wrote:
>> Hi Alex,
>>
>> i don't know if you got my problem right now, but is it that difficult
>> to understand? At the moment i don't know what i can do more to discribe
>> my problem! Ok, let my try another detailed instruction path, so that
>> you can follow my problem. Also if i think that Ryan my have answered it
>> right now, i'm not sure how i can do this and perhaps some this would be
>> a great thing to have for the epilogue without someone have to
>> workaround by himself...
>>
>> OK, Ryan wrote, that it is not possible to add xforms.controls with the
>> theme-plain.xsl i need a possibility to do such a thing. In the
>> discription of the epilogue there was written, that this is the best
>> place to add i.e. menus for the hole application. But i need
>> xforms-control for my menu, also if i want to use the menu-example.
>>
>> So, a detaild discription on how to reproduce what i need and what
>> doesn't work.
>> 1. Take the goverment-example
>> 2. Copy the code-lines for the language option:
>>
>>          <xforms:select1 model="resources-model"
>> ref="instance('language-instance')">
>>           <xforms:label
>> ref="instance('resources-instance')/search/labels/language-choice"/>
>>           <xforms:item>
>>            <xforms:label
>> ref="instance('resources-instance')/search/labels/lang-de"/>
>>            <xforms:value>de</xforms:value>
>>           </xforms:item>
>>           <xforms:item>
>>            <xforms:label
>> ref="instance('resources-instance')/search/labels/lang-en"/>
>>            <xforms:value>en</xforms:value>
>>           </xforms:item>
>>           <xforms:send ev:event="xforms-value-changed"
>> submission="update-language-submission"/>
>>          </xforms:select1>
>>
>> 3. Try to place that peace of code lets say to the theme-portal or
>> theme-plain, so that we can have this language option in our main-menu
>> and not have to place it on every singel page. Does this make more clear
>> what i tryed to do and what i need?
>>
>> Thats just all, so i hope i have not to copy the whole app. That should
>> be enough to reproduce my tryings, or isn't it?
>>
>> Back to Ryans answer:
>>> the theme-plain.xsl transforms the final html, it cannot add xforms
>>> controls, you will have to add another transform to the
>>> xforms-epilogue, before/after the processor that transforms
>>> xforms-widgets.xsl.
>>
>> But i don't know how this fits the point, that the epilogue or the
>> themes can be used to inserting a global menu i.e. on every page, when
>> xform-controls don't work there :-( I think that is a bit missleading in
>> the discribing for what the epilogue is useful, doesn't it?
>>
>> Thanks, Marcus
>>
>>
>>
>> ----- Original Message ----- From: "Alessandro Vernet"
>> <[hidden email]>
>> To: <[hidden email]>
>> Sent: Saturday, May 12, 2007 7:16 PM
>> Subject: Re: [ops-users] XForms:Select1 and Language-Option in
>> Epilogue/Theme-portal?
>>
>>
>>> Marcus,
>>>
>>> On 5/12/07, Marcus <[hidden email]> wrote:
>>>> But I'm afraid, i dont think, that i can give you peace of code to
>>>> enter to
>>>> the xforms-sandbox, cause i thing it is just like Joseph said a
>>>> problem of
>>>> "WHEN" is which part of the code tranformed :-(
>>>
>>> If one file running in the sandbox is not enough, can you attach all
>>> the files we need to reproduce what you ahve, and tell us where we
>>> need to place those files in the standard ops.war to reproduce the
>>> problem? Put detailed instructions in your message on how to deploy
>>> those files, describe the result you get, and how that result it
>>> different from what you would like to have. I think that will help.
>>>
>>>> 2. The second part i mentioned in my last mail - i also opend another
>>>> thread
>>>> with "Authentication problem"
>>>
>>> If there is another thread, I suggest we forget about this one here.
>>> Let's leave that to the other thread.
>>>
>>> Alex
>>> --
>>> Orbeon Forms - Web 2.0 Forms for the Enterprise
>>> http://www.orbeon.com/
>>>
>>>
>>
>>
>> --------------------------------------------------------------------------------
>>
>>
>>
>>>
>>> --
>>> You receive this message as a subscriber of the
>>> [hidden email] mailing list.
>>> To unsubscribe: mailto:[hidden email]
>>> For general help: mailto:[hidden email]?subject=help
>>> ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
>>>
>>
>>
>
>
> --
> Orbeon Forms - Web Forms for the Enterprise Done the Right Way
> http://www.orbeon.com/
>
>

--------------------------------------------------------------------------------


>
> --
> You receive this message as a subscriber of the [hidden email]
> mailing list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
>




--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: XForms:Select1 and Language-Option in Epilogue/Theme-portal?

Erik Bruchez
Administrator
Marcus wrote:

> Hi Erik,
> thanks for that explicit detaild information.
> I desided to tranfoer the hole Header with the menu to the
> theme-widgets.xsl and that works just fine for me!
>
> The only thing i miss there is the possibility of access the
> doc("input:request") so that i can't disable the menu-point from the
> actual page.
> I couldn't find a way to use this part :-(
>
>    <!-- Current application id -->
>    <xsl:variable name="current-application-id"
> select="tokenize(doc('input:request')/*/request-path, '/')[2]"
> as="xs:string"/>
>
>          <xsl:for-each select="$applications/*/section">
>          |
>           <xsl:for-each select="application">
>            <xsl:variable name="selected" as="xs:boolean" select="@id =
> $current-application-id"/>
>            <xsl:choose>
>             <xsl:when test="$selected">
>              <xsl:value-of select="@label"/>
>             </xsl:when>
>             <xsl:otherwise>
>              <xhtml:a href="/{@id}/">
>               <xsl:value-of select="@label"/>
>              </xhtml:a>
>             </xsl:otherwise>
>            </xsl:choose>
>           </xsl:for-each>
>          </xsl:for-each>
>
> That does not work in the theme-widgets :-( Or is there a way to get
> that information there too?
It is not there by default.

You could modify xforms-epilogue.xpl and connect #request-info to the
oxf:xslt which calls up xforms-widgets.xsl with:

   <p:input name="request" href="#request-info"/>

Do do this however you have to extract xforms-epilogue.xpl from
op-resources-private.jar, and put it in your own resources under
RESOURCES/ops/pfc/.

-Erik

--
Orbeon Forms - Web Forms for the Enterprise Done the Right Way
http://www.orbeon.com/



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
12