Re: [Wicket-user] Testing Wicket 1.2 on Glassfish b48

2006-07-26 Thread Vincent Jenks
I just downloaded 1.2.1, how do I take advantage of this?  I'm hoping
I can use 1.2.1 on Glassfish w/o having to custom-build it like I did
w/ 1.2.

Thanks!

On 7/10/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
 just added this, it will be in 1.2.1

   action type=update dev=Igor VaynbergAdded
 IDebugSettings.serializeSessionAttributes instead of
 relying on logger set to debug mode for the session store/action


 -Igor


 On 7/10/06, Vincent Jenks [EMAIL PROTECTED] wrote:
  Beautiful, it all built and it works in the app.
 
  Thanks Igor!
 
  On 7/10/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
   mvn install -Dmaven.test.skip=true
  
  
   -Igor
  
  
   On 7/10/06, Vincent Jenks [EMAIL PROTECTED]  wrote:
OK, that definitely helped...but
   
Results :
Tests run: 410, Failures: 0, Errors: 1, Skipped: 0
   
[INFO]
  
 
[ERROR] BUILD FAILURE
[INFO]
  
 
[INFO] There are test failures.
[INFO]
  
 
[INFO] For more information, run Maven with the -e switch
[INFO]
  
 
[INFO] Total time: 1 minute 22 seconds
[INFO] Finished at: Mon Jul 10 13:48:34 MDT 2006
[INFO] Final Memory: 7M/35M
[INFO]
  
 
   
