usage of alert - what's wrong ?!

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

usage of alert - what's wrong ?!

patrick.seiffert
Hello.

This is probably not a very challenging question but I have little problems with the alert-control.


1.
When using it like this:

<p>
 <xf:input ref="/ikj:item/ikj:wert">
  <xf:label>Wert</xf:label>
  <xf:alert>ALARM</xf:alert>
 </xf:input>
</p>

where ikj:wert is of the datatype "decimal" (maxInclusiv:99; minInclusive:0) and validated by a shema. When entering an invalid value (i.e. 100) the default red exclamation mark is shown but no alert-box with the given text pops up!

So what am I doing wrong?

2.
One more question - is there any way to modify the appearence of a range-control. For example to make it look like a drop-downlist or something simular?

Kind regards,
Patrick Seiffert



--
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: usage of alert - what's wrong ?!

Henrik Pettersen
Patrick,

could you send a complete and reproducible example of your alert problem to this mailing list? (Please attach any source files to the email)? Thanks.

Also, you could try a different approach to doing your alerts:
http://www.orbeon.com/blog/2006/08/04/xforms-tip-creating-a-configurable-error-summary/

To modify the appeareance of XForms controls, I would hazard to guess that you would have to modify epilogue.xpl, xforms.css and orbeon.css. See here for more information:
http://mail-archive.objectweb.org/ops-users/2006-08/msg00628.html

Hope that helps.

Henrik

On 9/5/06, [hidden email] <[hidden email]> wrote:
Hello.

This is probably not a very challenging question but I have little problems with the alert-control.


1.
When using it like this:

<p>
<xf:input ref="/ikj:item/ikj:wert">
  <xf:label>Wert</xf:label>
  <xf:alert>ALARM</xf:alert>
</xf:input>
</p>

where ikj:wert is of the datatype "decimal" (maxInclusiv:99; minInclusive:0) and validated by a shema. When entering an invalid value (i.e. 100) the default red exclamation mark is shown but no alert-box with the given text pops up!

So what am I doing wrong?

2.
One more question - is there any way to modify the appearence of a range-control. For example to make it look like a drop-downlist or something simular?

Kind regards,
Patrick Seiffert




--
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: usage of alert - what's wrong ?!

patrick.seiffert
Thanks Henrik.

Both answers are helpful to me...

BUT (concerning the alert-problem) right now I "want" this (dirty)
inline-declaration of an alert. Outsourcing it works well (I tried so
with a trigger throwing an alert).

Attached I send you my resources so you can easily check'em.

Just add the unzipped archive (folder /pat) under the OPS-resources.
Then add the following lines to the "resources/page-flow.xml":

        <!-- =========Default for 'pat'=========-->
        <page path-info="/pat" model="/pat/page-flow.xpl"/>
        <!--========= bc =========-->
        <page path-info="/pat/bc" model="/pat/bc/page-flow.xpl"/>

and you can enter the site via this URL:
                "http://localhost:8080/ops/pat/bc"

The alert is just a first test so only a single input (labeld
"Straftaten gegen die sexuelle Selbstbesteimmung") is watched by an alert.

Thank you for supporting.
Greetings,
Pat


Henrik Pettersen schrieb:

> Patrick,
>
> could you send a complete and reproducible example of your alert problem
> to this mailing list? (Please attach any source files to the email)? Thanks.
>
> Also, you could try a different approach to doing your alerts:
> http://www.orbeon.com/blog/2006/08/04/xforms-tip-creating-a-configurable-error-summary/
>
> To modify the appeareance of XForms controls, I would hazard to guess
> that you would have to modify epilogue.xpl, xforms.css and orbeon.css.
> See here for more information:
> http://mail-archive.objectweb.org/ops-users/2006-08/msg00628.html
>
> Hope that helps.
>
> Henrik
>
> On 9/5/06, *[hidden email] <mailto:[hidden email]>*
> < [hidden email] <mailto:[hidden email]>> wrote:
>
>     Hello.
>
>     This is probably not a very challenging question but I have little
>     problems with the alert-control.
>
>
>     1.
>     When using it like this:
>
>     <p>
>     <xf:input ref="/ikj:item/ikj:wert">
>       <xf:label>Wert</xf:label>
>       <xf:alert>ALARM</xf:alert>
>     </xf:input>
>     </p>
>
>     where ikj:wert is of the datatype "decimal" (maxInclusiv:99;
>     minInclusive:0) and validated by a shema. When entering an invalid
>     value (i.e. 100) the default red exclamation mark is shown but no
>     alert-box with the given text pops up!
>
>     So what am I doing wrong?
>
>     2.
>     One more question - is there any way to modify the appearence of a
>     range-control. For example to make it look like a drop-downlist or
>     something simular?
>
>     Kind regards,
>     Patrick Seiffert
>
>
>
>
>     --
>     You receive this message as a subscriber of the
>     [hidden email] <mailto:[hidden email]> mailing list.
>     To unsubscribe: mailto: [hidden email]
>     <mailto:[hidden email]>
>     For general help: mailto:[hidden email]
>     <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
--
Patrick Seiffert
Pflugstraße 5b
65462 Ginsheim

