usage of w:Confirmation

37 views
Skip to first unread message

Thomas Abraham

unread,
Mar 21, 2013, 7:43:11 AM3/21/13
to AribaWeb (aribaweb.org)
Hi all,
I'm trying to use w:Confirmation exactly as given in Confirmation.awl:
<a:SetValue confId="$requestContext.nextElementId"/>
<w:TextButton hilite="$true" confirmationId="$confId"
disabled="${!displayGroup.selectedObjects.size() > 0}">Write Off</
w:TextButton>
<w:Confirmation id="$confId" okAction="$writeOffBills">
<a:Content name="header">
<a:Image align="absmiddle" filename="../warning.gif"/
>&nbsp;&nbsp;
<a:Local key="a001">Confirm Write Off</a:Local>
</a:Content>
<a:Content name="content">
<table>
<tr>
<td><a:Local key="a002">Write-off cannot be
reversed. Are you sure?</a:Local></td>
</tr>
</table>
</a:Content>
</w:Confirmation>
But when rendering the page, I get a FieldValueException: Unable to
locate setter method or field for: "confId" on target class

If I declare
public AWEncodedString _confId; in the corresponding java file

then as soon as I click the button which should pop up the
confirmation, I get a small section which says "Loading", and there it
stays.

I'm making some silly mistake...can't put my finger on it...

Thanks in advance...
Thomas

František Kolář

unread,
Apr 10, 2013, 11:14:00 AM4/10/13
to arib...@googlegroups.com
Hi Thomas, 

Little late reply and probably you already solved it I guess. the confI must be part of the class (public field  of public AWEncodedString confI;)


thanks,

Frantisek 

Thomas Abraham

unread,
Apr 10, 2013, 11:49:16 PM4/10/13
to arib...@googlegroups.com
Frantisek,
I could not get it. I had already done as you said (see highlighted part). But I just get a message "Loading" and then nothing happens.
Thomas


--
You received this message because you are subscribed to the Google Groups "AribaWeb (aribaweb.org)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to aribaweb+u...@googlegroups.com.
To post to this group, send email to arib...@googlegroups.com.
Visit this group at http://groups.google.com/group/aribaweb?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

František Kolář

unread,
Apr 11, 2013, 2:09:57 AM4/11/13
to arib...@googlegroups.com
Can you try two things ?

1) Quickly try the server side confirmation - meaning that on action="???" you invoke it using Confirmation.showConfirmation(?,?) where request context you get from the component and confIf from your set a:Value

or

2) Replace it directly with string: confirmationId="BillConf" 
  - remove a:setValue



Regards

František Kolář 
 

Thomas Abraham

unread,
May 13, 2013, 9:14:38 AM5/13/13
to arib...@googlegroups.com
Frantisek,
Just wanted to share that the Server Side Confirmation works....will try the client side again. I was probably doing something wrong...
Thanks again
Thomas

František Kolář

unread,
May 13, 2013, 11:23:56 AM5/13/13
to arib...@googlegroups.com
cool
Regards

František Kolář 

Reply all
Reply to author
Forward
0 new messages