On 7/10/06, Igor Vaynberg  [EMAIL PROTECTED] wrote:
 looks like their repo servers are overloaded -- too popular for
 their
   own
 good

 try this:


  
 http://www.nabble.com/new-maven-repo-available-with-snapshots-tf1851211.html#a5054042

 -Igor



 On 7/10/06, Vincent Jenks [EMAIL PROTECTED]  wrote:
  No such luck - that didn't work any better.
 
  when doing 'mvn install' in the top-level WICKET_1_2 directory I
 get
   this
 error:
 
  Downloading:

  
 http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-container-
 

  
 default/1.0-alpha-8/plexus-container-default-1.0-alpha-8.pom
  [INFO]

  
 
  [ERROR] BUILD ERROR
  [INFO]

  
 
  [INFO] Error building POM (may not be this project's POM).
 
 
  Project ID:
   org.codehaus.plexus:plexus-container-default
 
  Reason: Error getting POM for
 ' org.codehaus.plexus:plexus-container-default' fro
  m the repository: Error transferring file
 

  
 org.codehaus.plexus:plexus-container-default:pom:1.0-alpha-8
 
  from the specified remote repositories:
central (http://repo1.maven.org/maven2),
apache.snapshots
 (http://svn.apache.org/maven-snapshot-repository ),
snapshots
   ( http://snapshots.maven.codehaus.org/maven2)
 
  So, just for the sake of completeness I cd'd into the lower
 'wicket'
  directory and ran 'mvn install' and got this:
 
  [INFO]

  
 
  [ERROR] BUILD ERROR
  [INFO]

  
 
  [INFO] Failed to resolve artifact.
 
  Error transferring file
 

  
 org.apache.maven.plugins:maven-surefire-plugin:maven-plugin:2.2
 
  from the specified remote repositories:
central ( http://repo1.maven.org/maven2 )
 
 
  Caused by I/O exception: Server returned HTTP response code: 503
 for
   URL:
 http:/
 

  
 /repo1.maven.org/maven2/org/apache/maven/plugins/maven-surefire-plugin/2.2/maven
  -surefire-plugin-2.2.jar.sha1
 
  Sounds like it might be better in concept than Ant but you run the
  risk of not being able to download dependencies - not sure I like
 the
  idea of relying on an internet connection for them.
 
  Anyhow...no closer than I was before.
 
  Any ideas?
 
  On 7/7/06, Igor Vaynberg  [EMAIL PROTECTED] wrote:
   thats what i understood from martijn. the problem is that there
 is a
 parent
   pom file that all other projects inherit from, so that means
 that
   parent
 pom
   has to be installed in the maven repo in order for other
 projects to
 find it
   when you try to build
  
   so what i would do is
  
  
   cd WICKET_1_2
   mvn install  (possibly optional if you have the whole thing
   checked
 out)
  
   cd wicket
   mvn install
  
   and you should be good to go
  
   -Igor
  
  
  
  
  
   On 7/7/06, V. Jenks  [EMAIL PROTECTED] wrote:
So, if I check out all projects at
   
  

  
 https

Re: [Wicket-user] Testing Wicket 1.2 on Glassfish b48

2006-07-26 Thread Vincent Jenks
Also, I'm not able to build Wicket 1.2.1 w/ maven like I did w/ 1.2.

In the top-level 'wicket' folder doing mvn install
-Dmaven.test.skip=true gives me this:

[INFO] Scanning for projects...
Downloading: http://maven.sateh.com/repository/wicket/wicket-parent/1.2.1/wicket
-parent-1.2.1.pom
[WARNING] Unable to get resource from repository central (http://repo1.maven.org
/maven2)
[INFO] 
[ERROR] FATAL ERROR
[INFO] 
[INFO] Failed to resolve artifact.

GroupId: wicket
ArtifactId: wicket-parent
Version: 1.2.1

Reason: Unable to download the artifact from any repository

  wicket:wicket-parent:pom:1.2.1

from the specified remote repositories:
  central (http://repo1.maven.org/maven2)


[INFO] 
[INFO] Trace
org.apache.maven.reactor.MavenExecutionException: Cannot find parent: wicket:wic
ket-parent for project: null:wicket:jar:null
at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:365)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:278)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)

at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.project.ProjectBuildingException: Cannot find parent
: wicket:wicket-parent for project: null:wicket:jar:null
at org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(D
efaultMavenProjectBuilder.java:1161)
at org.apache.maven.project.DefaultMavenProjectBuilder.buildInternal(Def
aultMavenProjectBuilder.java:674)
at org.apache.maven.project.DefaultMavenProjectBuilder.buildFromSourceFi
leInternal(DefaultMavenProjectBuilder.java:416)
at org.apache.maven.project.DefaultMavenProjectBuilder.build(DefaultMave
nProjectBuilder.java:192)
at org.apache.maven.DefaultMaven.getProject(DefaultMaven.java:515)
at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:447)
at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:351)
... 11 more
Caused by: org.apache.maven.project.ProjectBuildingException: POM 'wicket:wicket
-parent' not found in repository: Unable to download the artifact from any repos
itory

  wicket:wicket-parent:pom:1.2.1

from the specified remote repositories:
  central (http://repo1.maven.org/maven2)

at org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepo
sitory(DefaultMavenProjectBuilder.java:513)
at org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(D
efaultMavenProjectBuilder.java:1157)
... 17 more
Caused by: org.apache.maven.artifact.resolver.ArtifactNotFoundException: Unable
to download the artifact from any repository

  wicket:wicket-parent:pom:1.2.1

from the specified remote repositories:
  central (http://repo1.maven.org/maven2)

at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(De
faultArtifactResolver.java:136)
at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(De
faultArtifactResolver.java:63)
at org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepo
sitory(DefaultMavenProjectBuilder.java:467)
... 18 more
Caused by: org.apache.maven.wagon.ResourceDoesNotExistException: Unable to downl
oad the artifact from any repository
at org.apache.maven.artifact.manager.DefaultWagonManager.getArtifact(Def
aultWagonManager.java:260)
at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(De
faultArtifactResolver.java:124)
... 20 more
[INFO] 
[INFO] Total time:  1 second
[INFO] Finished at: Wed Jul 26 10:47:57 MDT 2006
[INFO] Final Memory: 1M/2M
[INFO] 

On 7/26/06, Vincent Jenks [EMAIL PROTECTED] wrote:
 I just downloaded 1.2.1, how do I take advantage of this?  I'm hoping
 I can use 1.2.1 on Glassfish w/o having to custom-build it like I did
 w/ 1.2.

 Thanks!

 On 7/10/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
  just added this, it will be in 1.2.1
 
action type=update dev=Igor VaynbergAdded

[Wicket-user] set static values on DropDownChoice

2006-07-18 Thread Vincent Jenks
This seems like a lame question but I'm struggling again w/ the
DropDownChoice control (using 1.2).

I simply want to set static values to a DropDownChoice control so they
can be drawn out later in the form's input class when it's submitted.

I thought I had done this before but can't find that I have - how can
I set, say, a Map of name/value pairs of Strings?

In this case I'm not providing a ListT of values to the dropdown but
rather a MapString, String of static values - unless of course
there's an easier way.

This control still feels cumbersome to work worthperhaps it's just me?

Thanks!

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] More examples of sorting?

2006-07-18 Thread Vincent Jenks
Is there something smaller  simpler out there I could refer to for
sorting?  I've glanced at the DataView example a few times and once I
start digging in it just seems unwieldly to me.  I'm simply trying to
sort a List of entities and the getContactsDB() stuff in the examples
is a bit complicated to try and pick through.

I gave paging a shot yesterday but quickly figured out it wouldn't be
a snap to throw together like most wicket stuff I've done so
farI'm in a crunch or I'd spend more time banging my head on the
table.

I think if I just had a couple real-world examples I'd pick it up faster.

How's that book coming along? :D

Thanks!

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] More examples of sorting?

2006-07-18 Thread Vincent Jenks
Currently I don't have anything like the ContactsDatabase class in
'examples' - I'm just pulling a list of data and displaying in a
ListViewbut it appears now that I'm browsing through I'm going to
have to create one and implement some of the methods like you have in
order to get paging/sorting.

I'll play w/ it...it was just a little more than I expected once I
started digging into it.

On 7/18/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
 what could be simpler then the dataview? its just like a listview only
 instead of being fed off the list it is fed from the idataprovider.

 class mydataprovider implements idataprovider() {
iterator iterator(int first, int count) {
   return mydao.findcontacts(first, count).iterator();
}

 int size() {
return mydao.countcontacts();
  }

 model model(object o) {
   Contact contact=(Contact)o;
 return new ContactDetachableModel(contact);
   //or return new Model(contact);
 }
 }

 and that gets you paging, sorting is like this

 mydataprovider extends sortabledataprovider {
  // ditto from above

iterator iterator(int first, int last) {
  return mydao.findcontacts(first, last, getsort().getproperty(),
 getsort().getcount();
}

 }


 if you have more specific questions i will be happy to help you

 -Igor





 On 7/18/06, Vincent Jenks [EMAIL PROTECTED] wrote:
 
  Is there something smaller  simpler out there I could refer to for
 sorting?  I've glanced at the DataView example a few times and once I
 start digging in it just seems unwieldly to me.  I'm simply trying to
  sort a List of entities and the getContactsDB() stuff in the examples
 is a bit complicated to try and pick through.

 I gave paging a shot yesterday but quickly figured out it wouldn't be
 a snap to throw together like most wicket stuff I've done so
 farI'm in a crunch or I'd spend more time banging my head on the
 table.

 I think if I just had a couple real-world examples I'd pick it up faster.

 How's that book coming along? :D

 Thanks!

 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share your
 opinions on IT  business topics through brief surveys -- and earn cash
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user


 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share your
 opinions on IT  business topics through brief surveys -- and earn cash
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV

 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user




-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] More examples of sorting?

2006-07-18 Thread Vincent Jenks
Well, I don't have DAOs in this particular project - it's an EJB3
project where I'm simply using SLSBs as DAOsso I have the
EntityManager to work from and I should be able to bring the two
together to facilitate this...

This may be easier than I thought

On 7/18/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
 yep, you have to code your daos with paging and sorting in mind, it cannot
 be slapped on as an afterthought.

 let me give you some clues

 see the attached QueryParam class, all my finder dao methods take it so that
 they can page/sort accordingly.

 hope it gets you started


 -Igor




 On 7/18/06, Vincent Jenks [EMAIL PROTECTED]  wrote:
  Currently I don't have anything like the ContactsDatabase class in
  'examples' - I'm just pulling a list of data and displaying in a
  ListViewbut it appears now that I'm browsing through I'm going to
  have to create one and implement some of the methods like you have in
  order to get paging/sorting.
 
  I'll play w/ it...it was just a little more than I expected once I
  started digging into it.
 
  On 7/18/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
   what could be simpler then the dataview? its just like a listview only
   instead of being fed off the list it is fed from the idataprovider.
  
   class mydataprovider implements idataprovider() {
  iterator iterator(int first, int count) {
 return mydao.findcontacts(first, count).iterator();
  }
  
   int size() {
  return mydao.countcontacts();
}
  
   model model(object o) {
 Contact contact=(Contact)o;
   return new ContactDetachableModel(contact);
 //or return new Model(contact);
   }
   }
  
   and that gets you paging, sorting is like this
  
   mydataprovider extends sortabledataprovider {
// ditto from above
  
  iterator iterator(int first, int last) {
return mydao.findcontacts(first, last, getsort().getproperty(),
   getsort().getcount();
  }
  
   }
  
  
   if you have more specific questions i will be happy to help you
  
   -Igor
  
  
  
  
  
   On 7/18/06, Vincent Jenks [EMAIL PROTECTED] wrote:
   
Is there something smaller  simpler out there I could refer to for
   sorting?  I've glanced at the DataView example a few times and once I
   start digging in it just seems unwieldly to me.  I'm simply trying to
sort a List of entities and the getContactsDB() stuff in the examples
   is a bit complicated to try and pick through.
  
   I gave paging a shot yesterday but quickly figured out it wouldn't be
   a snap to throw together like most wicket stuff I've done so
   farI'm in a crunch or I'd spend more time banging my head on the
   table.
  
   I think if I just had a couple real-world examples I'd pick it up
 faster.
  
   How's that book coming along? :D
  
   Thanks!
  
  
 -
   Take Surveys. Earn Cash. Influence the Future of IT
   Join SourceForge.net's Techsay panel and you'll get the chance to share
 your
   opinions on IT  business topics through brief surveys -- and earn cash
  
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
   ___
   Wicket-user mailing list
   Wicket-user@lists.sourceforge.net
  
 https://lists.sourceforge.net/lists/listinfo/wicket-user
  
  
  
 -
   Take Surveys. Earn Cash. Influence the Future of IT
   Join SourceForge.net's Techsay panel and you'll get the chance to share
 your
   opinions on IT  business topics through brief surveys -- and earn cash
  
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
  
   ___
   Wicket-user mailing list
   Wicket-user@lists.sourceforge.net
  
 https://lists.sourceforge.net/lists/listinfo/wicket-user
  
  
  
 
 
 -
  Take Surveys. Earn Cash. Influence the Future of IT
  Join SourceForge.net's Techsay panel and you'll get the chance to share
 your
  opinions on IT  business topics through brief surveys -- and earn cash
 
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 


 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share your
 opinions on IT  business topics through brief surveys -- and earn cash
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV

 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net

Re: [Wicket-user] More examples of sorting?

2006-07-18 Thread Vincent Jenks
Wow...ok...I'm making a total disaster of this.  I can't help but
think there's an easier way. :(

I've got this method in what we could call a dao:

public ListIncident getFiltered(int first, int count, String orderBy)
{
String query = select i from Incident i order by :orderBy;

Query q = this.em.createQuery(query);
q.setParameter(orderBy, orderBy);

q.setFirstResult(first);
q.setMaxResults(count);

return q.getResultList();
}

And I've got started what might someday become a provider class:

public class IncidentsProvider
extends SortableDataProvider
implements IDetachable
{
private transient ListIncident incidents;

/**
 * default ctor
 */
public IncidentsProvider(Integer first, Integer count, String orderBy)
{
this.incidents = myDao.getFiltered(first, count, orderBy);

setSort(openDate, true);
}

public Iterator iterator(int first, int count)
{
return this.incidents.listIterator(first); // - what do do?
}

public int size()
{
return this.incidents.size();
}

public IModel model(Object object)
{
return new Model((Serializable)object);
}

public void detach()
{
this.incidents = null;
}
}

As you can see, I'm trying to marry my provider to my DAO as closely
as possible...I'm not worried about elegance and cleanliness right now
- just trying to take it one step at a time and get it *working*.

I can make some sort of 'if asc then make desc' and vice/versa afterward

Sorry, it's been a long day...maybe I need a breaktwo or three
weeks ought to do it.

On 7/18/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
 then the only semidifficult part is the sorting - you need to come up with
 some utils that append the sort for you.

 as far as paging it would translate directly to

 session.setFirstResult(queryparam.getFirst()).setMaxResults(
 queryparam.getCount());

 -Igor



 On 7/18/06, Vincent Jenks [EMAIL PROTECTED] wrote:
 
 Well, I don't have DAOs in this particular project - it's an EJB3
 project where I'm simply using SLSBs as DAOsso I have the
 EntityManager to work from and I should be able to bring the two
 together to facilitate this...

 This may be easier than I thought

 On 7/18/06, Igor Vaynberg  [EMAIL PROTECTED] wrote:
  yep, you have to code your daos with paging and sorting in mind, it cannot
  be slapped on as an afterthought.
 
  let me give you some clues
 
  see the attached QueryParam class, all my finder dao methods take it so
 that
  they can page/sort accordingly.
 
  hope it gets you started
 
 
  -Igor
 
 
 
 
  On 7/18/06, Vincent Jenks  [EMAIL PROTECTED]  wrote:
   Currently I don't have anything like the ContactsDatabase class in
   'examples' - I'm just pulling a list of data and displaying in a
   ListViewbut it appears now that I'm browsing through I'm going to
   have to create one and implement some of the methods like you have in
   order to get paging/sorting.
  
   I'll play w/ it...it was just a little more than I expected once I
started digging into it.
  
   On 7/18/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
what could be simpler then the dataview? its just like a listview only
instead of being fed off the list it is fed from the idataprovider.
   
class mydataprovider implements idataprovider() {
   iterator iterator(int first, int count) {
  return mydao.findcontacts(first, count).iterator();
   }
   
int size() {
   return mydao.countcontacts();
 }
   
model model(object o) {
  Contact contact=(Contact)o;
return new
 ContactDetachableModel(contact);
  //or return new Model(contact);
}
}
   
and that gets you paging, sorting is like this
   
mydataprovider extends sortabledataprovider {
 // ditto from above
   
   iterator iterator(int first, int last) {
 return mydao.findcontacts(first, last,
 getsort().getproperty(),
getsort().getcount();
   }
   
}
   
   
if you have more specific questions i will be happy to help you
   
-Igor
   
   
   
   
   
On 7/18/06, Vincent Jenks [EMAIL PROTECTED] wrote:

 Is there something smaller  simpler out there I could refer to for
sorting?  I've glanced at the DataView example a few times and once I
start digging in it just seems unwieldly to me.  I'm simply trying to
 sort a List of entities and the getContactsDB() stuff in the examples
is a bit complicated to try and pick through.
   
I gave paging a shot yesterday but quickly figured out it wouldn't be
a snap

Re: [Wicket-user] More examples of sorting?

2006-07-18 Thread Vincent Jenks
I appreciate it Frank, however I'm not familiar w/ DataTable or the
SortableDataProvider - this is my first run.  Really what I need is to
see sorting working and I haven't even gotten that far.

I'd be willing to take a lookit might be easier to see it working
w/ plain JDBC to get a view of this w/ a different perspective, if
anything.

Thanks!

On 7/18/06, Frank Silbermann [EMAIL PROTECTED] wrote:
 If your SLSBs were not coded with paging and sorting in mind, you'll
 probably have to implement a layer that understands sorting and paging
 to stand between your SortableDataProvider and your SLSBs.  To do that
 in an ad-hoc way relevant to one specific set of data is probably time
 consuming at worst, but a general approach doesn't sound very easy to
 me.

 Is your data set too large to keep in the WebPage on the server while
 your user plays with it, sorting it this way and that?  Must you throw
 away the data between postbacks, re-querying each time?  If not, why
 don't you take a look at the classes I posted to the group last week
 (and sent you in private e-mail as well)?  Even if you're not interested
 in getting your data via vanilla JDBC SQL SELECT queries, I'm sure my
 approach can be adapted.

 My code is not difficult to read if you are at all familiar with
 DataTable and SortableDataProvider.  I'd be happy to answer any
 questions. /Frank

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Vincent
 Jenks
 Sent: Tuesday, July 18, 2006 4:50 PM
 To: wicket-user@lists.sourceforge.net
 Subject: Re: [Wicket-user] More examples of sorting?

 Well, I don't have DAOs in this particular project - it's an EJB3
 project where I'm simply using SLSBs as DAOsso I have the
 EntityManager to work from and I should be able to bring the two
 together to facilitate this...

 This may be easier than I thought

 On 7/18/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
  yep, you have to code your daos with paging and sorting in mind, it
  cannot be slapped on as an afterthought.
 
  let me give you some clues
 
  see the attached QueryParam class, all my finder dao methods take it
  so that they can page/sort accordingly.
 
  hope it gets you started
 
 
  -Igor
 
 
 
 
  On 7/18/06, Vincent Jenks [EMAIL PROTECTED]  wrote:
   Currently I don't have anything like the ContactsDatabase class in
   'examples' - I'm just pulling a list of data and displaying in a
   ListViewbut it appears now that I'm browsing through I'm going
   to have to create one and implement some of the methods like you
   have in order to get paging/sorting.
  
   I'll play w/ it...it was just a little more than I expected once I
   started digging into it.
  
   On 7/18/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
what could be simpler then the dataview? its just like a listview
only instead of being fed off the list it is fed from the
 idataprovider.
   
class mydataprovider implements idataprovider() {
   iterator iterator(int first, int count) {
  return mydao.findcontacts(first, count).iterator();
   }
   
int size() {
   return mydao.countcontacts();
 }
   
model model(object o) {
  Contact contact=(Contact)o;
return new ContactDetachableModel(contact);
  //or return new Model(contact);
}
}
   
and that gets you paging, sorting is like this
   
mydataprovider extends sortabledataprovider {
 // ditto from above
   
   iterator iterator(int first, int last) {
 return mydao.findcontacts(first, last,
getsort().getproperty(), getsort().getcount();
   }
   
}
   
   
if you have more specific questions i will be happy to help you
   
-Igor
   
   
   
   
   
On 7/18/06, Vincent Jenks [EMAIL PROTECTED] wrote:

 Is there something smaller  simpler out there I could refer to
for sorting?  I've glanced at the DataView example a few times and

once I start digging in it just seems unwieldly to me.  I'm simply

trying to  sort a List of entities and the getContactsDB() stuff
in the examples is a bit complicated to try and pick through.
   
I gave paging a shot yesterday but quickly figured out it wouldn't

be a snap to throw together like most wicket stuff I've done so
farI'm in a crunch or I'd spend more time banging my head on
the table.
   
I think if I just had a couple real-world examples I'd pick it up
  faster.
   
How's that book coming along? :D
   
Thanks!
   
   
  --
  ---
Take Surveys. Earn Cash. Influence the Future of IT Join
SourceForge.net's Techsay panel and you'll get the chance to share
  your
opinions on IT  business topics through brief surveys -- and earn

cash
   
  http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEV
  DEV

Re: [Wicket-user] Wicket Hibernate Application Transactions

2006-07-17 Thread Vincent Jenks
I've been successful w/ exactly what Iman is concerned with - keeping
objects alive between requests just isn't necessary.  With
detachable-models, you can request your POJOs - and they effectively
become detached (outside of Hibernate session context).  You can pass
them between pages and persist them (putting them back into Hibernate
session context) by using merge() if you've updated their values.

I often save a round-trip by doing this w/ parent/child pages where I
pass the POJO to the detail page to view the child after it had
already been detached from the parent page.

On 7/17/06, Nathan Hamblen [EMAIL PROTECTED] wrote:
 As others have pointed out, the magic of IModel works better than you
 think (or thought) it does. I often have two constructors for pages, one
 taking bookmarkable parameters and another taking an IModel so that I
 don't always have to reload DB objects page to page. It's a cinch.

 http://databinder.net/wsvn/Databinder/recipe/trunk/src/main/java/example/RecipeBook.java?op=file

 But I get your point, when you say that this method is mostly adapted
 to the old MVC style of web programming. You're right. The
 one-session-per-request style is the conventional wisdom that we should
 be questioning here on the cutting edge.

 On the other hand, we have to be careful of getting TOO far ahead of the
 curve. This listserv used to get about one question a week about
 Wicket's crazy practice of actually using the session store. Those Qs
 have turned into general concerns about about load, high volume, etc.
 The fact that Wicket has a system of detachable models that can
 repopulate themselves from DB each request cycle is enormously
 comforting to people.

 This system works very well and practically everyone uses it, but that
 shouldn't stop you from trying something else. Whatever you come up with
 just might be the way we all do it in a few years, when server resources
 dwarf those available today. I like IModels fine, and will like them
 even more when they're strongly typed, but I'll admit it would be easier
 to just pass around the objects they contain. Significantly easier for
 new users.

 So please do give it a shot. (I'm assuming your app is high-complexity,
 low-volume, or that you have small data objects.) I can't think of
 anything in Wicket that would slow you down, other than the minor
 annoyance of having to wrap objects in new Model(Serializable o) before
 passing them to some framework components.

 And let us know how it goes!

 Nathan


 Iman Rahmatizadeh wrote:
  The problem with #1 is, first its a bit ugly, second you discard every
  persistent instance in each cycle (which is less efficient than #2 or
  #3), third you lose the advantages of working  passing POJO's between
  pages, Like you would call 'new ProfilePage(person.getId())' instead of
  'new ProfilePage(person))' and retrieve the person from database again
  in the profile page. As Nathan said, despite the disadvantages, it's the
  easiest and the most straight forward, and mostly adapted to the old MVC
  style of web programming.
  With wicket, I would like to pass objects around to pages and methods,
  keep them in memory during the unit of work, and persist the changes at
  the end. The problem is I make a new Hibernate Session in each request
  cycle, so I have to re-attach the objects from the previous cycle to the
  new Hibernate Session each time (as in #2). This can get quite
  cumbersome and would easily get out of control.
  With all that said , I guess I'm alone in this case and everybody agrees
  on using #1. Still if anybody has any experience with #2 or #3, I would
  be happy to know about it.
 
  Iman



 -
 Using Tomcat but need to do more? Need to support web services, security?
 Get stuff done quickly with pre-integrated technology to make your job easier
 Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Testing Wicket 1.2 on Glassfish b48

2006-07-10 Thread Vincent Jenks
OK, that definitely helped...but

Results :
Tests run: 410, Failures: 0, Errors: 1, Skipped: 0

[INFO] 
[ERROR] BUILD FAILURE
[INFO] 
[INFO] There are test failures.
[INFO] 
[INFO] For more information, run Maven with the -e switch
[INFO] 
[INFO] Total time: 1 minute 22 seconds
[INFO] Finished at: Mon Jul 10 13:48:34 MDT 2006
[INFO] Final Memory: 7M/35M
[INFO] 

On 7/10/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
 looks like their repo servers are overloaded -- too popular for their own
 good

 try this:

 http://www.nabble.com/new-maven-repo-available-with-snapshots-tf1851211.html#a5054042

 -Igor



 On 7/10/06, Vincent Jenks [EMAIL PROTECTED] wrote:
  No such luck - that didn't work any better.
 
  when doing 'mvn install' in the top-level WICKET_1_2 directory I get this
 error:
 
  Downloading:
 http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-container-
 
 default/1.0-alpha-8/plexus-container-default-1.0-alpha-8.pom
  [INFO]
 
  [ERROR] BUILD ERROR
  [INFO]
 
  [INFO] Error building POM (may not be this project's POM).
 
 
  Project ID: org.codehaus.plexus:plexus-container-default
 
  Reason: Error getting POM for
 'org.codehaus.plexus:plexus-container-default' fro
  m the repository: Error transferring file
 
 org.codehaus.plexus:plexus-container-default:pom:1.0-alpha-8
 
  from the specified remote repositories:
central (http://repo1.maven.org/maven2),
apache.snapshots
 (http://svn.apache.org/maven-snapshot-repository ),
snapshots (http://snapshots.maven.codehaus.org/maven2)
 
  So, just for the sake of completeness I cd'd into the lower 'wicket'
  directory and ran 'mvn install' and got this:
 
  [INFO]
 
  [ERROR] BUILD ERROR
  [INFO]
 
  [INFO] Failed to resolve artifact.
 
  Error transferring file
 
 org.apache.maven.plugins:maven-surefire-plugin:maven-plugin:2.2
 
  from the specified remote repositories:
central (http://repo1.maven.org/maven2 )
 
 
  Caused by I/O exception: Server returned HTTP response code: 503 for URL:
 http:/
 
 /repo1.maven.org/maven2/org/apache/maven/plugins/maven-surefire-plugin/2.2/maven
  -surefire-plugin-2.2.jar.sha1
 
  Sounds like it might be better in concept than Ant but you run the
  risk of not being able to download dependencies - not sure I like the
  idea of relying on an internet connection for them.
 
  Anyhow...no closer than I was before.
 
  Any ideas?
 
  On 7/7/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
   thats what i understood from martijn. the problem is that there is a
 parent
   pom file that all other projects inherit from, so that means that parent
 pom
   has to be installed in the maven repo in order for other projects to
 find it
   when you try to build
  
   so what i would do is
  
  
   cd WICKET_1_2
   mvn install  (possibly optional if you have the whole thing checked
 out)
  
   cd wicket
   mvn install
  
   and you should be good to go
  
   -Igor
  
  
  
  
  
   On 7/7/06, V. Jenks [EMAIL PROTECTED] wrote:
So, if I check out all projects at
   
  
 https://svn.sourceforge.net/svnroot/wicket/tags/WICKET_1_2/

  
 https://svn.sourceforge.net/svnroot/wicket/tags/WICKET_1_2/wicket
   I
should be able to build them w/ maven, as you described before?
   
Igor Vaynberg wrote:
 svn co

  
 https://svn.sourceforge.net/svnroot/wicket/tags/WICKET_1_2/wicket
   will
 give you the 1.2 release

 maven doesnt work out of the box because of the new build thing
 martijn is trying where you need to have a parent pom installed
 first
 so its a more tedious process unless you check out the entire folder
 that contains all the projects.

 -Igor


 On 7/7/06, *Vincent Jenks*  [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED] wrote:

 Ha!  It ran w/o the exception!  It would have been nice to get
   around
 the logging another way but I guess I'll take what I can get at
 this
 point.

 My last concern is - is 1.2.1.rc1 fit for production - because
 this
 site is *already* in production and I'm hesitant to throw a
   relatively
 unstable version of wicket into it.

 Could someone help me figure out how to build the 1.2 final
 branch
 w/o errors?

 Thanks!

 On 7/7/06, Vincent Jenks  [EMAIL PROTECTED]
 mailto:[EMAIL

Re: [Wicket-user] Testing Wicket 1.2 on Glassfish b48

2006-07-10 Thread Vincent Jenks
Beautiful, it all built and it works in the app.

Thanks Igor!

On 7/10/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
 mvn install -Dmaven.test.skip=true


 -Igor


 On 7/10/06, Vincent Jenks [EMAIL PROTECTED]  wrote:
  OK, that definitely helped...but
 
  Results :
  Tests run: 410, Failures: 0, Errors: 1, Skipped: 0
 
  [INFO]
 
  [ERROR] BUILD FAILURE
  [INFO]
 
  [INFO] There are test failures.
  [INFO]
 
  [INFO] For more information, run Maven with the -e switch
  [INFO]
 
  [INFO] Total time: 1 minute 22 seconds
  [INFO] Finished at: Mon Jul 10 13:48:34 MDT 2006
  [INFO] Final Memory: 7M/35M
  [INFO]
 
 
  On 7/10/06, Igor Vaynberg  [EMAIL PROTECTED] wrote:
   looks like their repo servers are overloaded -- too popular for their
 own
   good
  
   try this:
  
  
 http://www.nabble.com/new-maven-repo-available-with-snapshots-tf1851211.html#a5054042
  
   -Igor
  
  
  
   On 7/10/06, Vincent Jenks [EMAIL PROTECTED]  wrote:
No such luck - that didn't work any better.
   
when doing 'mvn install' in the top-level WICKET_1_2 directory I get
 this
   error:
   
Downloading:
  
 http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-container-
   
  
 default/1.0-alpha-8/plexus-container-default-1.0-alpha-8.pom
[INFO]
  
 
[ERROR] BUILD ERROR
[INFO]
  
 
[INFO] Error building POM (may not be this project's POM).
   
   
Project ID:
 org.codehaus.plexus:plexus-container-default
   
Reason: Error getting POM for
   'org.codehaus.plexus:plexus-container-default' fro
m the repository: Error transferring file
   
  
 org.codehaus.plexus:plexus-container-default:pom:1.0-alpha-8
   
from the specified remote repositories:
  central (http://repo1.maven.org/maven2),
  apache.snapshots
   (http://svn.apache.org/maven-snapshot-repository ),
  snapshots
 (http://snapshots.maven.codehaus.org/maven2)
   
So, just for the sake of completeness I cd'd into the lower 'wicket'
directory and ran 'mvn install' and got this:
   
[INFO]
  
 
[ERROR] BUILD ERROR
[INFO]
  
 
[INFO] Failed to resolve artifact.
   
Error transferring file
   
  
 org.apache.maven.plugins:maven-surefire-plugin:maven-plugin:2.2
   
from the specified remote repositories:
  central (http://repo1.maven.org/maven2 )
   
   
Caused by I/O exception: Server returned HTTP response code: 503 for
 URL:
   http:/
   
  
 /repo1.maven.org/maven2/org/apache/maven/plugins/maven-surefire-plugin/2.2/maven
-surefire-plugin-2.2.jar.sha1
   
Sounds like it might be better in concept than Ant but you run the
risk of not being able to download dependencies - not sure I like the
idea of relying on an internet connection for them.
   
Anyhow...no closer than I was before.
   
Any ideas?
   
On 7/7/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
 thats what i understood from martijn. the problem is that there is a
   parent
 pom file that all other projects inherit from, so that means that
 parent
   pom
 has to be installed in the maven repo in order for other projects to
   find it
 when you try to build

 so what i would do is


 cd WICKET_1_2
 mvn install  (possibly optional if you have the whole thing
 checked
   out)

 cd wicket
 mvn install

 and you should be good to go

 -Igor





 On 7/7/06, V. Jenks [EMAIL PROTECTED] wrote:
  So, if I check out all projects at
 

  
 https://svn.sourceforge.net/svnroot/wicket/tags/WICKET_1_2/
  

  
 https://svn.sourceforge.net/svnroot/wicket/tags/WICKET_1_2/wicket
 I
  should be able to build them w/ maven, as you described before?
 
  Igor Vaynberg wrote:
   svn co
  

  
 https://svn.sourceforge.net/svnroot/wicket/tags/WICKET_1_2/wicket
 will
   give you the 1.2 release
  
   maven doesnt work out of the box because of the new build thing
   martijn is trying where you need to have a parent pom installed
   first
   so its a more tedious process unless you check out the entire
 folder
   that contains all the projects.
  
   -Igor
  
  
   On 7/7/06, *Vincent Jenks*  [EMAIL PROTECTED]
   mailto:[EMAIL PROTECTED] wrote:
  
   Ha!  It ran w/o the exception!  It would

Re: [Wicket-user] LoadableDetachableModel question

2006-07-07 Thread Vincent Jenks
I use info()

On 7/7/06, Jerry Smith [EMAIL PROTECTED] wrote:




 Using a typical situation like:



 IModel myListModel = new LoadableDetachableModel() {

   protected Object load() {

 Object result = null;

 try {

result = someServiceOrDao.findSomeListOfObjects();

 } catch(Throwable t) {

 ???

 }

 return  result;

 }

 };



 How can I have the error message displayed in a FeedbackPanel for the page?
 Doing a page.error(t.getMessage()) call doesn't seem to be doing anything.



 Thanks!



 -Jerry
 Using Tomcat but need to do more? Need to support web services, security?
 Get stuff done quickly with pre-integrated technology to make your job
 easier
 Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642


 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user




Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Testing Wicket 1.2 on Glassfish b48

2006-07-06 Thread Vincent Jenks
)
  at
 
 java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1347)
  at
 
 java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290)
  at
  java.io.ObjectOutputStream.writeObject0
 (ObjectOutputStream.java:1079)
  at
 
 java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:302)
  at
 
 wicket.protocol.http.HttpSessionStore.setAttribute(HttpSessionStore.java:56)
  ... 33 more
 
  If I make a reference to the SFSB and do *not* place it into Wicket's
  session state - there are no problems (but of course this is useless)...
 
  What else can I do?  This is a real jam for me as my boss has expressed
  interest in replacing JBoss w/ Glassfish and the one EJB3 app we've
  written so far makes heavy use of a single SFSB.
 
  Thanks again!
 
  Igor Vaynberg wrote:
   i dont know, but if the stack trace is exactly the same then log4j
   still thinks debug level is enabled on that package.
  
   -Igor
  
  
   On 7/5/06, Vincent Jenks [EMAIL PROTECTED] wrote:
  
   Alright, I stuck a log4j.properties into my src folder, rebuilt,
   redeployed - still get the same exception...here's my properties file
   (copied from wicket-examples):
  
   log4j.debug=false
  
   log4j.rootLogger=INFO
   log4j.logger.org=INFO
   log4j.logger.com=INFO
   log4j.logger.net=INFO
   log4j.logger.nl=INFO
  
   log4j.logger.wicket=INFO
  
  
 log4j.logger.wicket.protocol.http.HttpSessionStore=INFO
   log4j.logger.org.apache.catalina.cluster=INFO
  
   log4j.logger.wicket.version=INFO
   log4j.logger.wicket.RequestCycle=INFO
  
   logger.wicket.protocol.http=INFO
  
   log4j.appender.Stdout=org.apache.log4j.ConsoleAppender
  
 log4j.appender.Stdout.layout=org.apache.log4j.PatternLayout
   log4j.appender.Stdout.layout.conversionPattern=%-5p -
 %-26.26c{1} - %m\n
  
   What am I doing wrong?
  
   On 7/5/06, Igor Vaynberg  [EMAIL PROTECTED] wrote:
  
   well, serialization error happens here:
at
 wicket.protocol.http.HttpSessionStore.setAttribute(HttpSessionStore.java:62)
  
   if you go there you will see:
  
   // Do some extra profiling/ debugging. This can be a great help
   // just for testing whether your webbapp will behave when using
   // session replication
   if (log.isDebugEnabled())
  
   so if the logger.wicket.protocol.http is not set to DEBUG level in
   log4j config that code wont run as it is there mainly to help you find
   serialization errors, but in this case its hitting a spot that
   shouldnt usually be a problem.
  
   -Igor
  
  
  
   On 7/5/06, Vincent Jenks  [EMAIL PROTECTED] wrote:
  
   I'm not entirely sure what you meant by having the logger set to
   debug...but I'll assume that you meant I was missing this from
   web.xml?...
  
   init-param
  
 param-nameconfiguration/param-name
  
 param-valueDEPLOYMENT/param-value
   /init-param
  
   I added it, rebuilt, redeployed, same exception when using a SFSB.
  
   On 7/5/06, Igor Vaynberg  [EMAIL PROTECTED] wrote:
  
   the stuff in session is only serialized because you have the logger
   set to debug, if you turn that off it should be fine.
  
   -Igor
  
  
   On 7/5/06, Vincent Jenks [EMAIL PROTECTED]  wrote:
  
   That's kind of what I was thinking...and afraid of myself - that
   Glassfish isn't playing nicely w/ Wicket when attempting to
 serialize
   - otherwise the error doesn't make much sense.
  
   I'm building a little test-app to demonstrate right now.
  
   If this is the case, what can be done to work around it, if
 anything?
  
   On 7/5/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
  
   well, the problem might be that it is serialized by wicket itself.
   this is done because you have the logger set to debug to help
 identify
   things you put into session that might not be serializable. maybe
 the
   container doesnt serialize the same way so when the container does
 it
   its not a problem, but when wicket does it it is a problem.
  
   -Igor
  
  
   On 7/5/06, Vincent Jenks [EMAIL PROTECTED] wrote:
  
   I don't know, I would believe that if I weren't able to make a
   Stateful bean and use it exactly how I did in Wicket, outside of
 this
   project.
  
   I setup a test project and their stateful/stateless beans work
   flawlessly when tested against JSP/Servletsthe problem arises
 w/
   Wicket + SFSB on Glassfish.
  
   On 7/5/06, Igor Vaynberg  [EMAIL PROTECTED] wrote:
  
   Caused by: java.io.NotSerializableExcepti
   on:
  
 com.sun.ejb.containers.EJBLocalObjectInvocationHandlerDelegate
   at
   java.io.ObjectOutputStream.writeObject0
 (ObjectOutputStream.java:1075)
  
   looks like a bug in sun's impl of ejbs?
  
   -Igor
  
  
  
   On 7/5/06, Vincent Jenks  [EMAIL PROTECTED]  wrote:
  
   I'm testing an app I just finished and is currently running on
 JBoss
on Sun's Glassfish (SJAS 9.0) to test compatibility and see if
 it's a
   viable option going forward w/ our enterprise efforts.
  
   I seem to be having

Re: [Wicket-user] Testing Wicket 1.2 on Glassfish b48

2006-07-06 Thread Vincent Jenks
Well, this was the first app I've ever built w/ EJB technology of
*any* version...it's sort of a pilot app for future in-house
effortsso far it's worked out great.

So, correct me if I'm wrong but it's my understanding that if I do not
store the stub to the interface of the stateful bean in an HTTP
session - I may lose the reference to that bean the next time I call
it.

So, I'm calling the stateful bean and storing a reference to it in
http session so I can recall that exact instance back from the server
later.  This is how it was done in the app that is currently running
in production on JBoss.

On 7/6/06, Matej Knopp [EMAIL PROTECTED] wrote:
 Anyway, I don't really understand, why is the ejb object actually being
 serialized. Do you store your service objects in session?

 -Matej

 Igor Vaynberg wrote:
  well, the problem might be that it is serialized by wicket itself.
  this is done because you have the logger set to debug to help identify
  things you put into session that might not be serializable. maybe the
  container doesnt serialize the same way so when the container does it
  its not a problem, but when wicket does it it is a problem.
 
  -Igor
 
 
  On 7/5/06, Vincent Jenks [EMAIL PROTECTED] wrote:
  I don't know, I would believe that if I weren't able to make a
  Stateful bean and use it exactly how I did in Wicket, outside of this
  project.
 
  I setup a test project and their stateful/stateless beans work
  flawlessly when tested against JSP/Servletsthe problem arises w/
  Wicket + SFSB on Glassfish.
 
  On 7/5/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
  Caused by: java.io.NotSerializableExcepti
  on:
  com.sun.ejb.containers.EJBLocalObjectInvocationHandlerDelegate
  at
  java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1075)
 
  looks like a bug in sun's impl of ejbs?
 
  -Igor
 
 
 
  On 7/5/06, Vincent Jenks [EMAIL PROTECTED]  wrote:
  I'm testing an app I just finished and is currently running on JBoss
   on Sun's Glassfish (SJAS 9.0) to test compatibility and see if it's a
  viable option going forward w/ our enterprise efforts.
 
  I seem to be having an issue w/ storing objects in session.  Wicket
  runs fine until I utilize the overridden ISessionFactory to store
  objects - then I start getting exceptions like this:
 
  **
 
  StandardWrapperValve[ProductCatalogApp]: Servlet.service()
  for servlet
  ProductCatalogApp threw exception
  wicket.WicketRuntimeException: Internal error cloning object. Make
  sure all dependent objects implement Serializable. Class:
  com.myapp.ui.admin.UserSession
  at
  wicket.protocol.http.HttpSessionStore.setAttribute
  (HttpSessionStore.java:62)
  at wicket.Session.setAttribute(Session.java:914)
  at wicket.Session.update(Session.java:938)
  at
  wicket.protocol.http.WebSession.update(WebSession.java:116)
  at wicket.RequestCycle.detach(RequestCycle.java:818)
  at wicket.RequestCycle.steps(RequestCycle.java:1052)
  at wicket.RequestCycle.request(RequestCycle.java:453)
  at wicket.protocol.http.WicketServlet.doGet
  (WicketServlet.java:215)
  at
  javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
  at
  javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
  at
  org.apache.catalina.core.ApplicationFilterChain.servletService
  (ApplicationFilterChain.java:397)
  at
  org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:278)
  at
  org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
  at
  org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:536)
  at
  org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:240)
  at
  org.apache.catalina.core.StandardContextValve.invoke
  (StandardContextValve.java:179)
  at
  org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
  at
  com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:73)
  at
  org.apache.catalina.core.StandardHostValve.invoke
  (StandardHostValve.java:182)
  at
  org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
  at
  com.sun.enterprise.web.VirtualServerPipeline.invoke(VirtualServerPipeline.java:120)
   at
  org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
  at
  org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:137)
  at
  org.apache.catalina.core.StandardPipeline.doInvoke
  (StandardPipeline.java:566)
  at
  org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:536)
  at
  org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
  at org.apache.coyote.tomcat5.CoyoteAdapter.service
  (CoyoteAdapter.java:231

Re: [Wicket-user] Testing Wicket 1.2 on Glassfish b48

2006-07-06 Thread Vincent Jenks
OK, I've created a small test-app in Netbeans where I'm using a Wicket
page and have overridden ISessionFactory in the app class to create a
session.  I have a page where I call the stateful bean, create it and
store it in session if it's non-existent, and supply a link to clear
the bean from session.

When first calling the page - when the stub is first stored in
session, the page fails.  If I re-visit the page the values have
actually been stored...amazingly enough...and the page does not fail
but displays the values in session.  I can click the link, clear it,
and start the whole process over again and it is consistent.

So that begs the question - would I be safe supressing the exception
in the custom session class where I'm storing the bean stub?  Or, is
it possible that I'm not getting the correct reference to the bean due
to the serialization failure?

If someone wants a copy of my little test app - I'd be happy to send it along.

On 7/6/06, Vincent Jenks [EMAIL PROTECTED] wrote:
 Well, this was the first app I've ever built w/ EJB technology of
 *any* version...it's sort of a pilot app for future in-house
 effortsso far it's worked out great.

 So, correct me if I'm wrong but it's my understanding that if I do not
 store the stub to the interface of the stateful bean in an HTTP
 session - I may lose the reference to that bean the next time I call
 it.

 So, I'm calling the stateful bean and storing a reference to it in
 http session so I can recall that exact instance back from the server
 later.  This is how it was done in the app that is currently running
 in production on JBoss.

 On 7/6/06, Matej Knopp [EMAIL PROTECTED] wrote:
  Anyway, I don't really understand, why is the ejb object actually being
  serialized. Do you store your service objects in session?
 
  -Matej
 
  Igor Vaynberg wrote:
   well, the problem might be that it is serialized by wicket itself.
   this is done because you have the logger set to debug to help identify
   things you put into session that might not be serializable. maybe the
   container doesnt serialize the same way so when the container does it
   its not a problem, but when wicket does it it is a problem.
  
   -Igor
  
  
   On 7/5/06, Vincent Jenks [EMAIL PROTECTED] wrote:
   I don't know, I would believe that if I weren't able to make a
   Stateful bean and use it exactly how I did in Wicket, outside of this
   project.
  
   I setup a test project and their stateful/stateless beans work
   flawlessly when tested against JSP/Servletsthe problem arises w/
   Wicket + SFSB on Glassfish.
  
   On 7/5/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
   Caused by: java.io.NotSerializableExcepti
   on:
   com.sun.ejb.containers.EJBLocalObjectInvocationHandlerDelegate
   at
   java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1075)
  
   looks like a bug in sun's impl of ejbs?
  
   -Igor
  
  
  
   On 7/5/06, Vincent Jenks [EMAIL PROTECTED]  wrote:
   I'm testing an app I just finished and is currently running on JBoss
on Sun's Glassfish (SJAS 9.0) to test compatibility and see if it's a
   viable option going forward w/ our enterprise efforts.
  
   I seem to be having an issue w/ storing objects in session.  Wicket
   runs fine until I utilize the overridden ISessionFactory to store
   objects - then I start getting exceptions like this:
  
   **
  
   StandardWrapperValve[ProductCatalogApp]: Servlet.service()
   for servlet
   ProductCatalogApp threw exception
   wicket.WicketRuntimeException: Internal error cloning object. Make
   sure all dependent objects implement Serializable. Class:
   com.myapp.ui.admin.UserSession
   at
   wicket.protocol.http.HttpSessionStore.setAttribute
   (HttpSessionStore.java:62)
   at wicket.Session.setAttribute(Session.java:914)
   at wicket.Session.update(Session.java:938)
   at
   wicket.protocol.http.WebSession.update(WebSession.java:116)
   at wicket.RequestCycle.detach(RequestCycle.java:818)
   at wicket.RequestCycle.steps(RequestCycle.java:1052)
   at wicket.RequestCycle.request(RequestCycle.java:453)
   at wicket.protocol.http.WicketServlet.doGet
   (WicketServlet.java:215)
   at
   javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
   at
   javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
   at
   org.apache.catalina.core.ApplicationFilterChain.servletService
   (ApplicationFilterChain.java:397)
   at
   org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:278)
   at
   org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
   at
   org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:536)
   at
   org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:240

Re: [Wicket-user] Testing Wicket 1.2 on Glassfish b48

2006-07-06 Thread Vincent Jenks
Excellent, I'll move forward then and see how it goes...thanks!

On 7/6/06, Johan Compagner [EMAIL PROTECTED] wrote:
 that it just works is logical. It is just a test we try to serialize it so
 that you get a warning if that is not possible because of a non
 serializeable object.




 On 7/6/06, Vincent Jenks [EMAIL PROTECTED] wrote:
  OK, I've created a small test-app in Netbeans where I'm using a Wicket
  page and have overridden ISessionFactory in the app class to create a
  session.  I have a page where I call the stateful bean, create it and
  store it in session if it's non-existent, and supply a link to clear
  the bean from session.
 
  When first calling the page - when the stub is first stored in
  session, the page fails.  If I re-visit the page the values have
  actually been stored...amazingly enough...and the page does not fail
  but displays the values in session.  I can click the link, clear it,
  and start the whole process over again and it is consistent.
 
  So that begs the question - would I be safe supressing the exception
  in the custom session class where I'm storing the bean stub?  Or, is
  it possible that I'm not getting the correct reference to the bean due
  to the serialization failure?
 
  If someone wants a copy of my little test app - I'd be happy to send it
 along.
 
  On 7/6/06, Vincent Jenks  [EMAIL PROTECTED] wrote:
   Well, this was the first app I've ever built w/ EJB technology of
   *any* version...it's sort of a pilot app for future in-house
   effortsso far it's worked out great.
  
   So, correct me if I'm wrong but it's my understanding that if I do not
   store the stub to the interface of the stateful bean in an HTTP
   session - I may lose the reference to that bean the next time I call
   it.
  
   So, I'm calling the stateful bean and storing a reference to it in
   http session so I can recall that exact instance back from the server
   later.  This is how it was done in the app that is currently running
   in production on JBoss.
  
   On 7/6/06, Matej Knopp [EMAIL PROTECTED] wrote:
Anyway, I don't really understand, why is the ejb object actually
 being
serialized. Do you store your service objects in session?
   
-Matej
   
Igor Vaynberg wrote:
 well, the problem might be that it is serialized by wicket itself.
 this is done because you have the logger set to debug to help
 identify
 things you put into session that might not be serializable. maybe
 the
 container doesnt serialize the same way so when the container does
 it
 its not a problem, but when wicket does it it is a problem.

 -Igor


 On 7/5/06, Vincent Jenks  [EMAIL PROTECTED] wrote:
 I don't know, I would believe that if I weren't able to make a
 Stateful bean and use it exactly how I did in Wicket, outside of
 this
 project.

 I setup a test project and their stateful/stateless beans work
 flawlessly when tested against JSP/Servletsthe problem arises
 w/
 Wicket + SFSB on Glassfish.

 On 7/5/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
 Caused by: java.io.NotSerializableExcepti
 on:

 com.sun.ejb.containers.EJBLocalObjectInvocationHandlerDelegate
 at
 java.io.ObjectOutputStream.writeObject0
 (ObjectOutputStream.java:1075)

 looks like a bug in sun's impl of ejbs?

 -Igor



 On 7/5/06, Vincent Jenks [EMAIL PROTECTED]  wrote:
 I'm testing an app I just finished and is currently running on
 JBoss
  on Sun's Glassfish (SJAS 9.0) to test compatibility and see if
 it's a
 viable option going forward w/ our enterprise efforts.

 I seem to be having an issue w/ storing objects in session.
 Wicket
 runs fine until I utilize the overridden ISessionFactory to store
 objects - then I start getting exceptions like this:


 **

 StandardWrapperValve[ProductCatalogApp]:
 Servlet.service()
 for servlet
 ProductCatalogApp threw exception
 wicket.WicketRuntimeException: Internal error cloning object. Make
 sure all dependent objects implement Serializable. Class:
 com.myapp.ui.admin.UserSession
 at

 wicket.protocol.http.HttpSessionStore.setAttribute
 (HttpSessionStore.java:62)
 at wicket.Session.setAttribute(Session.java:914)
 at wicket.Session.update(Session.java:938)
 at

 wicket.protocol.http.WebSession.update(WebSession.java:116)
 at wicket.RequestCycle.detach (RequestCycle.java:818)
 at wicket.RequestCycle.steps(RequestCycle.java:1052)
 at wicket.RequestCycle.request(RequestCycle.java:453)
 at
 wicket.protocol.http.WicketServlet.doGet
 (WicketServlet.java:215)
 at

 javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
 at

 javax.servlet.http.HttpServlet.service

Re: [Wicket-user] Testing Wicket 1.2 on Glassfish b48

2006-07-06 Thread Vincent Jenks
For whatever reason, I'm unable to supress this exception in the
storefront application (where I really need it.)  I've tried wrapping
a try/catch around the assignment and retrieval of the SFSB stub in
the custom Session class...I can't pull the bean data up w/o the
exception occuring, it would seem.

So again, is there a way to turn logging debugging off so the test
doesn't happen at all...so I can quit trying to find work-arounds?
Even if my error supression did work, it's not a very elegant solution
- it might be better if the serialization wasn't being tested at all.

On 7/6/06, Vincent Jenks [EMAIL PROTECTED] wrote:
 Excellent, I'll move forward then and see how it goes...thanks!

 On 7/6/06, Johan Compagner [EMAIL PROTECTED] wrote:
  that it just works is logical. It is just a test we try to serialize it so
  that you get a warning if that is not possible because of a non
  serializeable object.
 
 
 
 
  On 7/6/06, Vincent Jenks [EMAIL PROTECTED] wrote:
   OK, I've created a small test-app in Netbeans where I'm using a Wicket
   page and have overridden ISessionFactory in the app class to create a
   session.  I have a page where I call the stateful bean, create it and
   store it in session if it's non-existent, and supply a link to clear
   the bean from session.
  
   When first calling the page - when the stub is first stored in
   session, the page fails.  If I re-visit the page the values have
   actually been stored...amazingly enough...and the page does not fail
   but displays the values in session.  I can click the link, clear it,
   and start the whole process over again and it is consistent.
  
   So that begs the question - would I be safe supressing the exception
   in the custom session class where I'm storing the bean stub?  Or, is
   it possible that I'm not getting the correct reference to the bean due
   to the serialization failure?
  
   If someone wants a copy of my little test app - I'd be happy to send it
  along.
  
   On 7/6/06, Vincent Jenks  [EMAIL PROTECTED] wrote:
Well, this was the first app I've ever built w/ EJB technology of
*any* version...it's sort of a pilot app for future in-house
effortsso far it's worked out great.
   
So, correct me if I'm wrong but it's my understanding that if I do not
store the stub to the interface of the stateful bean in an HTTP
session - I may lose the reference to that bean the next time I call
it.
   
So, I'm calling the stateful bean and storing a reference to it in
http session so I can recall that exact instance back from the server
later.  This is how it was done in the app that is currently running
in production on JBoss.
   
On 7/6/06, Matej Knopp [EMAIL PROTECTED] wrote:
 Anyway, I don't really understand, why is the ejb object actually
  being
 serialized. Do you store your service objects in session?

 -Matej

 Igor Vaynberg wrote:
  well, the problem might be that it is serialized by wicket itself.
  this is done because you have the logger set to debug to help
  identify
  things you put into session that might not be serializable. maybe
  the
  container doesnt serialize the same way so when the container does
  it
  its not a problem, but when wicket does it it is a problem.
 
  -Igor
 
 
  On 7/5/06, Vincent Jenks  [EMAIL PROTECTED] wrote:
  I don't know, I would believe that if I weren't able to make a
  Stateful bean and use it exactly how I did in Wicket, outside of
  this
  project.
 
  I setup a test project and their stateful/stateless beans work
  flawlessly when tested against JSP/Servletsthe problem arises
  w/
  Wicket + SFSB on Glassfish.
 
  On 7/5/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
  Caused by: java.io.NotSerializableExcepti
  on:
 
  com.sun.ejb.containers.EJBLocalObjectInvocationHandlerDelegate
  at
  java.io.ObjectOutputStream.writeObject0
  (ObjectOutputStream.java:1075)
 
  looks like a bug in sun's impl of ejbs?
 
  -Igor
 
 
 
  On 7/5/06, Vincent Jenks [EMAIL PROTECTED]  wrote:
  I'm testing an app I just finished and is currently running on
  JBoss
   on Sun's Glassfish (SJAS 9.0) to test compatibility and see if
  it's a
  viable option going forward w/ our enterprise efforts.
 
  I seem to be having an issue w/ storing objects in session.
  Wicket
  runs fine until I utilize the overridden ISessionFactory to store
  objects - then I start getting exceptions like this:
 
 
  **
 
  StandardWrapperValve[ProductCatalogApp]:
  Servlet.service()
  for servlet
  ProductCatalogApp threw exception
  wicket.WicketRuntimeException: Internal error cloning object. Make
  sure all dependent objects implement Serializable. Class

Re: [Wicket-user] Testing Wicket 1.2 on Glassfish b48

2006-07-06 Thread Vincent Jenks
That's where I put it - nothing changed so you're obviously right...it
won't make a difference anyways.

Hmm...this is bad...this puts me in a rough spot as I have no idea how
to use a spring like proxy and am not at all familiar w/
Springand in effect I'd have no idea how to do this in Wicket or
what it would involve.  It's obviously going to involve me reworking a
bunch of my existing code just to move to another container...which
shouldn't have been the case.

On 7/6/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
 you are doing it fine, you just have to find a location for log4j.properties
 where glassfish will pick it up. usually it is in war/web-inf/classes

 -Igor



 On 7/6/06, Vincent Jenks [EMAIL PROTECTED] wrote:
  For whatever reason, I'm unable to supress this exception in the
  storefront application (where I really need it.)  I've tried wrapping
  a try/catch around the assignment and retrieval of the SFSB stub in
  the custom Session class...I can't pull the bean data up w/o the
  exception occuring, it would seem.
 
  So again, is there a way to turn logging debugging off so the test
  doesn't happen at all...so I can quit trying to find work-arounds?
  Even if my error supression did work, it's not a very elegant solution
  - it might be better if the serialization wasn't being tested at all.
 
  On 7/6/06, Vincent Jenks [EMAIL PROTECTED] wrote:
   Excellent, I'll move forward then and see how it goes...thanks!
  
   On 7/6/06, Johan Compagner [EMAIL PROTECTED] wrote:
that it just works is logical. It is just a test we try to serialize
 it so
that you get a warning if that is not possible because of a non
serializeable object.
   
   
   
   
On 7/6/06, Vincent Jenks [EMAIL PROTECTED] wrote:
 OK, I've created a small test-app in Netbeans where I'm using a
 Wicket
 page and have overridden ISessionFactory in the app class to create
 a
 session.  I have a page where I call the stateful bean, create it
 and
 store it in session if it's non-existent, and supply a link to clear
 the bean from session.

 When first calling the page - when the stub is first stored in
 session, the page fails.  If I re-visit the page the values have
 actually been stored...amazingly enough...and the page does not fail
 but displays the values in session.  I can click the link, clear it,
 and start the whole process over again and it is consistent.

 So that begs the question - would I be safe supressing the exception
 in the custom session class where I'm storing the bean stub?  Or, is
 it possible that I'm not getting the correct reference to the bean
 due
 to the serialization failure?

 If someone wants a copy of my little test app - I'd be happy to send
 it
along.

 On 7/6/06, Vincent Jenks  [EMAIL PROTECTED] wrote:
  Well, this was the first app I've ever built w/ EJB technology of
  *any* version...it's sort of a pilot app for future in-house
  effortsso far it's worked out great.
 
  So, correct me if I'm wrong but it's my understanding that if I do
 not
  store the stub to the interface of the stateful bean in an HTTP
  session - I may lose the reference to that bean the next time I
 call
  it.
 
  So, I'm calling the stateful bean and storing a reference to it in
  http session so I can recall that exact instance back from the
 server
  later.  This is how it was done in the app that is currently
 running
  in production on JBoss.
 
  On 7/6/06, Matej Knopp [EMAIL PROTECTED] wrote:
   Anyway, I don't really understand, why is the ejb object
 actually
being
   serialized. Do you store your service objects in session?
  
   -Matej
  
   Igor Vaynberg wrote:
well, the problem might be that it is serialized by wicket
 itself.
this is done because you have the logger set to debug to help
identify
things you put into session that might not be serializable.
 maybe
the
container doesnt serialize the same way so when the container
 does
it
its not a problem, but when wicket does it it is a problem.
   
-Igor
   
   
On 7/5/06, Vincent Jenks  [EMAIL PROTECTED] wrote:
I don't know, I would believe that if I weren't able to make
 a
Stateful bean and use it exactly how I did in Wicket, outside
 of
this
project.
   
I setup a test project and their stateful/stateless beans
 work
flawlessly when tested against JSP/Servletsthe problem
 arises
w/
Wicket + SFSB on Glassfish.
   
On 7/5/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
Caused by: java.io.NotSerializableExcepti
on:
   
   
 com.sun.ejb.containers.EJBLocalObjectInvocationHandlerDelegate
at
java.io.ObjectOutputStream.writeObject0
(ObjectOutputStream.java:1075

Re: [Wicket-user] Testing Wicket 1.2 on Glassfish b48

2006-07-06 Thread Vincent Jenks
log4j.debug=false

log4j.rootLogger=INFO
log4j.logger.org=INFO
log4j.logger.com=INFO
log4j.logger.net=INFO
log4j.logger.nl=INFO

log4j.logger.wicket=INFO

log4j.logger.wicket.protocol.http.HttpSessionStore=INFO
log4j.logger.org.apache.catalina.cluster=INFO

log4j.logger.wicket.version=INFO
log4j.logger.wicket.RequestCycle=INFO

logger.wicket.protocol.http=INFO

log4j.appender.Stdout=org.apache.log4j.ConsoleAppender
log4j.appender.Stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.Stdout.layout.conversionPattern=%-5p - %-26.26c{1} - %m\n



On 7/6/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
 paste your complete log4j.properties file


 -Igor


 On 7/6/06, Vincent Jenks [EMAIL PROTECTED]  wrote:
  That's where I put it - nothing changed so you're obviously right...it
  won't make a difference anyways.
 
  Hmm...this is bad...this puts me in a rough spot as I have no idea how
  to use a spring like proxy and am not at all familiar w/
  Springand in effect I'd have no idea how to do this in Wicket or
  what it would involve.  It's obviously going to involve me reworking a
  bunch of my existing code just to move to another container...which
  shouldn't have been the case.
 
  On 7/6/06, Igor Vaynberg  [EMAIL PROTECTED] wrote:
   you are doing it fine, you just have to find a location for
 log4j.properties
   where glassfish will pick it up. usually it is in war/web-inf/classes
  
   -Igor
  
  
  
   On 7/6/06, Vincent Jenks [EMAIL PROTECTED] wrote:
For whatever reason, I'm unable to supress this exception in the
storefront application (where I really need it.)  I've tried wrapping
a try/catch around the assignment and retrieval of the SFSB stub in
the custom Session class...I can't pull the bean data up w/o the
exception occuring, it would seem.
   
So again, is there a way to turn logging debugging off so the test
doesn't happen at all...so I can quit trying to find work-arounds?
Even if my error supression did work, it's not a very elegant solution
- it might be better if the serialization wasn't being tested at all.
   
On 7/6/06, Vincent Jenks  [EMAIL PROTECTED] wrote:
 Excellent, I'll move forward then and see how it goes...thanks!

 On 7/6/06, Johan Compagner  [EMAIL PROTECTED] wrote:
  that it just works is logical. It is just a test we try to
 serialize
   it so
  that you get a warning if that is not possible because of a non
  serializeable object.
 
 
 
 
  On 7/6/06, Vincent Jenks  [EMAIL PROTECTED] wrote:
   OK, I've created a small test-app in Netbeans where I'm using a
   Wicket
   page and have overridden ISessionFactory in the app class to
 create
   a
   session.  I have a page where I call the stateful bean, create
 it
   and
   store it in session if it's non-existent, and supply a link to
 clear
   the bean from session.
  
   When first calling the page - when the stub is first stored in
   session, the page fails.  If I re-visit the page the values have
   actually been stored...amazingly enough...and the page does not
 fail
   but displays the values in session.  I can click the link, clear
 it,
   and start the whole process over again and it is consistent.
  
   So that begs the question - would I be safe supressing the
 exception
   in the custom session class where I'm storing the bean stub?
 Or, is
   it possible that I'm not getting the correct reference to the
 bean
   due
   to the serialization failure?
  
   If someone wants a copy of my little test app - I'd be happy to
 send
   it
  along.
  
   On 7/6/06, Vincent Jenks  [EMAIL PROTECTED] wrote:
Well, this was the first app I've ever built w/ EJB technology
 of
*any* version...it's sort of a pilot app for future in-house
effortsso far it's worked out great.
   
So, correct me if I'm wrong but it's my understanding that if
 I do
   not
store the stub to the interface of the stateful bean in an
 HTTP
session - I may lose the reference to that bean the next time
 I
   call
it.
   
So, I'm calling the stateful bean and storing a reference to
 it in
http session so I can recall that exact instance back from the
   server
later.  This is how it was done in the app that is currently
   running
in production on JBoss.
   
On 7/6/06, Matej Knopp  [EMAIL PROTECTED] wrote:
 Anyway, I don't really understand, why is the ejb object
   actually
  being
 serialized. Do you store your service objects in session?

 -Matej

 Igor Vaynberg wrote:
  well, the problem might be that it is serialized by wicket
   itself.
  this is done because you have the logger set to debug to
 help
  identify
  things you put into session that might not be
 serializable.
   maybe

Re: [Wicket-user] Testing Wicket 1.2 on Glassfish b48

2006-07-06 Thread Vincent Jenks
I have no idea...but I'm lost at this point.  I have both
commons-logging and log4j in the glassfish/lib folder because it is a
requirement for using Hibernate as the persistence engine.  I put the
log4j.properties in there w/ the suggested entries and restarted...the
error is the same - didn't work.

I tried deploying log4j in my war's /lib folder and packaging
log4j.properties in there...made no difference...I can't get the
exception message to change.

ugh :(

On 7/6/06, Matej Knopp [EMAIL PROTECTED] wrote:
 Wicket uses commons-logging. I wonder whether glassfish doesn't have
 it's own weird logger factory, just like jetty does.

 -Matej

 Eelco Hillenius wrote:
  In fact log4j.logger.wicket=INFO should be enough.
 
  Eelco
 
 
  On 7/6/06, Vincent Jenks [EMAIL PROTECTED] wrote:
  log4j.debug=false
 
  log4j.rootLogger=INFO
  log4j.logger.org=INFO
  log4j.logger.com=INFO
  log4j.logger.net=INFO
  log4j.logger.nl=INFO
 
  log4j.logger.wicket=INFO
 
  log4j.logger.wicket.protocol.http.HttpSessionStore=INFO
  log4j.logger.org.apache.catalina.cluster=INFO
 
  log4j.logger.wicket.version=INFO
  log4j.logger.wicket.RequestCycle=INFO
 
  logger.wicket.protocol.http=INFO
 
  log4j.appender.Stdout=org.apache.log4j.ConsoleAppender
  log4j.appender.Stdout.layout=org.apache.log4j.PatternLayout
  log4j.appender.Stdout.layout.conversionPattern=%-5p - %-26.26c{1} - %m\n
 
 
 
  On 7/6/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
  paste your complete log4j.properties file
 
 
  -Igor
 
 
  On 7/6/06, Vincent Jenks [EMAIL PROTECTED]  wrote:
  That's where I put it - nothing changed so you're obviously right...it
  won't make a difference anyways.
 
  Hmm...this is bad...this puts me in a rough spot as I have no idea how
  to use a spring like proxy and am not at all familiar w/
  Springand in effect I'd have no idea how to do this in Wicket or
  what it would involve.  It's obviously going to involve me reworking a
  bunch of my existing code just to move to another container...which
  shouldn't have been the case.
 
  On 7/6/06, Igor Vaynberg  [EMAIL PROTECTED] wrote:
  you are doing it fine, you just have to find a location for
  log4j.properties
  where glassfish will pick it up. usually it is in war/web-inf/classes
 
  -Igor
 
 
 
  On 7/6/06, Vincent Jenks [EMAIL PROTECTED] wrote:
  For whatever reason, I'm unable to supress this exception in the
  storefront application (where I really need it.)  I've tried wrapping
  a try/catch around the assignment and retrieval of the SFSB stub in
  the custom Session class...I can't pull the bean data up w/o the
  exception occuring, it would seem.
 
  So again, is there a way to turn logging debugging off so the test
  doesn't happen at all...so I can quit trying to find work-arounds?
  Even if my error supression did work, it's not a very elegant solution
  - it might be better if the serialization wasn't being tested at all.
 
  On 7/6/06, Vincent Jenks  [EMAIL PROTECTED] wrote:
  Excellent, I'll move forward then and see how it goes...thanks!
 
  On 7/6/06, Johan Compagner  [EMAIL PROTECTED] wrote:
  that it just works is logical. It is just a test we try to
  serialize
  it so
  that you get a warning if that is not possible because of a non
  serializeable object.
 
 
 
 
  On 7/6/06, Vincent Jenks  [EMAIL PROTECTED] wrote:
  OK, I've created a small test-app in Netbeans where I'm using a
  Wicket
  page and have overridden ISessionFactory in the app class to
  create
  a
  session.  I have a page where I call the stateful bean, create
  it
  and
  store it in session if it's non-existent, and supply a link to
  clear
  the bean from session.
 
  When first calling the page - when the stub is first stored in
  session, the page fails.  If I re-visit the page the values have
  actually been stored...amazingly enough...and the page does not
  fail
  but displays the values in session.  I can click the link, clear
  it,
  and start the whole process over again and it is consistent.
 
  So that begs the question - would I be safe supressing the
  exception
  in the custom session class where I'm storing the bean stub?
  Or, is
  it possible that I'm not getting the correct reference to the
  bean
  due
  to the serialization failure?
 
  If someone wants a copy of my little test app - I'd be happy to
  send
  it
  along.
  On 7/6/06, Vincent Jenks  [EMAIL PROTECTED] wrote:
  Well, this was the first app I've ever built w/ EJB technology
  of
  *any* version...it's sort of a pilot app for future in-house
  effortsso far it's worked out great.
 
  So, correct me if I'm wrong but it's my understanding that if
  I do
  not
  store the stub to the interface of the stateful bean in an
  HTTP
  session - I may lose the reference to that bean the next time
  I
  call
  it.
 
  So, I'm calling the stateful bean and storing a reference to
  it in
  http session so I can recall that exact instance back from the
  server
  later.  This is how it was done in the app

Re: [Wicket-user] Testing Wicket 1.2 on Glassfish b48

2006-07-06 Thread Vincent Jenks
At 8:30 this morning...it's now 2:30pm here and I was the *last*
person to post to this forum at all...which is weird...it's normally
pretty busy.

http://forums.java.net/jive/thread.jspa?threadID=16673tstart=0

This is the first time I haven't gotten an answer to my problem on the
same day...they're *almost* as good as you guys! :)

On 7/6/06, Eelco Hillenius [EMAIL PROTECTED] wrote:
 Did you try asking around on the glassfish list/ IRC channel (if they have 
 one)?

 Eelco


 On 7/6/06, Vincent Jenks [EMAIL PROTECTED] wrote:
  I have no idea...but I'm lost at this point.  I have both
  commons-logging and log4j in the glassfish/lib folder because it is a
  requirement for using Hibernate as the persistence engine.  I put the
  log4j.properties in there w/ the suggested entries and restarted...the
  error is the same - didn't work.
 
  I tried deploying log4j in my war's /lib folder and packaging
  log4j.properties in there...made no difference...I can't get the
  exception message to change.
 
  ugh :(
 
  On 7/6/06, Matej Knopp [EMAIL PROTECTED] wrote:
   Wicket uses commons-logging. I wonder whether glassfish doesn't have
   it's own weird logger factory, just like jetty does.
  
   -Matej
  
   Eelco Hillenius wrote:
In fact log4j.logger.wicket=INFO should be enough.
   
Eelco
   
   
On 7/6/06, Vincent Jenks [EMAIL PROTECTED] wrote:
log4j.debug=false
   
log4j.rootLogger=INFO
log4j.logger.org=INFO
log4j.logger.com=INFO
log4j.logger.net=INFO
log4j.logger.nl=INFO
   
log4j.logger.wicket=INFO
   
log4j.logger.wicket.protocol.http.HttpSessionStore=INFO
log4j.logger.org.apache.catalina.cluster=INFO
   
log4j.logger.wicket.version=INFO
log4j.logger.wicket.RequestCycle=INFO
   
logger.wicket.protocol.http=INFO
   
log4j.appender.Stdout=org.apache.log4j.ConsoleAppender
log4j.appender.Stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.Stdout.layout.conversionPattern=%-5p - %-26.26c{1} - 
%m\n
   
   
   
On 7/6/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
paste your complete log4j.properties file
   
   
-Igor
   
   
On 7/6/06, Vincent Jenks [EMAIL PROTECTED]  wrote:
That's where I put it - nothing changed so you're obviously 
right...it
won't make a difference anyways.
   
Hmm...this is bad...this puts me in a rough spot as I have no idea 
how
to use a spring like proxy and am not at all familiar w/
Springand in effect I'd have no idea how to do this in Wicket or
what it would involve.  It's obviously going to involve me reworking 
a
bunch of my existing code just to move to another container...which
shouldn't have been the case.
   
On 7/6/06, Igor Vaynberg  [EMAIL PROTECTED] wrote:
you are doing it fine, you just have to find a location for
log4j.properties
where glassfish will pick it up. usually it is in 
war/web-inf/classes
   
-Igor
   
   
   
On 7/6/06, Vincent Jenks [EMAIL PROTECTED] wrote:
For whatever reason, I'm unable to supress this exception in the
storefront application (where I really need it.)  I've tried 
wrapping
a try/catch around the assignment and retrieval of the SFSB stub in
the custom Session class...I can't pull the bean data up w/o the
exception occuring, it would seem.
   
So again, is there a way to turn logging debugging off so the test
doesn't happen at all...so I can quit trying to find work-arounds?
Even if my error supression did work, it's not a very elegant 
solution
- it might be better if the serialization wasn't being tested at 
all.
   
On 7/6/06, Vincent Jenks  [EMAIL PROTECTED] wrote:
Excellent, I'll move forward then and see how it goes...thanks!
   
On 7/6/06, Johan Compagner  [EMAIL PROTECTED] wrote:
that it just works is logical. It is just a test we try to
serialize
it so
that you get a warning if that is not possible because of a non
serializeable object.
   
   
   
   
On 7/6/06, Vincent Jenks  [EMAIL PROTECTED] wrote:
OK, I've created a small test-app in Netbeans where I'm using a
Wicket
page and have overridden ISessionFactory in the app class to
create
a
session.  I have a page where I call the stateful bean, create
it
and
store it in session if it's non-existent, and supply a link to
clear
the bean from session.
   
When first calling the page - when the stub is first stored in
session, the page fails.  If I re-visit the page the values have
actually been stored...amazingly enough...and the page does not
fail
but displays the values in session.  I can click the link, clear
it,
and start the whole process over again and it is consistent.
   
So that begs the question - would I be safe supressing the
exception
in the custom session class where I'm storing the bean stub?
Or, is
it possible that I'm

Re: [Wicket-user] Testing Wicket 1.2 on Glassfish b48

2006-07-06 Thread Vincent Jenks
OK, checked it out and I made my changebut bare w/ me...I'm almost
completely unfamiliar w/ Ant and I figured that'd be the easiest way
to build it?

So, how do I build this sucker?

On 7/6/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
 well, if it comes down to it just check out wicket, remove that portion of
 code, and deploy it that way


 -Igor


 On 7/6/06, Vincent Jenks  [EMAIL PROTECTED] wrote:
  At 8:30 this morning...it's now 2:30pm here and I was the *last*
  person to post to this forum at all...which is weird...it's normally
  pretty busy.
 
 
 http://forums.java.net/jive/thread.jspa?threadID=16673tstart=0
 
  This is the first time I haven't gotten an answer to my problem on the
  same day...they're *almost* as good as you guys! :)
 
  On 7/6/06, Eelco Hillenius [EMAIL PROTECTED]  wrote:
   Did you try asking around on the glassfish list/ IRC channel (if they
 have one)?
  
   Eelco
  
  
   On 7/6/06, Vincent Jenks  [EMAIL PROTECTED] wrote:
I have no idea...but I'm lost at this point.  I have both
commons-logging and log4j in the glassfish/lib folder because it is a
requirement for using Hibernate as the persistence engine.  I put the
log4j.properties in there w/ the suggested entries and restarted...the
error is the same - didn't work.
   
I tried deploying log4j in my war's /lib folder and packaging
log4j.properties in there...made no difference...I can't get the
exception message to change.
   
ugh :(
   
On 7/6/06, Matej Knopp  [EMAIL PROTECTED] wrote:
 Wicket uses commons-logging. I wonder whether glassfish doesn't have
 it's own weird logger factory, just like jetty does.

 -Matej

 Eelco Hillenius wrote:
  In fact log4j.logger.wicket=INFO should be enough.
 
  Eelco
 
 
  On 7/6/06, Vincent Jenks [EMAIL PROTECTED] wrote:
  log4j.debug=false
 
  log4j.rootLogger=INFO
  log4j.logger.org=INFO
  log4j.logger.com=INFO
  log4j.logger.net=INFO
  log4j.logger.nl=INFO
 
  log4j.logger.wicket=INFO
 
 
 log4j.logger.wicket.protocol.http.HttpSessionStore=INFO
  log4j.logger.org.apache.catalina.cluster=INFO
 
  log4j.logger.wicket.version=INFO
  log4j.logger.wicket.RequestCycle=INFO
 
  logger.wicket.protocol.http=INFO
 
 
 log4j.appender.Stdout=org.apache.log4j.ConsoleAppender
 
 log4j.appender.Stdout.layout=org.apache.log4j.PatternLayout
 
 log4j.appender.Stdout.layout.conversionPattern=%-5p -
 %-26.26c{1} - %m\n
 
 
 
  On 7/6/06, Igor Vaynberg  [EMAIL PROTECTED] wrote:
  paste your complete log4j.properties file
 
 
  -Igor
 
 
  On 7/6/06, Vincent Jenks [EMAIL PROTECTED]  wrote:
  That's where I put it - nothing changed so you're obviously
 right...it
  won't make a difference anyways.
 
  Hmm...this is bad...this puts me in a rough spot as I have no
 idea how
  to use a spring like proxy and am not at all familiar w/
  Springand in effect I'd have no idea how to do this in
 Wicket or
  what it would involve.  It's obviously going to involve me
 reworking a
  bunch of my existing code just to move to another
 container...which
  shouldn't have been the case.
 
  On 7/6/06, Igor Vaynberg  [EMAIL PROTECTED]  wrote:
  you are doing it fine, you just have to find a location for
  log4j.properties
  where glassfish will pick it up. usually it is in
 war/web-inf/classes
 
  -Igor
 
 
 
  On 7/6/06, Vincent Jenks  [EMAIL PROTECTED] wrote:
  For whatever reason, I'm unable to supress this exception in
 the
  storefront application (where I really need it.)  I've tried
 wrapping
  a try/catch around the assignment and retrieval of the SFSB
 stub in
  the custom Session class...I can't pull the bean data up w/o
 the
  exception occuring, it would seem.
 
  So again, is there a way to turn logging debugging off so the
 test
  doesn't happen at all...so I can quit trying to find
 work-arounds?
  Even if my error supression did work, it's not a very elegant
 solution
  - it might be better if the serialization wasn't being tested
 at all.
 
  On 7/6/06, Vincent Jenks  [EMAIL PROTECTED] wrote:
  Excellent, I'll move forward then and see how it
 goes...thanks!
 
  On 7/6/06, Johan Compagner  [EMAIL PROTECTED] wrote:
  that it just works is logical. It is just a test we try to
  serialize
  it so
  that you get a warning if that is not possible because of a
 non
  serializeable object.
 
 
 
 
  On 7/6/06, Vincent Jenks  [EMAIL PROTECTED] wrote:
  OK, I've created a small test-app in Netbeans where I'm
 using a
  Wicket
  page and have overridden ISessionFactory in the app class
 to
  create
  a
  session.  I have a page where I call the stateful bean,
 create

Re: [Wicket-user] Testing Wicket 1.2 on Glassfish b48

2006-07-06 Thread Vincent Jenks
I've heard of it but am not familiar...I'll look into it.

I was going to make a lib project in eclipse or netbeans and build it
that way but realized there's probably a pile of dependencies I don't
have...won't that be an issue even w/ maven?

All the lib folders only contain clover

On 7/6/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
 naaah use maven2
 make the change in the src folder
 type mvn package and you will have a .jar ready in the target dir


 -Igor


 On 7/6/06, Vincent Jenks [EMAIL PROTECTED] wrote:
  OK, checked it out and I made my changebut bare w/ me...I'm almost
  completely unfamiliar w/ Ant and I figured that'd be the easiest way
  to build it?
 
  So, how do I build this sucker?
 
  On 7/6/06, Igor Vaynberg  [EMAIL PROTECTED] wrote:
   well, if it comes down to it just check out wicket, remove that portion
 of
   code, and deploy it that way
  
  
   -Igor
  
  
   On 7/6/06, Vincent Jenks  [EMAIL PROTECTED] wrote:
At 8:30 this morning...it's now 2:30pm here and I was the *last*
person to post to this forum at all...which is weird...it's normally
pretty busy.
   
   
  
 http://forums.java.net/jive/thread.jspa?threadID=16673tstart=0
   
This is the first time I haven't gotten an answer to my problem on the
same day...they're *almost* as good as you guys! :)
   
On 7/6/06, Eelco Hillenius  [EMAIL PROTECTED]  wrote:
 Did you try asking around on the glassfish list/ IRC channel (if
 they
   have one)?

 Eelco


 On 7/6/06, Vincent Jenks  [EMAIL PROTECTED] wrote:
  I have no idea...but I'm lost at this point.  I have both
  commons-logging and log4j in the glassfish/lib folder because it
 is a
  requirement for using Hibernate as the persistence engine.  I put
 the
  log4j.properties in there w/ the suggested entries and
 restarted...the
  error is the same - didn't work.
 
  I tried deploying log4j in my war's /lib folder and packaging
  log4j.properties in there...made no difference...I can't get the
  exception message to change.
 
  ugh :(
 
  On 7/6/06, Matej Knopp  [EMAIL PROTECTED] wrote:
   Wicket uses commons-logging. I wonder whether glassfish doesn't
 have
   it's own weird logger factory, just like jetty does.
  
   -Matej
  
   Eelco Hillenius wrote:
In fact log4j.logger.wicket=INFO should be enough.
   
Eelco
   
   
On 7/6/06, Vincent Jenks [EMAIL PROTECTED] wrote:
log4j.debug=false
   
log4j.rootLogger=INFO
log4j.logger.org=INFO
log4j.logger.com=INFO
log4j.logger.net=INFO
log4j.logger.nl=INFO
   
log4j.logger.wicket=INFO
   
   
   log4j.logger.wicket.protocol.http.HttpSessionStore=INFO
   
 log4j.logger.org.apache.catalina.cluster=INFO
   
log4j.logger.wicket.version=INFO
log4j.logger.wicket.RequestCycle=INFO
   
logger.wicket.protocol.http=INFO
   
   
   log4j.appender.Stdout=org.apache.log4j.ConsoleAppender
   
  
 log4j.appender.Stdout.layout=org.apache.log4j.PatternLayout
   
   log4j.appender.Stdout.layout.conversionPattern=%-5p -
   %-26.26c{1} - %m\n
   
   
   
On 7/6/06, Igor Vaynberg  [EMAIL PROTECTED] wrote:
paste your complete log4j.properties file
   
   
-Igor
   
   
On 7/6/06, Vincent Jenks  [EMAIL PROTECTED]  wrote:
That's where I put it - nothing changed so you're obviously
   right...it
won't make a difference anyways.
   
Hmm...this is bad...this puts me in a rough spot as I have
 no
   idea how
to use a spring like proxy and am not at all familiar w/
Springand in effect I'd have no idea how to do this in
   Wicket or
what it would involve.  It's obviously going to involve me
   reworking a
bunch of my existing code just to move to another
   container...which
shouldn't have been the case.
   
On 7/6/06, Igor Vaynberg  [EMAIL PROTECTED]  wrote:
you are doing it fine, you just have to find a location
 for
log4j.properties
where glassfish will pick it up. usually it is in
   war/web-inf/classes
   
-Igor
   
   
   
On 7/6/06, Vincent Jenks  [EMAIL PROTECTED]
 wrote:
For whatever reason, I'm unable to supress this exception
 in
   the
storefront application (where I really need it.)  I've
 tried
   wrapping
a try/catch around the assignment and retrieval of the
 SFSB
   stub in
the custom Session class...I can't pull the bean data up
 w/o
   the
exception occuring, it would seem.
   
So again, is there a way to turn logging debugging off so
 the
   test
doesn't happen at all...so I can quit trying to find
   work-arounds?
Even if my error supression did work, it's not a very
 elegant
   solution

[Wicket-user] Testing Wicket 1.2 on Glassfish b48

2006-07-05 Thread Vincent Jenks
I'm testing an app I just finished and is currently running on JBoss
on Sun's Glassfish (SJAS 9.0) to test compatibility and see if it's a
viable option going forward w/ our enterprise efforts.

I seem to be having an issue w/ storing objects in session.  Wicket
runs fine until I utilize the overridden ISessionFactory to store
objects - then I start getting exceptions like this:

**

StandardWrapperValve[ProductCatalogApp]: Servlet.service() for servlet
ProductCatalogApp threw exception
wicket.WicketRuntimeException: Internal error cloning object. Make
sure all dependent objects implement Serializable. Class:
com.myapp.ui.admin.UserSession
at 
wicket.protocol.http.HttpSessionStore.setAttribute(HttpSessionStore.java:62)
at wicket.Session.setAttribute(Session.java:914)
at wicket.Session.update(Session.java:938)
at wicket.protocol.http.WebSession.update(WebSession.java:116)
at wicket.RequestCycle.detach(RequestCycle.java:818)
at wicket.RequestCycle.steps(RequestCycle.java:1052)
at wicket.RequestCycle.request(RequestCycle.java:453)
at wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:215)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at 
org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:397)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:278)
at 
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:536)
at 
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:240)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:179)
at 
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:73)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:182)
at 
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
at 
com.sun.enterprise.web.VirtualServerPipeline.invoke(VirtualServerPipeline.java:120)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:137)
at 
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:536)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
at 
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:231)
at 
com.sun.enterprise.web.connector.grizzly.ProcessorTask.invokeAdapter(ProcessorTask.java:667)
at 
com.sun.enterprise.web.connector.grizzly.ProcessorTask.processNonBlocked(ProcessorTask.java:574)
at 
com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:844)
at 
com.sun.enterprise.web.connector.grizzly.ReadTask.executeProcessorTask(ReadTask.java:287)
at 
com.sun.enterprise.web.connector.grizzly.ReadTask.doTask(ReadTask.java:212)
at 
com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:252)
at 
com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:75)
Caused by: java.io.NotSerializableException:
com.sun.ejb.containers.EJBLocalObjectInvocationHandlerDelegate
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1075)
at 
java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1369)
at 
java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1341)
at 
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1284)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1073)
at 
java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1369)
at 
java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1341)
at 
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1284)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1073)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:291)
at 
wicket.protocol.http.HttpSessionStore.setAttribute(HttpSessionStore.java:56)
... 33 more

