abhishek24509 / aribaweb

Automatically exported from code.google.com/p/aribaweb
Apache License 2.0
0 stars 0 forks source link

<w:ModalPageWrapper>: Disable Done button (?) #47

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Use <w:ModalPageWrapper>
2. (Attempt to disable/omit the Done action/button)

What is the expected output? What do you see instead?
No Done button.

What version of the product are you using? On what operating system?
5.0RC3p4; WinXPPro32; Firefox 3

Please provide any additional information below.
I would like to be able to hide the Done button (and provide my own). There
appears to be no way to do this.

So, I tweaked ModalPageWrapper.awl to include a binding:
"disableDoneAction" (boolean). I added an a:If around the w:TextButton
block that displays the Done button.

Please see the attached customized ModalPageWrapper.awl for my implementation.

Thank you,
-Morton

Original issue reported on code.google.com by morton.t...@gmail.com on 2 May 2009 at 7:23

Attachments:

GoogleCodeExporter commented 9 years ago
Hi Morton,

You can pass down an action to the okAction binding and an overriding label 
with the
okTitle binding.  Does that fit your need?

<ModalPageWrapper editable="$true" action="$myAction" doneTitle="MyAction">

-Kingsley

Original comment by Ariba...@gmail.com on 3 May 2009 at 5:19

GoogleCodeExporter commented 9 years ago
Kingsley,

Thanks for the comment!

My problem mainly involves the placement of the OK/Cancel buttons. I need to 
have
several instances of "OK". (Usually I frown on having more than one OK/Cancel 
button,
but this is per client request, and is valid considering the demographics of 
the user
base.)

In brief, I could probably deal with having to have the OK/Done button in the 
lower
right corner. But I do feel that these buttons should (all) be suppressible.

Thanks again for your prompt consideration,
-Morton

Original comment by morton.t...@gmail.com on 4 May 2009 at 3:47