Possible to overwrite submissions on singel pages?

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

Possible to overwrite submissions on singel pages?

Marcus-2
Hi,
i just wanted to ask, if it possible to overwrite i.e. an update-language-submission on singel pages, that need to perform more actions like the original submission includes, or any other way to extend to action part of my original submission? So, that not only the mnu is updated, but also a new content is loaded when the value changes?
Hope that everyone understands what i am trying to do and to explain - don't know if i found the right words!?
 
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: Possible to overwrite submissions on singel pages?

Alessandro Vernet
Administrator
Hi Marcus,

On 6/7/07, Marcus <[hidden email]> wrote:
> i just wanted to ask, if it possible to overwrite i.e. an
> update-language-submission on singel pages, that need to perform more
> actions like the original submission includes, or any other way to extend to
> action part of my original submission? So, that not only the mnu is updated,
> but also a new content is loaded when the value changes?
> Hope that everyone understands what i am trying to do and to explain - don't
> know if i found the right words!?

I am not sure to understand the situation you are describing. But hey,
I'll still try to answer anyway ;). If you want to run multiple
actions when, say, the end-user clicks on a trigger, you can put all
those actions in an <xforms:action> block. If you want to do a
submission and then do something else when the data comes back from
the submission, you can either put those additional actions after the
<xforms:send>, or handle the xforms-submit-done on the
<xforms:submission>. Does this help?

Alex
--
Orbeon Forms - Web 2.0 Forms, open-source, 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: Possible to overwrite submissions on singel pages?

Marcus-2
Hi Alex,

ok, i try to be more detailed.
My webapp is built part on the Gov-example. There we have the language
option, right?
So, i have made an general menu.xsl and integrated that into the epilogue,
so i added my header on every singel page and there i also included the
language option and load the resource-model, where you find the
update-language-submission!

My first problem was to save this language-information, so that the user has
not to change it on every new page. Perhaps in that exmaple it might be ok,
but in a real webapp, that would be realy anoying. With some help i achieved
that by using the scope-serializer and -generator.

My second problem is, that normaly i would have one basic-page and use there
i.e. <xforms:output model="resource-model" ref"...(xml-tree)..." /> and
insert so the content of my resource.xml. But in my app there are single
pages which have so much content, that the best way is to save the content
of the page for each language, i.e. info_de.xml / info_en.xml.
So i have an info.xhtml that builds my base and than i have to load the
content out of my exist-db, depending on the language-option! and also
replacing the hole content when changing the language! And here it comes...

Normaly the update-language-submission would replace the resource.xml and
that would be enough! While i load the resouce-model with my menu, the
submission is already there! But on my info.xhtml page i need a second
action, to load the content, when changing the language! But that trigger
refers to my standard submission of my resource.-model which inhabits only
one action - to reload the resource.