**

The ProductCatalogApp (my wicket application class) looks like this:

public class ProductCatalogApp extends WebApplication
{
public void init()
{
//create external images resource

Re: [Wicket-user] Testing Wicket 1.2 on Glassfish b48

2006-07-05 Thread Vincent Jenks
I don't know, I would believe that if I weren't able to make a
Stateful bean and use it exactly how I did in Wicket, outside of this
project.

I setup a test project and their stateful/stateless beans work
flawlessly when tested against JSP/Servletsthe problem arises w/
Wicket + SFSB on Glassfish.

On 7/5/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
 Caused by: java.io.NotSerializableExcepti
 on:
 com.sun.ejb.containers.EJBLocalObjectInvocationHandlerDelegate
 at
 java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1075)

 looks like a bug in sun's impl of ejbs?

 -Igor



 On 7/5/06, Vincent Jenks [EMAIL PROTECTED]  wrote:
 
 I'm testing an app I just finished and is currently running on JBoss
  on Sun's Glassfish (SJAS 9.0) to test compatibility and see if it's a
 viable option going forward w/ our enterprise efforts.

 I seem to be having an issue w/ storing objects in session.  Wicket
 runs fine until I utilize the overridden ISessionFactory to store
 objects - then I start getting exceptions like this:

 **

 StandardWrapperValve[ProductCatalogApp]: Servlet.service()
 for servlet
 ProductCatalogApp threw exception
 wicket.WicketRuntimeException: Internal error cloning object. Make
 sure all dependent objects implement Serializable. Class:
 com.myapp.ui.admin.UserSession
 at
 wicket.protocol.http.HttpSessionStore.setAttribute
 (HttpSessionStore.java:62)
 at wicket.Session.setAttribute(Session.java:914)
 at wicket.Session.update(Session.java:938)
 at
 wicket.protocol.http.WebSession.update(WebSession.java:116)
 at wicket.RequestCycle.detach(RequestCycle.java:818)
 at wicket.RequestCycle.steps(RequestCycle.java:1052)
 at wicket.RequestCycle.request(RequestCycle.java:453)
 at wicket.protocol.http.WicketServlet.doGet
 (WicketServlet.java:215)
 at
 javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
 at
 javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
 at
 org.apache.catalina.core.ApplicationFilterChain.servletService
 (ApplicationFilterChain.java:397)
 at
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:278)
 at
 org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
 at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:536)
 at
 org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:240)
 at
 org.apache.catalina.core.StandardContextValve.invoke
 (StandardContextValve.java:179)
 at
 org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
 at
 com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:73)
 at
 org.apache.catalina.core.StandardHostValve.invoke
 (StandardHostValve.java:182)
 at
 org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
 at
 com.sun.enterprise.web.VirtualServerPipeline.invoke(VirtualServerPipeline.java:120)
  at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
 at
 org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:137)
 at
 org.apache.catalina.core.StandardPipeline.doInvoke
 (StandardPipeline.java:566)
 at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:536)
 at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
 at org.apache.coyote.tomcat5.CoyoteAdapter.service
 (CoyoteAdapter.java:231)
 at
 com.sun.enterprise.web.connector.grizzly.ProcessorTask.invokeAdapter(ProcessorTask.java:667)
 at
 com.sun.enterprise.web.connector.grizzly.ProcessorTask.processNonBlocked(ProcessorTask.java
 :574)
 at
 com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:844)
 at
 com.sun.enterprise.web.connector.grizzly.ReadTask.executeProcessorTask(ReadTask.java:287)
 at
 com.sun.enterprise.web.connector.grizzly.ReadTask.doTask(ReadTask.java:212)
 at
 com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:252)
 at
 com.sun.enterprise.web.connector.grizzly.WorkerThread.run
 (WorkerThread.java:75)
 Caused by: java.io.NotSerializableException:
 com.sun.ejb.containers.EJBLocalObjectInvocationHandlerDelegate
 at
 java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1075)
  at
 java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1369)
 at
 java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1341)
 at java.io.ObjectOutputStream.writeOrdinaryObject
 (ObjectOutputStream.java:1284)
 at
 java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1073)
 at
 java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1369

Re: [Wicket-user] Testing Wicket 1.2 on Glassfish b48

2006-07-05 Thread Vincent Jenks
That's kind of what I was thinking...and afraid of myself - that
Glassfish isn't playing nicely w/ Wicket when attempting to serialize
- otherwise the error doesn't make much sense.

I'm building a little test-app to demonstrate right now.

If this is the case, what can be done to work around it, if anything?

On 7/5/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
 well, the problem might be that it is serialized by wicket itself.
 this is done because you have the logger set to debug to help identify
 things you put into session that might not be serializable. maybe the
 container doesnt serialize the same way so when the container does it
 its not a problem, but when wicket does it it is a problem.

 -Igor


 On 7/5/06, Vincent Jenks [EMAIL PROTECTED] wrote:
  I don't know, I would believe that if I weren't able to make a
  Stateful bean and use it exactly how I did in Wicket, outside of this
  project.
 
  I setup a test project and their stateful/stateless beans work
  flawlessly when tested against JSP/Servletsthe problem arises w/
  Wicket + SFSB on Glassfish.
 
  On 7/5/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
   Caused by: java.io.NotSerializableExcepti
   on:
   com.sun.ejb.containers.EJBLocalObjectInvocationHandlerDelegate
   at
   java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1075)
  
   looks like a bug in sun's impl of ejbs?
  
   -Igor
  
  
  
   On 7/5/06, Vincent Jenks [EMAIL PROTECTED]  wrote:
   
   I'm testing an app I just finished and is currently running on JBoss
on Sun's Glassfish (SJAS 9.0) to test compatibility and see if it's a
   viable option going forward w/ our enterprise efforts.
  
   I seem to be having an issue w/ storing objects in session.  Wicket
   runs fine until I utilize the overridden ISessionFactory to store
   objects - then I start getting exceptions like this:
  
   **
  
   StandardWrapperValve[ProductCatalogApp]: Servlet.service()
   for servlet
   ProductCatalogApp threw exception
   wicket.WicketRuntimeException: Internal error cloning object. Make
   sure all dependent objects implement Serializable. Class:
   com.myapp.ui.admin.UserSession
   at
   wicket.protocol.http.HttpSessionStore.setAttribute
   (HttpSessionStore.java:62)
   at wicket.Session.setAttribute(Session.java:914)
   at wicket.Session.update(Session.java:938)
   at
   wicket.protocol.http.WebSession.update(WebSession.java:116)
   at wicket.RequestCycle.detach(RequestCycle.java:818)
   at wicket.RequestCycle.steps(RequestCycle.java:1052)
   at wicket.RequestCycle.request(RequestCycle.java:453)
   at wicket.protocol.http.WicketServlet.doGet
   (WicketServlet.java:215)
   at
   javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
   at
   javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
   at
   org.apache.catalina.core.ApplicationFilterChain.servletService
   (ApplicationFilterChain.java:397)
   at
   org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:278)
   at
   org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
   at
   org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:536)
   at
   org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:240)
   at
   org.apache.catalina.core.StandardContextValve.invoke
   (StandardContextValve.java:179)
   at
   org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
   at
   com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:73)
   at
   org.apache.catalina.core.StandardHostValve.invoke
   (StandardHostValve.java:182)
   at
   org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
   at
   com.sun.enterprise.web.VirtualServerPipeline.invoke(VirtualServerPipeline.java:120)
at
   org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
   at
   org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:137)
   at
   org.apache.catalina.core.StandardPipeline.doInvoke
   (StandardPipeline.java:566)
   at
   org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:536)
   at
   org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
   at org.apache.coyote.tomcat5.CoyoteAdapter.service
   (CoyoteAdapter.java:231)
   at
   com.sun.enterprise.web.connector.grizzly.ProcessorTask.invokeAdapter(ProcessorTask.java:667)
   at
   com.sun.enterprise.web.connector.grizzly.ProcessorTask.processNonBlocked(ProcessorTask.java
   :574)
   at
   com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:844

Re: [Wicket-user] Testing Wicket 1.2 on Glassfish b48

2006-07-05 Thread Vincent Jenks
I'm not entirely sure what you meant by having the logger set to
debug...but I'll assume that you meant I was missing this from
web.xml?...

init-param
  param-nameconfiguration/param-name
  param-valueDEPLOYMENT/param-value
/init-param

I added it, rebuilt, redeployed, same exception when using a SFSB.

