Captive Imagination
September 06, 2010, 09:39:42 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Check out the teaser site for the first official game by Captive Imagination: http://www.galaxiesbeyond.com
 
   Home   Help Search Calendar Login Register  
Pages: 1 [2]  All   Go Down
  Print  
Author Topic: Datagrid  (Read 2852 times)
0 Members and 1 Guest are viewing this topic.
arcadLemon
Newbie
*
Offline Offline

Posts: 20


View Profile
« Reply #15 on: June 23, 2007, 06:11:10 AM »

Hi Matt.
Yesterday, I did my presentation.
It was about RIA in general.
My demo was written using JSeamless and the JPA  API (Hibernate+HibernateAnnotations+EntityManager).
Your DataTable implementation was used to display the list of items in the DB.


Can you show me some code reproducing this?  Realize that the location and size of the Window is bound to the container to which it is added.

I have troubles with both setLocation() and setVisible().
Bellow is a simplified code reproducing the problem:

Code:

public class BugWindow extends Application {
private static final long serialVersionUID = -2991083575499294265L;
private static final String bug = "Bug?";
private static final Point bugBoxLocation = new Point(5, 5);

public BugWindow() {
super(bug);

/** note the location point bugBoxLocation*/
MessageBox bugBox = new MessageBox(bug, new Dimension(200, 150),
bugBoxLocation);

/** set the box to invisible */
bugBox.setVisible(false);

add(bugBox);

/** as it's still visible, once more, try to set it to invisible!!!! */
bugBox.setVisible(false);

/** as it's still centered, try once more to set its location */
bugBox.setLocation(bugBoxLocation);

/** even update() does not help */
// update();
}

class MessageBox extends Window {

private static final long serialVersionUID = 2639194331024540019L;

public MessageBox(String title, Dimension size, Point location) {

super(title);
if (location != null)
this.setLocation(location);

getStyle().setShowEffect(EffectFactory.createFadeIn(1000));
setSize(size);
setShowClose(true);
setResizable(true);

Box box = new Box();
box.setSize(Dimension.createPercentage(100, 100));
add(box);

}

}
}

Logged
darkfrog
Administrator
Inspired Imagination
*****
Offline Offline

Posts: 2650


View Profile
« Reply #16 on: June 23, 2007, 08:28:26 AM »

How'd the presentation go?

I just found the bug in Window in the Flex implementation for both setLocation and setVisible and they are both fixed and checked in.  If you update from the repository you'll see the changes or update your JARs.

Keep the bug finds coming. Wink
Logged
arcadLemon
Newbie
*
Offline Offline

Posts: 20


View Profile
« Reply #17 on: June 24, 2007, 03:39:33 PM »

How'd the presentation go?
The presentation was cool. My colleagues liked JSeamless.
They were very concerned about its future and stability.
When they learnt that it is a one-man-job, then they were more interested about Adobe Flex.
But they did not like learning ActionScript Wink

Keep the bug finds coming. Wink

Just an enhancement:
During development, when there is for instance a NullPointerException, the exception is being logged infinitely until I stop tomcat.
This is OK during development, but is unacceptable in PROD as this can totally full the system drive.

Thanks.
« Last Edit: June 24, 2007, 04:05:57 PM by arcadLemon » Logged
darkfrog
Administrator
Inspired Imagination
*****
Offline Offline

Posts: 2650


View Profile
« Reply #18 on: June 24, 2007, 08:00:37 PM »

I believe if you update your project this is fixed...if it's not send me the stack trace and I'll track it down and squash it. Wink

It is currently a one man project with several contributors.  However, the end goal is to have many developers working on the project.  You've just got to realize that jSeamless, though I've been developing the idea for a couple years now, is really new to the "public".  Until very recently I didn't feel I was ready to show it off and make it available for widespread use.  It's becoming more popular all the time and more companies are picking up interest, but it's just going to take time and a commitment from companies to help get it where they want it.
Logged
arcadLemon
Newbie
*
Offline Offline

Posts: 20


View Profile
« Reply #19 on: July 01, 2007, 02:18:13 PM »

I believe if you update your project this is fixed...if it's not send me the stack trace and I'll track it down and squash it. Wink

I've got the latest build.
This prob is still there.

To simulate this prob, implement the interface org.jcommon.security.Authenticator and have
Code:
public String[] getRealms() {
return null;
}

Then, when using the LoginPanel, you get NullPointerException at line 84 (because getRealms() returns null):
Code:
if (authenticator.getRealms().length > 0) {

Then, the stacktrace get printed billion of times until I stop my tomcat :-(
 

Any chance we'll get a bug tracking system soon?

Thanks.
Logged
darkfrog
Administrator
Inspired Imagination
*****
Offline Offline

Posts: 2650


View Profile
« Reply #20 on: July 01, 2007, 08:00:42 PM »

I'll try to get a look at this first thing tomorrow.

I'll also see if I can't get a bug tracking system up ASAP so we can handle this stuff better.
Logged
darkfrog
Administrator
Inspired Imagination
*****
Offline Offline

Posts: 2650


View Profile
« Reply #21 on: July 02, 2007, 07:43:06 AM »

I just tested this bug and was unable to reproduce it. An exception is thrown like it is supposed to be, but only thrown once.

You're running from SVN?  Can you provide a complete example to reproduce the problem?
Logged
~arph
Newbie
*
Offline Offline

Posts: 1


View Profile
« Reply #22 on: July 05, 2007, 05:02:14 AM »

Hi,

Any updates on getting the selected row?
(eg. on doubleclicking I want to open the details of the selected record.)

Thanks,

Arnoud
Logged
darkfrog
Administrator
Inspired Imagination
*****
Offline Offline

Posts: 2650


View Profile
« Reply #23 on: July 05, 2007, 10:06:01 AM »

Okay, I've added basic support for selecting a row both programmatically and via user interaction.  This is preliminary as I'm going to be changing the whole way selections occur very soon as sorting will currently break this functionality.

I am going to add support into the Flex implementation to send back the unique id of the selected object instead so it will always correctly map.

This should work preliminarily, and hopefully soon I'll get that aspect re-written.  You shouldn't need to make any changes to your existing code when this change is put in place since it is entirely in the implementation.
Logged
Pages: 1 [2]  All   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 0.197 seconds with 20 queries.