radl_sportovec | 1 Nov 11:10
Picon
Favicon

Re: Thinlet and HTTPS


Hi Robert,

firstly thank you for your quick replay.

Does it mean that if I install client/server cert into keystore
everything work without any app. changes ??

Is it possible to use MS IE cert keystore ?

We have to use a browser for our app.

Jan

--- In thinlet <at> yahoogroups.com, "Robert Piotrowski"
<rjpiotrowski <at> y...> wrote:
> 
> I already had to go this this myself. It depends if your Thinlet will 
> be an applet inside a browser or a stand-alone app.
> 
> If it's in a browser, then the browser handles the certificate 
> handling and everything should be easy.
> 
> In my case, I had a stand-alone app and went with easiest route by 
> overriding the TrustManager to ignore certificates.  I think that if 
> you don't do this, you'll have to install a copy of the certificate 
> on the client and there's no way I'm going to do that.  Overriding 
> the TrustManager makes your app automatically trust the site that 
> you're talking to.  So I don't think there's any harm in this.
> 
(Continue reading)

mike_hartshorn2 | 1 Nov 13:11
Picon

Re: thinlet using vectors


Hi Campbell,

> Thanks for the patch link.  I confirm that the patch eliminates the
> JVM crash for huge lists regarding the tree control (and presumably
> all other previous linked list type access patterns in Thinlet).
> 
> So, for me, your patch is the start of A GoodThing(tm) :-).

Glad the patch proved useful for you.

My main goal in the approach to this problem was
to have a minimal patch that could be applied to
future versions of thinlet, with very little pain.
I really need to be able to display tables/trees
that will occasionally be in the 1-2000 element size.
I'd like to think that we can get some sort of fix
in place for this, but appreciate that this approach
might not be to everyone's taste (although it does
coexist with the original implementation) and so
might not end up in the core thinlet.

> But, as you have stated, the patch needs some refinements:
> 
> And here's a first...
> 
> The symptom I'm seeing with your patch (that I do not see with the
> original code) is that as one scrolls down further
> ...
> then scrolling gets slower and slower, until the delay becomes
(Continue reading)

Robert Piotrowski | 1 Nov 17:15
Picon
Favicon

Re: Thinlet and HTTPS


Jan,

When you say that you have to use a browser for your app, I'm guessing
that you'll be running an traditional applet.  In this case, you
shouldn't have to worry at all about certificates on the client.  The
browser handles certificate verification automatically.  Just make
sure that your server has the certificate installed so that you can
make HTTPS requests against it.

I tried this before without any problems.  Just be careful with image
caching in your applet.  For instance, when you have a large tree and
you are using folder icons for the treenodes, you need to package the
folder icon with your jar file and reference the icon with a "relative
path".  Otherwise, the applet will download the icon repeatedly for
each node.

If you use Webstart instead of a browser, you have no problems but
you'll have to run JVM 1.4.2 to override the trustmanager to use
HTTPS. My clients like the look of running the apps in Webstart
because it looks like a local(desktop) application and you get to save
 a shortcut on your desktop instead of visiting a site each time.

Robert Piotrowski

--- In thinlet <at> yahoogroups.com, "radl_sportovec" <radl_sportovec <at> y...>
wrote:
> 
> Hi Robert,
> 
(Continue reading)

Robert Piotrowski | 1 Nov 20:18
Picon
Favicon

Re: Semicolon character in property definition


Mike,

Did you find a work around for this?

Why would you want a semicolon in the property area?  I thought
properties are good for holding onto keys, not plain text.

Robert Piotrowski

--- In thinlet <at> yahoogroups.com, "mike_hartshorn2"
<mike_hartshorn <at> h...> wrote:
> 
> Hi,
> 
> can anyone give me advice on how to incorporate
> a literal semicolon character in a property definition?
> 
> I have some text that I want to associate with
> an item
> 
> <button text="press" property="init=some text; some more text"/>
> 
> So the semicolon character triggers the multiple
> property definition, and you get an Illegal arg
> exception.
> 
> If you replace the semi with &#59; (code for semicolon)
> you still get the same effect as it is 
> substituted before the property list is split
(Continue reading)

Owen Densmore | 1 Nov 23:37
Favicon
Gravatar

File Dialog