On 7/5/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
 the stuff in session is only serialized because you have the logger
 set to debug, if you turn that off it should be fine.

 -Igor


 On 7/5/06, Vincent Jenks [EMAIL PROTECTED] wrote:
  That's kind of what I was thinking...and afraid of myself - that
  Glassfish isn't playing nicely w/ Wicket when attempting to serialize
  - otherwise the error doesn't make much sense.
 
  I'm building a little test-app to demonstrate right now.
 
  If this is the case, what can be done to work around it, if anything?
 
  On 7/5/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
   well, the problem might be that it is serialized by wicket itself.
   this is done because you have the logger set to debug to help identify
   things you put into session that might not be serializable. maybe the
   container doesnt serialize the same way so when the container does it
   its not a problem, but when wicket does it it is a problem.
  
   -Igor
  
  
   On 7/5/06, Vincent Jenks [EMAIL PROTECTED] wrote:
I don't know, I would believe that if I weren't able to make a
Stateful bean and use it exactly how I did in Wicket, outside of this
project.
   
I setup a test project and their stateful/stateless beans work
flawlessly when tested against JSP/Servletsthe problem arises w/
Wicket + SFSB on Glassfish.
   
On 7/5/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
 Caused by: java.io.NotSerializableExcepti
 on:
 com.sun.ejb.containers.EJBLocalObjectInvocationHandlerDelegate
 at
 java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1075)

 looks like a bug in sun's impl of ejbs?

 -Igor



 On 7/5/06, Vincent Jenks [EMAIL PROTECTED]  wrote:
 
 I'm testing an app I just finished and is currently running on JBoss
  on Sun's Glassfish (SJAS 9.0) to test compatibility and see if it's a
 viable option going forward w/ our enterprise efforts.

 I seem to be having an issue w/ storing objects in session.  Wicket
 runs fine until I utilize the overridden ISessionFactory to store
 objects - then I start getting exceptions like this:

 **

 StandardWrapperValve[ProductCatalogApp]: Servlet.service()
 for servlet
 ProductCatalogApp threw exception
 wicket.WicketRuntimeException: Internal error cloning object. Make
 sure all dependent objects implement Serializable. Class:
 com.myapp.ui.admin.UserSession
 at
 wicket.protocol.http.HttpSessionStore.setAttribute
 (HttpSessionStore.java:62)
 at wicket.Session.setAttribute(Session.java:914)
 at wicket.Session.update(Session.java:938)
 at
 wicket.protocol.http.WebSession.update(WebSession.java:116)
 at wicket.RequestCycle.detach(RequestCycle.java:818)
 at wicket.RequestCycle.steps(RequestCycle.java:1052)
 at wicket.RequestCycle.request(RequestCycle.java:453)
 at wicket.protocol.http.WicketServlet.doGet
 (WicketServlet.java:215)
 at
 javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
 at
 javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
 at
 org.apache.catalina.core.ApplicationFilterChain.servletService
 (ApplicationFilterChain.java:397)
 at
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:278)
 at
 org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
 at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:536)
 at
 org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:240)
 at
 org.apache.catalina.core.StandardContextValve.invoke
 (StandardContextValve.java:179)
 at
 org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
 at
 com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:73)
 at
 org.apache.catalina.core.StandardHostValve.invoke
 (StandardHostValve.java:182)
 at
 org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
 at
 com.sun.enterprise.web.VirtualServerPipeline.invoke(VirtualServerPipeline.java:120)
  at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939

Re: [Wicket-user] Testing Wicket 1.2 on Glassfish b48

2006-07-05 Thread Vincent Jenks
Alright, I stuck a log4j.properties into my src folder, rebuilt,
redeployed - still get the same exception...here's my properties file
(copied from wicket-examples):

log4j.debug=false

log4j.rootLogger=INFO
log4j.logger.org=INFO
log4j.logger.com=INFO
log4j.logger.net=INFO
log4j.logger.nl=INFO

log4j.logger.wicket=INFO

log4j.logger.wicket.protocol.http.HttpSessionStore=INFO
log4j.logger.org.apache.catalina.cluster=INFO

log4j.logger.wicket.version=INFO
log4j.logger.wicket.RequestCycle=INFO

logger.wicket.protocol.http=INFO

log4j.appender.Stdout=org.apache.log4j.ConsoleAppender
log4j.appender.Stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.Stdout.layout.conversionPattern=%-5p - %-26.26c{1} - %m\n

What am I doing wrong?

On 7/5/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
 well, serialization error happens here:
  at 
 wicket.protocol.http.HttpSessionStore.setAttribute(HttpSessionStore.java:62)

 if you go there you will see:

 // Do some extra profiling/ debugging. This can be a great help
 // just for testing whether your webbapp will behave when using
 // session replication
 if (log.isDebugEnabled())

 so if the logger.wicket.protocol.http is not set to DEBUG level in
 log4j config that code wont run as it is there mainly to help you find
 serialization errors, but in this case its hitting a spot that
 shouldnt usually be a problem.

 -Igor



 On 7/5/06, Vincent Jenks [EMAIL PROTECTED] wrote:
  I'm not entirely sure what you meant by having the logger set to
  debug...but I'll assume that you meant I was missing this from
  web.xml?...
 
  init-param
param-nameconfiguration/param-name
param-valueDEPLOYMENT/param-value
  /init-param
 
  I added it, rebuilt, redeployed, same exception when using a SFSB.
 
  On 7/5/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
   the stuff in session is only serialized because you have the logger
   set to debug, if you turn that off it should be fine.
  
   -Igor
  
  
   On 7/5/06, Vincent Jenks [EMAIL PROTECTED] wrote:
That's kind of what I was thinking...and afraid of myself - that
Glassfish isn't playing nicely w/ Wicket when attempting to serialize
- otherwise the error doesn't make much sense.
   
I'm building a little test-app to demonstrate right now.
   
If this is the case, what can be done to work around it, if anything?
   
On 7/5/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
 well, the problem might be that it is serialized by wicket itself.
 this is done because you have the logger set to debug to help identify
 things you put into session that might not be serializable. maybe the
 container doesnt serialize the same way so when the container does it
 its not a problem, but when wicket does it it is a problem.

 -Igor


 On 7/5/06, Vincent Jenks [EMAIL PROTECTED] wrote:
  I don't know, I would believe that if I weren't able to make a
  Stateful bean and use it exactly how I did in Wicket, outside of 
  this
  project.
 
  I setup a test project and their stateful/stateless beans work
  flawlessly when tested against JSP/Servletsthe problem arises w/
  Wicket + SFSB on Glassfish.
 
  On 7/5/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
   Caused by: java.io.NotSerializableExcepti
   on:
   com.sun.ejb.containers.EJBLocalObjectInvocationHandlerDelegate
   at
   java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1075)
  
   looks like a bug in sun's impl of ejbs?
  
   -Igor
  
  
  
   On 7/5/06, Vincent Jenks [EMAIL PROTECTED]  wrote:
   
   I'm testing an app I just finished and is currently running on 
   JBoss
on Sun's Glassfish (SJAS 9.0) to test compatibility and see if 
   it's a
   viable option going forward w/ our enterprise efforts.
  
   I seem to be having an issue w/ storing objects in session.  
   Wicket
   runs fine until I utilize the overridden ISessionFactory to store
   objects - then I start getting exceptions like this:
  
   **
  
   StandardWrapperValve[ProductCatalogApp]: Servlet.service()
   for servlet
   ProductCatalogApp threw exception
   wicket.WicketRuntimeException: Internal error cloning object. Make
   sure all dependent objects implement Serializable. Class:
   com.myapp.ui.admin.UserSession
   at
   wicket.protocol.http.HttpSessionStore.setAttribute
   (HttpSessionStore.java:62)
   at wicket.Session.setAttribute(Session.java:914)
   at wicket.Session.update(Session.java:938)
   at
   wicket.protocol.http.WebSession.update(WebSession.java:116)
   at wicket.RequestCycle.detach(RequestCycle.java:818)
   at wicket.RequestCycle.steps

[Wicket-user] @EJB Injection

2006-06-27 Thread Vincent Jenks
In Java EE 5, instead of using JNDI lookups to get a stub to an EJB
we'll have the ability to just inject it w/ a simple @EJB annotation.
I see that JBoss will support this for Servlets  JSP in the
near-future...what will be needed to support this in Wicket?  Anything
at all?

There are a couple of servers, i.e. Glassfish that support this
already...but going forward I'm sure all of the major vendors will.

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] @EJB Injection

2006-06-27 Thread Vincent Jenks
Excellent, thanks Igor!

On 6/27/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
 you need to recreate what we do for spring with @SpringBean annotation but
 instead use the @EJB annotation

 if you are using 1.2 see wicket-spring and how it creates proxies. see
 AnnotSpringInjector and AnnotSpringWebApplication

 what it will boil down to is for you to create an EjbProxyFieldValueFactory
 implements IFieldValueFactory - thats really the trickest part and is pretty
 simple. the rest is configuration.

 if you are using 2.0 the non-spring related proxy stuff that is in
 wicket-spring has been moved to extensions.

 -Igor



 On 6/27/06, Vincent Jenks  [EMAIL PROTECTED] wrote:
 
 In Java EE 5, instead of using JNDI lookups to get a stub to an EJB
 we'll have the ability to just inject it w/ a simple @EJB annotation.
 I see that JBoss will support this for Servlets  JSP in the
 near-future...what will be needed to support this in Wicket?  Anything
 at all?

 There are a couple of servers, i.e. Glassfish that support this
 already...but going forward I'm sure all of the major vendors will.

 Using Tomcat but need to do more? Need to support web services, security?
 Get stuff done quickly with pre-integrated technology to make your job
 easier
 Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 ___
 Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user


 Using Tomcat but need to do more? Need to support web services, security?
 Get stuff done quickly with pre-integrated technology to make your job
 easier
 Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642


 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user




Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Plan to develop a portal

2006-06-20 Thread Vincent Jenks
Yeah...I could use some bookmarkable pages but just didn't.  Since
we're doing paid advertising and not worry so much about indexing on
google it wasn't a huge concern to get one or two pages in the entire
cart indexed - the snakeriverfarms.com site is more of a brochure site
and they'd probably target that before the cart, which sits behind the
site.

I know the portal would be a big project but it's definitely something
I'm interested in doing...though I'm going to research all options
before any real work gets done there...want to be sure it gets done
right.

I'm not too familiar w/ the portlets spec but from what I've read,
it's going in the direction of being closely tied to JSF, especially
in future implementations.  If that's the case, I'd be interested in
avoiding it altogether - I'm not real impressed by what I see in JSF
today...even the good implementations.  However, if there were a way
to somehow tie Wicket into the spec...I'd definitely look at it!

On 6/14/06, Eelco Hillenius [EMAIL PROTECTED] wrote:
 Thanks for sharing and congrats. Tiny remark: wouldn't you want to
 work with bookmarkable pages more, especially for things like contact
 details, terms of use, etc? You shouldn't really need to be in a
 session to access those pages (you probably want google to index them)
 and if you mount the urls to those pages, that will look even better!

 About the portal... that's a non-trivial task. Depending on how many
 services you actually want to develop of course. Wouldn't it be a
 better idea to look at JSR168 portal servers and see how Wicket can be
 fit in? Janne still has the idea of working on Wicket support for 2.0;
 maybe you can tickle him a bit ;)

 Eelco



 On 6/14/06, Vincent Jenks [EMAIL PROTECTED] wrote:
  So, I finally completed our first Wicket experiment - the infamous
  storefront I've been blathering about endlessly:
 
  http://www.snakeriverfarms.com/ - click the animated gif on the
  bottom-left of the page.
 
  I'm hoping it leads to more Wicket-based projects for me here at work
  but I've got definite plans of my own - the first of which is a Portal
  based on Wicket.
 
  We have a really crappy portal here at work that was quite
  expensive...and I'd really like to build something better myself w/
  Wicket  EJB 3.0.  As far as I know, there's nothing out there like
  that currently, is there?
 
  I was looking at JSR-286 but it looks like it's geared toward JSF, am
  I correct?  If that were the case I'd have no interest in conforming
  to it - but please correct me if I'm wrong.
 
  I'd like to begin planning it right away but I thought I'd take some
  feedback from the good folks behind Wicket first since you've all been
  so helpful so far!  I've never built anything quite as modular as a
  portal before and I'm not sure where to begin as far as making
  portlets dynamically loadable  modular while keeping performance
  acceptable.  I'd like to build an initial, rough, alpha-quality base
  to release as an open source project and work from there.
 
  I've never created my own open source project either, so any input
  there would be helpful!
 
  Thanks all!
 
  -v
 
 
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 


 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Plan to develop a portal

2006-06-15 Thread Vincent Jenks
 well one more thingi left your site on for a long time and then tried
 doing something and then the wicket orange Page Expired came to me.

I thought this was a necessary evil because of Wicket being
session-based?  Users of this site aren't likely to sit there for
very long, honestly.  Their cart will expire if they leave it sit as
well and that is intentional behavior since it is a stateful session
bean.

 try to make it into something as sleek as your major site :)

Do you mean the parent-site, snakeriverfarms.com?  What do you mean by
sleek, exactly?  If you're referring to the design, I didn't design
either of them and really don't care how they look - we have a
designer here that did both of them and takes care of that.  Is there
something in particular that's not sleek about it?

  On 6/14/06, Vincent Jenks [EMAIL PROTECTED] wrote:
  So, I finally completed our first Wicket experiment - the infamous
  storefront I've been blathering about endlessly:
 
 
 



 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user





___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Plan to develop a portal

2006-06-15 Thread Vincent Jenks
I'm kind of glad we're having this discussion here - it's not really
off-topic since I'm still half-wanting to be convinced that I could
use Spring in this project :D

So, you're saying I don't *have* to wire classes together w/ XML in
Spring but I could use
GenericApplicationContext.registerBeanDefinition() programmatically
instead?  What are the drawbacks (besides the obvious -
externalization.)

I looked into Spring 2.0 yesterday shortly...it looks like they've
done some work to be JPA (EJB 3 persistence) friendly...but I have to
admit I really wasn't crazy about what I was seeing there - just
template support for JPA.

On 6/15/06, Igor Vaynberg [EMAIL PROTECTED] wrote:

 On 6/15/06, John Patterson [EMAIL PROTECTED] wrote:
 
 
  Igor, sorry to turn this into a Spring QA!  I understand if you don't
 want to discuss Spring on this list but it is hard to get an unbiased
 opinion on theirs.


 i dont mind but maybe you should spin any future messages into a different
 thread.

 also it is not going to really work comparing pico and spring because spring
 is sooo much more then just ioc.

 
 
 
  I have only briefly looked at Springs IoC and was put off by the amount of
 configuration XML I would have to write.  I use Picocontainer which is very
 simple to configure in Java alone because it makes lots of default
 assumptions about how to build an object without me having to specify.


 first of all let me say that spring's xml config drives java classes, at
 least from what i have seen and i havent looked very hard. so if you want to
 use spring without xml that should be doable. see
 GenericApplicationContext.registerBeanDefinition()

 spring can autowire dependencies just like pico, it would go something
 like this if you are using xml:

 bean class=foo.Bar autowire=byType/ analogous to pico setter injection

 or

 bean class=foo.Bar autowire=constructor/ analogous to pico constructor
 injection

 and there you have it. i dont know if semantics are exactly the same but
 they should be pretty close since there isnt that much playroom. something
 for you to experiment with.


 
 
 
 
  Do you have any insight about how easily Spring can be configured in
 comparison to Pico?  I could see that the examples were almost exclusively
 using setter injection but I much prefer to use constructors.


 yeah, it seems like setter injection is the preferred way in spring. i guess
 what setter injection gives you that constructor injection doesnt is the
 name of the setter itself, so it gives your config more context:

 bean ...
constructor-arg index=0 ref=dep0/
constructor-arg index=1 ref=dep1/
 /bean

 this doesnt convey as much information as

 bean 
property name=userManager ref=dep0/
property name=securityManager ref=dep1/
 /bean

 and this is what the spring xml configuration is all about. one) it gives
 you a big overview of how the services are connected - there is a nice
 eclipse plugin that creates a cool graph from the xml file that gives you a
 birds eye of the infrastructure of your app - something not really possible
 to do when configuring in code, and two) the configuration is externalized -
 these things tend to be the things that would change from deployment to
 deployment so you really dont want them to be configured in code - ie
 swapping a HibernateUserDao for a LdapUserDao because one company wants you
 to hook in to their ldap dir, and this is where setter injection is also
 very useful ...

 bean id=userdao calss=com.foo.user.HibernateUserDao
 property name=sessionFactory ref=hsf/
 /bean

 vs

 bean id=userdao class= com.foo.user.LdapUserDao
 property name=server value=foo/
 property name=username value=user/
 property name=password value=pass/
 /bean

 see, not only can you switch things out between deployments but you can also
 configure them. if you wanted this func then you would have to maintain your
 own property file that ldapdao would have to read, etc, etc. this way things
 are in a single place.


 
 
 
 
 
  Also, how easy is it to set up containers that manage object life-cycle at
 different scopes?


 i havent used this pattern in a long time and havent tried it with spring so
 i dont know. creating container from xml file is pretty simple, new
 FileSystemXmlApplicationContext( file.xml) is all it
 takes

 but to summarize the whole thing:

 if you dont care about externalizing your config or having visibility into
 how things are wired and all you need is ioc then pico is def the way to go.
 its best of breed for lightweight ioc containers, and the factory interface
 makes it pretty darn easy to customize how beans are managed inside the
 container.

 if you do want externalizable config (the pico addon projects that provide
 this kinda suck imho) or you want a good base to build infrastructure for
 then spring is the way to go. it has a bunch of very well integrated modules
 that you might not need in the beginning of the project but you might need
 later like 

Re: [Wicket-user] Plan to develop a portal

2006-06-15 Thread Vincent Jenks
 why would you want to be convinced? :)

Because I *am* interested in trying it in a new project but I guess
I'm bull-headed and stubborn...and I'm not entirely convinced it's
useful enough yet.

 i dont know, i would use hibernate. it is evolving at a higher velocity then
 the spec and it has features i miss like the criteria api and custom types.

It is, but that can be both a blessing and a curse - you're sure to
have long-term compatibility with the spec.  I miss the Criteria API
myself, I was mildly disappointed when I learned that EJB3 wouldn't
have it.  However, there have been plenty of cases in my own projects
where the Criteria API was clumsy and unsuited for the task compared
to HQL.  I could not say the same for HQL vs Criteria API in
reverse...I haven't found an instance where HQL/EJB-QL (in EJB3) was
awkward, leaving me with a need for Critiera-style queries.

 the idea of running an application server just to get persistence sickens
 me.

Wow!  Why?  I was using Tomcat before working on these EJB3 projects
and moving to JBoss 4.0.x...and I can't say I've seen a drawback.  On
the contrary - it's nice to have all of the services available to me
when I want or need them (sound familiar ;)  In addition to
persistence I'm using the Timer service, Transactions, JAX-WS, and
moreand if I want it I have simple clustering, messaging
(MDBs)...and all the other features I'm either not using or even aware
of.  I think JBoss is slowly changing people's perceptions that a
container is a huge dump truck and everything else is a Ferrari.

Also, my boss likes to blow a lot of money on support contracts - I
figured we'd always have that opportunity here.


___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Plan to develop a portal

2006-06-15 Thread Vincent Jenks
 point is, its nice to have the option. and there are plenty cases where
 criteria api is much more readable then hql, not to mention it is much
 easier to build search queries, etc instead of using a whole lot of nasty
 string concatenations.  where 1=1  look familliar? :)

Sure does! :)  And agreed, I wish they would have included the Criteria API.

 because jetty+spring starts up in like 20 seconds (thats with spring
 creating all the beans on startup for me), jboss takes more then a minute
 just for itself. thats a lot of waiting for me every time hotswap cant cope.
 and last time i checked configuring jboss not to start some of the things i
 dont need is a nightmare, i tried in the past a few times and a few hours
 into it gave up. plus i dont need to deal with any of the stupid descriptor
 files, etc. web.xml and spring.xml is all i need and they are all simple.
 and no weird classloader issues, etc. its just a simpler development
 environment that saves you lots of time, and if you want to deploy on jboss
 for prod there is nothing stopping you.

Honestly, I haven't had these problems so I can't relate.  JBoss
4.0.4.GA starts in about 20-30 seconds and deploying the apps I've
built takes 3-5 sec. roughly.  The only descriptor file I've had to
use so far is a one-liner that maps the URL of the web app to the EAR
app.  You're right, however, you would always deploy-up to JBoss if
needed but probably not deploy-down from JBoss to a servlet/JSP
container simply because those services wouldn't be available.

 was that a pro or a con? :)

Obviously that depends on who you ask :D  You could probably imagine
my opinion on this.


___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Plan to develop a portal

2006-06-15 Thread Vincent Jenks
Well, on my dev machine (my laptop) it's a single cpu 2ghz, 2gb ram.
The production server is a dual 3ghz w/ HT proc w/ 4gb ram.  Deploying
to production takes about 2-3 secondsit's a blip on the radar.

I'll give the phonebook app a test and let you know.

On 6/15/06, Igor Vaynberg [EMAIL PROTECTED] wrote:


  Honestly, I haven't had these problems so I can't relate.  JBoss
  4.0.4.GA starts in about 20-30 seconds and deploying the apps I've
  built takes 3-5 sec. roughly.  The only descriptor file I've had to
  use so far is a one-liner that maps the URL of the web app to the EAR
  app.  You're right, however, you would always deploy-up to JBoss if
  needed but probably not deploy-down from JBoss to a servlet/JSP
  container simply because those services wouldn't be available.


 well, maybe you have an extremely fast system :) or maybe i am not a very
 patient person and go for the solution that takes the least time to startup
 even though the difference might be marginal.

 try the wicket-phonebook in contrib and see how fast that starts up.
 phonebook has persistence+transactions. id be interested to know how fast it
 is on your system.

 -Igor




 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user





___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Developing Wicket Menu Widgets

2006-06-14 Thread Vincent Jenks
I think you might actually have a good point here - it might be nice
to have a Wicket Widgets project strictly for custom widgets.  It
would be a nice way to organize extra widgets.

On 6/14/06, Ayodeji Aladejebi [EMAIL PROTECTED] wrote:
 I know of Wicket Extensions and Wicket Stuff etc but I look forward to
 Wicket Widgets Stuff where users can donate all sorts of resuable widgets to
 wicket community that carry all sorts of behaviors needed to enrich Web user
 experience

 As an example, i have been trying to create Wicket Menu bar component by
 trying to reduce my effort to something close to Swing

 I am not talking of something like echo2 now, I am talking of all those
 common stuffs in web development packaged in a cross browser reusable wicket
 components.

 MenuBar bar = new MenuBar(web-app-menu, ...)

 MenuBar will be a customizable markupcontainer that will have vertical drop
 down capabilities
 Menus and MenuItem will simply be Wicket Links instances.

 My major headache started when i realized how horrible CSS can be across IE
 breeds and Mozilla and other browsers, IE expecially so i spent more time
 trying to sort out making cross browser CSS vertical menus for my wicket
 project. Now that should not be because for me if wicket were to fulfil its
 vision, developers should spend more time with Java than cracking thier
 heads on how to do common stuffs with CSS or Javascript.

 Therefore I think encouraging widgets contribution will also be fine. I am
 not a cross browser CSS expert but there a lot out there willing to donate
 reusable CSS codes for creating common widgets on the browser

 Scrolling
 MenuBar
 etc...



 Anyway for me, it boils down to one thing,
 I am trying to create MenuBar, Menu and MenuItem for my project and i need
 cross browser CSS for vertical drop down menu,

 Something like this
 div wicket:id=MenuBar class=menubar
  ul
 li wicket:id=Menua wicket:id=MenuItem/a/li
  li wicket:id=MenuSeperator/li
 li wicket:id=Menua wicket:id=MenuItemimg
 wicket:id=MenuImage/img/a/li
 /ul
  /div

 But i am scared of the CSS hell out there and i dont even know where to
 start digging for good cross browser CSS to use for this, so please who has
 a reference to the CSS library that can make this life easy

 Thanks :)






 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user





___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Plan to develop a portal

2006-06-14 Thread Vincent Jenks
So, I finally completed our first Wicket experiment - the infamous
storefront I've been blathering about endlessly:

http://www.snakeriverfarms.com/ - click the animated gif on the
bottom-left of the page.

I'm hoping it leads to more Wicket-based projects for me here at work
but I've got definite plans of my own - the first of which is a Portal
based on Wicket.

We have a really crappy portal here at work that was quite
expensive...and I'd really like to build something better myself w/
Wicket  EJB 3.0.  As far as I know, there's nothing out there like
that currently, is there?

I was looking at JSR-286 but it looks like it's geared toward JSF, am
I correct?  If that were the case I'd have no interest in conforming
to it - but please correct me if I'm wrong.

I'd like to begin planning it right away but I thought I'd take some
feedback from the good folks behind Wicket first since you've all been
so helpful so far!  I've never built anything quite as modular as a
portal before and I'm not sure where to begin as far as making
portlets dynamically loadable  modular while keeping performance
acceptable.  I'd like to build an initial, rough, alpha-quality base
to release as an open source project and work from there.

I've never created my own open source project either, so any input
there would be helpful!

Thanks all!

-v


___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Plan to develop a portal

2006-06-14 Thread Vincent Jenks
 i think wicket would solve a ton of difficult problems with building portals
 as long as you portlets are all wicket based :)

Absolutely!  That was the plan...I wouldn't *dream* of using another
framework! :D

 IPortletFactory { UUID getUUID(), String getName(), Portlet
 newPortlet(PortletState) }

 enum PortletState(NORMAL,MAXIMIZED,MINIMIZED,EDIT)

 class Portlet extends Panel

 then drop a bunch of these factories where you can discover them, and bam -
 portal :)

Wow!  Sounds like I could crank this thing out in 24 hrs. and knock
the big-wigs right out of the market.  Look out Oracle, CA, Microsoft
- the jig is up! ;)

 but seriously
 building a portal is a pretty large task, there are a lot of services the
 portal provides that are non trivial - such as user identity, security, etc,
 etc

I'll start small, naturally, and get something built that lets users
build pages...basically.  However, you're right - these services are
exactly what we have in our turd-portal and would be a requirement at
some phase.

 setting up your own os project isnt a big deal, just register it with sf.net
 and you are good to know. if you dont want to deal with that right now we
 would be happy to create wicket-contrib-portal for you in wicket-stuff so
 you can get started quickly and when you are ready you can move to a
 location of your choosing. the advantage of starting out in wicket-stuff is
 that you can benefit from all the devels who already have access to it ( if
 you want that of course :) )

I think I'd actually like it to start out as a wicket-stuff project
simply because the emphasis will be so heavy on the Wicket side and
like you said, I'd have better guidance.  Sort of like an incubator
project...for lack of a better description.

I've obviously got a lot of learning to do on the internals of Wicket
seeing as I've only built two fairly small applications with it in the
last couple of months.  I'd be using this as a project to further my
hands-on experience.  I'm also relatively new to Java, Hibernate,
EJB3, etc. having only used all of this stuff for  1 yr.

However, I think it'd be a great project and from what I've seen
available in portals out there, Wicket would give me enough leverage
to create something really competitive.



 On 6/14/06, Vincent Jenks [EMAIL PROTECTED] wrote:
 
  So, I finally completed our first Wicket experiment - the infamous
 storefront I've been blathering about endlessly:

 http://www.snakeriverfarms.com/ - click the animated gif on the
 bottom-left of the page.

 I'm hoping it leads to more Wicket-based projects for me here at work
 but I've got definite plans of my own - the first of which is a Portal
 based on Wicket.

 We have a really crappy portal here at work that was quite
 expensive...and I'd really like to build something better myself w/
 Wicket  EJB 3.0.  As far as I know, there's nothing out there like
 that currently, is there?

 I was looking at JSR-286 but it looks like it's geared toward JSF, am
 I correct?  If that were the case I'd have no interest in conforming
 to it - but please correct me if I'm wrong.

 I'd like to begin planning it right away but I thought I'd take some
 feedback from the good folks behind Wicket first since you've all been
 so helpful so far!  I've never built anything quite as modular as a
 portal before and I'm not sure where to begin as far as making
 portlets dynamically loadable  modular while keeping performance
 acceptable.  I'd like to build an initial, rough, alpha-quality base
 to release as an open source project and work from there.

 I've never created my own open source project either, so any input
 there would be helpful!

 Thanks all!

 -v


 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user




 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user





___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Plan to develop a portal

2006-06-14 Thread Vincent Jenks
Thanks!  Sure, I'd be happy to.

On 6/14/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
 erm, pressend send too quick

 congrats on the site

 mind adding something here:
 http://www.wicket-wiki.org.uk/wiki/index.php/Stories :)

  -Igor



 On 6/14/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
 
  i think wicket would solve a ton of difficult problems with building
 portals as long as you portlets are all wicket based :)
 
  IPortletFactory { UUID getUUID(), String getName(), Portlet
 newPortlet(PortletState) }
 
  enum PortletState(NORMAL,MAXIMIZED,MINIMIZED,EDIT)
 
  class Portlet extends Panel
 
  then drop a bunch of these factories where you can discover them, and bam
 - portal :)
 
  but seriously
  building a portal is a pretty large task, there are a lot of services the
 portal provides that are non trivial - such as user identity, security, etc,
 etc
 
  but like i said - if you only want to support wicket-based portlets that
 confirm to your spec it shouldnt be too difficult
 
  setting up your own os project isnt a big deal, just register it with
 sf.net and you are good to know. if you dont want to deal with that right
 now we would be happy to create wicket-contrib-portal for you in
 wicket-stuff so you can get started quickly and when you are ready you can
 move to a location of your choosing. the advantage of starting out in
 wicket-stuff is that you can benefit from all the devels who already have
 access to it ( if you want that of course :) )
 
 
  -Igor
 
 
 
 
 
  On 6/14/06, Vincent Jenks  [EMAIL PROTECTED] wrote:
   So, I finally completed our first Wicket experiment - the infamous
   storefront I've been blathering about endlessly:
  
   http://www.snakeriverfarms.com/ - click the animated gif on the
   bottom-left of the page.
  
   I'm hoping it leads to more Wicket-based projects for me here at work
   but I've got definite plans of my own - the first of which is a Portal
   based on Wicket.
  
   We have a really crappy portal here at work that was quite
   expensive...and I'd really like to build something better myself w/
   Wicket  EJB 3.0.  As far as I know, there's nothing out there like
   that currently, is there?
  
   I was looking at JSR-286 but it looks like it's geared toward JSF, am
   I correct?  If that were the case I'd have no interest in conforming
   to it - but please correct me if I'm wrong.
  
   I'd like to begin planning it right away but I thought I'd take some
   feedback from the good folks behind Wicket first since you've all been
   so helpful so far!  I've never built anything quite as modular as a
   portal before and I'm not sure where to begin as far as making
   portlets dynamically loadable  modular while keeping performance
   acceptable.  I'd like to build an initial, rough, alpha-quality base
   to release as an open source project and work from there.
  
   I've never created my own open source project either, so any input
   there would be helpful!
  
   Thanks all!
  
   -v
  
  
   ___
   Wicket-user mailing list
   Wicket-user@lists.sourceforge.net
  
 https://lists.sourceforge.net/lists/listinfo/wicket-user
  
 
 




 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user





___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Plan to develop a portal

2006-06-14 Thread Vincent Jenks
  go ahead and create a sf.net user (if you dont have one already) and email
 me the name so i can add you as a committer to wicket-stuff. from there all
 you have to do is create the project skeleton, check it in, and you are
 ready to go.

I think I already am, actually?  I talked to Eelco some time back
about contributing the blogger app I wrote in Wicket  EJB3 but have
not yet had time to commit it.  I believe my user is vjenks.

 if you are talking about being competetive with other large portals that
 support the jsr then probably not unless you also create the jsr
 interoperability - which with a wicket event model is silly because wicket
 makes things much cleaner. but thats up to you.
  -Igor

Agreed - I'm honestly not concerned with supporting the portlets JSR,
I don't see the benefit outside of being able to claim
interoperability - and what good is it if it's that much more
complicated to develop against.  I was thinking more along the lines
of feature-competitive rather than standards.  Once it's pluggable,
if it's easy to develop against and open source, who knows what might
become of it?


___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Plan to develop a portal

2006-06-14 Thread Vincent Jenks
 agreed, and i might be interested in contributing to this also. but that
 depends on the stack you choose. i like spring+hibernate because it is more
 lightweight and can run off jetty and spring provides a better ioc container
 then ejb3 which might be important for autodiscovery/plugins architecture.
 but this is just talk :)

I'm familiar w/ Hibernate but unfortunately, know very little about
Spring and know nothing about Jetty.  I looked into Spring when I
first started using Hibernate because I hated manually juggling the
Hibernate Session/Transaction...apparently Spring has an elegant
solution through templates?  I was turned off by the amount of XML
required in Spring (and Hibernate) and that's what drove me to
appreciate EJB 3.0 - particularly JBoss.