Tel.: (+49) 171-6978556
ICQ: 304-974-648

pat.rar (58K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

RE: usage of alert - what's wrong ?!

Ryan Puddephatt
Patrick/Henrik,
        In OPS the alert text is not shown, only the exclamation mark,
currently there is no way to change this

Take a look at the custom errors in the DMV examples, this shows one way of
displaying this text

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

 

>-----Original Message-----
>From: Patrick Seiffert [mailto:[hidden email]]
>Sent: 05 September 2006 17:46
>To: [hidden email]
>Subject: Re: [ops-users] usage of alert - what's wrong ?!
>
>Thanks Henrik.
>
>Both answers are helpful to me...
>
>BUT (concerning the alert-problem) right now I "want" this
>(dirty) inline-declaration of an alert. Outsourcing it works
>well (I tried so with a trigger throwing an alert).
>
>Attached I send you my resources so you can easily check'em.
>
>Just add the unzipped archive (folder /pat) under the OPS-resources.
>Then add the following lines to the "resources/page-flow.xml":
>
> <!-- =========Default for 'pat'=========-->
> <page path-info="/pat" model="/pat/page-flow.xpl"/>
> <!--========= bc =========-->
> <page path-info="/pat/bc" model="/pat/bc/page-flow.xpl"/>
>
>and you can enter the site via this URL:
> "http://localhost:8080/ops/pat/bc"
>
>The alert is just a first test so only a single input (labeld
>"Straftaten gegen die sexuelle Selbstbesteimmung") is watched
>by an alert.
>
>Thank you for supporting.
>Greetings,
>Pat
>
>
>Henrik Pettersen schrieb:
>> Patrick,
>>
>> could you send a complete and reproducible example of your alert
>> problem to this mailing list? (Please attach any source
>files to the email)? Thanks.
>>
>> Also, you could try a different approach to doing your alerts:
>>
>http://www.orbeon.com/blog/2006/08/04/xforms-tip-creating-a-configurab
>> le-error-summary/
>>
>> To modify the appeareance of XForms controls, I would hazard
>to guess
>> that you would have to modify epilogue.xpl, xforms.css and
>orbeon.css.
>> See here for more information:
>> http://mail-archive.objectweb.org/ops-users/2006-08/msg00628.html
>>
>> Hope that helps.
>>
>> Henrik
>>
>> On 9/5/06, *[hidden email]
>> <mailto:[hidden email]>*
>> < [hidden email] <mailto:[hidden email]>> wrote:
>>
>>     Hello.
>>
>>     This is probably not a very challenging question but I
>have little
>>     problems with the alert-control.
>>
>>
>>     1.
>>     When using it like this:
>>
>>     <p>
>>     <xf:input ref="/ikj:item/ikj:wert">
>>       <xf:label>Wert</xf:label>
>>       <xf:alert>ALARM</xf:alert>
>>     </xf:input>
>>     </p>
>>
>>     where ikj:wert is of the datatype "decimal" (maxInclusiv:99;
>>     minInclusive:0) and validated by a shema. When entering
>an invalid
>>     value (i.e. 100) the default red exclamation mark is shown but no
>>     alert-box with the given text pops up!
>>
>>     So what am I doing wrong?
>>
>>     2.
>>     One more question - is there any way to modify the
>appearence of a
>>     range-control. For example to make it look like a
>drop-downlist or
>>     something simular?
>>
>>     Kind regards,
>>     Patrick Seiffert
>>
>>
>>
>>
>>     --
>>     You receive this message as a subscriber of the
>>     [hidden email] <mailto:[hidden email]>
>mailing list.
>>     To unsubscribe: mailto: [hidden email]
>>     <mailto:[hidden email]>
>>     For general help: mailto:[hidden email]
>>     <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
>
>--
>Patrick Seiffert
>Pflugstraße 5b
>65462 Ginsheim
>
>Tel.: (+49) 171-6978556
>ICQ: 304-974-648
>



--
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: usage of alert - what's wrong ?!

Erik Bruchez
Administrator
In reply to this post by patrick.seiffert
Patrick,

The alert text should appear as a tooltip when you mouse over the
exclamation point. As mentioned, there is no trivial way to change this
at the moment, but you can do it "by hand" as illustrated for example
with the DMV Forms error summary.

Regarding the xforms:range control, currently this control has only a
limited implementation in the form of a slider. More appearances would
be of course quite nice to have, but so far not many users seemed
interested by that control ;-)