[Pardon if this is a newbie question answered elsewhere -- I searched 
and didn't find an answer.]

Is there a file dialog within the thinlets package?  Or should I just 
call the AWT or Swing dialog?

Owen -- http://backspaces.net/

------------------------ Yahoo! Groups Sponsor --------------------~--> 
$9.95 domain names from Yahoo!. Register anything.
http://us.click.yahoo.com/J8kdrA/y20IAA/yQLSAA/nhFolB/TM
--------------------------------------------------------------------~-> 

 
cgbburnet | 2 Nov 05:50
Picon

Re: thinlet using vectors


Thanks Mike.

--- In thinlet <at> yahoogroups.com, "mike_hartshorn2"
<mike_hartshorn <at> h...> wrote:
> 
> Hi Campbell,
> 
> > Thanks for the patch link.  I confirm that the patch eliminates the
> > JVM crash for huge lists regarding the tree control (and presumably
> > all other previous linked list type access patterns in Thinlet).
> > 
> > So, for me, your patch is the start of A GoodThing(tm) :-).
> 
> Glad the patch proved useful for you.
> 
> My main goal in the approach to this problem was
> to have a minimal patch that could be applied to
> future versions of thinlet, with very little pain.
> I really need to be able to display tables/trees
> that will occasionally be in the 1-2000 element size.
> I'd like to think that we can get some sort of fix
> in place for this, but appreciate that this approach
> might not be to everyone's taste (although it does
> coexist with the original implementation) and so
> might not end up in the core thinlet.

Well, I've had this discussion with Robert Bajzat, Andrzej Bialecki,
Eugene Klein and quite a few others, a number of times on the original
forums last year, as well as in semi-private quite recently with both
(Continue reading)

mike_hartshorn2 | 3 Nov 11:40
Picon

Re: Semicolon character in property definition


Hi Robert, I may be abusing the system slightly
but I thought you could store essentially
arbitrary key/value pairs in the object properties.

Its for storing scripting language commands for
another component. (Its not meant as any kind
of alternative to Scriptlet, its just a very
convenient way of creating custom user
interfaces without extra java coding
for another system).

Everything works fine except the scripting
command separator is ; and I can't introduce
one into the property strings without it
being interpreted as the property separator.
Character entities are substituted before
the string is split into individual properties
in thinlet, so putting the hex code for ;
doesn't work. If it was changed to split on
; first and then subsitute character entities
it still wouldn't trivially work, as all the
entity definitions end with ;.

I've had to use another character (|) to
separate the commands and change them back to ;
before I execute the commands. I guess I'll just
have to live with it.

There's usually a way to accomplish things with
(Continue reading)

o_collioud | 3 Nov 13:43
Picon
Favicon

Re: Confirm modal dialog


Hi Fabiano,

Thanks, I will try it...

Olivier.

--- In thinlet <at> yahoogroups.com, "FABIANO FRANZ" <franz <at> s...> wrote:
> How, Olivier, how are you? Take a look at ThinFeeder source-code
> (http://thinfeeder.sf.net), I have something like this:
> 
> boolean confirm = new Confirm(main, "Are you sure?").show();
> 
> Where "Confirm" is a Thinlet dialog, as you referred.
> 
> Fabiano Franz
> http://www.pribi.com.br
> http://thinfeeder.sf.net
> http://jimagetaglib.sf.net
> 
> -----Original Message-----
> From: "o_collioud" <o_collioud <at> y...>
> To: thinlet <at> yahoogroups.com
> Date: Fri, 29 Oct 2004 07:14:57 -0000
> Subject: [thinlet] Confirm modal dialog
> 
> > 
> > 
> > 
> > Hi,
(Continue reading)

o_collioud | 3 Nov 13:47
Picon
Favicon

Re: How to embed my thinlet app in a swing panel


Hi,

I would be very grateful if somebody could give me the way to embed a 
thinlet app in a swing container (Jframe, MDI ...).

Olivier. 

--- In thinlet <at> yahoogroups.com, Andrzej Bialecki <ab <at> g...> wrote:
> o_collioud wrote:
> 
> > 
> > Hi,
> > 
> > could you tell if it is possible to embed my thinlet app in a 
swing 
> > panel and How ?
> > 
> > I'm fairly new to Thinlet and Java and I have never coded any 
Swing 
> > UI.
> > 
> > My Java-skilled collegues are simply asking me if there is a 
chance 
> > that my Thinlet apps will be embedable in their Swing based apps.
> > 
> > Thanks for your help.
> 
> Thinlet extends a java.awt.Component - so yes, it can be added to 
any 
(Continue reading)

cgbburnet | 3 Nov 17:54
Picon

Re: Semicolon character in property definition


Sounds like a job for a simple BASE64 encoder/decoder pair for the 
_value_ part of a semicolon-separated list of {key,value} pairs.

Less complex to write, but also less efficient at encoding, a simple 
hex string encoder/decoder would work, i.e. uses only characters 
{a..f, 0..1} 

--- In thinlet <at> yahoogroups.com, "mike_hartshorn2" 
<mike_hartshorn <at> h...> wrote:
> 
> Hi Robert, I may be abusing the system slightly
> but I thought you could store essentially
> arbitrary key/value pairs in the object properties.
> 
> Its for storing scripting language commands for
> another component. (Its not meant as any kind
> of alternative to Scriptlet, its just a very
> convenient way of creating custom user
> interfaces without extra java coding
> for another system).

------------------------ Yahoo! Groups Sponsor --------------------~--> 
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/nhFolB/TM
--------------------------------------------------------------------~-> 

 
(Continue reading)


Gmane