You do make a good point about IOC, however, since portlets would need
to be very loosely coupled and Spring might remove a great deal of
that complexity.

Isn't the next version of Spring moving a great deal of the XML
necessary to annotations?  I don't follow Spring but I thought I had
read that somewhere?

Injection of resources in EJB3 is pretty slick even if it is lacking,
compared to Spring.


___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Plan to develop a portal

2006-06-14 Thread Vincent Jenks
and for a portal this xml you /will/ want to have
 configurable at deployment time in order to configure what portlets/services
 are available to the portal - so even with ejb3 this kind of stuff still has
 to be in some external config.

I was actually thinking about that the other day...you're absolutely
right on that point, it has to be externalized somehow.

I don't see how Spring couldn't be used to compliment EJB 3.0 in the
regard.  Spring could be used to externalize modular resources, i.e.
portlets whereas EJB3 could do what it does best...persistence and
simple transaction demarcation.


___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Plan to develop a portal

2006-06-14 Thread Vincent Jenks
Perhaps it'd be worth developing a container and non-container based
version of the project...or something in between.  I suppose I'll need
to do my homework first!

Is Spring 2.x moving away from XML?  I just downloaded the M5
reference, I'll flip through it for a bit.

On 6/14/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
 spring has simple transaction demarcation, see @Transactional annotation.
 and as far as persistence if using spring 1.x you can use hibernate with
 ejb3 annotations, or if using spring 2.x you can use hibernate's
 entitymanager which is basically ejb3 and they have jpa (or wtf that acronym
 is) support as well

 -Igor



 On 6/14/06, Vincent Jenks [EMAIL PROTECTED] wrote:
 
  and for a portal this xml you /will/ want to have
  configurable at deployment time in order to configure what
 portlets/services
  are available to the portal - so even with ejb3 this kind of stuff still
 has
  to be in some external config.

 I was actually thinking about that the other day...you're absolutely
 right on that point, it has to be externalized somehow.

 I don't see how Spring couldn't be used to compliment EJB 3.0 in the
 regard.  Spring could be used to externalize modular resources, i.e.
 portlets whereas EJB3 could do what it does best...persistence and
 simple transaction demarcation.


 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user




 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user





___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Plan to develop a portal

2006-06-14 Thread Vincent Jenks
Coincidentally, I came across this article the other day:

http://www.javaworld.com/javaworld/jw-06-2006/jw-0605-obix.html

It seems like Obix has a lot of overlap w/ Spring, no?

On 6/14/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
 they have made some improvements yes. but as i said, if you know what you
 are doing xml is minimal even in 1.2.6

 -Igor



 On 6/14/06, Vincent Jenks [EMAIL PROTECTED] wrote:
 
  Perhaps it'd be worth developing a container and non-container based
 version of the project...or something in between.  I suppose I'll need
 to do my homework first!

 Is Spring 2.x moving away from XML?  I just downloaded the M5
 reference, I'll flip through it for a bit.

 On 6/14/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
  spring has simple transaction demarcation, see @Transactional annotation.
  and as far as persistence if using spring 1.x you can use hibernate with
  ejb3 annotations, or if using spring 2.x you can use hibernate's
  entitymanager which is basically ejb3 and they have jpa (or wtf that
 acronym
  is) support as well
 
  -Igor
 
 
 
  On 6/14/06, Vincent Jenks [EMAIL PROTECTED] wrote:
  
   and for a portal this xml you /will/ want to have
   configurable at deployment time in order to configure what
  portlets/services
   are available to the portal - so even with ejb3 this kind of stuff still
  has
   to be in some external config.
 
  I was actually thinking about that the other day...you're absolutely
  right on that point, it has to be externalized somehow.
 
  I don't see how Spring couldn't be used to compliment EJB 3.0 in the
  regard.  Spring could be used to externalize modular resources, i.e.
  portlets whereas EJB3 could do what it does best...persistence and
  simple transaction demarcation.
 
 
   ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 
 
 
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 
 


 ___

 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user




 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user





___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Plan to develop a portal

2006-06-14 Thread Vincent Jenks
 Were should I report bugs ;-)

I'll file a report w/ our support staff, stat!  *scibbling 'todo' note
on palm of hand*

 Click on Privacy Policy at the bottom and then SRF icon at the top. I
 get a 404 for the https://secure.abfoodsusa.com/ABCommerce/admin_home

Good find!  It's not like I can get anyone to test around here...

 But else it's nice. Perhaps some bookmarkable pages here and there (like
 the privacy policy), but I'll guess thats just a matter of taste :-P

Yeah...guess I could




 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Plan to develop a portal

2006-06-14 Thread Vincent Jenks
Right, right, I understand all of that...but the configuration looks
similar...it seems like a good candidate for this portal project for
externalizing resources.  In other words - Spring might be overkill if
it can be done more easily w/ Obix if I were to use EJB3.

I guess I was thinking aloudheh.

On 6/14/06, Matej Knopp [EMAIL PROTECTED] wrote:
 IOC + AOP + Remoting + Lot of other stuff.
 Spring is a swiss army knife of web development :)

 -Matej

 Igor Vaynberg wrote:
  i dont think so. spring is an ioc container at the very least. obix is
  just a lib to make it easy to read in config files.
 
  -Igor
 
 
  On 6/14/06, *Vincent Jenks * [EMAIL PROTECTED]
  mailto:[EMAIL PROTECTED] wrote:
 
  Coincidentally, I came across this article the other day:
 
  http://www.javaworld.com/javaworld/jw-06-2006/jw-0605-obix.html
 
  It seems like Obix has a lot of overlap w/ Spring, no?
 
  On 6/14/06, Igor Vaynberg [EMAIL PROTECTED]
  mailto:[EMAIL PROTECTED] wrote:
they have made some improvements yes. but as i said, if you know
  what you
are doing xml is minimal even in 1.2.6
   
-Igor
   
   
   
On 6/14/06, Vincent Jenks [EMAIL PROTECTED]
  mailto:[EMAIL PROTECTED] wrote:

 Perhaps it'd be worth developing a container and non-container
  based
version of the project...or something in between.  I suppose I'll
  need
to do my homework first!
   
Is Spring 2.x moving away from XML?  I just downloaded the M5
reference, I'll flip through it for a bit.
   
On 6/14/06, Igor Vaynberg [EMAIL PROTECTED]
  mailto:[EMAIL PROTECTED] wrote:
 spring has simple transaction demarcation, see @Transactional
  annotation.
 and as far as persistence if using spring 1.x you can use
  hibernate with
 ejb3 annotations, or if using spring 2.x you can use hibernate's
 entitymanager which is basically ejb3 and they have jpa (or wtf
  that
acronym
 is) support as well

 -Igor



 On 6/14/06, Vincent Jenks [EMAIL PROTECTED]
  mailto:[EMAIL PROTECTED] wrote:
 
  and for a portal this xml you /will/ want to have
  configurable at deployment time in order to configure what
 portlets/services
  are available to the portal - so even with ejb3 this kind of
  stuff still
 has
  to be in some external config.

 I was actually thinking about that the other day...you're
  absolutely
 right on that point, it has to be externalized somehow.

 I don't see how Spring couldn't be used to compliment EJB 3.0
  in the
 regard.  Spring could be used to externalize modular resources,
  i.e.
 portlets whereas EJB3 could do what it does best...persistence and
 simple transaction demarcation.


  ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
  mailto:Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user




 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
  mailto:Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



   
   
___
   
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
  mailto:Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user
   
   
   
   
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
  mailto:Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user
   
   
   
 
 
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  mailto:Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 
 
  
 
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user



 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Two or more apps in same deployment

2006-06-14 Thread Vincent Jenks
I was wondering this myself actuallyhow can a session be shared
between two apps?

On 6/14/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
 take a look at wicket-examples - every example is its own wicket
 application/servlet and it works like a charm.

 integration i dont know about, depends on what you mean by integration :)

 -Igor


  On 6/14/06, Bruno Borges [EMAIL PROTECTED] wrote:
 
  What could be the issues if two or more Wicket applications are deployed
 in the same Web Application?
  (two wicket servlets in web.xml; /app1, /app2)
 
  How easy is to integrate them?
 
  How should we modularize our applications so a huge project can have
 modules with teams working independently but not totally isolated?
 
  Thanks
 
 
  --
  Bruno Borges
  Summa Technologies Inc.
  www.summa-tech.com
  (11) 8565-7739 - (11) 3846-1622
 
 
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 
 




 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user





___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Plan to develop a portal

2006-06-14 Thread Vincent Jenks
 It depends on what do you need. Spring gives you a lot of flexibility.
 The question is, how much flexibility you need? Spring is little
 difficult to grasp at first.

I don't think it's all that complicated to grasp the concepts but
every time I come around to looking into it I can never really justify
the need for it.  I actually bought a couple of Spring books a few
months back and covered quite a bit of them...

I guess I avoid it because it appears to force you into thinking in an
IoC way and I don't like the idea of configuring my classes w/ XML and
using interfaces for *everything* - sometimes that's just more complex
than the problem at hand.

I hear mostly good things about it but I suppose I'm just not well
educated enough on it to really criticize it...these are just my
initial impressions.

 But I'd certainly not label spring as overkill. You can use only the
 parts you need. In web application it really doesn't matter if you have
 one additional 1.5 megs jar or not.

Sure, I understand that as well...but it's yet another framework to
introduce into my application and I haven't seen the need yet.
Through all of my reading it has never felt like an intuitive, hit
the ground running framework that I could begin using
quickly...there's a bit of a learning curve there.  I meant overkill
as in I've found easy-enough ways to solve problems without Spring -
so far.

 Vincent Jenks wrote:
  Right, right, I understand all of that...but the configuration looks
  similar...it seems like a good candidate for this portal project for
  externalizing resources.  In other words - Spring might be overkill if
  it can be done more easily w/ Obix if I were to use EJB3.
 
  I guess I was thinking aloudheh.
 
  On 6/14/06, Matej Knopp [EMAIL PROTECTED] wrote:
  IOC + AOP + Remoting + Lot of other stuff.
  Spring is a swiss army knife of web development :)
 
  -Matej
 
  Igor Vaynberg wrote:
  i dont think so. spring is an ioc container at the very least. obix is
  just a lib to make it easy to read in config files.
 
  -Igor
 
 
  On 6/14/06, *Vincent Jenks * [EMAIL PROTECTED]
  mailto:[EMAIL PROTECTED] wrote:
 
  Coincidentally, I came across this article the other day:
 
  http://www.javaworld.com/javaworld/jw-06-2006/jw-0605-obix.html
 
  It seems like Obix has a lot of overlap w/ Spring, no?
 
  On 6/14/06, Igor Vaynberg [EMAIL PROTECTED]
  mailto:[EMAIL PROTECTED] wrote:
they have made some improvements yes. but as i said, if you know
  what you
are doing xml is minimal even in 1.2.6
   
-Igor
   
   
   
On 6/14/06, Vincent Jenks [EMAIL PROTECTED]
  mailto:[EMAIL PROTECTED] wrote:

 Perhaps it'd be worth developing a container and non-container
  based
version of the project...or something in between.  I suppose I'll
  need
to do my homework first!
   
Is Spring 2.x moving away from XML?  I just downloaded the M5
reference, I'll flip through it for a bit.
   
On 6/14/06, Igor Vaynberg [EMAIL PROTECTED]
  mailto:[EMAIL PROTECTED] wrote:
 spring has simple transaction demarcation, see @Transactional
  annotation.
 and as far as persistence if using spring 1.x you can use
  hibernate with
 ejb3 annotations, or if using spring 2.x you can use hibernate's
 entitymanager which is basically ejb3 and they have jpa (or wtf
  that
acronym
 is) support as well

 -Igor



 On 6/14/06, Vincent Jenks [EMAIL PROTECTED]
  mailto:[EMAIL PROTECTED] wrote:
 
  and for a portal this xml you /will/ want to have
  configurable at deployment time in order to configure what
 portlets/services
  are available to the portal - so even with ejb3 this kind of
  stuff still
 has
  to be in some external config.

 I was actually thinking about that the other day...you're
  absolutely
 right on that point, it has to be externalized somehow.

 I don't see how Spring couldn't be used to compliment EJB 3.0
  in the
 regard.  Spring could be used to externalize modular resources,
  i.e.
 portlets whereas EJB3 could do what it does best...persistence 
  and
 simple transaction demarcation.


  ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
  mailto:Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user




 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
  mailto:Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user

Re: [Wicket-user] EJB3 Lazy Loading (was Seam-like solution for Wicket + EJB3?)

2006-06-01 Thread Vincent Jenks

I think this is exactly how Seam deals w/ the problemwhat I
don't understand is then; why would they be pushing it as an
enterprise solution for JSF + EJB3?  If it wouldn't scale, assuming
this is how Seam works, then it would be useless in a high-concurrency
environment.

Also, JBoss is pushing for a new JSR standard called Web Beans based
on the work they've done w/ Seam...so there must be a lot we're
assuming incorrectly about how Seam worksor what the best solution
for this issue would be.

Perhaps it's another, independent framework entirely outside of
WicketWicket really isn't the issue (though it'd be nice to have a
clean, simple, transparent solution that Wicket could use...it'd make
it all the more appealing for large EJB3-based projects!)

On 6/1/06, Marco Geier [EMAIL PROTECTED] wrote:

It doesn't matter if the Web-Layer is on a separate machin eor VM,
it just depends on the availability of a PersistenceContext, which is,
in all cases i encountered so far, equivalent to a EJB-Transaction.
I.e., while in a transaction, you are free to call /load any relations,
w/o getting nasty errors.
So if you don't use a Client-UserTransaction (which is possible, but not
recommended), a call to any SessionBean which returns any bean will
implicitly starts a transaction and closes it when the method returns.

So in order to have a seam-like behaviour, we should look at the EJB3
Extended PersistenceContext, that somehow allows re-attaching beans
(sorry, didn't use that stuff yet, so no experiences).

But still, for performance and concurrency reasons, the main point is:

*When do i start/end my transactions*

One might be tempted (as i was) to just wrap the whole requestcycle into
one transaction. That works fine, almost no headaches with lazy loading,
but really doesn't scale because transactions last too long.
So what i do right now is to have a layer of sepcialized gui-related
SessionBeans that return *completely initialized* beans, i.e. beans that
already have any collection loaded that will be needed in the page.
This is, of course, a pain in the a.., but right now i don't see any
other solution...

Marco








Johan Compagner wrote:
 What is that client where you talk about? Do you have a App server that
 contains the EJB and a App/Web server == client? that runs wicket?

 Why does this happen:

 Now if an Instance of BeanB is passed to a wicket component the following
 occurs
a) The BeanB instance is detached from the transaction context of the
 app server. There is no way to avoid this.

 ?? If i ask the persistence layer for BeanB does it open a session get B
 close the session and then return B?

 that would be awfull.

 johan


 On 6/1/06, Stefan Lindner [EMAIL PROTECTED] wrote:


 Dear suffering lazy loaders,

 I want to start a new thread with a discussion that is focused on EJB3
 (not Spring, not Hibernate) because all those In Hibernate it works like
 this... hints are not helpful. To clearyfy this:
 1. EJB3 is NOT Hibernate. Yes, the EJB3 implementation of JBoss is based
 upon Hibernate but other vendors do NOT use Hibernate.
 2. Since Wicket is platform independent, an EJB3 solution for Wicket
 should be independent too.
 3. The Problem arises when a Bean references another bean as an object
 through a relation: For Example

  SQL:
  create table A (id integer, value varchar(100)
  create table B (id integer, value varchar(100), ref_to_a integer)
  alter table B add constraint ArefB ref_to_a references A(id)

  JAVA
  @entity
  class BeanA 
 public int getId()
 public void setId()

  @entiy
  class BeanB ...
   private BeanA;
   @ManyToOne(fetch=FetchType.LAZY)
   public BeanA getBeanA()

 Now if an Instance of BeanB is passed to a wicket component the
 following occurs
 a) The BeanB instance is detached from the transaction context of the
 app server. There is no way to avoid this.
 b) The instance of BeanB does not contain a complete BeanA
 c) The access of BeanB.getBeanA().getId will throw a
 LazyInitaliaziationException

 4. It is not possible (correct me if I am wrong) to have a EJB3
 transaction on the client. This means it is not possible to bring back
 the
 BeanB instance into an attached state on the client.
 5. The only solutions I can see may be the following:
 a) Find some way of putting an interceptor in the access method for
 lazy loades attributes  and let the server so the loading in the catch
 bock
 b) Wrap a try/catch block around the access and let the server so the
 loading in the catch bock
 c) never do a direct access. Always send the bean back to the server
 and do the loading on the server

 All three solutions need the server to do the lazy loading.
 6. Just to clearify: Not Wicket is the problem. The problem lies in the
 design of EJB3 lazy loading itself. Any client application has the same
 problem in principal.

 Is this correct until 

Re: [Wicket-user] another dumb model question....

2006-06-01 Thread Vincent Jenks

Agreed, the solution was absurdly simpleI was just entirely unsure
what to pass for the argnull seems very counter-intuitive to the
framework *user*.

On 6/1/06, Rüdiger Schulz [EMAIL PROTECTED] wrote:

Enhanced JavaDoc for IModel would be very useful. When I started with
Wicket, this took quite some time for me to grasp. After that, a lot
of problems I had where suddenly easy to solve :)

--
greetings from Berlin,

Rüdiger Schulz


Matej Knopp wrote on 01.06.2006 at 18:46:

 Plus those methods are redundant. It would just clutter the interface.
 The contract is well defined. Maybe javadoc of get/setModelObject should
 be improved a little and state explicitly what the argument is and how
 it is used?

 -Matej

 Igor Vaynberg wrote:
 and what should that paremeterless override pass in to the
 getObject(Component c)? null? that will work, but will break down if you
 have a compound model - and more often then not you do.

 so i dont know if this is such a good thing

 -Igor


 On 6/1/06, *Aaron Hiniker* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
 wrote:

 +1


 On Wed, 2006-05-31 at 20:47 -0600, VGJ wrote:
 I might just be nit-picking here...but it might be nice to have a
 parameter-less override of getObjectjust for prettiness ;)  It
 might be more intuitive for the first-time user as well?  It would
 be more apparent, IMO, if you could just call model.getObject()

 Just a thought...

 On Wed, 2006-05-31 at 22:35 +0200, Matej Knopp wrote:
 :) Yeah, getObject is a little confusing at the beginning. The 
parameter
 is mostly used in compound models
 (CompoundPropertyModel) where the
 model is shared between multiple components to determine which 
component
 is setting/getting the value.

 -Matej

 Vincent Jenks wrote:
  Excellent, that's perfect.  The part I was unsure about was what to
  pass for the arguement for getObject()
 
  Thanks Matej!
 
  On 5/31/06, Matej Knopp [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED] wrote:
  Suppose you have
  IModel model = new LoadableDetachableModel() { ...
 
  you can get the model any time:
  ListItem myItems = (ListItem) model.getObject(null).
 
  First time you call getObject the model is attached (list is 
loaded).
  Until it's detached, getObject(null) will always return the loaded 
list.
 
  -Matej
 
  Vincent Jenks wrote:
   If I were just displaying the lists in a ListView that'd be fine,
   however I'm not using it that way.
  
   Suppose myDetachedModel is being displayed in a ListView and on 
each
   iteration, I'm grabbing a value from the database (here's where I 
need
   another detachable model) and doing calculations against it - for 
each
   iteration in the ListView loop.
  
   In other words, I just need access to the raw object data in it's 
real
   data-type after I've loaded it into a detachable model - my 
question
   is simply that, how do I get it back to its original type.
  
   On 5/31/06, Matej Knopp [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED] wrote:
   I'm not sure I understand you but you load the collections 
separately?
   Can't you just do something like this?
  
   class MyPage extends Page {
  public MyPage() {
IModel m1 = new LoadableDetachableModel() {
  Object load() {
 return [load collection 1];
  }
}
add(new ListView(l1, m1) {
  ...
});
  
IModel m2 = new LoadableDetachableModel() {
  Object load() {
 return [load collection 2];
  }
}
add(new ListView(l2, m2) {
  ...
});
  
  }
   }
  
   Matej
  
   Vincent Jenks wrote:
I've got a page where I need to call data from the EntityManger
  (EJB3)
several times in a single pagewhich means I'd need to have
  several
detached-models in the page.
   
Once I put these objects and/or collections of objects into a
detachable model, what's the best way to cast them back out to 
their
original types?
   
It seems like a silly question but I'm having trouble w/ it.  
If I
only had one detached model I realize I could use 
setModel(...) and
grab it w/ getModelObject() - but I've got 3-4 collections and 
they
can't all be the page model, can they?
   
Thanks!
   
   
   
 ---
All the advantages of Linux Managed
 Hosting--Without the Cost and
  Risk!
Fully trained technicians. The highest number of Red Hat
   certifications in
the hosting industry. Fanatical Support. Click to learn more
   
  
 
 http://sel.as-us.falkag.net/sel?cmd

Re: [Wicket-user] another dumb model question....

2006-06-01 Thread Vincent Jenks

That wasn't my point, really.  I'm not saying null doesn't work...I'm
just talking purely about elegance here...getObject() is sexier ;)

It also just makes sense to the user.

What can I say...I'm picky.

On 6/1/06, Igor Vaynberg [EMAIL PROTECTED] wrote:

pass in the component that is accessing the model - that is whatever
component is calling getObject

-Igor



On 6/1/06, Vincent Jenks  [EMAIL PROTECTED] wrote:
 Agreed, the solution was absurdly simpleI was just entirely unsure
 what to pass for the argnull seems very counter-intuitive to the
 framework *user*.

 On 6/1/06, Rüdiger Schulz [EMAIL PROTECTED] wrote:
  Enhanced JavaDoc for IModel would be very useful. When I started with
  Wicket, this took quite some time for me to grasp. After that, a lot
  of problems I had where suddenly easy to solve :)
 
  --
  greetings from Berlin,
 
  Rüdiger Schulz
 
 
  Matej Knopp wrote on 01.06.2006 at 18:46:
 
   Plus those methods are redundant. It would just clutter the interface.
   The contract is well defined. Maybe javadoc of get/setModelObject
should
   be improved a little and state explicitly what the argument is and how
   it is used?
 
   -Matej
 
   Igor Vaynberg wrote:
   and what should that paremeterless override pass in to the
   getObject(Component c)? null? that will work, but will break down if
you
   have a compound model - and more often then not you do.
  
   so i dont know if this is such a good thing
  
   -Igor
  
  
   On 6/1/06, *Aaron Hiniker* [EMAIL PROTECTED] mailto:
[EMAIL PROTECTED]
   wrote:
  
   +1
  
  
   On Wed, 2006-05-31 at 20:47 -0600, VGJ wrote:
   I might just be nit-picking here...but it might be nice to have
a
   parameter-less override of getObjectjust for prettiness ;)
It
   might be more intuitive for the first-time user as well?  It
would
   be more apparent, IMO, if you could just call model.getObject()
  
   Just a thought...
  
   On Wed, 2006-05-31 at 22:35 +0200, Matej Knopp wrote:
   :) Yeah, getObject is a little confusing at the beginning. The
parameter
   is mostly used in compound models
   (CompoundPropertyModel) where the
   model is shared between multiple components to determine which
component
   is setting/getting the value.
  
   -Matej
  
   Vincent Jenks wrote:
Excellent, that's perfect.  The part I was unsure about was
what to
pass for the arguement for getObject()
   
Thanks Matej!
   
On 5/31/06, Matej Knopp  [EMAIL PROTECTED]
   mailto:[EMAIL PROTECTED] wrote:
Suppose you have
IModel model = new LoadableDetachableModel() { ...
   
you can get the model any time:
ListItem myItems = (ListItem) model.getObject(null).
   
First time you call getObject the model is attached (list is
loaded).
Until it's detached, getObject(null) will always return the
loaded list.
   
-Matej
   
Vincent Jenks wrote:
 If I were just displaying the lists in a ListView that'd
be fine,
 however I'm not using it that way.

 Suppose myDetachedModel is being displayed in a ListView
and on each
 iteration, I'm grabbing a value from the database (here's
where I need
 another detachable model) and doing calculations against
it - for each
 iteration in the ListView loop.

 In other words, I just need access to the raw object data
in it's real
 data-type after I've loaded it into a detachable model -
my question
 is simply that, how do I get it back to its original type.

 On 5/31/06, Matej Knopp [EMAIL PROTECTED]
   mailto:[EMAIL PROTECTED] wrote:
 I'm not sure I understand you but you load the
collections separately?
 Can't you just do something like this?

 class MyPage extends Page {
public MyPage() {
  IModel m1 = new LoadableDetachableModel() {
Object load() {
   return [load collection 1];
}
  }
  add(new ListView(l1, m1) {
...
  });

  IModel m2 = new LoadableDetachableModel() {
Object load() {
   return [load collection 2];
}
  }
  add(new ListView(l2, m2) {
...
  });

}
 }

 Matej

 Vincent Jenks wrote:
  I've got a page where I need to call data from the
EntityManger
(EJB3)
  several times in a single pagewhich means I'd need
to have
several
  detached-models in the page.
 
  Once I put these objects and/or collections of objects
into a
  detachable model, what's the best way to cast them back
out to their
  original types?
 
  It seems like a silly

Re: [Wicket-user] another dumb model question....

2006-06-01 Thread Vincent Jenks

Point takenno biggie.

On 6/1/06, Matej Knopp [EMAIL PROTECTED] wrote:

But getObject() can't work if you have a property model. It will only
work with simple models.

-Matej

Vincent Jenks wrote:
 That wasn't my point, really.  I'm not saying null doesn't work...I'm
 just talking purely about elegance here...getObject() is sexier ;)

 It also just makes sense to the user.

 What can I say...I'm picky.

 On 6/1/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
 pass in the component that is accessing the model - that is whatever
 component is calling getObject

 -Igor



 On 6/1/06, Vincent Jenks  [EMAIL PROTECTED] wrote:
  Agreed, the solution was absurdly simpleI was just entirely unsure
  what to pass for the argnull seems very counter-intuitive to the
  framework *user*.
 
  On 6/1/06, Rüdiger Schulz [EMAIL PROTECTED] wrote:
   Enhanced JavaDoc for IModel would be very useful. When I started with
   Wicket, this took quite some time for me to grasp. After that, a lot
   of problems I had where suddenly easy to solve :)
  
   --
   greetings from Berlin,
  
   Rüdiger Schulz
  
  
   Matej Knopp wrote on 01.06.2006 at 18:46:
  
Plus those methods are redundant. It would just clutter the
 interface.
The contract is well defined. Maybe javadoc of get/setModelObject
 should
be improved a little and state explicitly what the argument is
 and how
it is used?
  
-Matej
  
Igor Vaynberg wrote:
and what should that paremeterless override pass in to the
getObject(Component c)? null? that will work, but will break
 down if
 you
have a compound model - and more often then not you do.
   
so i dont know if this is such a good thing
   
-Igor
   
   
On 6/1/06, *Aaron Hiniker* [EMAIL PROTECTED] mailto:
 [EMAIL PROTECTED]
wrote:
   
+1
   
   
On Wed, 2006-05-31 at 20:47 -0600, VGJ wrote:
I might just be nit-picking here...but it might be nice to
 have
 a
parameter-less override of getObjectjust for
 prettiness ;)
 It
might be more intuitive for the first-time user as well?  It
 would
be more apparent, IMO, if you could just call
 model.getObject()
   
Just a thought...
   
On Wed, 2006-05-31 at 22:35 +0200, Matej Knopp wrote:
:) Yeah, getObject is a little confusing at the
 beginning. The
 parameter
is mostly used in compound models
(CompoundPropertyModel) where the
model is shared between multiple components to determine
 which
 component
is setting/getting the value.
   
-Matej
   
Vincent Jenks wrote:
 Excellent, that's perfect.  The part I was unsure about
 was
 what to
 pass for the arguement for getObject()

 Thanks Matej!

 On 5/31/06, Matej Knopp  [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED] wrote:
 Suppose you have
 IModel model = new LoadableDetachableModel() { ...

 you can get the model any time:
 ListItem myItems = (ListItem) model.getObject(null).

 First time you call getObject the model is attached
 (list is
 loaded).
 Until it's detached, getObject(null) will always
 return the
 loaded list.

 -Matej

 Vincent Jenks wrote:
  If I were just displaying the lists in a ListView
 that'd
 be fine,
  however I'm not using it that way.
 
  Suppose myDetachedModel is being displayed in a
 ListView
 and on each
  iteration, I'm grabbing a value from the database
 (here's
 where I need
  another detachable model) and doing calculations
 against
 it - for each
  iteration in the ListView loop.
 
  In other words, I just need access to the raw object
 data
 in it's real
  data-type after I've loaded it into a detachable
 model -
 my question
  is simply that, how do I get it back to its original
 type.
 
  On 5/31/06, Matej Knopp [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED] wrote:
  I'm not sure I understand you but you load the
 collections separately?
  Can't you just do something like this?
 
  class MyPage extends Page {
 public MyPage() {
   IModel m1 = new LoadableDetachableModel() {
 Object load() {
return [load collection 1];
 }
   }
   add(new ListView(l1, m1) {
 ...
   });
 
   IModel m2 = new LoadableDetachableModel() {
 Object load() {
return [load collection 2];
 }
   }
   add(new ListView(l2, m2) {
 ...
   });
 
 }
  }
 
  Matej
 
  Vincent Jenks wrote:
   I've got a page where I need to call data from the
 EntityManger

Re: [Wicket-user] EJB3 Lazy Loading (was Seam-like solution for Wicket + EJB3?)

2006-06-01 Thread Vincent Jenks

I've been meaning to take a look at that and I think I will this
weekend.  I have another internal project here at work I'd like to
convert to Wicket (currently uses very crude servlet+JSP MVC approach)
- and it uses Hibernate.

On 6/1/06, Eelco Hillenius [EMAIL PROTECTED] wrote:

Maybe Nathan's DataBinder project could serve as a starting point there?

Eelco

On 6/1/06, Vincent Jenks [EMAIL PROTECTED] wrote:
 I think this is exactly how Seam deals w/ the problemwhat I
 don't understand is then; why would they be pushing it as an
 enterprise solution for JSF + EJB3?  If it wouldn't scale, assuming
 this is how Seam works, then it would be useless in a high-concurrency
 environment.

 Also, JBoss is pushing for a new JSR standard called Web Beans based
 on the work they've done w/ Seam...so there must be a lot we're
 assuming incorrectly about how Seam worksor what the best solution
 for this issue would be.

 Perhaps it's another, independent framework entirely outside of
 WicketWicket really isn't the issue (though it'd be nice to have a
 clean, simple, transparent solution that Wicket could use...it'd make
 it all the more appealing for large EJB3-based projects!)

 On 6/1/06, Marco Geier [EMAIL PROTECTED] wrote:
  It doesn't matter if the Web-Layer is on a separate machin eor VM,
  it just depends on the availability of a PersistenceContext, which is,
  in all cases i encountered so far, equivalent to a EJB-Transaction.
  I.e., while in a transaction, you are free to call /load any relations,
  w/o getting nasty errors.
  So if you don't use a Client-UserTransaction (which is possible, but not
  recommended), a call to any SessionBean which returns any bean will
  implicitly starts a transaction and closes it when the method returns.
 
  So in order to have a seam-like behaviour, we should look at the EJB3
  Extended PersistenceContext, that somehow allows re-attaching beans
  (sorry, didn't use that stuff yet, so no experiences).
 
  But still, for performance and concurrency reasons, the main point is:
 
  *When do i start/end my transactions*
 
  One might be tempted (as i was) to just wrap the whole requestcycle into
  one transaction. That works fine, almost no headaches with lazy loading,
  but really doesn't scale because transactions last too long.
  So what i do right now is to have a layer of sepcialized gui-related
  SessionBeans that return *completely initialized* beans, i.e. beans that
  already have any collection loaded that will be needed in the page.
  This is, of course, a pain in the a.., but right now i don't see any
  other solution...
 
  Marco
 
 
 
 
 
 
 
 
  Johan Compagner wrote:
   What is that client where you talk about? Do you have a App server that
   contains the EJB and a App/Web server == client? that runs wicket?
  
   Why does this happen:
  
   Now if an Instance of BeanB is passed to a wicket component the following
   occurs
  a) The BeanB instance is detached from the transaction context of the
   app server. There is no way to avoid this.
  
   ?? If i ask the persistence layer for BeanB does it open a session get B
   close the session and then return B?
  
   that would be awfull.
  
   johan
  
  
   On 6/1/06, Stefan Lindner [EMAIL PROTECTED] wrote:
  
  
   Dear suffering lazy loaders,
  
   I want to start a new thread with a discussion that is focused on EJB3
   (not Spring, not Hibernate) because all those In Hibernate it works like
   this... hints are not helpful. To clearyfy this:
   1. EJB3 is NOT Hibernate. Yes, the EJB3 implementation of JBoss is based
   upon Hibernate but other vendors do NOT use Hibernate.
   2. Since Wicket is platform independent, an EJB3 solution for Wicket
   should be independent too.
   3. The Problem arises when a Bean references another bean as an object
   through a relation: For Example
  