Does that help to understand my problem?
While the language-option is included automaticly with my menu, i have no
possibility to extend my function there. Besides to insert another trigger
when viewing a different page and test this with the request-path. But then
i would have to test some more than only one page :-(

At the moment my workaround is to insert the same language-option-trigger a
second time on my page, where i extended the <xforms:action> and refering to
the same language-instance. And then i hide that select-trigger, so that
only the one in my menu is visible! But that seems not to be a good way of
coding at all i think.

Does that all make sence to you?
Thanks, Marcus



----- Original Message -----
From: "Alessandro Vernet" <[hidden email]>
To: <[hidden email]>
Sent: Sunday, June 10, 2007 12:39 AM
Subject: Re: [ops-users] Possible to overwrite submissions on singel pages?


> Hi Marcus,
>
> On 6/7/07, Marcus <[hidden email]> wrote:
>> i just wanted to ask, if it possible to overwrite i.e. an
>> update-language-submission on singel pages, that need to perform more
>> actions like the original submission includes, or any other way to extend
>> to
>> action part of my original submission? So, that not only the mnu is
>> updated,
>> but also a new content is loaded when the value changes?
>> Hope that everyone understands what i am trying to do and to explain -
>> don't
>> know if i found the right words!?
>
> I am not sure to understand the situation you are describing. But hey,
> I'll still try to answer anyway ;). If you want to run multiple
> actions when, say, the end-user clicks on a trigger, you can put all
> those actions in an <xforms:action> block. If you want to do a
> submission and then do something else when the data comes back from
> the submission, you can either put those additional actions after the
> <xforms:send>, or handle the xforms-submit-done on the
> <xforms:submission>. Does this help?
>
> Alex
> --
> Orbeon Forms - Web 2.0 Forms, open-source, 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: Possible to overwrite submissions on singel pages?

Ryan Puddephatt
Marcus,
    What about changing the trigger in your menu.xsl to dispatch an event in your main-model using xforms:dispatch after its saved the language setting to the session. It could be a page-specific-language-update event (or something similar) defined in you main-model of your page, in your info.xhtml this event could reload the page with another submission. If the event doesn't exist in some pages it the xforms engine will gracefully handle it by ignoring it :-)

Also allows for any other page-specific code when doing a language update.

HTH

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,

ok, i try to be more detailed.
My webapp is built part on the Gov-example. There we have the language option, right?
So, i have made an general menu.xsl and integrated that into the epilogue, so i added my header on every singel page and there i also included the language option and load the resource-model, where you find the update-language-submission!

My first problem was to save this language-information, so that the user has not to change it on every new page. Perhaps in that exmaple it might be ok, but in a real webapp, that would be realy anoying. With some help i achieved that by using the scope-serializer and -generator.

My second problem is, that normaly i would have one basic-page and use there i.e. <xforms:output model="resource-model" ref"...(xml-tree)..." /> and insert so the content of my resource.xml. But in my app there are single pages which have so much content, that the best way is to save the content of the page for each language, i.e. info_de.xml / info_en.xml.
So i have an info.xhtml that builds my base and than i have to load the content out of my exist-db, depending on the language-option! and also replacing the hole content when changing the language! And here it comes...

Normaly the update-language-submission would replace the resource.xml and that would be enough! While i load the resouce-model with my menu, the submission is already there! But on my info.xhtml page i need a second action, to load the content, when changing the language! But that trigger refers to my standard submission of my resource.-model which inhabits only one action - to reload the resource.

Does that help to understand my problem?
While the language-option is included automaticly with my menu, i have no possibility to extend my function there. Besides to insert another trigger when viewing a different page and test this with the request-path. But then i would have to test some more than only one page :-(

At the moment my workaround is to insert the same language-option-trigger a second time on my page, where i extended the <xforms:action> and refering to the same language-instance. And then i hide that select-trigger, so that only the one in my menu is visible! But that seems not to be a good way of coding at all i think.

Does that all make sence to you?
Thanks, Marcus



----- Original Message ----- From: "Alessandro Vernet" [hidden email]
To: [hidden email]
Sent: Sunday, June 10, 2007 12:39 AM
Subject: Re: [ops-users] Possible to overwrite submissions on singel pages?


Hi Marcus,

On 6/7/07, Marcus [hidden email] wrote:
i just wanted to ask, if it possible to overwrite i.e. an
update-language-submission on singel pages, that need to perform more
actions like the original submission includes, or any other way to extend to
action part of my original submission? So, that not only the mnu is updated,
but also a new content is loaded when the value changes?
Hope that everyone understands what i am trying to do and to explain - don't
know if i found the right words!?

I am not sure to understand the situation you are describing. But hey,
I'll still try to answer anyway ;). If you want to run multiple
actions when, say, the end-user clicks on a trigger, you can put all
those actions in an <xforms:action> block. If you want to do a
submission and then do something else when the data comes back from
the submission, you can either put those additional actions after the
<xforms:send>, or handle the xforms-submit-done on the
<xforms:submission>. Does this help?

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




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



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