-Erik

Patrick Seiffert wrote:

> Thanks Henrik.
>
> Both answers are helpful to me...
>
> BUT (concerning the alert-problem) right now I "want" this (dirty)
> inline-declaration of an alert. Outsourcing it works well (I tried so
> with a trigger throwing an alert).
>
> Attached I send you my resources so you can easily check'em.
>
> Just add the unzipped archive (folder /pat) under the OPS-resources.
> Then add the following lines to the "resources/page-flow.xml":
>
>     <!-- =========Default for 'pat'=========-->
>     <page path-info="/pat" model="/pat/page-flow.xpl"/>
>     <!--========= bc =========-->
>     <page path-info="/pat/bc" model="/pat/bc/page-flow.xpl"/>
>
> and you can enter the site via this URL:
>         "http://localhost:8080/ops/pat/bc"
>
> The alert is just a first test so only a single input (labeld
> "Straftaten gegen die sexuelle Selbstbesteimmung") is watched by an alert.
>
> Thank you for supporting.
> Greetings,
> Pat
>
>
> Henrik Pettersen schrieb:
>> Patrick,
>>
>> could you send a complete and reproducible example of your alert
>> problem to this mailing list? (Please attach any source files to the
>> email)? Thanks.
>>
>> Also, you could try a different approach to doing your alerts:
>> http://www.orbeon.com/blog/2006/08/04/xforms-tip-creating-a-configurable-error-summary/ 
>>
>>
>> To modify the appeareance of XForms controls, I would hazard to guess
>> that you would have to modify epilogue.xpl, xforms.css and orbeon.css.
>> See here for more information:
>> http://mail-archive.objectweb.org/ops-users/2006-08/msg00628.html
>>
>> Hope that helps.
>>
>> Henrik
>>
>> On 9/5/06, *[hidden email]
>> <mailto:[hidden email]>* < [hidden email]
>> <mailto:[hidden email]>> wrote:
>>
>>     Hello.
>>
>>     This is probably not a very challenging question but I have little
>>     problems with the alert-control.
>>
>>
>>     1.
>>     When using it like this:
>>
>>     <p>
>>     <xf:input ref="/ikj:item/ikj:wert">
>>       <xf:label>Wert</xf:label>
>>       <xf:alert>ALARM</xf:alert>
>>     </xf:input>
>>     </p>
>>
>>     where ikj:wert is of the datatype "decimal" (maxInclusiv:99;
>>     minInclusive:0) and validated by a shema. When entering an invalid
>>     value (i.e. 100) the default red exclamation mark is shown but no
>>     alert-box with the given text pops up!
>>
>>     So what am I doing wrong?
>>
>>     2.
>>     One more question - is there any way to modify the appearence of a
>>     range-control. For example to make it look like a drop-downlist or
>>     something simular?
>>
>>     Kind regards,
>>     Patrick Seiffert
>>
>>
>>
>>
>>     --
>>     You receive this message as a subscriber of the
>>     [hidden email] <mailto:[hidden email]> mailing
>> list.
>>     To unsubscribe: mailto: [hidden email]
>>     <mailto:[hidden email]>
>>     For general help: mailto:[hidden email]
>>     <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
>
>
> ------------------------------------------------------------------------
>
>
> --
> 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 - XForms Everywhere:
http://www.orbeon.com/blog/



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