SQL:
create table A (id integer, value varchar(100)
create table B (id integer, value varchar(100), ref_to_a integer)
alter table B add constraint ArefB ref_to_a references A(id)
  
JAVA
@entity
class BeanA 
   public int getId()
   public void setId()
  
@entiy
class BeanB ...
 private BeanA;
 @ManyToOne(fetch=FetchType.LAZY)
 public BeanA getBeanA()
  
   Now if an Instance of BeanB is passed to a wicket component the
   following occurs
   a) The BeanB instance is detached from the transaction context of the
   app server. There is no way to avoid this.
   b) The instance of BeanB does not contain a complete BeanA
   c) The access of BeanB.getBeanA().getId will throw a
   LazyInitaliaziationException
  
   4. It is not possible (correct me if I am wrong) to have a EJB3
   transaction on the client. This means it is not possible to bring back
   the
   BeanB instance into an attached state on the client.
   5. The only solutions I can see may be the following

Re: [Wicket-user] RE: combo box displaying choose one

2006-05-31 Thread Vincent Jenks

add(new DropDownChoice(dropdown, model, values)
{
protected String getDefaultChoice(final Object selected)
{
   return ; //this fixes your problem...
}

public String getDisplayValue(Object object)
{
return object.toString();
}

public String getIdValue(Object object, int index)
{
return object.toString();
}   
})


---
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnkkid=107521bid=248729dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] halt and redirect

2006-05-31 Thread Vincent Jenks

How can I simply stop a page from rendering and redirect to another?
Say I've got a condition where I've found an object to be null or an
unacceptable value and I'd rather send the user to another page w/o
rendering the rest of the current page?

I thought I was doing that w/ setResponsePage() but apparently it
hasn't been working...didn't notice until now.

Thanks!

-v


---
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnkkid=107521bid=248729dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Seam-like solution for Wicket + EJB3?

2006-05-31 Thread Vincent Jenks

Yes, I've done this w/ Hibernate w/o a problem, it works great when
you're manually creating  destroying the sessions...but I'm not since
I'm using container managed sessions in EJB3.

How would this be done since the container controls the session for
me?  Which, is what I wantI don't want to start managing
everything manually - that's my point.

I used Seam as an example because it does just that...unfortunately
it's tied directly to JSF.

On 5/31/06, Nick Heudecker [EMAIL PROTECTED] wrote:

I really don't see why this problem can't be solved with the standard Open
Session In View pattern.  I've used it with Struts and Wicket without a
problem.




---
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnkkid=107521bid=248729dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] another dumb model question....

2006-05-31 Thread Vincent Jenks

I've got a page where I need to call data from the EntityManger (EJB3)
several times in a single pagewhich means I'd need to have several
detached-models in the page.

Once I put these objects and/or collections of objects into a
detachable model, what's the best way to cast them back out to their
original types?

It seems like a silly question but I'm having trouble w/ it.  If I
only had one detached model I realize I could use setModel(...) and
grab it w/ getModelObject() - but I've got 3-4 collections and they
can't all be the page model, can they?

Thanks!


---
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnkkid=107521bid=248729dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Seam-like solution for Wicket + EJB3?

2006-05-31 Thread Vincent Jenks

Easy enough to say, however, I don't know *how* Seam does what it does
- I have no idea how to implement something like this.

And yes, it's a long-running transaction (I suppose?)  Perhaps they're
just storing the transaction in an http session so it's still relevant
to the user throughout the application before it's comitted and the
session is flushed.

I'm not really sure...

I guess that's the question then...would I have to resort to
bean-managed transactions, go outside of the container, and pass the
transaction around in a session until I decide to commit it?  I'm
afraid that's out of the question and would complex enough *not* to
use EJB3 and just resort to using Wicket + Hibernate or Wicket +
Hibernate + Spring.

OpenSessionInView does work great, if you're using Hibernate!  I'm not
using Hibernate.  I'm using an entirely managed environment and am not
manually working w/ the session or the transaction.

I'm a relative newbie to most of you, I'm sure, so hopefully someone
can correct me where I'm making false assumptions.

On 5/31/06, Matej Knopp [EMAIL PROTECTED] wrote:

I don't know why but I just don't like the idea of long-running
transactions. I think web applications are just too unpredictable to
hold one transaction during multiple request. You can never be sure when
(and if) the next request will come.

OpenSessionInView filter has always be sufficient for me. I either load
all lazyly loaded collections in advance or re-associate the object with
session on every request.

I don't know seam internals either, but can't see a reason why it
shouldn't be possible to have long running transaction with wicket.
After all, transactions are not web layers responsibility.

-MAtej

Vincent Jenks wrote:
 I'm not sure how familiar anyone here is w/ Seam and how it applies to
 JSF when working w/ EJB3...but I thought I'd bring this up anyhow.

 You'll have to forgive my ignorance as I'm not entirely clear *how*
 Seam works internally and haven't built a project w/ it yet...but it
 seems to ease the pain that Hibernate users have long experienced w/
 LazyInitializationExceptions.

 I realize there's some sort of solition for plain 'ol Hibernate users
 in wicket-stuff, something about Spring?  However, it's a different
 story when using EJB3 in the JBoss container w/ container-managed
 persistence.

 Apparently, Seam creates a long-running Hibernate session in the
 container that supposidly eliminates the LazyInitializationException.

 I've gotten quite comfortable w/ Wicket and hope to continue to use it
 for projects here at work...however working around lazily-loaded
 collections in EJB3 is becoming messy for me at times when the domain
 model becomes more than trivial.  I have a great distaste for JSF and
 would rather not use it, believe me, but Seam is very compelling for
 large, complex projects where the LIE exception will be come much more
 likely.

 How hard would it be to implement something like Seam has to ease this
 problem?  That is, assuming no one has come up w/ a solution yet...if
 there is one, please let me know!

 I've mentioned something like this in passing before and have gotten
 the usual response, which is you need to use a session-per-request
 pattern.  The problem is; I'm using a container...I don't have
 control of the hibernate session, the transactions (per se), etc.  In
 an entirely container-managed environment I don't have the options I
 would w/ plain Hibernate.

 Thanks in advance!


 ---
 All the advantages of Linux Managed Hosting--Without the Cost and Risk!
 Fully trained technicians. The highest number of Red Hat certifications in
 the hosting industry. Fanatical Support. Click to learn more
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=107521bid=248729dat=121642
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user




---
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnkkid=107521bid=248729dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user




---
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnkkid=107521bid=248729dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] another dumb model question....

2006-05-31 Thread Vincent Jenks

If I were just displaying the lists in a ListView that'd be fine,
however I'm not using it that way.

Suppose myDetachedModel is being displayed in a ListView and on each
iteration, I'm grabbing a value from the database (here's where I need
another detachable model) and doing calculations against it - for each
iteration in the ListView loop.

In other words, I just need access to the raw object data in it's real
data-type after I've loaded it into a detachable model - my question
is simply that, how do I get it back to its original type.

On 5/31/06, Matej Knopp [EMAIL PROTECTED] wrote:

I'm not sure I understand you but you load the collections separately?
Can't you just do something like this?

class MyPage extends Page {
   public MyPage() {
 IModel m1 = new LoadableDetachableModel() {
   Object load() {
  return [load collection 1];
   }
 }
 add(new ListView(l1, m1) {
   ...
 });

 IModel m2 = new LoadableDetachableModel() {
   Object load() {
  return [load collection 2];
   }
 }
 add(new ListView(l2, m2) {
   ...
 });

   }
}

Matej

Vincent Jenks wrote:
 I've got a page where I need to call data from the EntityManger (EJB3)
 several times in a single pagewhich means I'd need to have several
 detached-models in the page.

 Once I put these objects and/or collections of objects into a
 detachable model, what's the best way to cast them back out to their
 original types?

 It seems like a silly question but I'm having trouble w/ it.  If I
 only had one detached model I realize I could use setModel(...) and
 grab it w/ getModelObject() - but I've got 3-4 collections and they
 can't all be the page model, can they?

 Thanks!


 ---
 All the advantages of Linux Managed Hosting--Without the Cost and Risk!
 Fully trained technicians. The highest number of Red Hat certifications in
 the hosting industry. Fanatical Support. Click to learn more
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=107521bid=248729dat=121642
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user




---
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnkkid=107521bid=248729dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user




---
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnkkid=107521bid=248729dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] another dumb model question....

2006-05-31 Thread Vincent Jenks

Excellent, that's perfect.  The part I was unsure about was what to
pass for the arguement for getObject()

Thanks Matej!

On 5/31/06, Matej Knopp [EMAIL PROTECTED] wrote:

Suppose you have
IModel model = new LoadableDetachableModel() { ...

you can get the model any time:
ListItem myItems = (ListItem) model.getObject(null).

First time you call getObject the model is attached (list is loaded).
Until it's detached, getObject(null) will always return the loaded list.

-Matej

Vincent Jenks wrote:
 If I were just displaying the lists in a ListView that'd be fine,
 however I'm not using it that way.

 Suppose myDetachedModel is being displayed in a ListView and on each
 iteration, I'm grabbing a value from the database (here's where I need
 another detachable model) and doing calculations against it - for each
 iteration in the ListView loop.

 In other words, I just need access to the raw object data in it's real
 data-type after I've loaded it into a detachable model - my question
 is simply that, how do I get it back to its original type.

 On 5/31/06, Matej Knopp [EMAIL PROTECTED] wrote:
 I'm not sure I understand you but you load the collections separately?
 Can't you just do something like this?

 class MyPage extends Page {
public MyPage() {
  IModel m1 = new LoadableDetachableModel() {
Object load() {
   return [load collection 1];
}
  }
  add(new ListView(l1, m1) {
...
  });

  IModel m2 = new LoadableDetachableModel() {
Object load() {
   return [load collection 2];
}
  }
  add(new ListView(l2, m2) {
...
  });

}
 }

 Matej

 Vincent Jenks wrote:
  I've got a page where I need to call data from the EntityManger (EJB3)
  several times in a single pagewhich means I'd need to have several
  detached-models in the page.
 
  Once I put these objects and/or collections of objects into a
  detachable model, what's the best way to cast them back out to their
  original types?
 
  It seems like a silly question but I'm having trouble w/ it.  If I
  only had one detached model I realize I could use setModel(...) and
  grab it w/ getModelObject() - but I've got 3-4 collections and they
  can't all be the page model, can they?
 
  Thanks!
 
 
  ---
  All the advantages of Linux Managed Hosting--Without the Cost and Risk!
  Fully trained technicians. The highest number of Red Hat
 certifications in
  the hosting industry. Fanatical Support. Click to learn more
 
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=107521bid=248729dat=121642
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 



 ---
 All the advantages of Linux Managed Hosting--Without the Cost and Risk!
 Fully trained technicians. The highest number of Red Hat
 certifications in
 the hosting industry. Fanatical Support. Click to learn more
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=107521bid=248729dat=121642
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



 ---
 All the advantages of Linux Managed Hosting--Without the Cost and Risk!
 Fully trained technicians. The highest number of Red Hat certifications in
 the hosting industry. Fanatical Support. Click to learn more
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=107521bid=248729dat=121642
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user




---
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnkkid=107521bid=248729dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user




---
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnkkid=107521bid=248729dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Seam-like solution for Wicket + EJB3?

2006-05-31 Thread Vincent Jenks

Yeah, that'd be quite simple for Hibernate alone where you're
utilizing the session manually...however I've never had the problems
I'm having w/ plain Hibernate due to the OpenSessionInView
pattern...which has always worked in that sense.

However, that's very interestinggood approach for a long running
session/transaction outside of EJB3.

On 5/31/06, Igor Vaynberg [EMAIL PROTECTED] wrote:

i would imagine if i was working with hibernate directly and wanted to
achieve this i would get a session instance, and pass it around to the pages
that are part of the same conversation

so something like

session s=getsession();
user u=getUser(s);

setResponsePage(new ConfirmDeleteUserPage(u, s)

and thats all there is to it, now confirmdeleteuserpage can operate on the
same conversation that the page that invoked it

the only trick is to diconnect and reconnect the session, but that can be
done with a simple facade

-Igor



On 5/31/06, Vincent Jenks [EMAIL PROTECTED] wrote:

 Easy enough to say, however, I don't know *how* Seam does what it does
- I have no idea how to implement something like this.

And yes, it's a long-running transaction (I suppose?)  Perhaps they're
just storing the transaction in an http session so it's still relevant
to the user throughout the application before it's comitted and the
session is flushed.

I'm not really sure...

I guess that's the question then...would I have to resort to
bean-managed transactions, go outside of the container, and pass the
transaction around in a session until I decide to commit it?  I'm
afraid that's out of the question and would complex enough *not* to
use EJB3 and just resort to using Wicket + Hibernate or Wicket +
Hibernate + Spring.

OpenSessionInView does work great, if you're using Hibernate!  I'm not
using Hibernate.  I'm using an entirely managed environment and am not
manually working w/ the session or the transaction.

I'm a relative newbie to most of you, I'm sure, so hopefully someone
can correct me where I'm making false assumptions.

On 5/31/06, Matej Knopp [EMAIL PROTECTED] wrote:
 I don't know why but I just don't like the idea of long-running
 transactions. I think web applications are just too unpredictable to
 hold one transaction during multiple request. You can never be sure when
 (and if) the next request will come.

 OpenSessionInView filter has always be sufficient for me. I either load
 all lazyly loaded collections in advance or re-associate the object with
 session on every request.

 I don't know seam internals either, but can't see a reason why it
 shouldn't be possible to have long running transaction with wicket.
 After all, transactions are not web layers responsibility.

 -MAtej

 Vincent Jenks wrote:
  I'm not sure how familiar anyone here is w/ Seam and how it applies to
  JSF when working w/ EJB3...but I thought I'd bring this up anyhow.
 
  You'll have to forgive my ignorance as I'm not entirely clear *how*
  Seam works internally and haven't built a project w/ it yet...but it
  seems to ease the pain that Hibernate users have long experienced w/
  LazyInitializationExceptions.
 
  I realize there's some sort of solition for plain 'ol Hibernate users
  in wicket-stuff, something about Spring?  However, it's a different
   story when using EJB3 in the JBoss container w/ container-managed
  persistence.
 
  Apparently, Seam creates a long-running Hibernate session in the
  container that supposidly eliminates the LazyInitializationException.
 
  I've gotten quite comfortable w/ Wicket and hope to continue to use it
  for projects here at work...however working around lazily-loaded
  collections in EJB3 is becoming messy for me at times when the domain
  model becomes more than trivial.  I have a great distaste for JSF and
  would rather not use it, believe me, but Seam is very compelling for
  large, complex projects where the LIE exception will be come much more
  likely.
 
  How hard would it be to implement something like Seam has to ease this
  problem?  That is, assuming no one has come up w/ a solution yet...if
  there is one, please let me know!
 
  I've mentioned something like this in passing before and have gotten
  the usual response, which is you need to use a session-per-request
  pattern.  The problem is; I'm using a container...I don't have
  control of the hibernate session, the transactions (per se), etc.  In
  an entirely container-managed environment I don't have the options I
  would w/ plain Hibernate.
 
   Thanks in advance!
 
 
  ---
  All the advantages of Linux Managed Hosting--Without the Cost and Risk!
  Fully trained technicians. The highest number of Red Hat certifications
in
  the hosting industry. Fanatical Support. Click to learn more
 
http://sel.as-us.falkag.net/sel?cmd=lnkkid=107521bid=248729dat=121642
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
 
https

Re: [Wicket-user] 13 classes where needed for HelloWorld example ?

2006-05-31 Thread Vincent Jenks

Personally, I've found that every example in wicket-examples has
always worked flawlessly for me.

Each Wicket page has an aptly-named html page that goes with
it...which acts as a template for the components you define in the
aptly-named class.

However, I think you're right, the Hello World example on the site is
still at 1.1!

On 5/31/06, Pierre-Yves Saumont [EMAIL PROTECTED] wrote:

Hi,

I just started to try Wickets. It' supposed to be so simple to use ! I
first discovered that the Helloworld example won't work. WebApplication
has no getPages() method, but has an abstract getHomePages() method that
needs to be implemented by the HelloWorldApplication class.

Obviously, the getPages() method has been removed. Not even deprecated.
Just removed between version 1.1 and 1.2. Hope nobody used it before :-(

Clearly, the tutorial is useless. So I looked to the files in
wicket-examples-1.2 to see what needed to be changed. Sadly, I found
that 13 classes where needed to write Hello World on a web page. How
many html and other supporting files ?

Is this really serious ? Or did I miss something ?

Pierre-Yves



---
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnkkid=107521bid=248729dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user




---
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnkkid=107521bid=248729dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] need to clarify: detached entities as parameters

2006-05-25 Thread Vincent Jenks

I know we've been over this before but I've got to dredge it up one
more time, just to be absolutely sure I'm doing this the best possible
way.

Say I've got a master/detail setup between two pages.  Since I'm using
EJB3 which is essentially Hibernate, I need to decide whether or not
to detach detail data if the master data is already detached.

Page A: Pulls a list of Orders and wraps the collection in a
LoadableDetachableModel.  Each, when displayed in a ListView has a
link that points to a detail page for that Order, passing the Order as
a parameter for PageB to use like so:

add(new Link(new PageB(order));

Page B: Populates a series of Labels w/ the Order entity that was
passed into the constructor from Page A.

Here's where someone had told me before that I also need to make sure
this Order entity is also detached.  I'm not entirely clear on why I
would need to do that?  The EJB/Hibernate session from Page A should
have been closed by the time I reach Page B and the entity passed into
the constructor should now be Transient, i.e. detached already.

I'm able to confirm this fact because if I alter the entity param on
Page B and then try to persist it, I get an exception.  If I merge it
instead, it merges into a new session and persists to the database.

So, can I use the entity in Page B or must it also be detached and
treated as a model throughout the page?  I'd prefer not to wrap it in
another model since it's much easier to just access the elements of
the entity directly vs. working w/ a model.

Thanks!

-v


---
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnkkid7521bid$8729dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Wicket 1.2 released!

2006-05-24 Thread Vincent Jenks

Just in time, sweet!  Great work guys!  Truly an amazing framework and
amazing piece of software - the best!

Now, where's that book? ;) - just jokes...it might be nice to have a
day off, eh?

-v

On 5/24/06, middledot [EMAIL PROTECTED] wrote:


A big thank you for your exceptional dedication to the project.
Les
--
View this message in context: 
http://www.nabble.com/Wicket+1.2+released%21-t1673750.html#a4538950
Sent from the Wicket - User forum at Nabble.com.



---
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnkkid=107521bid=248729dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user




---
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnkkid7521bid$8729dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] write an entire tag?

2006-05-23 Thread Vincent Jenks

Igor, I got this all working correctly now, I was just missing one of
the controls in the populateEmptyItem method.  When we were going back
and forth yesterday it didn't dawn on me immediately that the entire
hierarchy of components had to be re-created in this method.

I've now got it exactly where I want it (once I make the # of rows dynamic).

Thanks for your help!

On 5/22/06, VGJ [EMAIL PROTECTED] wrote:


 I went ahead and created a hidden component for each of the ones that
appear in populateItem, set the column count to 3, and still got the
exception on the *same* control.  That's when I called it quits! :D

 I'll pick up the fight tomorrow.  Thanks Igor.


 On Mon, 2006-05-22 at 18:01 -0700, Igor Vaynberg wrote:


 I have been...the method fires.  Do all the controls that exist in
 populateItem also need to exist in populateEmptyItem??  Would
 missing controls explain the screwed-up hierarchy?

 yes, because the same markup is used to render an empty cell and a
populated cell. so populateEmptyItem has to reproduce the hierarchy with
empty objects, or at least reproduce the top most container (if you only
haveone) and call setvisible(false) on it so that its children dont have to
be rendered and wicket can skip the rest of the markup.



 so given your current markup it should look something like this:

 void populateEmptyItem(Item item) {
 WebMarkupContainer container=new
WebMarkupContainer(thumbnailLink);
container.setVisible (false);
 item.add(container);
 }



 ouch...a panel for each cell?

 a panel or a fragment, it doesnt matter. why ouch? there is no overhead or
anything.

 -Igor










---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid0709bid3057dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] write an entire tag?

2006-05-23 Thread Vincent Jenks

Yeah, I understand what you were saying now...I was just a little
burnt out last night.  Thankfully there's only a link and two labels,
not a big deal to just add them w/ blank values.

So, if I don't set the number of rows, will it expand dynamically
(automatically)??

On 5/23/06, Igor Vaynberg [EMAIL PROTECTED] wrote:

yeah, thats the advantage of using panels or fragments - a single top level
element, so in populate empty item you just stick an empty panel.

 anyways, glad to hear you got it working.

 -Igor



On 5/23/06, Vincent Jenks [EMAIL PROTECTED] wrote:

 Igor, I got this all working correctly now, I was just missing one of
the controls in the populateEmptyItem method.  When we were going back
and forth yesterday it didn't dawn on me immediately that the entire
hierarchy of components had to be re-created in this method.

I've now got it exactly where I want it (once I make the # of rows dynamic).

Thanks for your help!

On 5/22/06, VGJ [EMAIL PROTECTED] wrote:

  I went ahead and created a hidden component for each of the ones that
 appear in populateItem, set the column count to 3, and still got the
 exception on the *same* control.  That's when I called it quits! :D

  I'll pick up the fight tomorrow.  Thanks Igor.


  On Mon, 2006-05-22 at 18:01 -0700, Igor Vaynberg wrote:


  I have been...the method fires.  Do all the controls that exist in
  populateItem also need to exist in populateEmptyItem??  Would
  missing controls explain the screwed-up hierarchy?

  yes, because the same markup is used to render an empty cell and a
 populated cell. so populateEmptyItem has to reproduce the hierarchy with
 empty objects, or at least reproduce the top most container (if you only
 haveone) and call setvisible(false) on it so that its children dont have
to
 be rendered and wicket can skip the rest of the markup.



  so given your current markup it should look something like this:

  void populateEmptyItem(Item item) {
  WebMarkupContainer container=new
 WebMarkupContainer(thumbnailLink);
 container.setVisible (false);
  item.add(container);
  }



  ouch...a panel for each cell?

  a panel or a fragment, it doesnt matter. why ouch? there is no overhead
or
 anything.

  -Igor









---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job
easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmdlnkkid0709bid3057dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user





---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid0709bid3057dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Broadest appeal for Wicket

2006-05-23 Thread Vincent Jenks

It's pretty ghetto at this point and it's hosted on a dell server in
my home-office, so I've been reluctant to take it seriously:

http://zambizzi.blogdns.com/

It's built w/ Wicket + EJB3 on JBoss 4.0.4.  The cable connection will
make it sub-optimal for speed/scalability ;)

It's pretty basic as I never have time to work on it.  Looks best w/
FF, I noticed some strangeness w/ IE but was too lazy to bother w/ it
last weekend.

On 5/23/06, Eelco Hillenius [EMAIL PROTECTED] wrote:


  Anyhow, I might blog-up a little setup guide for new users for Windows and
 Linux using Wicket as the web framework.  I'll try to do that this weekend
 as crunch-time will be over and I can breathe once again.

Maybe you want to share the URL to your blog? If you - or anyone
reading this - plan on blogging on Wicket regularly, please feel free
to update the 'blogs' section of the WIKI with your URL.


  Anyone else there developing on Linux?  I use Gentoo myself but I suppose
 the majority is probably using Ubuntu by now?  Linux might be a tough one
 to please a lot of people as far as setting up the JDK (though this should
 get easier w/ the new license.)

I'm using OSX, but I know that quite a bunch of people on this list use Linux.

Eelco


---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmdlnkkid0709bid3057dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user




---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid0709bid3057dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Broadest appeal for Wicket

2006-05-23 Thread Vincent Jenks

I worked w/ vs.net 2002/2003 since the day each of them was released,
2002 for a long while before it was final.  I actually quite liked
it compared to Visual Interdev and the old vs 6.0 stuff.

Of course, you're right - It's Windows-centric and doesn't allow the
freedom.  Once I dove into the Java world and saw what I had available
to me it was very hard to justify building apps in .NET again.  The
biggest upside was mature ORM for Java - specifically Hibernate.
Microsoft hyped, then failed miserably at releasing their own ORM
framework (ObjectSpaces) and that's when I started making a push here
at the office for Java.  So far, soo good!

You're right about source code as well.  In the java community
you're likely to find exactly what you need as far as source code or
libraries to integrate into your appprobably 100% free and/or open
source.  You're more likely to find that componenets come at a price,
if they're useful.

On 5/23/06, Eelco Hillenius [EMAIL PROTECTED] wrote:

Be glad you didn't have to work with VS 2003, that one sucked. VS 2005
is much better; one of the things I like is the integration of
(integration) testing. I think they did a nice job on that. Of course
easy for them as they just support Windows/ IE.

One of the things I hate most of working with VS.NET is not having
much source code available and in general not having as much choice of
(open source) components/ frameworks/ ... as with Java.

Eelco


On 5/23/06, Potje rode kool [EMAIL PROTECTED] wrote:
 I think its more what you are used to(what you prefer), I am working for
 some few months with .Net 2.0 with vs.net 2005 but I never got the fealing
 that I got something with vs.net that I didn't have with Eclipse. But great
 things happening with Netbeans, with Matise and Jackpot. With .Net you are
 limited what Microsoft has to offer. You develop in vs.net and deploy on
 IIS, for web application.

 But what do you like so mutch about the Microsoft stuff, what is so great
 about vs.net? I am asking this because I am interested.

 Thanks,
 Evert

  2006/5/23, VGJ [EMAIL PROTECTED]:
 
 
  Before we moved to Java as our primary platform at work, I had done years
 of development w/ MS technologies and you can love or hate Microsoft, but
 the ease of which you're able to sit down and get to work is one thing they
 *have* gotten right.  The fact that it takes four months to install vs.net
 on modern hardware probably says something to that, but regardless, you're
 able to simply focus on your application - not like the relatively gnarly
 dev environment setup w/ Java.
 
  Though I prefer Eclipse *slightly* over Netbeans I think Sun is headed in
 the right direction when it comes to ease of initial setup, probably
 inspired by Visual Studio.  I think most new users would find it easier to
 start w/ Netbeans for this reason.  I'd be using it myself if the editor was
 as nice and feature-rich as eclipse.
 
  What I'd never want to see is the monolithic consolidation of
 technologies, like Microsoft has; you get one choice for app server, web
 framework, etc.  If Java ever gets *that* easy than we've lost the massive
 advantage of freedom of choice.
 
  Anyhow, I might blog-up a little setup guide for new users for Windows and
 Linux using Wicket as the web framework.  I'll try to do that this weekend
 as crunch-time will be over and I can breathe once again.
 
  Anyone else there developing on Linux?  I use Gentoo myself but I suppose
 the majority is probably using Ubuntu by now?  Linux might be a tough one
 to please a lot of people as far as setting up the JDK (though this should
 get easier w/ the new license.)
 
 
  -v
 
 
  On Tue, 2006-05-23 at 08:59 +0300, Alvar Lumberg wrote:
  Basically his problem seems to be this whole J2EE hell which has
  nothing to do with wicket - like creating a webapp directory with a
  valid structure, add web.xml and so on..
 
  I suppose VGJ got the point and there most certainly is work to be
  done so building web apps in Java doesn't intimidate the hell out a of
  a Java novice.
 
  On 5/20/06, Nick Heudecker [EMAIL PROTECTED] wrote:
   I'm also confused by this. What are the specific problems you're
   encountering? The more detail you can provide, the better the wiki page
   I'll write will be. :)
  
  
   On 5/20/06, Ayodeji Aladejebi [EMAIL PROTECTED] wrote:
   
configuration hell with wicket? well for some of us who have tasted
   struts, spring web flow and JSP stuffswicket is heaven
   
   
   
  
  
 
 
  ---
  Using Tomcat but need to do more? Need to support web services, security?
  Get stuff done quickly with pre-integrated technology to make your job
 easier
  Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
 
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  

Re: [Wicket-user] Broadest appeal for Wicket

2006-05-23 Thread Vincent Jenks

You're probably right.  This was the first thing I ever built w/
Wicket and I'll usually do a small project in-parallel, at home w/ a
big project at work so I can more quickly iron out any problems I
might have.

I plan on building more features into it, like the detail page (single
blog entry on a page and then summarize on the main page.)  I'd also
thought about generating an HTML page for each blog entry so they can
be picked up by search engines more easily.  Though, from what little
I've seen, nice URLs should take care of this?

I'm going to work on it and then post the source for download on my
blog.  Would this be useful as a sample app in wicket-stuff?

On 5/23/06, Eelco Hillenius [EMAIL PROTECTED] wrote:

Cool. A thing to consider is to use bookmarkable pages more,
especially for the topics, but also for the blog details if you would
implement that (one detail bookmarkable page, and a human readable
parameter to the actual topic).

Eelco


On 5/23/06, Vincent Jenks [EMAIL PROTECTED] wrote:
 It's pretty ghetto at this point and it's hosted on a dell server in
 my home-office, so I've been reluctant to take it seriously:

 http://zambizzi.blogdns.com/

 It's built w/ Wicket + EJB3 on JBoss 4.0.4.  The cable connection will
 make it sub-optimal for speed/scalability ;)

 It's pretty basic as I never have time to work on it.  Looks best w/
 FF, I noticed some strangeness w/ IE but was too lazy to bother w/ it
 last weekend.

 On 5/23/06, Eelco Hillenius [EMAIL PROTECTED] wrote:
  
Anyhow, I might blog-up a little setup guide for new users for Windows 
and
   Linux using Wicket as the web framework.  I'll try to do that this weekend
   as crunch-time will be over and I can breathe once again.
 
  Maybe you want to share the URL to your blog? If you - or anyone
  reading this - plan on blogging on Wicket regularly, please feel free
  to update the 'blogs' section of the WIKI with your URL.
 
  
Anyone else there developing on Linux?  I use Gentoo myself but I suppose
   the majority is probably using Ubuntu by now?  Linux might be a tough 
one
   to please a lot of people as far as setting up the JDK (though this should
   get easier w/ the new license.)
 
  I'm using OSX, but I know that quite a bunch of people on this list use 
Linux.
 
  Eelco
 
 
  ---
  Using Tomcat but need to do more? Need to support web services, security?
  Get stuff done quickly with pre-integrated technology to make your job 
easier
  Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
  http://sel.as-us.falkag.net/sel?cmdlnkkid0709bid3057dat1642
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 


 ---
 Using Tomcat but need to do more? Need to support web services, security?
 Get stuff done quickly with pre-integrated technology to make your job easier
 Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
 http://sel.as-us.falkag.net/sel?cmdlnkkid0709bid3057dat1642
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmdlnkkid0709bid3057dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user




---
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnkkid7521bid$8729dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] write an entire tag?

2006-05-22 Thread Vincent Jenks

Yeah, that's what I figured given the example, however that's where my
problem lies.  The items I'm adding in populateItem in the GridView
can't be found, I'm getting the hierarchy problem exception.

Here's what I'm doing in the page as an overview:

1. List Product Categories (ListView)
 2. for each Category, retrieve and display Products (GridView)
   3. Display 3-column table w/ Product details (cols in GridView)

Here's the code:

//add ListView object to page w/ data
add(new ListView(categoryView, categoryModel)
{
protected void populateItem(ListItem item)
{
//get catagory item
final ProductCategory category = 
(ProductCategory)item.getModelObject();

//add category label
item.add(new Label(category, 
category.getName()));

//STILL DON'T UNDERSTAND HOW TO PASS THIS INTO 
GRIDVIEW
IModel productModel = new 
LoadableDetachableModel()
{
protected Object load()
{
return 
ProductProxy.getProducts(category);
}
};

IDataProvider provider = new
ProductDataProvider(ProductProxy.getProducts(category)); //HARDCODED,
NOT DETACHED!  SEE DETACHED MODEL ABOVE!
GridView productView = new 
GridView(productView, provider)
{
protected void populateItem(Item item)
{
//get product item
final Product product = 
(Product)item.getModelObject();

//create thumbnail link w/ event
Link thumbnailLink = new 
Link(thumbnailLink)
{
public void onClick()
{

setResponsePage(new ProductDetail(product));
}
};

//add attribute modifier
thumbnailLink.add(wmc);

//add thumbnail link
item.add(thumbnailLink);
.

You'll notice I've got a detached model in there...right now it's not
being used since I haven't figured out how to send detached data from
this page into the IDataProvider derived class (another issue, not to
get off track, sorry!)

Here's my HTML, I'm sure it's fantastically wrong but I need to see it
rendered to decide if it looks right:

...

tr wicket:id=categoryView
td
span wicket:id=category 
class=titleSmallcategory/span
hr width=100% 
size=1 /
br /
table width=200 
align=left wicket:id=productView
tr
td 
wicket:id=cols
table 
width=200 align=left
  
  tr
  
  td
  
  a href=# wicket:id=thumbnailLink
 
   img src=# wicket:id=thumnailImg width=200
height=134 border=0 /
  
  /a
 

Re: [Wicket-user] write an entire tag?

2006-05-22 Thread Vincent Jenks

I marked everything w/ bold comments in the reply I just sent
regarding the hierarchy problem I'm having.

On 5/22/06, Igor Vaynberg [EMAIL PROTECTED] wrote:

gridview doesnt take an IModel, it takes an IDataProvider which is like a
more specific IModel.

 what does your detachable model look like? i can h\elp you translate it to
dataprovider.

 -Igor



On 5/22/06, VGJ [EMAIL PROTECTED] wrote:


 Ha!  I feel like I'm going around in circles w/ my questions, sorry for
that.  More importantly, I suppose, is; If I pass an IModel instead of a
List, how do I get the ListProduct from the IModel to implement the
methods in the IDataProvider derived class?

 I had asked this once before but it was in the context of a single page -
I had asked how to get my original object out of the model for use in the
page and I was told to use setModel(myDetachedModel) and then cast
getModelObject() throughout the page to what I wanted.  This, however, is a
different scenario.


 On Mon, 2006-05-22 at 10:02 -0700, Igor Vaynberg wrote:



 On 5/22/06, VGJ  [EMAIL PROTECTED] wrote:

 Ok, this makes more sense than the example in wicket-examples.  However,
what if the List I'm passing in is actually wrapped in a
LoadableDetachableModel?

 that should be ok because dataview will check if the idataprovider impl
you passed in also implements IDetachable and call detach on it at the end
of request.

 so class MyDataProvider extends ListDataProvider implements IDetachable
{}





 Congrats on the baby, by the way!!

 thank you :)

 -Igor








---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid0709bid3057dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] write an entire tag?

2006-05-22 Thread Vincent Jenks

Sure, how?  Maybe I'm misunderstanding?  I can't stick the whole app
in there, however.  Maybe I could just send you both of the entire
files (java + html)?

I've found that if I set it to 1 column, it renders w/o an exception.
If I set it to 3 columns, it bombs.  When it does render, I see one
row w/ 3 items even though there are 5 items.  Weird.

On 5/22/06, Igor Vaynberg [EMAIL PROTECTED] wrote:

do you want to stick this into wicket-quickstart and let me take a look? it
is the most efficient way i can find the problem


-Igor


On 5/22/06, VGJ [EMAIL PROTECTED] wrote:


 ok, riddle me this, Batman.

 I changed it to just look like:

 item.add(new GridView(name, provider)
 {
 };

 Whereas before, I was creating the GridView, *then* adding it to the
top-level ListView in two separate steps.

 I'm sure my hierarchy before was right because I can simply change what I
show above to

 GridView gv = new GridView(name, provider)
 {
 };

 item.add(gv);

 ...and, I get the hierarchy exception!

 I'd be fine w/ the fix I came up w/, however, I can't get more than one
row to appear.

 I did this:

 item.add(new GridView(name, provider)
 {
 }.setRows(3).setColumns(3));

 ...however, I only get one row no matter how many items there are.  If I
switch back to the old ListView I was using, sure enough, all 5 items show
up in a single row.

 any ideas?


 On Mon, 2006-05-22 at 15:52 -0700, Igor Vaynberg wrote:


 where is the populateEmptyItem you are supposed to implement for the
gridview? this method populate left over cells and is probably what is
causing the hierarchy mismatch.

 also here is how to implement detachable idataprovider:

 class mydataprovider implemetns IDataProvider, IDetachable {
private transient List list;

public void detach() { list=null; }

public iterator iterateor(int first, int last) {
return getlist().listiterator(first);
}

public int size() {
   return getlist().size();
}

private List getlist() {
if (list==null) {
 list=...load list here
 }
 return list;
}
 }

 -Igor




 On 5/22/06, Vincent Jenks  [EMAIL PROTECTED] wrote:

 Yeah, that's what I figured given the example, however that's where my
 problem lies.  The items I'm adding in populateItem in the GridView
 can't be found, I'm getting the hierarchy problem exception.

 Here's what I'm doing in the page as an overview:

 1. List Product Categories (ListView)
   2. for each Category, retrieve and display Products (GridView)
 3. Display 3-column table w/ Product details (cols in GridView)

 Here's the code:

 //add ListView object to page w/ data
 add(new ListView(categoryView, categoryModel)
 {
 protected void
populateItem(ListItem item)
 {
 //get catagory item
 final ProductCategory
category = (ProductCategory)item.getModelObject();

 //add category label
 item.add(new
Label(category, category.getName()));

 //STILL DON'T UNDERSTAND
HOW TO PASS THIS INTO GRIDVIEW
 IModel productModel = new
LoadableDetachableModel()
 {
 protected Object
load()
 {
 return
ProductProxy.getProducts (category);
 }
 };

 IDataProvider provider =
new
 ProductDataProvider(ProductProxy.getProducts(category)); //HARDCODED,
 NOT DETACHED!  SEE DETACHED MODEL ABOVE!
 GridView productView =
new GridView(productView, provider)
 {
 protected void
populateItem(Item item)
 {
 //get
product item
 final
Product product = (Product)item.getModelObject();

 //create
thumbnail link w/ event
 Link
thumbnailLink = new Link(thumbnailLink)
 {

 public void onClick()
 {

  setResponsePage(new ProductDetail(product));
 }
 };

 //add
attribute modifier

thumbnailLink.add(wmc);

 //add
thumbnail link

item.add(thumbnailLink);
 .

 You'll notice I've got a detached model in there...right now it's not
 being used since

Re: [Wicket-user] write an entire tag?

2006-05-22 Thread Vincent Jenks

On 5/22/06, Igor Vaynberg [EMAIL PROTECTED] wrote:

im taking a stab in the dark here, but

if you call setColumns(1) then the chances are you are going to have an
empty cell that needs to be populated and your populateEmptyItem method is
not reproducing the hierarchy properly.


You beat me to my last reply...this is probably *exactly* what's
happening.  However, I'm implementing that method...is it just not
working correctly?



as i said, if you can mock enough of this in wicket-quickstart i can help
you more. if not then you have to walk the code and see what goes wrong.


I have been...the method fires.  Do all the controls that exist in
populateItem also need to exist in populateEmptyItem??  Would
missing controls explain the screwed-up hierarchy?



the best way to use the gridview imho is to make each cell a panel or a
fragment so that in markup you only have td wicket:id=cellsspan
wicket:id=cell-panel//td that way in populateEmptyItem you can just add
an empty panel and be done.

so instead of td wicket:id=cellsa wicket:id=linkspan
wicket:id=label/span/a/td

you have

td wicket:id=cellsspan wicket:id=item/span/td
...
wicket:fragment wicket:id=item-fraga wicket:id=linkspan
wicket:id=label/span/a/wicket:fragment
wicket:fragment
wicket:id=empty-item-frag/wicket:fragment

makes things nice and easy


ouch...a panel for each cell?




-Igor


On 5/22/06, VGJ [EMAIL PROTECTED] wrote:


 Another lead, and perhaps the source of the problem:

 If I have setRows() set on the control...it doesn't render how I want but
the hierarchy exception goes away.  If I set setColumns() on the
control...ka-boom.

 Obviously the control is messing itself up on account of my messed up
HTML?


 On Mon, 2006-05-22 at 15:52 -0700, Igor Vaynberg wrote:


 where is the populateEmptyItem you are supposed to implement for the
gridview? this method populate left over cells and is probably what is
causing the hierarchy mismatch.

 also here is how to implement detachable idataprovider:

 class mydataprovider implemetns IDataProvider, IDetachable {
private transient List list;

public void detach() { list=null; }

public iterator iterateor(int first, int last) {
return getlist().listiterator(first);
}

public int size() {
   return getlist().size();
}

private List getlist() {
if (list==null) {
 list=...load list here
 }
 return list;
}
 }

 -Igor




 On 5/22/06, Vincent Jenks  [EMAIL PROTECTED] wrote:

 Yeah, that's what I figured given the example, however that's where my
 problem lies.  The items I'm adding in populateItem in the GridView
 can't be found, I'm getting the hierarchy problem exception.

 Here's what I'm doing in the page as an overview:

 1. List Product Categories (ListView)
   2. for each Category, retrieve and display Products (GridView)
 3. Display 3-column table w/ Product details (cols in GridView)

 Here's the code:

 //add ListView object to page w/ data
 add(new ListView(categoryView, categoryModel)
 {
 protected void
populateItem(ListItem item)
 {
 //get catagory item
 final ProductCategory
category = (ProductCategory)item.getModelObject();

 //add category label
 item.add(new
Label(category, category.getName()));

 //STILL DON'T UNDERSTAND
HOW TO PASS THIS INTO GRIDVIEW
 IModel productModel = new
LoadableDetachableModel()
 {
 protected Object
load()
 {
 return
ProductProxy.getProducts (category);
 }
 };

 IDataProvider provider =
new
 ProductDataProvider(ProductProxy.getProducts(category)); //HARDCODED,
 NOT DETACHED!  SEE DETACHED MODEL ABOVE!
 GridView productView =
new GridView(productView, provider)
 {
 protected void
populateItem(Item item)
 {
 //get
product item
 final
Product product = (Product)item.getModelObject();

 //create
thumbnail link w/ event
 Link
thumbnailLink = new Link(thumbnailLink)
 {

 public void onClick()
 {

  setResponsePage(new ProductDetail(product

[Wicket-user] write an entire tag?

2006-05-21 Thread Vincent Jenks

I'm having an issue trying to display things a certain way.  I want to
display 3 thumbnails per-row and wrap on the third.  In the HTML this
is made up of a table tag w/ a single cell.  The thumbnails are
wrapped in their own table so it's something like this:

table wicket:id=masterListView
 tr
   td
 !-- want this to happen 3x then break! --
 table wicket:id=thumbnailListView
   tr
 tdimg src=# //td
 tddescription.../td
   /tr
 /table
   /td
 /tr
/table

Could I maybe print a br / tag after the third thumbnail table?
Can someone suggest a better approach?  I thought if I put a static
pixel width on the master table they would wrap automatically...but
they don't and the table stretches indefinitely.


---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid0709bid3057dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] write an entire tag?

2006-05-21 Thread Vincent Jenks

I guess I've avoided anything but ListView because the other
Grid/layout table controls are more complicated and I'm in a time
crunch.  I can pass a List into a ListView but I have to write extra
glue-code to use the others in extensionsand I'm just not familiar
w/ them.

Is it the public Iterator iterator(int arg0, int arg1) method that
provides the data in the overridden IDataProvider class?  I guess it's
not obvious or intuitive to me how you get data *into* the GridView.

I need to pass a object as a parameter into this data prodivder since
the master table determines what is shown in the child table.

On 5/21/06, Igor Vaynberg [EMAIL PROTECTED] wrote:

why not use a gridview from extensions? it will do the wrapping for you.
-Igor



On 5/21/06, Vincent Jenks  [EMAIL PROTECTED] wrote:

I'm having an issue trying to display things a certain way.  I want to
display 3 thumbnails per-row and wrap on the third.  In the HTML this
is made up of a table tag w/ a single cell.  The thumbnails are
wrapped in their own table so it's something like this:

table wicket:id=masterListView
  tr
td
  !-- want this to happen 3x then break! --
  table wicket:id=thumbnailListView
tr
  tdimg src=# //td
  tddescription.../td
/tr
  /table
/td
  /tr
/table

Could I maybe print a br / tag after the third thumbnail table?
Can someone suggest a better approach?  I thought if I put a static
pixel width on the master table they would wrap automatically...but
they don't and the table stretches indefinitely.


---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job
easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmdlnkkid0709bid3057dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user





---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid0709bid3057dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] HTTPS switching

2006-05-17 Thread Vincent Jenks

OK, this discussion has been had before but IRC, it was determined
that we could use ExternalLink to switch (which would work for me if
it weren't a form.)  However, what if I'm using a Button?  Could an
ExternalButton be rigged up that would somehow submit a form as well?
Could I maybe redirect to an external link instead?  I know this can
be done w/ non-wicket pages but would this be a problem when
redirecting to a wicket page?

I'm a little unsure how to proceed w/ this.

Thanks!


---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid0709bid3057dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Google Web Toolkit integration ?

2006-05-17 Thread Vincent Jenks

You see Igorwe're not so different...you and I.

I agree...and simply because we're building web applications we're
likely to be working with web designers and web developers who are
well versed in markup  CSS and are able to take part of the
application maintenance upon themselves.

Using a pure-code framework can put a lot of design  layout work on
the developer and help to reduce the division of labor...which isn't
necessarily a good thing.

On 5/17/06, Igor Vaynberg [EMAIL PROTECTED] wrote:

allow myself to quote...myself

|| imho, html is the best layout manager out there for browser apps. add css
to the mix and you have a great skin manager as well.

i never said css was great for layout manager :) and yes the box model is
broken.

-Igor


On 5/17/06, Johan Compagner [EMAIL PROTECTED] wrote:

 ha! and css is easier then layout manager in java...
 hmm that is not how i see it.
 CSS is just plain horrible stupid box thing..

 And what is a layout manager in css? There isn't one everything is sort of
absoluut positioned and then you can do in swing also
 (not recommended ofcourse)


 johan





 On 5/17/06, Igor Vaynberg  [EMAIL PROTECTED] wrote:

 
  imho, html is the best layout manager out there for browser apps. add
css to the mix and you have a great skin manager as well.
 
  the one thing you always hear swing developers bitching about is how
they have to fight the layout managers to get the results they want.
gridbaglayout is poweful but its a huge pain to work with.
 
  matisse+grouplayout are the holy grail for swing devels, its nice and
easy to create layouts. but it still requires a gui to do this, while i can
do html easily by hand. also browser screen space doesnt translate easily to
the desktop space. in desktop space you are pixel aware, you are also pixel
aware of your fonts and the south east corner of the window. in html you
have none of these things.
 
  look at wingS framework examples, they use layout managers. look how
rectangular their examples look.
 
 
  -Igor
 
 
 
 
 
 
 
  On 5/17/06, Frank Silbermann [EMAIL PROTECTED] wrote:
 
   I, personally, don't care for HTML, and perhaps I might enjoy
   programming in Echo2 better.
  
   But suppose an employer maintained an HTML fragment with links to
their
   entire portfolio of web applications, and wanted this fragment to
appear
   on every page of each web application.  Since someone else is
   maintaining that scrap and keeping it up-to-date, I would not want to
   translate it into Echo 2 and maintain my own copy.
  
   Would it not likely be easier to incorporate such an HTML scrap into a
   Wicket application, versus one written in a framework such as Echo 2
   that abstracted away the HTML completely?
  
  
   -Original Message-
   From: [EMAIL PROTECTED]
   [mailto:[EMAIL PROTECTED] ] On
Behalf Of Eelco
   Hillenius
   Sent: Wednesday, May 17, 2006 10:58 AM
   To: wicket-user@lists.sourceforge.net
   Subject: Re: [Wicket-user] Google Web Toolkit integration ?
  
It's certainly an intriguing idea (have a look at haxe.org if you
find
it interesting), ...
   ...
   Yeah. I see some advantages of using layout managers - basically the
   same promise as Swing has - but currently I would still prefer using
   HTML for layout. If I would like the GWT way of developing
   applications, I would have choosen Echo 2 a long time ago. GWT looks
   like a next gen Echo to me, though with a very big name behind it, and
   some cool innovations. ... Eelco
  
  
  
  
---
   Using Tomcat but need to do more? Need to support web services,
security?
   Get stuff done quickly with pre-integrated technology to make your job
easier
   Download IBM WebSphere Application Server v.1.0.1 based on Apache
Geronimo
  
http://sel.as-us.falkag.net/sel?cmdlnkkid0709bid3057dat1642
   ___
   Wicket-user mailing list
   Wicket-user@lists.sourceforge.net
  
https://lists.sourceforge.net/lists/listinfo/wicket-user
  
 
 
 








---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid0709bid3057dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] HTTPS switching

2006-05-17 Thread Vincent Jenks

Because it's a shopping cart and either way a form has to be
submitted...so I'd rather do it when the form is submitted and not
have the extra step.

I got around it by redirecting externally like the wiki shows, only I
used a url like this:

https://localhost:8443/MyApp/products?wicket:bookmarkablePage=:com.myapp.ui.UserAccount

Is that a bad idea or is there not a better way?

The cart is stateful so it seems to work fine.

On 5/17/06, Johan Compagner [EMAIL PROTECTED] wrote:

so your form is first in none https but the submit must go to https?
Why would you do that? Why not first move to https then submit the form?
Looks safer to me.

But if you want you have to control the urlFor of the Form component.
Override this to append the https and server part.

johan



On 5/17/06, Vincent Jenks [EMAIL PROTECTED]  wrote:

OK, this discussion has been had before but IRC, it was determined
 that we could use ExternalLink to switch (which would work for me if
it weren't a form.)  However, what if I'm using a Button?  Could an
ExternalButton be rigged up that would somehow submit a form as well?
Could I maybe redirect to an external link instead?  I know this can
be done w/ non-wicket pages but would this be a problem when
redirecting to a wicket page?

I'm a little unsure how to proceed w/ this.

Thanks!


---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job
easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmdlnkkid0709bid3057dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user





---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid0709bid3057dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Free Maven2 book

2006-05-16 Thread Vincent Jenks

I don't think so...unless we've both been dropped.  I've seen maybe
five posts here all day.

On 5/15/06, Frank Silbermann [EMAIL PROTECTED] wrote:

I received an unusually low number of posts this weekend from the Wicket
user group, and none today.  Is the mailing list down?  If not, have I
been dropped from the list?


---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmdlnkkid0709bid3057dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user




---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid0709bid3057dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] validation

2006-05-16 Thread Vincent Jenks

Is there a good breakdown of how to use the validation classes
anywhere?  I see an example of RequiredValidator in the wiki but none
of the others.

Since RequiredValidator is depreciated and we need more control
anyhow, we're looking at using some of the others.  I can get them to
*work* somewhat...but am having some problems.

Are the .properties files still used for validation messages?  How
should I prevent Exceptions when using the NumberValidator?  I guess
the javadoc is not quite enough for me in this case.

I'd be happy to add to the wiki if I knew some details on this.

Thanks!

-v


---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid0709bid3057dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Link to Anchor

2006-05-11 Thread Vincent Jenks

+1 - I think that's pretty cool!

Couldn't that be done w/ an ExternalLink?  AttributeModifier?

On 5/11/06, Eelco Hillenius [EMAIL PROTECTED] wrote:

Yeah, I like that idea. So, if the contents of the url start with #,
we append that to the url... that's the idea, right?

What do other people think/ votes?

Eelco


On 5/11/06, Ali Zaid [EMAIL PROTECTED] wrote:
 Hay Guys;

 I was testing RC3 and I have noticed that anchors are not implemented,
 I think I file a request for this, let me explain

 if I have a link that say

 a href=#clientPanel wicket:id=newClinetLink new Client/a

 when redirect to the new client page it should jump to that anchor,
 the way I do it now is

 @Override
 protected CharSequence getURL() {
return super.getURL() + #clientPanel;
 }

 I think link should be able to read the what's in href and do that
 automatically ;), I think this is more wicket way than have to inser
 some html thing in java.

 --
 Regards, Ali
 -
 Fight back spam! Download the Blue Frog.
 http://www.bluesecurity.com/register/s?user=YWxsb2NoaTI5Nzk%3D


 ---
 Using Tomcat but need to do more? Need to support web services, security?
 Get stuff done quickly with pre-integrated technology to make your job easier
 Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
 http://sel.as-us.falkag.net/sel?cmdlnkkid0709bid3057dat1642
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmdlnkkid0709bid3057dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user




---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid0709bid3057dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Wicket in action?

2006-05-11 Thread Vincent Jenks

He'll definitely internalize every word.  Really absorbing the
contents...hyuck hyuck.

Alright, I'm done now.

On 5/11/06, Eelco Hillenius [EMAIL PROTECTED] wrote:

I guess he wants to digest it fully.

Eelco

On 5/11/06, Nick Heudecker [EMAIL PROTECTED] wrote:
 Won't that make it hard to read?


 On 5/11/06, Ali Zaid [EMAIL PROTECTED] wrote:
  hay :) when do we expect this? I want to eat this book!!! :)
 
 




---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmdlnkkid0709bid3057dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user




---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid0709bid3057dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] The other side of Wicket ...

2006-05-05 Thread Vincent Jenks

I don't think ASP.NET is superior to Wicket in any of the items you
described, honestly.

ASP.NET requires more work for including separate pages, panels,
etc.  I found the Panel much more elegant in Wicket than a User
Control in ASP.NET.

I think you're right, however, the one-off stuff that you don't plan
to grow or maintain regularly is well suited for ASP.NETsmaller
applications that don't require much thought.  If you're in a
Windows-only environment and it's already there for you...it's just
convenient.

I still think it can be done more productively in Wicket.  And, I
never want to have to write a pile of ADO.NET code for a
more-than-trivial web app again...I've been spoiled by Hibernate 
EJB3.

On 5/5/06, Frank Silbermann [EMAIL PROTECTED] wrote:

For the last couple of months I've been building in Wicket to replace an
ASP.NET application.  My impression is that ASP.NET is the best thing
I've ever seen for doing a one-of.  Any page content that I'm going to
build and use in just one page (or simply include with no
modifications in a variety of places) is incredibly easy to do in
ASP.NET.

Wicket is far superior for situations where I need to do the same _kind_
of thing in a variety of different places, but with variations.  With
Wicket it is easier to build and use a component with a variety of
constructors, and with methods that can be easily replaced each time I
use it.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Vincent
Jenks
Sent: Thursday, May 04, 2006 5:49 PM
To: wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user] The other side of Wicket ...

Oh yeah, just jokes, .NET is a pretty great technology...though it
still requires far more work than the EJB3+Wicket combo.

MS's tools are great, they have a snazzy IDE...but I still prefer
Eclipse...perhaps because of its open nature and breadth of industry
support both pro  amateur.

The tools are also the problemyou can't rely on much else outside
of MS's visual studio tools to do the job.  I personally hate WYSIWYG
environments and writing asp.net pages, controls, etc. w/o the editor
can be quite tedious.

JSF's similarity to ASP.NET is one reason I didn't want to use
it...not to mention all of the strange issues I had heard of w/ JSF
1.1.

.NET has it's place...but now that EJB3 is a finalized spec...I doubt
it can keep up w/ Java EE 5 and beyond in a one-on-one comparison.
stinfo/wicket-user


---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmdlnkkid0709bid3057dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user




---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid0709bid3057dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Re: The other side of Wicket ...

2006-05-05 Thread Vincent Jenks

Please don't get the impression that I'm entirely without complaints
with my Wicket learning experience.

One thing I found particularly awkward was how models work in some of
the form widgets, i.e. DropDownChoice, ListMultipleChoice, etc.  This
is where I found the Wicket learning curve was greater because it
wasn't nearly as intuitive as I had expected.

There are some cases where I find models to be complex but I'm sure
we'll have lots of fantastic examples and documentation when the
Wicket book makes it to the shelves!

I don't know Wicket well enough yet to really offer anything useful to
the devs as to how to improve my complaints...so I'll leave it at
that.  Perhaps I can contribute more in the future when I'm better
educated on the subject.

I'm not building large-scale, clustered, mammoth applications with
Wicket yet which, by the sounds of it, you're most interested in. 
Your experience is likely to be much different than mine due to the

challenges of writing these kinds of applications.  To that, I just
can't speak.

On 5/4/06, Ashley Aitken [EMAIL PROTECTED] wrote:

Hi Vincent (et al.),


I'm about 90% finished w/ a Wicket/EJB3 (JBoss) storefront solution
for my company to start doing consumer web sales.  In my personal
opinion, Wicket + EJB3 is the holy grail of Java web development...and
I'm not being dramatic.  It would be hard to convince me to use
another framework, going forward.


That's a glowing report for Wicket integration with EJB3.

Thanks for explaining how well your application development went.



Cheers,


Ashley.




--

Ashley Aitken

Perth, Western Australia

mrhatken at mac dot com

Skype Name: MrHatken (GMT + 8 Hours!)








---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid0709bid3057dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Re: The other side of Wicket ...

2006-05-05 Thread Vincent Jenks

That's exactly what I said later in my email - once I feel that I'm
not such an amateur in the ways of WicketI'll be glad to
contribute.  Even with the concepts I'm still a beginner so I'm not
all that valuable yet.

I'm not dumping on you guys, you've been an incredible help and I
couldn't have built it this fast (or learned this fast) without your
help.

So, thanks!

On 5/5/06, Eelco Hillenius [EMAIL PROTECTED] wrote:

On 5/5/06, Vincent Jenks [EMAIL PROTECTED] wrote:
 Please don't get the impression that I'm entirely without complaints
 with my Wicket learning experience.

Hurry, it's an open source project, and anyone can contribute to make
it better! I think so far we have been taking our users quite
seriously, and with a thread like this it feels like there isn't that
much distinction between the developers and users.

Thanks!

Eelco


---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmdlnkkid0709bid3057dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user




---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid0709bid3057dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Re: The other side of Wicket ...

2006-05-05 Thread Vincent Jenks

I've never built an app in Swing in my life...so I can't relate.  I'm
guessing you'll have lots of users/developers like me going forward
who are in the same boat.

The basic concepts of using a model to populate and access items in
List-bound widgets is very easy to understand...it's when I had to
pre-populate and pre-select items that it got hairy and didn't quite
behave as I would have expected.

If you look through the list you'll see a rather long back and forth
between Igor any myself on where I was having problems w/ this.

Otherwise, models aren't that hard to grasp once you've used them a
couple times.  I was able to go back later and use other widgets w/
relative ease after my DropDownChoice experience.

On 5/5/06, Johan Compagner [EMAIL PROTECTED] wrote:




 One thing I found particularly awkward was how models work in some of
 the form widgets, i.e. DropDownChoice, ListMultipleChoice, etc.  This
 is where I found the Wicket learning curve was greater because it
 wasn't nearly as intuitive as I had expected.


Strange thing is they work exactly like Swing Comboboxes and Lists..
The selected objects are just the objects that are in the total list.

And you have a Renderer that displays the objects.. (to display a text in a
label that is the toString of the object)

The only difference is is that in wicket you also need to generate a String
id because we need that to send to the browser.

johan





---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid0709bid3057dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Image upload

2006-05-05 Thread Vincent Jenks
Hi Philip,Thanks so much for the sample code and wiki entry...it makes a lot of sense, however, it is a little bit of overkill for the app I built. You gave me a bazooka to take to a gun-fight!Really, what it comes down to is; I need to turn the byte array I'm pulling out of the file system and turn it into an image. The upload I already had one of my devs build was working fine and I'm not sure (for now anyways) we need your full-on image service.
I'm googling around to see if I can figure out how to simply turn the byte array into an image I can display on a page...not something I'm familiar with. I couldn't gather from your example how this would be done, either.
Thanks for the help!On 5/2/06, Philip A. Chapman [EMAIL PROTECTED] wrote:



  
  


How was it? Do I need to make any edits to make it easier to understand?

On Mon, 2006-05-01 at 11:28 -0600, Vincent Jenks wrote:

I'll read through this, thanks a ton!



On 5/1/06, Philip A. Chapman 
[EMAIL PROTECTED] wrote:



Sorry for the delay, but I spent the time to create a wiki page so that hopefully others can benefit from what little I have to say on the subject:

http://www.wicket-wiki.org.uk/wiki/index.php/UploadDownload







On Mon, 2006-05-01 at 08:01 -0700, Igor Vaynberg wrote:

yes, thats it.

basically you would create a that resource that takes the filename/fileid/whatever off the url and streams the file. there is an example of this, i will ask one of my friends to post it here. stay tuned. 


-Igor


On 5/1/06, Vincent Jenks 
[EMAIL PROTECTED] wrote:

Did you mean to say DynamicWebResource?

On 4/21/06, Johan Compagner [EMAIL PROTECTED] wrote:

 you could save those images to a DB or to a working dir on the server. 
 Then have a DynamicByteArrayResource or the 1.2 one: WebDynamicResource to
 load the image from the location you stored the image.

 johan


 On 4/21/06, Steve Knight  [EMAIL PROTECTED] wrote:

 
  I am creating a form that will allow users to upload image files that will
 be displayed on other pages.How should I go about uploading the images so 
 that they can be used in Wicket Image components on the other pages?The
 upload part is not problem, I just don't know where I should put them.
 
  On my view pages, I am using ThumbnailImageResource which takes a 
 WebResource in it's contructor to find the image.Where should I save the
 images to make this work?
 
  Thanks.
 
 
  Steve
 
  
 




---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier 
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmdlnkkid0709bid3057dat1642

___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user
 










-- Philip A. ChapmanDesktop and Web Application Development:Java, .NET, PostgreSQL, MySQL, MSSQLLinux, Windows 2000, Windows XP








-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQBEVjqCAdpynRSGw3URAiqOAKCDsSpRHf8WQ8EGaneJoAGS4WD5bwCfaYED
Kb0kHbQYO8P7wOBWUVGWw7I=
=x7ml
-END PGP SIGNATURE- 










-- Philip A. ChapmanDesktop and Web Application Development:Java, .NET, PostgreSQL, MySQL, MSSQLLinux, Windows 2000, Windows XP






-BEGIN PGP SIGNATURE-Version: GnuPG v1.4.1 (GNU/Linux)iD8DBQBEV4M6AdpynRSGw3URAhkvAJ4tHqn2wYOd9LuuD43MWsGhnGGgxACffIoBEKdVHMEHbsM6PC+E9nkwcFw==GFH9-END PGP SIGNATURE-



Re: [Wicket-user] Image upload

2006-05-05 Thread Vincent Jenks
OK, the last part is what I think was missing. Wow, that's rather confusing for referencing a resource outside of the web app root.I'll see what I can do, thanks!On 5/5/06, 
Igor Vaynberg [EMAIL PROTECTED] wrote:
this is already described in philip's wiki article under download image sectionwhat you want is a stripped down version of the image resource:public class ImageResource extends DynamicWebResource
{
   // CONSTANTS   public static final Log logger = LogFactory.getLog(ImageResource.class);   private static final long serialVersionUID = 1L;   // CONSTRUCTORS   public ImageResource()
   {   super();   }   public ImageResource(Locale local)   {   super(local);   }   // METHODS   // MEMBERS   @Override   protected ResourceState getResourceState()
   {   ValueMap params = getParameters();   String imageId=params.get(id);   byte[] data="" style="color: rgb(255, 0, 0);">loadImageData(id);   Date lastModified=
getImageLastMod(id);   ImageResourceState state =   new ImageResourceState(Time.valueOf(lastModified));   state.setContentType(imageEntry.getContentType
());   state.setData(imageService.getImage(imageEntry));   return state;   }   class ImageResourceState extends ResourceState   {   // CONSTRUCTORS   ImageResourceState(Time lastModified)
   {   super();   this.lastModified = lastModified;   }   // MEMBERS   private String contentType;   @Override   public String getContentType()
   {   return contentType;   }   void setContentType(String contentType)   {   this.contentType = contentType;   }private byte[] data;
   @Override   public byte[] getData()   {   return data;   }   void setData(byte[] data)   {   this.data = "">   }@Override
   public int getLength()   {   return data.length;   }private Time lastModified;   @Override   public Time lastModifiedTime()   {   return lastModified;
   }
// METHODS   }}then you register this as a shared resource and get a resource reference. then when you want to build a url for an image you do thisResourceReference imageResource=...
String url="">hope this clears it up some more.-Igorhope this clears it up some more.
On 5/5/06, 
Vincent Jenks [EMAIL PROTECTED] wrote:

Hi Philip,Thanks so much for the sample code and wiki entry...it makes a lot of sense, however, it is a little bit of overkill for the app I built. You gave me a bazooka to take to a gun-fight!
Really, what it comes down to is; I need to turn the byte array I'm pulling out of the file system and turn it into an image. The upload I already had one of my devs build was working fine and I'm not sure (for now anyways) we need your full-on image service.
I'm googling around to see if I can figure out how to simply turn the byte array into an image I can display on a page...not something I'm familiar with. I couldn't gather from your example how this would be done, either.
Thanks for the help!On 5/2/06, Philip A. Chapman 

[EMAIL PROTECTED] wrote:





  
  


How was it? Do I need to make any edits to make it easier to understand?

On Mon, 2006-05-01 at 11:28 -0600, Vincent Jenks wrote:

I'll read through this, thanks a ton!



On 5/1/06, Philip A. Chapman 


[EMAIL PROTECTED] wrote:



Sorry for the delay, but I spent the time to create a wiki page so that hopefully others can benefit from what little I have to say on the subject:

http://www.wicket-wiki.org.uk/wiki/index.php/UploadDownload







On Mon, 2006-05-01 at 08:01 -0700, Igor Vaynberg wrote:

yes, thats it.

basically you would create a that resource that takes the filename/fileid/whatever off the url and streams the file. there is an example of this, i will ask one of my friends to post it here. stay tuned. 


-Igor
    

On 5/1/06, Vincent Jenks 


[EMAIL PROTECTED] wrote:

Did you mean to say DynamicWebResource?

On 4/21/06, Johan Compagner [EMAIL PROTECTED] wrote:



 you could save those images to a DB or to a working dir on the server. 
 Then have a DynamicByteArrayResource or the 1.2 one: WebDynamicResource to
 load the image from the location you stored the image.

 johan


 On 4/21/06, Steve Knight  [EMAIL PROTECTED] wrote:



 
  I am creating a form that will allow users to upload image files that will
 be displayed on other pages.How should I go about uploading the images so 

Re: [Wicket-user] Re: The other side of Wicket ...

2006-05-05 Thread Vincent Jenks

Yes...and I'm repeating myself here Igorbut that'll be fantastic.

On 5/5/06, Igor Vaynberg [EMAIL PROTECTED] wrote:

but its still confusing as hell to have a constructor like

DropDownChoice(String, IModel, IModel)

it just plain sucks

generics will make it much better

DropDownChoiceT(String, IModelT, IModelListT)

then at a glance you know where things go.


and yes IModel is a tricky beast, mainly because it is so flexible. though,
i think once you get used to it you can wield its power quiet effortlessly.

 -Igor



On 5/5/06, Johan Compagner [EMAIL PROTECTED] wrote:





 
  One thing I found particularly awkward was how models work in some of
  the form widgets, i.e. DropDownChoice, ListMultipleChoice, etc.  This
  is where I found the Wicket learning curve was greater because it
  wasn't nearly as intuitive as I had expected.



 Strange thing is they work exactly like Swing Comboboxes and Lists..
 The selected objects are just the objects that are in the total list.

 And you have a Renderer that displays the objects.. (to display a text in
a label that is the toString of the object)

 The only difference is is that in wicket you also need to generate a
String id because we need that to send to the browser.

 johan







---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid0709bid3057dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Image upload

2006-05-05 Thread Vincent Jenks
I guess I'm still a little lost here. Why would I need to use a querystring to build the string? Do I? I'm thinking not.I'm not generating thumbnails...my version of this is much, much, much smaller. I'm uploading images to a pre-defined, static location. That part works great, no problems there. I'm then pulling them from that static location to display them.
I know that static path on disk where the images are located and I know the name ahead of time (looping through a ListItem in a ListView from EJB3 entities in a List).How is the id querystring param relevant? Can't I just pass the path + img_name.gif into the urlFor() and be done w/ it?
I'm probably just over-complicating this...On 5/5/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
this is already described in philip's wiki article under download image section
what you want is a stripped down version of the image resource:public class ImageResource extends DynamicWebResource{
   // CONSTANTS   public static final Log logger = LogFactory.getLog(ImageResource.class);   private static final long serialVersionUID = 1L;   // CONSTRUCTORS   public ImageResource()
   {   super();   }   public ImageResource(Locale local)   {   super(local);   }   // METHODS   // MEMBERS   @Override   protected ResourceState getResourceState()
   {   ValueMap params = getParameters();   String imageId=params.get(id);   byte[] data="" style="color: rgb(255, 0, 0);">loadImageData(id);   Date lastModified=
getImageLastMod(id);   ImageResourceState state =   new ImageResourceState(Time.valueOf(lastModified));   state.setContentType(imageEntry.getContentType
());   state.setData(imageService.getImage(imageEntry));   return state;   }   class ImageResourceState extends ResourceState   {   // CONSTRUCTORS   ImageResourceState(Time lastModified)
   {   super();   this.lastModified = lastModified;   }   // MEMBERS   private String contentType;   @Override   public String getContentType()
   {   return contentType;   }   void setContentType(String contentType)   {   this.contentType = contentType;   }private byte[] data;
   @Override   public byte[] getData()   {   return data;   }   void setData(byte[] data)   {   this.data = "">   }@Override
   public int getLength()   {   return data.length;   }private Time lastModified;   @Override   public Time lastModifiedTime()   {   return lastModified;
   }
// METHODS   }}then you register this as a shared resource and get a resource reference. then when you want to build a url for an image you do thisResourceReference imageResource=...
String url="">hope this clears it up some more.-Igorhope this clears it up some more.
On 5/5/06, 
Vincent Jenks [EMAIL PROTECTED] wrote:

Hi Philip,Thanks so much for the sample code and wiki entry...it makes a lot of sense, however, it is a little bit of overkill for the app I built. You gave me a bazooka to take to a gun-fight!
Really, what it comes down to is; I need to turn the byte array I'm pulling out of the file system and turn it into an image. The upload I already had one of my devs build was working fine and I'm not sure (for now anyways) we need your full-on image service.
I'm googling around to see if I can figure out how to simply turn the byte array into an image I can display on a page...not something I'm familiar with. I couldn't gather from your example how this would be done, either.
Thanks for the help!On 5/2/06, Philip A. Chapman 

[EMAIL PROTECTED] wrote:





  
  


How was it? Do I need to make any edits to make it easier to understand?

On Mon, 2006-05-01 at 11:28 -0600, Vincent Jenks wrote:

I'll read through this, thanks a ton!



On 5/1/06, Philip A. Chapman 


[EMAIL PROTECTED] wrote:



Sorry for the delay, but I spent the time to create a wiki page so that hopefully others can benefit from what little I have to say on the subject:

http://www.wicket-wiki.org.uk/wiki/index.php/UploadDownload







On Mon, 2006-05-01 at 08:01 -0700, Igor Vaynberg wrote:

yes, thats it.

basically you would create a that resource that takes the filename/fileid/whatever off the url and streams the file. there is an example of this, i will ask one of my friends to post it here. stay tuned. 


-Igor
    

On 5/1/06, Vincent Jenks 


[EMAIL PROTECTED] wrote:

Did you mean to say DynamicWebResource?

On 4/21/06, Johan Compagner [EMAIL PROTECTED] wrote:



 you could save those images to a DB or to a working dir on the server. 

Re: [Wicket-user] Image upload

2006-05-05 Thread Vincent Jenks
Obviously not...or we wouldn't be having this conversation. It's a folder outside of the webroot.I'd have a list of strings, basically, to the effect of:C:\\app\\images\\img1.gifC:\\app\\images\\img2.gif

C:\\app\\images\\img3.gif
C:\\app\\images\\img4.gifI may just start storing them as blobs in the DB...they won't change often so I can cache them. I'm running short on time and starting to bite my nails! :D
On 5/5/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
hmmis the static location accessible from the web?!?!?!?-Igor
On 5/5/06, Vincent Jenks [EMAIL PROTECTED]
 wrote:I guess I'm still a little lost here. Why would I need to use a querystring to build the string? Do I? I'm thinking not.
I'm not generating thumbnails...my version of this is much, much, much smaller. I'm uploading images to a pre-defined, static location. That part works great, no problems there. I'm then pulling them from that static location to display them.
I know that static path on disk where the images are located and I know the name ahead of time (looping through a ListItem in a ListView from EJB3 entities in a List).How is the id querystring param relevant? Can't I just pass the path + img_name.gif into the urlFor() and be done w/ it?
I'm probably just over-complicating this...On 5/5/06, Igor Vaynberg 

[EMAIL PROTECTED] wrote:

this is already described in philip's wiki article under download image section
what you want is a stripped down version of the image resource:public class ImageResource extends DynamicWebResource{
   // CONSTANTS   public static final Log logger = LogFactory.getLog(ImageResource.class);   private static final long serialVersionUID = 1L;   // CONSTRUCTORS   public ImageResource()


   {   super();   }   public ImageResource(Locale local)   {   super(local);   }   // METHODS   // MEMBERS   @Override   protected ResourceState getResourceState()
   {   ValueMap params = getParameters();   String imageId=params.get(id);   byte[] data="" style="color: rgb(255, 0, 0);">loadImageData(id);   Date lastModified=
getImageLastMod(id);   ImageResourceState state =   new ImageResourceState(Time.valueOf(lastModified));   state.setContentType(imageEntry.getContentType
());   state.setData(imageService.getImage(imageEntry));   return state;   }   class ImageResourceState extends ResourceState   {   // CONSTRUCTORS   ImageResourceState(Time lastModified)
   {   super();   this.lastModified = lastModified;   }   // MEMBERS   private String contentType;   @Override   public String getContentType()
   {   return contentType;   }   void setContentType(String contentType)   {   this.contentType = contentType;   }private byte[] data;

   @Override   public byte[] getData()   {   return data;   }   void setData(byte[] data)   {   this.data = "">   }@Override
   public int getLength()   {   return data.length;   }private Time lastModified;   @Override   public Time lastModifiedTime()   {
   return lastModified;   }
// METHODS   }}then you register this as a shared resource and get a resource reference. then when you want to build a url for an image you do thisResourceReference imageResource=...
String url="">hope this clears it up some more.-Igorhope this clears it up some more.


On 5/5/06, 
Vincent Jenks [EMAIL PROTECTED] wrote:



Hi Philip,Thanks so much for the sample code and wiki entry...it makes a lot of sense, however, it is a little bit of overkill for the app I built. You gave me a bazooka to take to a gun-fight!
Really, what it comes down to is; I need to turn the byte array I'm pulling out of the file system and turn it into an image. The upload I already had one of my devs build was working fine and I'm not sure (for now anyways) we need your full-on image service.
I'm googling around to see if I can figure out how to simply turn the byte array into an image I can display on a page...not something I'm familiar with. I couldn't gather from your example how this would be done, either.
Thanks for the help!On 5/2/06, Philip A. Chapman 



[EMAIL PROTECTED] wrote:







  
  


How was it? Do I need to make any edits to make it easier to understand?

On Mon, 2006-05-01 at 11:28 -0600, Vincent Jenks wrote:

I'll read through this, thanks a ton!



On 5/1/06, Philip A. Chapman 




[EMAIL PROTECTED] wrote:



Sorry for the delay, but I spent the time to create a wiki page so that hopefully others can benefit from what little I have to say on the subject:

http://www.wicket-wiki.org.uk/wiki/index.php/UploadDownload







On Mon, 2006-05-01 at 08:01 -0700, Igor Vaynberg wrote:

yes, thats it.

 

Re: [Wicket-user] Image upload

2006-05-05 Thread Vincent Jenks
Once I do, is this something that should be added to Wicket? Using the uploader for what I'm doing, which I'd imagine would be fairly common, sort of sucks w/o the other half of itthe ability to call those images from non-web folders.
On 5/5/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
so what you need is something that maps to some url and when invoked streams the image back to the user.i see two possible ways to do thisone:use a separate servlet to do this
two:use a wicket shared resource
in both approaches the code will be 90% identicalwhat you need is to somehow tell this servlet or wicket resource which file to stream, this is what you pass in as a parameterie: 

www.server.com/myimageservlet?4this can tell the servlet that you want to stream c:\\app\\images\\img4.gifsame goes for the wicket resourceyou have a resource reference which builds the url that will hit the resource ( urlfor(resourcerefence) ), but you still need to tell it which image you want served
so the entire process once you registered a resource and obtained a reference to it goes like thisimg wicket:id=img/String url="" // base resource url
url="">WebMarkupContainer img=new WebMarkupContainer(img);img.add(new SimpleAttributeModifier(src, url);or encapsulate this whole thing into a reusable component so you can just do
add(new StoredImage(img, imagenum));-IgorOn 5/5/06, 
Vincent Jenks [EMAIL PROTECTED]
 wrote:Obviously not...or we wouldn't be having this conversation. It's a folder outside of the webroot.
I'd have a list of strings, basically, to the effect of:C:\\app\\images\\img1.gifC:\\app\\images\\img2.gif

C:\\app\\images\\img3.gif
C:\\app\\images\\img4.gifI may just start storing them as blobs in the DB...they won't change often so I can cache them. I'm running short on time and starting to bite my nails! :D


On 5/5/06, Igor Vaynberg 

[EMAIL PROTECTED] wrote:
hmmis the static location accessible from the web?!?!?!?-Igor
On 5/5/06, Vincent Jenks [EMAIL PROTECTED]
 wrote:I guess I'm still a little lost here. Why would I need to use a querystring to build the string? Do I? I'm thinking not.
I'm not generating thumbnails...my version of this is much, much, much smaller. I'm uploading images to a pre-defined, static location. That part works great, no problems there. I'm then pulling them from that static location to display them.
I know that static path on disk where the images are located and I know the name ahead of time (looping through a ListItem in a ListView from EJB3 entities in a List).How is the id querystring param relevant? Can't I just pass the path + img_name.gif into the urlFor() and be done w/ it?
I'm probably just over-complicating this...On 5/5/06, Igor Vaynberg 



[EMAIL PROTECTED] wrote:

this is already described in philip's wiki article under download image section
what you want is a stripped down version of the image resource:public class ImageResource extends DynamicWebResource{
   // CONSTANTS   public static final Log logger = LogFactory.getLog(ImageResource.class);   private static final long serialVersionUID = 1L;   // CONSTRUCTORS   public ImageResource()




   {   super();   }   public ImageResource(Locale local)   {   super(local);   }   // METHODS   // MEMBERS   @Override   protected ResourceState getResourceState()
   {   ValueMap params = getParameters();   String imageId=params.get(id);   byte[] data="" style="color: rgb(255, 0, 0);">loadImageData(id);   Date lastModified=
getImageLastMod(id);   ImageResourceState state =   new ImageResourceState(Time.valueOf(lastModified));   state.setContentType
(imageEntry.getContentType());   state.setData(imageService.getImage(imageEntry));   return state;   }   class ImageResourceState extends ResourceState   {   // CONSTRUCTORS

   ImageResourceState(Time lastModified)   {   super();   this.lastModified = lastModified;   }   // MEMBERS   private String contentType;
   @Override   public String getContentType()   {   return contentType;   }   void setContentType(String contentType)   {   this.contentType
 = contentType;   }private byte[] data;
   @Override   public byte[] getData()   {   return data;   }   void setData(byte[] data)   {   this.data = "">   }@Override
   public int getLength()   {   return data.length;   }private Time lastModified;   @Override   public Time lastModifiedTime()   {

   return lastModified;   }
// METHODS   }}then you register this as a shared resource and get a resource reference. then when you want to build a url for an image you do thisResourceReference imageResource=...
String url="">hope this clears it up some more.-Igorhope this clears it up some more.




On 5/5/0

Re: [Wicket-user] Image upload

2006-05-05 Thread Vincent Jenks
Ahh...I got it workingand yeah it was far easier once you guys showed me how to actually call the image as a resource. I was getting the byte[] all along w/o a problem...it was the display that I wasn't familiar with.
I *really* stripped Philip's example down to the bare metal...but I can *now* see how a lot of that would be useful...so I may go back and do some refactoring now to take advantage of some of the ideas.Anyhow, it looks great and I really appreciate the help Philip  Igor!
On 5/5/06, Vincent Jenks [EMAIL PROTECTED] wrote:
Once I do, is this something that should be added to Wicket? Using the uploader for what I'm doing, which I'd imagine would be fairly common, sort of sucks w/o the other half of itthe ability to call those images from non-web folders.
On 5/5/06, Igor Vaynberg 
[EMAIL PROTECTED] wrote:
so what you need is something that maps to some url and when invoked streams the image back to the user.i see two possible ways to do thisone:use a separate servlet to do this
two:use a wicket shared resource
in both approaches the code will be 90% identicalwhat you need is to somehow tell this servlet or wicket resource which file to stream, this is what you pass in as a parameterie: 


www.server.com/myimageservlet?4this can tell the servlet that you want to stream c:\\app\\images\\img4.gifsame goes for the wicket resourceyou have a resource reference which builds the url that will hit the resource ( urlfor(resourcerefence) ), but you still need to tell it which image you want served
so the entire process once you registered a resource and obtained a reference to it goes like thisimg wicket:id=img/String url="" // base resource url
url="">WebMarkupContainer img=new WebMarkupContainer(img);img.add(new SimpleAttributeModifier(src, url);or encapsulate this whole thing into a reusable component so you can just do
add(new StoredImage(img, imagenum));-IgorOn 5/5/06, 
Vincent Jenks [EMAIL PROTECTED]
 wrote:Obviously not...or we wouldn't be having this conversation. It's a folder outside of the webroot.
I'd have a list of strings, basically, to the effect of:C:\\app\\images\\img1.gifC:\\app\\images\\img2.gif

C:\\app\\images\\img3.gif
C:\\app\\images\\img4.gifI may just start storing them as blobs in the DB...they won't change often so I can cache them. I'm running short on time and starting to bite my nails! :D



On 5/5/06, Igor Vaynberg 


[EMAIL PROTECTED] wrote:
hmmis the static location accessible from the web?!?!?!?-Igor
On 5/5/06, Vincent Jenks [EMAIL PROTECTED]
 wrote:I guess I'm still a little lost here. Why would I need to use a querystring to build the string? Do I? I'm thinking not.
I'm not generating thumbnails...my version of this is much, much, much smaller. I'm uploading images to a pre-defined, static location. That part works great, no problems there. I'm then pulling them from that static location to display them.
I know that static path on disk where the images are located and I know the name ahead of time (looping through a ListItem in a ListView from EJB3 entities in a List).How is the id querystring param relevant? Can't I just pass the path + img_name.gif into the urlFor() and be done w/ it?
I'm probably just over-complicating this...On 5/5/06, Igor Vaynberg 




[EMAIL PROTECTED] wrote:

this is already described in philip's wiki article under download image section
what you want is a stripped down version of the image resource:public class ImageResource extends DynamicWebResource{
   // CONSTANTS   public static final Log logger = LogFactory.getLog(ImageResource.class);   private static final long serialVersionUID = 1L;   // CONSTRUCTORS   public ImageResource()





   {   super();   }   public ImageResource(Locale local)   {   super(local);   }   // METHODS   // MEMBERS   @Override   protected ResourceState getResourceState()
   {   ValueMap params = getParameters();   String imageId=params.get(id);   byte[] data="" style="color: rgb(255, 0, 0);">loadImageData(id);
   Date lastModified=getImageLastMod(id);   ImageResourceState state =   new ImageResourceState(Time.valueOf(lastModified));
   state.setContentType(imageEntry.getContentType());   state.setData(imageService.getImage(imageEntry));   return state;   }   class ImageResourceState extends ResourceState
   {   // CONSTRUCTORS
   ImageResourceState(Time lastModified)   {   super();   this.lastModified = lastModified;   }   // MEMBERS   private String contentType;
   @Override   public String getContentType()   {   return contentType;   }   void setContentType(String contentType)   {   this.contentType
 = contentType;   }private byte[] data;
   @Override   public byte[] getData()   {   return data;   }   void setData(byte[] data)   {   this.data = "&quo

Re: [Wicket-user] Image upload

2006-05-05 Thread Vincent Jenks
Yeah, exactly, just a shortcut component to do this or like you said, a realy basic wiki example - which I'd be happy to contribute once I get this cleaned up a little?On 5/5/06, 
Igor Vaynberg [EMAIL PROTECTED] wrote:
sure, it depends on how general you end up making it. i think we have sufficient infrastructure in wicket already, so maybe what is needed the most is a wiki example that is far less complicated then the one philip posted and a thin wrapper around our dynamic resource that streams a file from some folder.
let me know once you are done and we will see where we are-IgorOn 5/5/06, 
Vincent Jenks 
[EMAIL PROTECTED] wrote:Once I do, is this something that should be added to Wicket? Using the uploader for what I'm doing, which I'd imagine would be fairly common, sort of sucks w/o the other half of itthe ability to call those images from non-web folders.
On 5/5/06, Igor Vaynberg 

[EMAIL PROTECTED] wrote:
so what you need is something that maps to some url and when invoked streams the image back to the user.i see two possible ways to do thisone:use a separate servlet to do this
two:use a wicket shared resource
in both approaches the code will be 90% identicalwhat you need is to somehow tell this servlet or wicket resource which file to stream, this is what you pass in as a parameterie: 



www.server.com/myimageservlet?4this can tell the servlet that you want to stream c:\\app\\images\\img4.gifsame goes for the wicket resourceyou have a resource reference which builds the url that will hit the resource ( urlfor(resourcerefence) ), but you still need to tell it which image you want served
so the entire process once you registered a resource and obtained a reference to it goes like thisimg wicket:id=img/String url="" // base resource url
url="">WebMarkupContainer img=new WebMarkupContainer(img);img.add(new SimpleAttributeModifier(src, url);or encapsulate this whole thing into a reusable component so you can just do
add(new StoredImage(img, imagenum));-IgorOn 5/5/06, 
Vincent Jenks [EMAIL PROTECTED]
 wrote:Obviously not...or we wouldn't be having this conversation. It's a folder outside of the webroot.
I'd have a list of strings, basically, to the effect of:C:\\app\\images\\img1.gifC:\\app\\images\\img2.gif

C:\\app\\images\\img3.gif
C:\\app\\images\\img4.gifI may just start storing them as blobs in the DB...they won't change often so I can cache them. I'm running short on time and starting to bite my nails! :D




On 5/5/06, Igor Vaynberg 



[EMAIL PROTECTED] wrote:
hmmis the static location accessible from the web?!?!?!?-Igor
On 5/5/06, Vincent Jenks [EMAIL PROTECTED]
 wrote:I guess I'm still a little lost here. Why would I need to use a querystring to build the string? Do I? I'm thinking not.
I'm not generating thumbnails...my version of this is much, much, much smaller. I'm uploading images to a pre-defined, static location. That part works great, no problems there. I'm then pulling them from that static location to display them.
I know that static path on disk where the images are located and I know the name ahead of time (looping through a ListItem in a ListView from EJB3 entities in a List).How is the id querystring param relevant? Can't I just pass the path + img_name.gif into the urlFor() and be done w/ it?
I'm probably just over-complicating this...On 5/5/06, Igor Vaynberg 





[EMAIL PROTECTED] wrote:

this is already described in philip's wiki article under download image section
what you want is a stripped down version of the image resource:public class ImageResource extends DynamicWebResource{
   // CONSTANTS   public static final Log logger = LogFactory.getLog(ImageResource.class);   private static final long serialVersionUID = 1L;   // CONSTRUCTORS   public ImageResource()






   {   super();   }   public ImageResource(Locale local)   {   super(local);   }   // METHODS   // MEMBERS   @Override   protected ResourceState getResourceState()
   {   ValueMap params = getParameters();   String imageId=params.get(id);   byte[] data="" style="color: rgb(255, 0, 0);">loadImageData(id);

   Date lastModified=getImageLastMod(id);   ImageResourceState state =   new ImageResourceState(Time.valueOf(lastModified));

   state.setContentType(imageEntry.getContentType());   state.setData(imageService.getImage(imageEntry));   return state;   }   class ImageResourceState extends ResourceState
   {   // CONSTRUCTORS
   ImageResourceState(Time lastModified)   {   super();   this.lastModified = lastModified;   }   // MEMBERS   private String contentType;
   @Override   public String getContentType()   {   return contentType;   }   void setContentType(String contentType)   {   
this.contentType = contentType;   }private byte[] data;
   @Override   public byte[] getData()   {

Re: [Wicket-user] The other side of Wicket ...

2006-05-04 Thread Vincent Jenks




 I am just wondering how other frameworks handle this problem and why it
seems more difficult in Wicket? Would Wicket fit in well as a Web
presentation layer for an application using EJB3 (including JPA)?


i believe Vincent is working with ejb3 so maybe he can tell you about his
experience. i think it would be trivial to create an IFieldValueFactory that
can inject ejb3 beans instead of spring beans. the contribution would be
welcome.

the code can look identical to the spring injection

@EjbBean private UserService userService;

-Igor




I'm about 90% finished w/ a Wicket/EJB3 (JBoss) storefront solution
for my company to start doing consumer web sales.  In my personal
opinion, Wicket + EJB3 is the holy grail of Java web development...and
I'm not being dramatic.  It would be hard to convince me to use
another framework, going forward.

The app was incredibly easy to build once I got past the few
learning-curve hurdles w/ Wicket (with the help of the exceptional
Wicket devs, of course ;).  I'm now rapidly adding features, tweaking,
and doing all of this while training a new developer who just joined
the company and is not familiar w/ Java, Wicket, or even web apps
development in general.

My app only has one Stateful bean, the ShoppingCart, and I didn't use
injection in the Wicket layer since everything I'm doing passes
through a thin proxy layer...but it was trivial to make calls to the
EJB, nonetheless.  I keep the stub stored in a session class in Wicket
which I did by simply inheriting the WebSession class.

We looked at several other technologies and my first choice was JSF +
JBoss Seam.  It's nice...but doesn't hold a candle to Wicket IMHO.  I
also looked at Tapestry, Struts, WebWork, etc. - none of them had the
simplicity and elegance that Wicket offers...and so far the
performance exceeds my expectations.

-v


---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid0709bid3057dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] The other side of Wicket ...

2006-05-04 Thread Vincent Jenks

I don't hear great things about Struts!  My experience w/
Java/J2EE/Java EE before wicket was Servlets+JSP+Hibernate (and JDBC),
and I've only been doing Java for about a year.  I had made a living
off of Microsoft technologies for years prior to that, specifically C#
and the .NET framework.

I guess you could say I had a far worse infection than even a reformed
Struts user would have had :D

Seriously though, I looked at Struts and tried to walk through a few
tutorials.  If I can't grasp the framework, even at a very basic,
high-level after doing a couple tutorials...it's probably too complex.

Just glancing over the Wicket examples was enough for me to know it
was something worth pursuing.

On 5/4/06, Johan Compagner [EMAIL PROTECTED] wrote:



 and doing all of this while training a new developer who just joined
 the company and is not familiar w/ Java, Wicket, or even web apps
 development in general.



lucky you!!! because they are not completely infected by the mvc (struts)
way of working!
Because that would be much worse :)

johan






---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid0709bid3057dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] The other side of Wicket ...

2006-05-04 Thread Vincent Jenks

Oh yeah, just jokes, .NET is a pretty great technology...though it
still requires far more work than the EJB3+Wicket combo.

MS's tools are great, they have a snazzy IDE...but I still prefer
Eclipse...perhaps because of its open nature and breadth of industry
support both pro  amateur.

The tools are also the problemyou can't rely on much else outside
of MS's visual studio tools to do the job.  I personally hate WYSIWYG
environments and writing asp.net pages, controls, etc. w/o the editor
can be quite tedious.

JSF's similarity to ASP.NET is one reason I didn't want to use
it...not to mention all of the strange issues I had heard of w/ JSF
1.1.

.NET has it's place...but now that EJB3 is a finalized spec...I doubt
it can keep up w/ Java EE 5 and beyond in a one-on-one comparison.

On 5/4/06, Eelco Hillenius [EMAIL PROTECTED] wrote:

On 5/4/06, Vincent Jenks [EMAIL PROTECTED] wrote:
 I don't hear great things about Struts!  My experience w/
 Java/J2EE/Java EE before wicket was Servlets+JSP+Hibernate (and JDBC),
 and I've only been doing Java for about a year.  I had made a living
 off of Microsoft technologies for years prior to that, specifically C#
 and the .NET framework.

Actually, .NET isn't that bad. Way better than Struts or any other
model 2 framework imo. It's component oriented, and personally I think
they even did that in a better way (because simpler) than JSF. JSF and
.NET or very close cousins. Not something I would like to do without
IDEs that support it though, and I've seen people doing .NET with word
pad because VS crashed on their files.

Eelco


---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmdlnkkid0709bid3057dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user




---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid0709bid3057dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Image upload

2006-05-02 Thread Vincent Jenks
I honestly haven't had the opportunity to integrate it into my app yet. I'm going to have to pick it apart a bit to conform to my shopping cart.I'll probably rip into it today sometime and I'll post my progress.
I really appreciate the hand, thanks!On 5/2/06, Philip A. Chapman [EMAIL PROTECTED] wrote:



  
  


How was it? Do I need to make any edits to make it easier to understand?

On Mon, 2006-05-01 at 11:28 -0600, Vincent Jenks wrote:

I'll read through this, thanks a ton!



On 5/1/06, Philip A. Chapman 
[EMAIL PROTECTED] wrote:



Sorry for the delay, but I spent the time to create a wiki page so that hopefully others can benefit from what little I have to say on the subject:

http://www.wicket-wiki.org.uk/wiki/index.php/UploadDownload







On Mon, 2006-05-01 at 08:01 -0700, Igor Vaynberg wrote:

yes, thats it.

basically you would create a that resource that takes the filename/fileid/whatever off the url and streams the file. there is an example of this, i will ask one of my friends to post it here. stay tuned. 


-Igor


On 5/1/06, Vincent Jenks 
[EMAIL PROTECTED] wrote:

Did you mean to say DynamicWebResource?

On 4/21/06, Johan Compagner [EMAIL PROTECTED] wrote:

 you could save those images to a DB or to a working dir on the server. 
 Then have a DynamicByteArrayResource or the 1.2 one: WebDynamicResource to
 load the image from the location you stored the image.

 johan


 On 4/21/06, Steve Knight  [EMAIL PROTECTED] wrote:

 
  I am creating a form that will allow users to upload image files that will
 be displayed on other pages.How should I go about uploading the images so 
 that they can be used in Wicket Image components on the other pages?The
 upload part is not problem, I just don't know where I should put them.
 
  On my view pages, I am using ThumbnailImageResource which takes a 
 WebResource in it's contructor to find the image.Where should I save the
 images to make this work?
 
  Thanks.
 
 
  Steve
 
  
 




---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier 
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmdlnkkid0709bid3057dat1642

___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user
 










-- Philip A. ChapmanDesktop and Web Application Development:Java, .NET, PostgreSQL, MySQL, MSSQLLinux, Windows 2000, Windows XP








-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQBEVjqCAdpynRSGw3URAiqOAKCDsSpRHf8WQ8EGaneJoAGS4WD5bwCfaYED
Kb0kHbQYO8P7wOBWUVGWw7I=
=x7ml
-END PGP SIGNATURE- 










-- Philip A. ChapmanDesktop and Web Application Development:Java, .NET, PostgreSQL, MySQL, MSSQLLinux, Windows 2000, Windows XP






-BEGIN PGP SIGNATURE-Version: GnuPG v1.4.1 (GNU/Linux)iD8DBQBEV4M6AdpynRSGw3URAhkvAJ4tHqn2wYOd9LuuD43MWsGhnGGgxACffIoBEKdVHMEHbsM6PC+E9nkwcFw==GFH9-END PGP SIGNATURE-



Re: [Wicket-user] Wicket book

2006-05-01 Thread Vincent Jenks

Yes, the developers are *insanely* helpful and patient. ;)  Without
this list I'm not sure I would have been able to use Wicket for long,
to be perfectly honest.

On 5/1/06, Timo Stamm [EMAIL PROTECTED] wrote:

Rivka Shisman schrieb:
 A good book with examples and recipes is quite necessary :-)

Try the Wiki! http://www.wicket-wiki.org.uk

There is nice guide for beginners that should get you started:
http://www.wicket-wiki.org.uk/wiki/index.php/Newuserguide

Then there is the reference library with information and howtos on a lot
of topics: http://www.wicket-wiki.org.uk/wiki/index.php/Reference_library


Timo


---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user




---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid0709bid3057dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


  1   2   3   >