Re: Is there a way to get stateless DDC with onchange notification?

2008-10-17 Thread Ritesh Trivedi

no that not the rule
its just the other way around,
a page is stateless if it doesnt have statefull components in it
and the DDC generates a statefull link to itself so its self and because of
that it is statefull
I totally understand that. The problem is exactly that and hence my post
here. As I described even if one small component is statefull on the page,
entire page becomes statefull and gets saved in the session along with all
the classes referenced by that page. Just as a side note - I was getting
OutofMemory exceptions due to too many sessions as a result of heavy
crawling activity and the fact that bookmarkable pages were stateful causing
essentially all the classes held on to by the httpsession causing server to
go out of memory (2.6G) in 6 hours!! So this question is in an effort to
clean bookmarkable pages up making them truely stateless

I have DDC inside its own form - not nested but independent form. In the
view source it seesm like DDC just submits the form on onchange using
javascript. I have tried making this enclosing form both statefull and
stateless with the same behavior - the original page which contains the DDC
is re-rendered instead of going to the setResponse page.

The URL for the form which contains this only DDC looks like this
?wicket:bookmarkablepage=com.xxx.yyywicket:interface=:2:path:to:the:component:IFormListener

This was the comment from you a while ago (2006) -What I understood from
this was - if the url was like above, it means if the page didnt exist, it
will be created and the listener method onselectionchanged should be called.
What am I missing?

Also can you please explain why the page becomes statefull if its being
redirected to? e.g. in my onSubmit() if I set setRedirect(true);
setResponsePage(BookmarkablePage.class, params) this will cause the
bookmarkable page which is otherwise stateless to be statefull?

http://www.nabble.com/how-do-stateless-components-and-pages-work-in-Wicket-2.0--td6441228.html#a6441228

so you have the bookmarkablePage=xxx and the interface=xxx in the url. (or
a mount with that interface=xxx)

When a request comes in for such an url. It fist checks the interface stuff
(is the page still there) and if it finds
the page it goes on as a normal Interface request. If it isn't it becomes
bookmarkalble interface request.
This means that the page is created just as a normal bookmarkable request
but not only for rendering but
first it calls the interface that was asked for.


Johan Compagner wrote:
 
 On Thu, Oct 16, 2008 at 6:16 PM, Ritesh Trivedi
 [EMAIL PROTECTED]wrote:
 

 Well if I understand it correctly, a component embedded inside (otherwise
 stateless) bookmarkable page checks if the page instance exists if not
 the
 page is to be newly created from the params or default constructor. So
 the
 page and the DDC doesnt necessarily have to be statefull.
 
 
 no that not the rule
 its just the other way around,
 a page is stateless if it doesnt have statefull components in it
 and the DDC generates a statefull link to itself so its self and because
 of
 that it is statefull
 


 As about what I want to do - I just have a plain list of drop down items
 and
 depending on the one selected, I need to redirect to the bookmarkable
 page
 for the item. DDC values can just be ids which will be passed as
 bookmarkable param and will be used to look up the details of that
 entity.
 
 
 what you could do is just override:
 protected boolean getStatelessHint()
 
 and return true
 
 



 Johan Compagner wrote:
 
  It is statefull then because it has a callback to that page instance
  and component. What do you want do do in the onchange method?
 
  On 10/15/08, Ritesh Trivedi [EMAIL PROTECTED] wrote:
 
  Hi,
 
  Is there a way to get stateless DDC with onchange notifications? Also
  would
  be helpful if someone could explain why the wantOnChangeNotification
  makes
  DDC stateful even if its enclosed within stateless form and in the
  stateless
  bookmarkable page?
  --
  View this message in context:
 
 http://www.nabble.com/Is-there-a-way-to-get-stateless-DDC-with-onchange-notification--tp19985764p19985764.html
  Sent from the Wicket - User mailing list archive at Nabble.com.
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

 --
 View this message in context:
 http://www.nabble.com/Is-there-a-way-to-get-stateless-DDC-with-onchange-notification--tp19985764p20015930.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


 
 

-- 
View this message in context: 

Re: Pages or components... how do u decide?

2008-10-17 Thread Alex Objelean

I also like the approach of pushing every functionality in separate
components (Panels), it gives me the flexibility of composing pages with any
combination of this components. For instance, if I have Login functionality,
I create the LoginPanel and LoginPage. This approach allows me to add other
Panels (if needed) to LoginPage.

Regarding storing the primary model to the base page, I would suggest using
a custom session for storing it. This way you can benefit from strongly
typed objects and be able access it anywhere in your application.

Alex


Ned Collyer wrote:
 
 The system I'm building at the moment has almost everything pushed down
 into components.  Most of the functionality is achieved by a single base
 page which takes a component in its constructor.
 
 For Bookmarkable pages, I extend this base page, and pass a component to
 the super.
 
 How do _you_ separate concerns?  Is there a best practice?
 
 A benefit of using a page is that it can be accessed with getPage()
 regardless of how deep in the hierarchy you are... so I guess it could be
 useful for storing the primary model for that section of the site.
 
 Anyway, I'm interested in hearing how others deal with Page vs Components,
 and how they structure their applications.
 
 So many ways of skinning a cat :)
 
 Rgds
 
 Ned
 

-- 
View this message in context: 
http://www.nabble.com/Pages-or-components...-how-do-u-decide--tp20016807p20027716.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Empty PageParametyers when using HybridUrlCodingStrategy

2008-10-17 Thread itayh

In this case the url will contain the parameters. But since I mount it
without the parameters what I get is empty page. I am not sure why I am
getting the empty page when I concat the parameters to the iframe url. I am
not even getting to MyFrame constructor. Any Idea?


Erik van Oosten wrote:
 
 I don't understand. Reading the javadoc InlineFrame should set the src 
 attribute. If that is not the case, try setting the src attribute with 
 something like:
 
 myFrame.add(new AttributeModifier(src, new Model(urlFor(MyFrame.class,
 pageParameters;
 
 
 Regards,
 Erik.
 
 
 
 itayh wrote:
 Hi Erik,

 You are right, the src AttributeModifier overwrites params values. If I
 am
 not using the src AttributeModifier then the params has values and if I
 use
 it then the params are empty.

 But it seem that I must use the src AttributeModifier since I am using
 sitemesh decorators to decorate my pages according to the url, so I need
 to
 identify the iframes url from their container url. I need to decorate all
 my
 pages but I don't want to decorate the iframes (no need for headers and
 footers there).

 The src AttributeModifier is the only way I found how set the iframes url
 to
 what i want. Is there another way?

 Thanks alot,
   Itay


   
 
 
 -- 
 Erik van Oosten
 http://www.day-to-day-stuff.blogspot.com/
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Empty-PageParametyers-when-using-HybridUrlCodingStrategy-tp19666330p20027785.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Empty PageParametyers when using HybridUrlCodingStrategy

2008-10-17 Thread Erik van Oosten
Please check your setup then. I understand you are using sitemesh. Maybe 
this interferes.


   Erik.

itayh wrote:

In this case the url will contain the parameters. But since I mount it
without the parameters what I get is empty page. I am not sure why I am
getting the empty page when I concat the parameters to the iframe url. I am
not even getting to MyFrame constructor. Any Idea?

  


--
Erik van Oosten
http://www.day-to-day-stuff.blogspot.com/


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Wizard with CompoundPropertyModel

2008-10-17 Thread jensiator

Hi everyone
Time for a new question. This time its about the wizard component. I have
already done a couple of wizards and they work well. I have looked at the
example in wicket and of course I have changed it a little bit. I dont want
the steps do be static private classes so in my solution I send in the Model
that contains the BackingBean in the constructor of the wizardSteps. And it
works. Put in one case I Noticed that all the WizardSteps uses the same
backingbean, so I started to think about using a compoundpropertymodel that
I set to the Wizard in its constuctor. Something like this:
public MywizardConstuctor(String id){
   super(id);
   CompoundPropertyModelBackingBean formModel = new
CompoundPropertyModelBackingBean(new BackingBean());
setDefaultModel(formModel);
WizardModel wizardmodel = new WizardModel();
wizardmodel.add(new WizardStep1());
wizardmodel.add(new WizardStep2());
init(wizardmodel);
}
Okey, in the WizardSteps constuctors I want to bind some TextFields to the
right property. Like this:
public WizardStep1(){
   TextField firstnameTF = new TextFieldString(firstName);
}
and it works well. BUT, this binding forces me to use the same markupid as
the backingbean property. Could be dangerous when different developers work
on the code. Someone might fail to notice this. I personly like when use the
propertmodel parameter in the TextField because it realy shows what your
doing. 
TextField firstnameTF = new TextFieldString(firstName,new
PropertyModelString(getDefaultModel(), nestedobj.firstname));
But I cant make it work! The former TextField code works, but the one with
getDeafultModel() doesnt. The defaultModel is null. I tryid to
findParent(Wizard.class).getDefaultModel() but it failes, probably because
the Step has not been added to the WizardModel yet.
Can anyone explain to me why 'new TextFieldString(firstName)' works?
Jens Alenius


-- 
View this message in context: 
http://www.nabble.com/Wizard-with-CompoundPropertyModel-tp20029043p20029043.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Pages or components... how do u decide?

2008-10-17 Thread Erik van Oosten

Of topic but important nevertheless:

About the only object you ever want to put in the session IMHO is the 
logged in user and its credentials. Even if you have a very small site 
with only one important model you should not put it in the session. 
There are 2 problems with this approach:


- Technically you get problems because access to the session is not 
thread safe.
- Usability suffers because the user can no longer have multiple tabs 
open in the same site and try out different things.


Well, ok, /sometimes/ you want to prevent the latter to keep things 
simple for the user. A shopping cart is probably the best example.


Regards,
   Erik.


Alex Objelean wrote:

I also like the approach of pushing every functionality in separate
components (Panels), it gives me the flexibility of composing pages with any
combination of this components. For instance, if I have Login functionality,
I create the LoginPanel and LoginPage. This approach allows me to add other
Panels (if needed) to LoginPage.

Regarding storing the primary model to the base page, I would suggest using
a custom session for storing it. This way you can benefit from strongly
typed objects and be able access it anywhere in your application.

Alex
  


--
Erik van Oosten
http://www.day-to-day-stuff.blogspot.com/


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Nice wicket components

2008-10-17 Thread Murat Yücel
Hi All

I am in search for nice wicket components like the wicket-stuff project
called inmethod-grid.
The project has a lot of features and then it looks more pretty than the
standard wicket design.

Does anyone no about other projects? I know that you cannot compare GWT and
Wicket,
but it is sad to see that a lot of projects integrates with GWT, while
Wicket has been still for
quite a while.

What are the future plans for wicket and when are you expecting to release
1.4?

Kind regards

/Murat


Re: DHTML DnD best practice?

2008-10-17 Thread Neil McT

Ok, so I had a look at the Palette component. Its very nice, but I don't
think it really helps me as it uses a select box (i.e. a pre-existing wicket
component) as a 'bin' for the droppables. This really abstracts out the main
part of my problem - how to bind and manipulate a bunch of divs with a
custom component.

To explain further: what I will end up with is a droppable 'bin' (a div)
which the user has been happily dragging stuff (other divs) onto - and
possibly sorting etc. The hole in my knowledge here is how to associate
these inner divs (the things that have been dropped) with some Wicket
component on the server side. I can associated the 'bin' div with a
MarkupContainer or something but I'm not sure how to dynamically keep track
of its inner divs once the user has submitted.

I've tried a solution using a ListView nested within a form but I'm not
entirely happy with it. For example, the number of 'slots' to drag things
onto has to be known at construction time - i.e. the user can not drag on 11
things if only 10 slots (say, nested textfields) have been created at
construction time (also I would prefer not to have pre-determined 'slots' -
just an area onto which many divs can be dragged). I would like to use
Jquery to do all the fancy front-end stuff (creating new 'slots' on the fly,
sorting etc) and just bind the results (all the dragged-on divs) to some
component in Wicket.

I've been playing about with wicket for about a month and this question
actually reflects an area of the Framework that I am not really getting so
far - how markup is bound to components at the lower level. I've read many
examples and the excellent Wicket in Action book but, understandably, they
seem to focus on how to use existing components and only briefly touch on
how to create your own components and how to really 'get at' the underlying
markup.

Any help, hints or pointers to further reading would be much appreciated as,
my current problem aside, I feel this is an area I need to crack before I go
any further.

Thanks - Neil.  



Serkan Camurcuoglu wrote:
 
 it seems like you're talking about the DnD version of the Palette
 component in wicket extensions.. See its source code, maybe it will give
 you some idea.. 
 

-- 
View this message in context: 
http://www.nabble.com/DHTML-DnD-best-practice--tp20010633p20029961.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



no title in ExternalLink

2008-10-17 Thread Steve Swinsburg


Hi all,

I've just noticed a deficiency in the ExternalLink component that  
doesn't allow a 'title' field to be set in its constructor. This is a  
basic HTML attribute that all links should have (for accessibility and  
expected behaviour).


Currently this is only achieved by using AttributeAppender and setting  
the title attribute onto the link component. I propose a new  
construcotr that takes the title attribute as a parameter (or the  
ExternalLink set a title by default).


I have filed a Jira ticket here: 
https://issues.apache.org/jira/browse/WICKET-1878


cheers,
Steve









smime.p7s
Description: S/MIME cryptographic signature


Re: have anyone tried empire-DB?

2008-10-17 Thread marco.behler

I gave empireDB a quick look a while ago and it looks interesting. Besides
JPersist I also stumbled upon JaQu
(http://www.h2database.com/html/jaqu.html), which is still in its infancy.
I'm sure there's more LINQ-like clones out there.

As far as I'm concerned, I'd really like to have a thorough look at stuff
like db4o or couchDB, especially performance wise. I did Hibernate/iBatis in
the past and am currently working on a project with iBatis again. Both have
advantages and disadvantages and I don't love either. I would rather not
have to care about tables, objects,the mighty mismatch (and in Hibernate's
case the mighty session) anymore, but just shove that damn thing into an
object database ;)

*hides from enraged DBAs and their optimised queries*



Nino.Martinez wrote:
 
 Yeah seems to be nice...
 
 At WUG DK we discussed. That if using stuff like hibernate, for simple 
 cruds it's nice but if you have a complex object graph it becomes very 
 troublesome to use (if you use cascade all etc.)..
 
 Ames, Tim wrote:
 Looks like it has a lot in common with JPersist.  That is what I have
 been using. No XML, all POJO.

 -Original Message-
 From: Nino Saturnino Martinez Vazquez Wael
 [mailto:[EMAIL PROTECTED]
 Sent: Thursday, October 16, 2008 11:28 AM
 To: users@wicket.apache.org
 Subject: have anyone tried empire-DB?

 So have you tried it with wicket?

 http://incubator.apache.org/empire-db/

 --
 -Wicket for love

 Nino Martinez Wael
 Java Specialist @ Jayway DK
 http://www.jayway.dk
 +45 2936 7684


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]

 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
 _

 EMAIL CONFIDENTIALITY NOTICE 

 This Email message, and any attachments, may contain confidential 
 patient health information that is legally protected. This information 
 is intended only for the use of the individual or entity named above. 
 The authorized recipient of this information is prohibited from
 disclosing 
 this information to any other party unless required to do so by law 
 or regulation and is required to destroy the information after its stated 
 need has been fulfilled. If you are not the intended recipient, you are 
 hereby notified that any disclosure, copying, distribution, or action 
 taken in reliance on the contents of this message is strictly prohibited. 

 If you have received this information in error, please notify 
 the sender immediately by replying to this message and delete the 
 message from your system.


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]

   
 
 -- 
 -Wicket for love
 
 Nino Martinez Wael
 Java Specialist @ Jayway DK
 http://www.jayway.dk
 +45 2936 7684
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/have-anyone-tried-empire-DB--tp20016534p20030820.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Form model update with ajax using AutoCompleteTextField

2008-10-17 Thread kerim bey



or you can use this one-
http://cwiki.apache.org/confluence/display/WICKET/Autocomplete+using+a+W
icket+model 

First of all thanks for the answers!

Have tried this one and it works fine!

Just one problem: when there is a ModelObject set on first render the
component I get an input like id:1 number:12345 
How can I get the preset value get converted like the choices?

-- 
View this message in context: 
http://www.nabble.com/Form-model-update-with-ajax-using-AutoCompleteTextField-tp19954381p20030992.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RequestCycle.urlFor modifies a page's parameters?

2008-10-17 Thread aditsu

Hi, I'm using wicket 1.4-m3
I was debugging a problem and I found that RequestCycle.urlFor(Component,
RequestListenerInterface, ValueMap) can sometimes modify the parameters of
an existing page.
Here's the relevant code:

if (listener != IRedirectListener.INTERFACE  component.isStateless() 
page.isBookmarkable()  page.getStatelessHint())
{
PageParameters pageParameters = page.getPageParameters();
if (pageParameters == null)
{
pageParameters = new PageParameters();
}

if (params != null)
{
IteratorMap.EntryString, Object it = 
params.entrySet().iterator();
while (it.hasNext())
{
final Map.EntryString, Object entry = 
it.next();
final String key = entry.getKey();
final String value = 
entry.getValue().toString();
// Do not encode values here. It is the 
encoder's job
// to do the endoding. This leads to 
double encoding
// - Doug Donohoe
// @see 
https://issues.apache.org/jira/browse/WICKET-1627
pageParameters.add(key, value);
}
}

Is this normal?

-- 
View this message in context: 
http://www.nabble.com/RequestCycle.urlFor-modifies-a-page%27s-parameters--tp20031013p20031013.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Stateless AJAX links

2008-10-17 Thread aditsu

Hi, I managed to hack wicket (1.4-m3) to do a kind of stateless ajax link.
I extended AbstractLink and implemented ILinkListener, and added a custom
stateless AjaxEventBehavior that creates a callback url using the
ILinkListener interface (in order to get a
BookmarkableListenerInterfaceRequestTarget).
In onLinkClicked, I create an AjaxRequestTarget and then call an abstract
handler.

This is already a nasty hack, however it doesn't work yet by itself.
BookmarkableListenerInterfaceRequestTarget.processEvents calls
getPage(requestCycle) if it can't find a page, and that method creates a new
page... but only if !requestCycle.isRedirect(). And isRedirect returns true
for ajax requests.
getPage is also final (why?) so I had to override processEvents to make it
work.
What does isRedirect mean anyway? And why is it true for all ajax requests?

After hacking that, the stateless ajax link worked, however when I tried to
add a stateful form to the page through it, it didn't work because the page
wasn't stored in the session. I had to use yet another hack - I called
getRequestCycle().urlFor(getPage()) because that seems to touch the page in
the session.

So everything seems to work now, however I don't like having to use these
hacks, and I wonder if I broke anything by using them (especially the page
creation on redirect). Is there any better way to do ajax stateless links?
Is wicket going to support that anytime soon?

Thanks
Adrian
-- 
View this message in context: 
http://www.nabble.com/Stateless-AJAX-links-tp20031309p20031309.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



IP address range locking

2008-10-17 Thread John
hi, i am implementing IP address range locking for my application as i
have a number of offices that need to access the application and
everyone else needs to be kept out.

i am using WicketAuthRoles and have placed the code into my login
page... before attempting authentication i match the client's IP
against a number of defined ranges that i deem safe so can throw
incorrect connections out with an error(message here) and it will
redisplay the login page with the message in the FeedbackPanel.

i am thinking however that this is not really correct... really the IP
range locking should be more of a system thing rather than a component
thing.  i want my users to be able to stay logged in so have a cookie
holding auth info but this means they will bypass the login screen if
they take their laptops to a different network which is not good.

it sounds like i need to put the code into the Session or something
but that would mean i could never throw a message back to the user to
say what the problem is as the error page would have to come from
me.  i guess i could have a single JSP page holding the error message
and throw the user out of the Wicket application into this page but
i'd prefer to keep everything inside my Wicket application if at all
possible...

does anyone have any ideas on how best to handle this?

John

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Wizard with CompoundPropertyModel

2008-10-17 Thread Matthias Keller

Hi

jensiator wrote:

Put in one case I Noticed that all the WizardSteps uses the same
backingbean, so I started to think about using a compoundpropertymodel that
I set to the Wizard in its constuctor. Something like this:
public MywizardConstuctor(String id){
   super(id);
   CompoundPropertyModelBackingBean formModel = new
CompoundPropertyModelBackingBean(new BackingBean());
setDefaultModel(formModel);
WizardModel wizardmodel = new WizardModel();
wizardmodel.add(new WizardStep1());
wizardmodel.add(new WizardStep2());
init(wizardmodel);
}
TextField firstnameTF = new TextFieldString(firstName,new
PropertyModelString(getDefaultModel(), nestedobj.firstname));
But I cant make it work! The former TextField code works, but the one with
getDeafultModel() doesnt. The defaultModel is null. I tryid to
findParent(Wizard.class).getDefaultModel() but it failes, probably because
the Step has not been added to the WizardModel yet.
Can anyone explain to me why 'new TextFieldString(firstName)' works?
Jens Aleniu

Looks like you're using 1.4, but I can explain you how I'm doing it in 1.3:

In the wizard:
IModel model = new CompoundPropertyModel(this);
setModel(model);  // i dont have a  setDefaultModel() - Maybe that's the 
difference?

WizardModel wizardModel = new WizardModel();
wizardModel.add(new MyStep(model));

Like that I already have the model in my step (MyStep)

There I'm doing:
setModel(model);  // again, I dont have a setDefaultModel()
add(new TextField(my.id, new PropertyModel(getModel(), propertyName));

In your example, you're not passing the model to the steps - that's why 
it cannot be there.


The above example works for me in Wicket 1.3.x, so I think it shouldn't 
be that different in your case.


Matt

--
[EMAIL PROTECTED]  +41 44 268 83 98
Ergon Informatik AG, Kleinstrasse 15, CH-8008 Zürich
http://www.ergon.ch
__
e r g o nsmart people - smart software




smime.p7s
Description: S/MIME Cryptographic Signature


Re: DHTML DnD best practice?

2008-10-17 Thread Ernesto Reinaldo Barreiro
Sorry, maybe I do not fully understand what you want to do but why won't you
update the state of the server once a div is dropped.
I have my own components that use drag and drop (e.g. tables with
draggable/dropable columns) and what I do at the JavaScript side is
something like:
XXX.onDrop() {
 var url = this.url+ 'sourceId=' + parseInt(td.style.width) +
'targetId=resize' + 'number=' + this.number
 wicketAjaxGet(url);
}
and this URL is the URL to certain AjaxBehaviour on the server. Then I just
read those parameters on the server side, so that UI is in synchrony the
server.

Just take a look at YUI and Scriptaculous integration projects for
inspiration.

Best,

Ernesto



On Fri, Oct 17, 2008 at 11:28 AM, Neil McT [EMAIL PROTECTED]wrote:


 Ok, so I had a look at the Palette component. Its very nice, but I don't
 think it really helps me as it uses a select box (i.e. a pre-existing
 wicket
 component) as a 'bin' for the droppables. This really abstracts out the
 main
 part of my problem - how to bind and manipulate a bunch of divs with a
 custom component.

 To explain further: what I will end up with is a droppable 'bin' (a div)
 which the user has been happily dragging stuff (other divs) onto - and
 possibly sorting etc. The hole in my knowledge here is how to associate
 these inner divs (the things that have been dropped) with some Wicket
 component on the server side. I can associated the 'bin' div with a
 MarkupContainer or something but I'm not sure how to dynamically keep track
 of its inner divs once the user has submitted.

 I've tried a solution using a ListView nested within a form but I'm not
 entirely happy with it. For example, the number of 'slots' to drag things
 onto has to be known at construction time - i.e. the user can not drag on
 11
 things if only 10 slots (say, nested textfields) have been created at
 construction time (also I would prefer not to have pre-determined 'slots' -
 just an area onto which many divs can be dragged). I would like to use
 Jquery to do all the fancy front-end stuff (creating new 'slots' on the
 fly,
 sorting etc) and just bind the results (all the dragged-on divs) to some
 component in Wicket.

 I've been playing about with wicket for about a month and this question
 actually reflects an area of the Framework that I am not really getting so
 far - how markup is bound to components at the lower level. I've read many
 examples and the excellent Wicket in Action book but, understandably, they
 seem to focus on how to use existing components and only briefly touch on
 how to create your own components and how to really 'get at' the underlying
 markup.

 Any help, hints or pointers to further reading would be much appreciated
 as,
 my current problem aside, I feel this is an area I need to crack before I
 go
 any further.

 Thanks - Neil.



 Serkan Camurcuoglu wrote:
 
  it seems like you're talking about the DnD version of the Palette
  component in wicket extensions.. See its source code, maybe it will give
  you some idea..
 

 --
 View this message in context:
 http://www.nabble.com/DHTML-DnD-best-practice--tp20010633p20029961.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




Re: question on PageableLiveView

2008-10-17 Thread overseastars


Thanks for replying. I think that is the display trick because that is a
html link tag the wicket id of which is room_type.

I dont know how but it work when I redo it. 
-- 
View this message in context: 
http://www.nabble.com/question-on-PageableLiveView-tp20011877p20031865.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: DHTML DnD best practice?

2008-10-17 Thread aditsu

Look at wicketstuff-jquery, especially DnDSortableBehavior.
It's not perfect, but at least it can give you some ideas.
-- 
View this message in context: 
http://www.nabble.com/DHTML-DnD-best-practice--tp20010633p20031872.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: IP address range locking

2008-10-17 Thread Martijn Dashorst
you should do this on httpd server level or even firewall level.

In our app we restrict access to specific private pages to just our
corporate IP using mod_jk with locationMatch ... rules.

Martijn

On Fri, Oct 17, 2008 at 1:25 PM, John [EMAIL PROTECTED] wrote:
 hi, i am implementing IP address range locking for my application as i
 have a number of offices that need to access the application and
 everyone else needs to be kept out.

 i am using WicketAuthRoles and have placed the code into my login
 page... before attempting authentication i match the client's IP
 against a number of defined ranges that i deem safe so can throw
 incorrect connections out with an error(message here) and it will
 redisplay the login page with the message in the FeedbackPanel.

 i am thinking however that this is not really correct... really the IP
 range locking should be more of a system thing rather than a component
 thing.  i want my users to be able to stay logged in so have a cookie
 holding auth info but this means they will bypass the login screen if
 they take their laptops to a different network which is not good.

 it sounds like i need to put the code into the Session or something
 but that would mean i could never throw a message back to the user to
 say what the problem is as the error page would have to come from
 me.  i guess i could have a single JSP page holding the error message
 and throw the user out of the Wicket application into this page but
 i'd prefer to keep everything inside my Wicket application if at all
 possible...

 does anyone have any ideas on how best to handle this?

 John

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]





-- 
Become a Wicket expert, learn from the best: http://wicketinaction.com
Apache Wicket 1.3.4 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: state of new ajax impl in 1.5

2008-10-17 Thread Martijn Dashorst
once 1.4 has been made final and has received it first or second
maintenance release. Then trunk will move to wicket 1.5, and 1.4 will
become our maintenance project.

Martijn

On Fri, Oct 17, 2008 at 12:59 PM, Martin Voigt [EMAIL PROTECTED] wrote:
 Hi,

 I'm currently building an ajax-heavy application and I'm using the new
 implementation Matej is currently working on:

 http://cwiki.apache.org/WICKET/wicket-15-ajax.html

 I've noticed the *.ajaxng package is now *.ajax again in the
 experimental repository
 (http://svn.apache.org/repos/asf/wicket/sandbox/knopp/experimental),
 so it is now possible to write code using Matej's version without the
 need to resolve import conflicts later (that's what I'm doing atm). My
 question is, what is the state of the new implementation and when will
 it make it into the trunk?

 Regards,
 Martin

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]





-- 
Become a Wicket expert, learn from the best: http://wicketinaction.com
Apache Wicket 1.3.4 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: state of new ajax impl in 1.5

2008-10-17 Thread Martijn Dashorst
Or maybe if the implementation is really rock solid, we *might*
introduce it into 1.4, but I wouldn't bet on it.

Martijn

On Fri, Oct 17, 2008 at 1:58 PM, Martijn Dashorst
[EMAIL PROTECTED] wrote:
 once 1.4 has been made final and has received it first or second
 maintenance release. Then trunk will move to wicket 1.5, and 1.4 will
 become our maintenance project.

 Martijn

 On Fri, Oct 17, 2008 at 12:59 PM, Martin Voigt [EMAIL PROTECTED] wrote:
 Hi,

 I'm currently building an ajax-heavy application and I'm using the new
 implementation Matej is currently working on:

 http://cwiki.apache.org/WICKET/wicket-15-ajax.html

 I've noticed the *.ajaxng package is now *.ajax again in the
 experimental repository
 (http://svn.apache.org/repos/asf/wicket/sandbox/knopp/experimental),
 so it is now possible to write code using Matej's version without the
 need to resolve import conflicts later (that's what I'm doing atm). My
 question is, what is the state of the new implementation and when will
 it make it into the trunk?

 Regards,
 Martin

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]





 --
 Become a Wicket expert, learn from the best: http://wicketinaction.com
 Apache Wicket 1.3.4 is released
 Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.




-- 
Become a Wicket expert, learn from the best: http://wicketinaction.com
Apache Wicket 1.3.4 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



state of new ajax impl in 1.5

2008-10-17 Thread Martin Voigt
Hi,

I'm currently building an ajax-heavy application and I'm using the new
implementation Matej is currently working on:

http://cwiki.apache.org/WICKET/wicket-15-ajax.html

I've noticed the *.ajaxng package is now *.ajax again in the
experimental repository
(http://svn.apache.org/repos/asf/wicket/sandbox/knopp/experimental),
so it is now possible to write code using Matej's version without the
need to resolve import conflicts later (that's what I'm doing atm). My
question is, what is the state of the new implementation and when will
it make it into the trunk?

Regards,
Martin

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



AjaxFormComponentUpdatingBehavior problem

2008-10-17 Thread overseastars

Hi all

I'm having problems with using AjaxFormComponentUpdatingBehavior.
I'd like to make to ListChoices which contain a list of countries and
cities. For example, if I select one item in the first ListChoice and the
second ListChoice should display the related cities. Since I dont know how
to get some lists of cities, I just arbitrarily pick up one list to use. 
the following is part of my code. 

My case is that it actually works when the frontpage is opened at the first
time. However, after the first click, the second doesnt work and that
getModelObjectAsString gives me null value. 

Could someone please help me out?? Thanks in advance. BTW, I also wanna know
how to get some lists of cities. :-DMany thanks..


private String countries;
private String countries1;

private ListChoice countryListChoice;
private ListChoice countryListChoice1;
private ListString tl;
private ListString testlist;

public SearchForm(String id) {
super(id);

setModel(new CompoundPropertyModel());
tl = CountryListChoice.getCOUNTRIES();
testlist = CountryListChoice.getCOUNTRIES();
setOutputMarkupId(true);
CountryListChoice clc = new CountryListChoice();
countryListChoice = new ListChoice(countries, new 
PropertyModel(this,
countries), tl, clc.getRenderer());
countryListChoice.setOutputMarkupId(true);
add(countryListChoice);

CountryListChoice clc1 = new CountryListChoice();
countryListChoice1 = new ListChoice(countries1, new 
PropertyModel(this,
countries1), testlist, clc.getRenderer());
countryListChoice1.setOutputMarkupId(true);
add(countryListChoice1);

countryListChoice.add(new 
MyAjaxFormComponentUpdatingBehavior(onChange){

/* (non-Javadoc)
 * @see
com.smartbooking.wicket.component.MyAjaxFormComponentUpdatingBehavior#onUpdate(org.apache.wicket.ajax.AjaxRequestTarget)
 */
@Override
protected void onUpdate(AjaxRequestTarget target) {
// TODO Auto-generated method stub
if(countryListChoice.getModelObject() != null){
testlist.clear();
String c = 
countryListChoice.getModelObjectAsString();
System.out.println(\n\nour c :  + c + \n\n);
testlist.add(c);
}else{
testlist.clear();
testlist.add(xing said null);
System.out.println(\n\n really null!!! 
\n\n);
}
target.addComponent(countryListChoice1);
}});
}
/**
 * @return the countries
 */
public String getCountries() {
return countries;
}

/**
 * @param countries the countries to set
 */
public void setCountries(String countries) {
this.countries = countries;
}

/**
 * @return the countries1
 */
public String getCountries1() {
return countries1;
}

/**
 * @param countries1 the countries1 to set
 */
public void setCountries1(String countries1) {
this.countries1 = countries1;
}

-- 
View this message in context: 
http://www.nabble.com/AjaxFormComponentUpdatingBehavior-problem-tp20032008p20032008.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: state of new ajax impl in 1.5

2008-10-17 Thread Matej Knopp
Whe ajaxng has package has been moved to _wicket package together with
some new requestcycle stuff (that is not integrated in wicket and
probably wont' be for quite some time).

I don't think ajaxng will make it to 1.4. It's not only about that
ajax implementation (that should be pretty stable), it's about the
rest of wicket components which needs to be updated to use th new ajax
implementation. So it will get to trunk when trunk becomes 1.5.

Anyway, I can't really recommend using it - it really is
*experimental*. The API can change at any time. If you are worried
about imports going to change it's most definitely not a good idea for
you to use the experimental branch.

-Matej

On Fri, Oct 17, 2008 at 1:58 PM, Martijn Dashorst
[EMAIL PROTECTED] wrote:
 Or maybe if the implementation is really rock solid, we *might*
 introduce it into 1.4, but I wouldn't bet on it.

 Martijn

 On Fri, Oct 17, 2008 at 1:58 PM, Martijn Dashorst
 [EMAIL PROTECTED] wrote:
 once 1.4 has been made final and has received it first or second
 maintenance release. Then trunk will move to wicket 1.5, and 1.4 will
 become our maintenance project.

 Martijn

 On Fri, Oct 17, 2008 at 12:59 PM, Martin Voigt [EMAIL PROTECTED] wrote:
 Hi,

 I'm currently building an ajax-heavy application and I'm using the new
 implementation Matej is currently working on:

 http://cwiki.apache.org/WICKET/wicket-15-ajax.html

 I've noticed the *.ajaxng package is now *.ajax again in the
 experimental repository
 (http://svn.apache.org/repos/asf/wicket/sandbox/knopp/experimental),
 so it is now possible to write code using Matej's version without the
 need to resolve import conflicts later (that's what I'm doing atm). My
 question is, what is the state of the new implementation and when will
 it make it into the trunk?

 Regards,
 Martin

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]





 --
 Become a Wicket expert, learn from the best: http://wicketinaction.com
 Apache Wicket 1.3.4 is released
 Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.




 --
 Become a Wicket expert, learn from the best: http://wicketinaction.com
 Apache Wicket 1.3.4 is released
 Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: tomcat doesnt work with wicket

2008-10-17 Thread Erik van Oosten

Some more details please.


overseastars wrote:

Hi all

I have this strange problem now. If i use jetty, everything is find. But if
I wanna run wicket application on tomcat in eclipse, it doesnt work. Any
ideas to solve this? Do I need to do sth with tomcat??? I'm a newbie. So
is the question..


  


--
Erik van Oosten
http://www.day-to-day-stuff.blogspot.com/


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: tomcat doesnt work with wicket

2008-10-17 Thread Piller Sébastien

tomcat does work fine with wicket, your problem is elsewhere.

look at the logs, at the console, reinstall, test with a simple hello 
world project, ...


but not tomcat neither wicket are responsible

overseastars a écrit :

Hi all

I have this strange problem now. If i use jetty, everything is find. But if
I wanna run wicket application on tomcat in eclipse, it doesnt work. Any
ideas to solve this? Do I need to do sth with tomcat??? I'm a newbie. So
is the question..


  



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: tomcat doesnt work with wicket

2008-10-17 Thread Erik van Oosten
Actually, there are some weird things with Tomcat. For example 
https://issues.apache.org/jira/browse/WICKET-847.



Piller Sébastien wrote:

tomcat does work fine with wicket, your problem is elsewhere.

look at the logs, at the console, reinstall, test with a simple hello 
world project, ...


but not tomcat neither wicket are responsible

overseastars a écrit :

Hi all

I have this strange problem now. If i use jetty, everything is find. 
But if

I wanna run wicket application on tomcat in eclipse, it doesnt work. Any
ideas to solve this? Do I need to do sth with tomcat??? I'm a 
newbie. So

is the question..


  



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




--
Erik van Oosten
http://www.day-to-day-stuff.blogspot.com/


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Wizard with CompoundPropertyModel

2008-10-17 Thread jensiator

Hi Mattias
I have a solution where I sending the a ordenary Model into the WizardStep
constuctors and it work well. 
I thought that the CompoundPropertyModel should nest itself down the
children so you didn't have to send it down the chain. 
I think that in your case, you could change the CompoundPropertyModel to a
Model and it work to.
Jens Alenius
-- 
View this message in context: 
http://www.nabble.com/Wizard-with-CompoundPropertyModel-tp20029043p20032204.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



SV: BRIX (Wicket and Jackrabbit)

2008-10-17 Thread Nayak Vishal

Thanks Igor. Thats a very good idea and a very clear picture.  Now i
know which way to go :) 

Regards
Vishal



-Opprinnelig melding-
Fra: Igor Vaynberg [mailto:[EMAIL PROTECTED] 
Sendt: 16. oktober 2008 17:52
Til: users@wicket.apache.org
Emne: Re: BRIX (Wicket and Jackrabbit)

currently brix only runs with jackrabbit, some extra work will be needed
to get it to work with alfresco. brix uses jcr workspaces extensively
and until jcr2.0 there is no standard method for doing this. so brix
uses jackrabbit-specific code to accomplish this. if you want to use it
with alfresco you will have to implement your own WorksapceManager that
is specific to alfresco's workspace management api.

anyways, this is better taken to the brix google discussion.

-igor

On Thu, Oct 16, 2008 at 12:20 AM, Nayak Vishal [EMAIL PROTECTED] wrote:



 I am trying to run the brix demo.

 i have configured alfresco in my local system(which will me moved to 
 some central repository later).

 I have also installed RMI extension to it. So that i can access via
rmi.


 I am facing problems configuring it with alfresco in the 
 application.properties.

 Does any one have any idea what should go in 
 brixdemo.workspaceManagerUrl of application.properties.

 What should this workspace manager url contain ???




 application.properties

 brixdemo.jcr.defaultWorkspace = brix-demo-site 
 brixdemo.jcr.login=admin brixdemo.jcr.password=admin 
 brixdemo.jcr.url=rmi://localhost:1099/javaContentRepository

 # url pointing to workspace manager implementation # leave empty for 
 filesystem repositories, # for rmi backed repositories provide the rmi

 url 
 brixdemo.workspaceManagerUrl=rmi://localhost:1099/javaContentRepositor
 y

 brixdemo.httpPort=8082
 brixdemo.httpsPort=8443

 Regards
 Vishal Nayak

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: tomcat doesnt work with wicket

2008-10-17 Thread overseastars


I dont know exactly the problem. But I went to the logs folder under tomcat
home folder and find nothing there. no files.actually.  also according to
the console on eclipse, I think it doesnt start the wicket development model
at all.



overseastars wrote:
 
 
 Hi all
 
 I have this strange problem now. If i use jetty, everything is find. But
 if I wanna run wicket application on tomcat in eclipse, it doesnt work.
 Any ideas to solve this? Do I need to do sth with tomcat??? I'm a
 newbie. So is the question..
 
 
 

-- 
View this message in context: 
http://www.nabble.com/tomcat-doesnt-work-with-wicket-tp20032073p20032357.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: tomcat doesnt work with wicket

2008-10-17 Thread Swanthe Lindgren
Did you add the wicket application to you tomcat server instance in 
eclipse? Are you aware that eclipse by default does not deploy to your 
tomcat install folder but to a folder in your workspace 
(D:\workspace\.metadata\.plugins\org.eclipse.wst.server.core)


//Swanthe

overseastars wrote:

I dont know exactly the problem. But I went to the logs folder under tomcat
home folder and find nothing there. no files.actually.  also according to
the console on eclipse, I think it doesnt start the wicket development model
at all.



overseastars wrote:
  

Hi all

I have this strange problem now. If i use jetty, everything is find. But
if I wanna run wicket application on tomcat in eclipse, it doesnt work.
Any ideas to solve this? Do I need to do sth with tomcat??? I'm a
newbie. So is the question..






  




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: state of new ajax impl in 1.5

2008-10-17 Thread Martin Voigt
Thanks for the responses.

I don't mind api changes at the current state of our project, I just
wanted to avoid doing a larger refactoring just before our release is
due. Since we're already using the wicket trunk for other apps I will
stay with ajaxng for the time beeing, as it's move to trunk is
happening in the foreseeable future. We would have to replicate a lot
of stuff that's already being added, like preconditions.

Regards,
Martin

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: DHTML DnD best practice?

2008-10-17 Thread Neil McT

Thanks for the reply. This is just the starter-for-ten I was looking for.
I also found one of the London Wicket groups presentations (
http://londonwicket.org/content/LondonWicket-ListEditor.pdf
http://londonwicket.org/content/LondonWicket-ListEditor.pdf ) to be of great
use. 

It actually became less about the immediate problem and more about a gap in
my (albeit basic) understanding of Wicket. Having messed around for the last
couple of hours, given some of the pointers on here, I am feeling far more
comfortable with the Ajax / dhtml side of wicket.

Cheers.



reiern70 wrote:
 
 Sorry, maybe I do not fully understand what you want to do but why won't
 you
 update the state of the server once a div is dropped.
 I have my own components that use drag and drop (e.g. tables with
 draggable/dropable columns) and what I do at the JavaScript side is
 something like:
 XXX.onDrop() {
  var url = this.url+ 'sourceId=' + parseInt(td.style.width) +
 'targetId=resize' + 'number=' + this.number
  wicketAjaxGet(url);
 }
 ...
 

-- 
View this message in context: 
http://www.nabble.com/DHTML-DnD-best-practice--tp20010633p20033321.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: tomcat doesnt work with wicket

2008-10-17 Thread Nav Che
You need to initialize the logger, see if u r tomcat conf directory as any
log4j property fileI am running wicket on tomcat with eclipse and i dont
see any issues.

//Nav

On Fri, Oct 17, 2008 at 8:32 AM, overseastars [EMAIL PROTECTED] wrote:



 I dont know exactly the problem. But I went to the logs folder under tomcat
 home folder and find nothing there. no files.actually.  also according to
 the console on eclipse, I think it doesnt start the wicket development
 model
 at all.



 overseastars wrote:
 
 
  Hi all
 
  I have this strange problem now. If i use jetty, everything is find. But
  if I wanna run wicket application on tomcat in eclipse, it doesnt work.
  Any ideas to solve this? Do I need to do sth with tomcat??? I'm a
  newbie. So is the question..
 
 
 

 --
 View this message in context:
 http://www.nabble.com/tomcat-doesnt-work-with-wicket-tp20032073p20032357.html
  Sent from the Wicket - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




SV: BRIX (Wicket and Jackrabbit)

2008-10-17 Thread Nayak Vishal

Could you please give me some clue or some way what changes i need to do
for alfresco.

Is it a lot of code changes which are required ? Or is it a small piece
of code which needs changes. 


Regards
Vishal Nayak



-Opprinnelig melding-
Fra: Igor Vaynberg [mailto:[EMAIL PROTECTED] 
Sendt: 16. oktober 2008 17:52
Til: users@wicket.apache.org
Emne: Re: BRIX (Wicket and Jackrabbit)

currently brix only runs with jackrabbit, some extra work will be needed
to get it to work with alfresco. brix uses jcr workspaces extensively
and until jcr2.0 there is no standard method for doing this. so brix
uses jackrabbit-specific code to accomplish this. if you want to use it
with alfresco you will have to implement your own WorksapceManager that
is specific to alfresco's workspace management api.

anyways, this is better taken to the brix google discussion.

-igor

On Thu, Oct 16, 2008 at 12:20 AM, Nayak Vishal [EMAIL PROTECTED] wrote:



 I am trying to run the brix demo.

 i have configured alfresco in my local system(which will me moved to 
 some central repository later).

 I have also installed RMI extension to it. So that i can access via
rmi.


 I am facing problems configuring it with alfresco in the 
 application.properties.

 Does any one have any idea what should go in 
 brixdemo.workspaceManagerUrl of application.properties.

 What should this workspace manager url contain ???




 application.properties

 brixdemo.jcr.defaultWorkspace = brix-demo-site 
 brixdemo.jcr.login=admin brixdemo.jcr.password=admin 
 brixdemo.jcr.url=rmi://localhost:1099/javaContentRepository

 # url pointing to workspace manager implementation # leave empty for 
 filesystem repositories, # for rmi backed repositories provide the rmi

 url 
 brixdemo.workspaceManagerUrl=rmi://localhost:1099/javaContentRepositor
 y

 brixdemo.httpPort=8082
 brixdemo.httpsPort=8443

 Regards
 Vishal Nayak

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: IP address range locking

2008-10-17 Thread John
hi, yes that makes a lot of sense. unfortunately i have to implement
it in the application in this instance.  i need to alter the ranges at
runtime with as little complexity as possible... anything that acts
outside the application makes everything more complicated than i can
handle right now...  also it would be nice to be able to set different
IP ranges for different users in the end so i can allow certain people
to log in from their home network.

because of this, i guess this must be in the auth stage somewhere.
maybe the login page is the best place for it primarily but i need to
find some way to intercept the cookie check as well?  what do you
think?

John



On Fri, Oct 17, 2008 at 12:56 PM, Martijn Dashorst
[EMAIL PROTECTED] wrote:
 you should do this on httpd server level or even firewall level.

 In our app we restrict access to specific private pages to just our
 corporate IP using mod_jk with locationMatch ... rules.

 Martijn

 On Fri, Oct 17, 2008 at 1:25 PM, John [EMAIL PROTECTED] wrote:
 hi, i am implementing IP address range locking for my application as i
 have a number of offices that need to access the application and
 everyone else needs to be kept out.

 i am using WicketAuthRoles and have placed the code into my login
 page... before attempting authentication i match the client's IP
 against a number of defined ranges that i deem safe so can throw
 incorrect connections out with an error(message here) and it will
 redisplay the login page with the message in the FeedbackPanel.

 i am thinking however that this is not really correct... really the IP
 range locking should be more of a system thing rather than a component
 thing.  i want my users to be able to stay logged in so have a cookie
 holding auth info but this means they will bypass the login screen if
 they take their laptops to a different network which is not good.

 it sounds like i need to put the code into the Session or something
 but that would mean i could never throw a message back to the user to
 say what the problem is as the error page would have to come from
 me.  i guess i could have a single JSP page holding the error message
 and throw the user out of the Wicket application into this page but
 i'd prefer to keep everything inside my Wicket application if at all
 possible...

 does anyone have any ideas on how best to handle this?

 John

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]





 --
 Become a Wicket expert, learn from the best: http://wicketinaction.com
 Apache Wicket 1.3.4 is released
 Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: BRIX (Wicket and Jackrabbit)

2008-10-17 Thread Igor Vaynberg
like i said, this discussion is better taken to the brix discussion group.
there is no need to pollute this list with noise.

-igor

On Fri, Oct 17, 2008 at 7:41 AM, Nayak Vishal [EMAIL PROTECTED] wrote:


 Could you please give me some clue or some way what changes i need to do
 for alfresco.

 Is it a lot of code changes which are required ? Or is it a small piece
 of code which needs changes.


 Regards
 Vishal Nayak



 -Opprinnelig melding-
 Fra: Igor Vaynberg [mailto:[EMAIL PROTECTED]
 Sendt: 16. oktober 2008 17:52
 Til: users@wicket.apache.org
 Emne: Re: BRIX (Wicket and Jackrabbit)

 currently brix only runs with jackrabbit, some extra work will be needed
 to get it to work with alfresco. brix uses jcr workspaces extensively
 and until jcr2.0 there is no standard method for doing this. so brix
 uses jackrabbit-specific code to accomplish this. if you want to use it
 with alfresco you will have to implement your own WorksapceManager that
 is specific to alfresco's workspace management api.

 anyways, this is better taken to the brix google discussion.

 -igor

 On Thu, Oct 16, 2008 at 12:20 AM, Nayak Vishal [EMAIL PROTECTED] wrote:

 
 
  I am trying to run the brix demo.
 
  i have configured alfresco in my local system(which will me moved to
  some central repository later).
 
  I have also installed RMI extension to it. So that i can access via
 rmi.
 
 
  I am facing problems configuring it with alfresco in the
  application.properties.
 
  Does any one have any idea what should go in
  brixdemo.workspaceManagerUrl of application.properties.
 
  What should this workspace manager url contain ???
 
 
 
 
  application.properties
 
  brixdemo.jcr.defaultWorkspace = brix-demo-site
  brixdemo.jcr.login=admin brixdemo.jcr.password=admin
  brixdemo.jcr.url=rmi://localhost:1099/javaContentRepository
 
  # url pointing to workspace manager implementation # leave empty for
  filesystem repositories, # for rmi backed repositories provide the rmi

  url
  brixdemo.workspaceManagerUrl=rmi://localhost:1099/javaContentRepositor
  y
 
  brixdemo.httpPort=8082
  brixdemo.httpsPort=8443
 
  Regards
  Vishal Nayak
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




Re: Wicket versus Spring MVC

2008-10-17 Thread Igor Vaynberg
didnt put it anywhere, didnt think it was anything special. i said the same
thing plenty of times in the past.

-igor

On Fri, Oct 17, 2008 at 10:41 AM, Nino Saturnino Martinez Vazquez Wael 
[EMAIL PROTECTED] wrote:

 Good mail Igor.

 Did you place it on the wiki, or a blog somewhere? It's very sound
 arguments. Especially the part about statefull/stateless web applications.



 Igor Vaynberg wrote:

 here is really what it comes down to:

 springmvc/struts/etc are geared towards building stateless applications.
 building something statefull is hard in these frameworks because the
 burden
 of having to juggle state is on you and it is hard/impossible to get right
 when doing manually.

 wicket is geared towrads building stateful applications. it takes care of
 the state juggling so you dont have to. it is, however, hard to build
 stateless applications in wicket because you have to take care to use only
 stateless components - and even then you are back to having to juggle
 state
 yourself.

 an important, but peripheral point, is that wicket takes full advantage of
 OOP. frameworks like springmvc/struts are highly procedural, they give you
 a
 hierarchy and you usually just extend it one level deep. in wicket you
 have
 to build custom class hierarchies so you can factor out all the common
 bits
 and pieces of your application. do your developers know how to do this
 properly? if you showed your developers the repeater hierarchy of
 repeatingview through datatable and asked them to choose a base class for
 their usecase would they complain that there are too many classes to
 choose
 from? this is quiet a common complaint on this list by people who come
 from
 struts and friends :)

 so in the end you have to look at the kind of application you are building
 and the type of developers you have, and pick the framework based on that.

 -igor

 On Thu, Oct 16, 2008 at 12:28 PM, Richard Allen
 [EMAIL PROTECTED]wrote:



 Hello,

 We have stateful, desktop-like Web applications based on Struts 1.x. We
 want
 to migrate them to a modern Java Web framework so we are trying to choose
 what framework to use. The decision will be left up to myself and another
 colleague with buy-in from other key people.

 The other colleague wants to use Spring MVC, which she just received
 training on from SpringSource. I want to use a component-based framework
 like Wicket. I think Wicket looks great, so I have been telling her that
 I
 think we should consider using it instead of Spring MVC. I think it is a
 better fit for the type of applications we produce.

 My colleague emailed the instructor from SpringSource and asked what he
 thought of us migrating to Wicket instead of Spring MVC. His response is
 below with my comments inlined. I would appreciate any convincing
 comments
 from Wicket experts.

 Thanks,
 Richard Allen

 Rich,

 Some background on what I am forwarding along...

 During last week's Spring Rich Client class I took full advantage of the
 fact I had unlimited access to a SpringSource consultant/instructor.

 When he asked people why they were there, I brought up that we were
 transitioning from Struts 1.X to something else, and the likely
 candidates were Spring MVC and Wicket.

 Many of my questions to him over the course of the 4 days were focused
 on that particular topic.

 And when he offered up his email address for contacts after the
 class, I wrote it down and got back in touch with him this week (getting
 our money's worth out of the face time, I like to think!) with some
 well-deserved adulation for the course, some questions about the Spring
 3.0 release schedule and finally, a summary of the Spring MVC vs. Wicket
 decision we face, trying to synthesize what I took away from the class.

 ***

 Specifically, in my email, I asked the question that you, an
 experienced web developer, posed to me about moving our Struts app to
 another MVC oriented framework (Spring MVC) vs. moving to a component
 framework (Wicket).  What I heard you say in so many words earlier this
 week, was:

   Why switch to something that is a little better than Struts 1, such
 as Spring MVC,  instead of moving to something altogether better like
 Wicket?

 And that is indeed a good question that cuts to the heart of the matter
 we must decide going forward.

 We have a lot invested in MVC technology right now, and our developers
 understand this approach. My instincts and experience on other
 migrations say that a transition from Struts to Spring MVC will be an
 easier migration than a movement to a different approach than Wicket.

  Wicket *is* an MVC framework, like Java Swing is an MVC framework. I
 would
 argue that Wicket is *more* of an MVC framework in the classical sense
 than
 Struts or Spring MVC. There is no doubt that Wicket absolutely does a
 better
 job of separation of concerns (one of the key philosophies behind MVC)
 than
 any JSP/Velocity/Freemarker based framework. If developers are
 comfortable
 in Java 

Re: Re: Wicket versus Spring MVC

2008-10-17 Thread bruno . borges

Igor, I agree with Nino.

What about posting something like that on wicketinaction.com? :-)

Cheers,
Bruno

On Oct 17, 2008 2:41pm, Nino Saturnino Martinez Vazquez Wael  
[EMAIL PROTECTED] wrote:

Good mail Igor.



Did you place it on the wiki, or a blog somewhere? It's very sound  

arguments. Especially the part about statefull/stateless web applications.






Igor Vaynberg wrote:


here is really what it comes down to:



springmvc/struts/etc are geared towards building stateless applications.

building something statefull is hard in these frameworks because the  

burden


of having to juggle state is on you and it is hard/impossible to get right

when doing manually.



wicket is geared towrads building stateful applications. it takes care of

the state juggling so you dont have to. it is, however, hard to build

stateless applications in wicket because you have to take care to use only

stateless components - and even then you are back to having to juggle  

state


yourself.



an important, but peripheral point, is that wicket takes full advantage of

OOP. frameworks like springmvc/struts are highly procedural, they give  

you a


hierarchy and you usually just extend it one level deep. in wicket you  

have


to build custom class hierarchies so you can factor out all the common  

bits


and pieces of your application. do your developers know how to do this

properly? if you showed your developers the repeater hierarchy of

repeatingview through datatable and asked them to choose a base class for

their usecase would they complain that there are too many classes to  

choose


from? this is quiet a common complaint on this list by people who come  

from


struts and friends :)



so in the end you have to look at the kind of application you are building

and the type of developers you have, and pick the framework based on that.



-igor



On Thu, Oct 16, 2008 at 12:28 PM, Richard Allen

[EMAIL PROTECTED]wrote:






Hello,



We have stateful, desktop-like Web applications based on Struts 1.x. We

want

to migrate them to a modern Java Web framework so we are trying to choose

what framework to use. The decision will be left up to myself and another

colleague with buy-in from other key people.



The other colleague wants to use Spring MVC, which she just received

training on from SpringSource. I want to use a component-based framework

like Wicket. I think Wicket looks great, so I have been telling her that I

think we should consider using it instead of Spring MVC. I think it is a

better fit for the type of applications we produce.



My colleague emailed the instructor from SpringSource and asked what he

thought of us migrating to Wicket instead of Spring MVC. His response is

below with my comments inlined. I would appreciate any convincing comments

from Wicket experts.



Thanks,

Richard Allen



Rich,



Some background on what I am forwarding along...



During last week's Spring Rich Client class I took full advantage of the

fact I had unlimited access to a SpringSource consultant/instructor.



When he asked people why they were there, I brought up that we were

transitioning from Struts 1.X to something else, and the likely

candidates were Spring MVC and Wicket.



Many of my questions to him over the course of the 4 days were focused

on that particular topic.



And when he offered up his email address for contacts after the

class, I wrote it down and got back in touch with him this week (getting

our money's worth out of the face time, I like to think!) with some

well-deserved adulation for the course, some questions about the Spring

3.0 release schedule and finally, a summary of the Spring MVC vs. Wicket

decision we face, trying to synthesize what I took away from the class.



***



Specifically, in my email, I asked the question that you, an

experienced web developer, posed to me about moving our Struts app to

another MVC oriented framework (Spring MVC) vs. moving to a component

framework (Wicket). What I heard you say in so many words earlier this

week, was:



Why switch to something that is a little better than Struts 1, such

as Spring MVC, instead of moving to something altogether better like

Wicket?



And that is indeed a good question that cuts to the heart of the matter

we must decide going forward.



We have a lot invested in MVC technology right now, and our developers

understand this approach. My instincts and experience on other

migrations say that a transition from Struts to Spring MVC will be an

easier migration than a movement to a different approach than Wicket.



Wicket *is* an MVC framework, like Java Swing is an MVC framework. I would

argue that Wicket is *more* of an MVC framework in the classical sense  

than


Struts or Spring MVC. There is no doubt that Wicket absolutely does a

better

job of separation of concerns (one of the key philosophies behind MVC)  

than


any JSP/Velocity/Freemarker based framework. If developers 

Re: Wizard with CompoundPropertyModel

2008-10-17 Thread Nino Saturnino Martinez Vazquez Wael




Short mail:


   public EventDetailsStep() {

   setTitleModel(new ResourceModel(eventdetails.title));
   setSummaryModel(new StringResourceModel(eventdetails.summary,
   this, new ModelEvent(event)));

   add(new RequiredTextFieldString(name).setLabel(new 
ModelString(Eventname)));

   add(new TextAreaString(description).setRequired(true));
   add(new DateField(date).setRequired(true));
   add(new 
TextFieldString(location.name).setRequired(true).setLabel(new 
ModelString(address)));

^^^
Nested property.

   public NewEventWizard(String id) {
   super(id);
   // create a blank event
   event = new Event();

   setDefaultModel(new CompoundPropertyModelEvent(event));
   WizardModel model = new WizardModel();

This is working for me...



jensiator wrote:

Hi everyone
Time for a new question. This time its about the wizard component. I have
already done a couple of wizards and they work well. I have looked at the
example in wicket and of course I have changed it a little bit. I dont want
the steps do be static private classes so in my solution I send in the Model
that contains the BackingBean in the constructor of the wizardSteps. And it
works. Put in one case I Noticed that all the WizardSteps uses the same
backingbean, so I started to think about using a compoundpropertymodel that
I set to the Wizard in its constuctor. Something like this:
public MywizardConstuctor(String id){
   super(id);
   CompoundPropertyModelBackingBean formModel = new
CompoundPropertyModelBackingBean(new BackingBean());
setDefaultModel(formModel);
WizardModel wizardmodel = new WizardModel();
wizardmodel.add(new WizardStep1());
wizardmodel.add(new WizardStep2());
init(wizardmodel);
}
Okey, in the WizardSteps constuctors I want to bind some TextFields to the
right property. Like this:
public WizardStep1(){
   TextField firstnameTF = new TextFieldString(firstName);
}
and it works well. BUT, this binding forces me to use the same markupid as
the backingbean property. Could be dangerous when different developers work
on the code. Someone might fail to notice this. I personly like when use the
propertmodel parameter in the TextField because it realy shows what your
doing. 
TextField firstnameTF = new TextFieldString(firstName,new

PropertyModelString(getDefaultModel(), nestedobj.firstname));
But I cant make it work! The former TextField code works, but the one with
getDeafultModel() doesnt. The defaultModel is null. I tryid to
findParent(Wizard.class).getDefaultModel() but it failes, probably because
the Step has not been added to the WizardModel yet.
Can anyone explain to me why 'new TextFieldString(firstName)' works?
Jens Alenius


  


--
-Wicket for love

Nino Martinez Wael
Java Specialist @ Jayway DK
http://www.jayway.dk
+45 2936 7684


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: DHTML DnD best practice?

2008-10-17 Thread Ernesto Reinaldo Barreiro

Nice presentation: I didn't know about it.

Cheers,

Ernesto

Neil McT wrote:

Thanks for the reply. This is just the starter-for-ten I was looking for.
I also found one of the London Wicket groups presentations (
http://londonwicket.org/content/LondonWicket-ListEditor.pdf
http://londonwicket.org/content/LondonWicket-ListEditor.pdf ) to be of great
use. 


It actually became less about the immediate problem and more about a gap in
my (albeit basic) understanding of Wicket. Having messed around for the last
couple of hours, given some of the pointers on here, I am feeling far more
comfortable with the Ajax / dhtml side of wicket.

Cheers.



reiern70 wrote:
  

Sorry, maybe I do not fully understand what you want to do but why won't
you
update the state of the server once a div is dropped.
I have my own components that use drag and drop (e.g. tables with
draggable/dropable columns) and what I do at the JavaScript side is
something like:
XXX.onDrop() {
 var url = this.url+ 'sourceId=' + parseInt(td.style.width) +
'targetId=resize' + 'number=' + this.number
 wicketAjaxGet(url);
}
...




  




Re: have anyone tried empire-DB?

2008-10-17 Thread Nino Saturnino Martinez Vazquez Wael

Hehe, yeah more simple..

But I find that with hibernate it's more than just sessions. If you are 
using the query api, you'll soon find yourself in trouble if doing 
advanced queries and pagination..


marco.behler wrote:

I gave empireDB a quick look a while ago and it looks interesting. Besides
JPersist I also stumbled upon JaQu
(http://www.h2database.com/html/jaqu.html), which is still in its infancy.
I'm sure there's more LINQ-like clones out there.

As far as I'm concerned, I'd really like to have a thorough look at stuff
like db4o or couchDB, especially performance wise. I did Hibernate/iBatis in
the past and am currently working on a project with iBatis again. Both have
advantages and disadvantages and I don't love either. I would rather not
have to care about tables, objects,the mighty mismatch (and in Hibernate's
case the mighty session) anymore, but just shove that damn thing into an
object database ;)

*hides from enraged DBAs and their optimised queries*



Nino.Martinez wrote:
  

Yeah seems to be nice...

At WUG DK we discussed. That if using stuff like hibernate, for simple 
cruds it's nice but if you have a complex object graph it becomes very 
troublesome to use (if you use cascade all etc.)..


Ames, Tim wrote:


Looks like it has a lot in common with JPersist.  That is what I have
been using. No XML, all POJO.

-Original Message-
From: Nino Saturnino Martinez Vazquez Wael
[mailto:[EMAIL PROTECTED]
Sent: Thursday, October 16, 2008 11:28 AM
To: users@wicket.apache.org
Subject: have anyone tried empire-DB?

So have you tried it with wicket?

http://incubator.apache.org/empire-db/

--
-Wicket for love

Nino Martinez Wael
Java Specialist @ Jayway DK
http://www.jayway.dk
+45 2936 7684


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_

EMAIL CONFIDENTIALITY NOTICE 

This Email message, and any attachments, may contain confidential 
patient health information that is legally protected. This information 
is intended only for the use of the individual or entity named above. 
The authorized recipient of this information is prohibited from
disclosing 
this information to any other party unless required to do so by law 
or regulation and is required to destroy the information after its stated 
need has been fulfilled. If you are not the intended recipient, you are 
hereby notified that any disclosure, copying, distribution, or action 
taken in reliance on the contents of this message is strictly prohibited. 

If you have received this information in error, please notify 
the sender immediately by replying to this message and delete the 
message from your system.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

  
  

--
-Wicket for love

Nino Martinez Wael
Java Specialist @ Jayway DK
http://www.jayway.dk
+45 2936 7684


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






  


--
-Wicket for love

Nino Martinez Wael
Java Specialist @ Jayway DK
http://www.jayway.dk
+45 2936 7684


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: have anyone tried empire-DB?

2008-10-17 Thread Nino Saturnino Martinez Vazquez Wael

This is interesting:

(JaQu) Provide API level compatibility with JPA (so that JaQu can be 
used as an extension of JPA).


But I think something similar are on its way for JPA 2.0..?

marco.behler wrote:

I gave empireDB a quick look a while ago and it looks interesting. Besides
JPersist I also stumbled upon JaQu
(http://www.h2database.com/html/jaqu.html), which is still in its infancy.
I'm sure there's more LINQ-like clones out there.

As far as I'm concerned, I'd really like to have a thorough look at stuff
like db4o or couchDB, especially performance wise. I did Hibernate/iBatis in
the past and am currently working on a project with iBatis again. Both have
advantages and disadvantages and I don't love either. I would rather not
have to care about tables, objects,the mighty mismatch (and in Hibernate's
case the mighty session) anymore, but just shove that damn thing into an
object database ;)

*hides from enraged DBAs and their optimised queries*



Nino.Martinez wrote:
  

Yeah seems to be nice...

At WUG DK we discussed. That if using stuff like hibernate, for simple 
cruds it's nice but if you have a complex object graph it becomes very 
troublesome to use (if you use cascade all etc.)..


Ames, Tim wrote:


Looks like it has a lot in common with JPersist.  That is what I have
been using. No XML, all POJO.

-Original Message-
From: Nino Saturnino Martinez Vazquez Wael
[mailto:[EMAIL PROTECTED]
Sent: Thursday, October 16, 2008 11:28 AM
To: users@wicket.apache.org
Subject: have anyone tried empire-DB?

So have you tried it with wicket?

http://incubator.apache.org/empire-db/

--
-Wicket for love

Nino Martinez Wael
Java Specialist @ Jayway DK
http://www.jayway.dk
+45 2936 7684


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_

EMAIL CONFIDENTIALITY NOTICE 

This Email message, and any attachments, may contain confidential 
patient health information that is legally protected. This information 
is intended only for the use of the individual or entity named above. 
The authorized recipient of this information is prohibited from
disclosing 
this information to any other party unless required to do so by law 
or regulation and is required to destroy the information after its stated 
need has been fulfilled. If you are not the intended recipient, you are 
hereby notified that any disclosure, copying, distribution, or action 
taken in reliance on the contents of this message is strictly prohibited. 

If you have received this information in error, please notify 
the sender immediately by replying to this message and delete the 
message from your system.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

  
  

--
-Wicket for love

Nino Martinez Wael
Java Specialist @ Jayway DK
http://www.jayway.dk
+45 2936 7684


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






  


--
-Wicket for love

Nino Martinez Wael
Java Specialist @ Jayway DK
http://www.jayway.dk
+45 2936 7684


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Wicket versus Spring MVC

2008-10-17 Thread Nino Saturnino Martinez Vazquez Wael
And if you like to repeat yourself fine.. Otherwise put it somewhere 
people can find it like on the wiki:) I do think theres a page for it..


Apparently I didnt pick it up the other times..

Oh and have a nice weekend:)

Igor Vaynberg wrote:

didnt put it anywhere, didnt think it was anything special. i said the same
thing plenty of times in the past.
  
-igor


On Fri, Oct 17, 2008 at 10:41 AM, Nino Saturnino Martinez Vazquez Wael 
[EMAIL PROTECTED] wrote:

  

Good mail Igor.

Did you place it on the wiki, or a blog somewhere? It's very sound
arguments. Especially the part about statefull/stateless web applications.



Igor Vaynberg wrote:



here is really what it comes down to:

springmvc/struts/etc are geared towards building stateless applications.
building something statefull is hard in these frameworks because the
burden
of having to juggle state is on you and it is hard/impossible to get right
when doing manually.

wicket is geared towrads building stateful applications. it takes care of
the state juggling so you dont have to. it is, however, hard to build
stateless applications in wicket because you have to take care to use only
stateless components - and even then you are back to having to juggle
state
yourself.

an important, but peripheral point, is that wicket takes full advantage of
OOP. frameworks like springmvc/struts are highly procedural, they give you
a
hierarchy and you usually just extend it one level deep. in wicket you
have
to build custom class hierarchies so you can factor out all the common
bits
and pieces of your application. do your developers know how to do this
properly? if you showed your developers the repeater hierarchy of
repeatingview through datatable and asked them to choose a base class for
their usecase would they complain that there are too many classes to
choose
from? this is quiet a common complaint on this list by people who come
from
struts and friends :)

so in the end you have to look at the kind of application you are building
and the type of developers you have, and pick the framework based on that.

-igor

On Thu, Oct 16, 2008 at 12:28 PM, Richard Allen
[EMAIL PROTECTED]wrote:



  

Hello,

We have stateful, desktop-like Web applications based on Struts 1.x. We
want
to migrate them to a modern Java Web framework so we are trying to choose
what framework to use. The decision will be left up to myself and another
colleague with buy-in from other key people.

The other colleague wants to use Spring MVC, which she just received
training on from SpringSource. I want to use a component-based framework
like Wicket. I think Wicket looks great, so I have been telling her that
I
think we should consider using it instead of Spring MVC. I think it is a
better fit for the type of applications we produce.

My colleague emailed the instructor from SpringSource and asked what he
thought of us migrating to Wicket instead of Spring MVC. His response is
below with my comments inlined. I would appreciate any convincing
comments
from Wicket experts.

Thanks,
Richard Allen

Rich,

Some background on what I am forwarding along...

During last week's Spring Rich Client class I took full advantage of the
fact I had unlimited access to a SpringSource consultant/instructor.

When he asked people why they were there, I brought up that we were
transitioning from Struts 1.X to something else, and the likely
candidates were Spring MVC and Wicket.

Many of my questions to him over the course of the 4 days were focused
on that particular topic.

And when he offered up his email address for contacts after the
class, I wrote it down and got back in touch with him this week (getting
our money's worth out of the face time, I like to think!) with some
well-deserved adulation for the course, some questions about the Spring
3.0 release schedule and finally, a summary of the Spring MVC vs. Wicket
decision we face, trying to synthesize what I took away from the class.

***

Specifically, in my email, I asked the question that you, an
experienced web developer, posed to me about moving our Struts app to
another MVC oriented framework (Spring MVC) vs. moving to a component
framework (Wicket).  What I heard you say in so many words earlier this
week, was:

  Why switch to something that is a little better than Struts 1, such
as Spring MVC,  instead of moving to something altogether better like
Wicket?

And that is indeed a good question that cuts to the heart of the matter
we must decide going forward.

We have a lot invested in MVC technology right now, and our developers
understand this approach. My instincts and experience on other
migrations say that a transition from Struts to Spring MVC will be an
easier migration than a movement to a different approach than Wicket.

 Wicket *is* an MVC framework, like Java Swing is an MVC framework. I
would
argue that Wicket is *more* of an MVC framework in the classical sense
than
Struts or Spring MVC. There is no doubt that Wicket absolutely does 

Re: Problem serving images from resource folder named 'resources'

2008-10-17 Thread Nino Saturnino Martinez Vazquez Wael
Ak, did you use a key called : img/indicator.gif, looks like wicket 
are trying to lookup img as class.. Is it a packaged resource or? What I 
did for my icons where to generate a package for them so I had a 
javapackage called icons you could probablly do the same with your img.. 
And I used the icon.class as scope and preheater (it loads all the icons 
at startup).


ak wrote:

Hello Martijn,

I am sorry Martijn, by mistake I sent as a mail.
I am facing the problem with Wicket 1.3.0 and this time I have 'img'.

Sample error message:

SEVERE: unable to lazily register shared resource img/indicator.gif
java.lang.ClassNotFoundException: img
at
weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:286)
at
weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:259)
at
weblogic.utils.classloaders.ChangeAwareClassLoader.findClass(ChangeAwareClassLoader.java:54)

Any ideas where I could have gone wrong ??

Thanks
Andy


Martijn Dashorst wrote:
  

resources is a reserved path name for Wicket: shared resources from
the classpath are served from that path (e.g. wicket-ajax.js). rename
your folder to something else, or find a way to rename the wicket
reservation for resources to something else (should be possible
somewhere in one of the settings).

Martijn

On 3/13/08, Enrique Rodriguez [EMAIL PROTECTED] wrote:


Hi, wicket-users,

 I just upgraded several Wicket sites from 1.2.4 to 1.3.  I now have a
 problem where images in a folder called 'resources' won't appear.  In
 other words, I have a WAR source directory of 'src/main/webapp' which
 has images in a folder 'resources'.  My HTML then has images
 referenced by:

  resources/button.gif 


 Attempts to view these images result in error:

 ERROR [SharedResourceRequestTarget] shared resource button.gif not found

 I have other folders, such as 'src/main/webapp/[anything but
 'resources']' and images serve just fine out of those folders.  In
 fact, if I simply rename 'resources' to 'resources1' and update my
 HTML everything works.  The problem is I have 3 webapps and many
 images with this problem and, more importantly, a political issue with
 going back to the HTML designers if we can't use 'resources' as a
 folder name anymore.

 Interestingly, if I attempt to serve an image in a folder under
 'resources', such as 'resources/tabs/tab.gif' I get exception:

 ERROR [SharedResourceRequestTarget] unable to lazily register shared
 resource resources/tabs/tab.gif
 java.lang.ClassNotFoundException:  resources
 ... (SharedResourceRequestTarget:146)

 Is there a workaround so I can use the name 'resources'?  Perhaps a
 way to explicitly declare a resource path alias?

 Enrique

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


  

--
Buy Wicket in Action: http://manning.com/dashorst
Apache Wicket 1.3.1 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.1

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






  


--
-Wicket for love

Nino Martinez Wael
Java Specialist @ Jayway DK
http://www.jayway.dk
+45 2936 7684


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



GMAP2 strangeness

2008-10-17 Thread Nino Saturnino Martinez Vazquez Wael

Hi im expirirencing some stangestuff:

Caused by: java.lang.NullPointerException
   at wicket.contrib.gmap.api.GOverlay.getJSadd(GOverlay.java:62)
   at wicket.contrib.gmap.GMap2.getJSinit(GMap2.java:463)
   at wicket.contrib.gmap.GMap2.access$000(GMap2.java:59)
   at wicket.contrib.gmap.GMap2$1.renderHead(GMap2.java:147)
   at 
org.apache.wicket.behavior.AbstractHeaderContributor.renderHead(AbstractHeaderContributor.java:67)

   at org.apache.wicket.Component.renderHead(Component.java:2649)
   at org.apache.wicket.markup.html.panel.Panel.renderHead(Panel.java:138)
   at 
org.apache.wicket.markup.html.internal.HtmlHeaderContainer$1.component(HtmlHeaderContainer.java:223)
   at 
org.apache.wicket.MarkupContainer.visitChildren(MarkupContainer.java:861)
   at 
org.apache.wicket.MarkupContainer.visitChildren(MarkupContainer.java:876)
   at 
org.apache.wicket.MarkupContainer.visitChildren(MarkupContainer.java:901)
   at 
org.apache.wicket.markup.html.internal.HtmlHeaderContainer.renderHeaderSections(HtmlHeaderContainer.java:214)
   at 
org.apache.wicket.markup.html.internal.HtmlHeaderContainer.onComponentTagBody(HtmlHeaderContainer.java:138)

   at org.apache.wicket.Component.renderComponent(Component.java:2561)
   ... 35 more

code :

   ListGOverlay overlayList=new ArrayListGOverlay();
   overlayList.add(new GMarker(new 
GLatLng(eventModel.getObject().getLocation().getLatitude(),eventModel.getObject().getLocation().getLatitude(;
   GMap2 gmap=new 
GMap2(map,WicketApplication.gmapSerial,overlayList);


It works just fine if I call gmap.add...

--
-Wicket for love

Nino Martinez Wael
Java Specialist @ Jayway DK
http://www.jayway.dk
+45 2936 7684


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



GMAP2 non ajax?

2008-10-17 Thread Nino Saturnino Martinez Vazquez Wael
Are there a way to avoid the GMAP2 contrib to add ajax listeners, thus 
making it non ajax? I have some pages that only should display a map, 
nonclickable non moveable etc.


--
-Wicket for love

Nino Martinez Wael
Java Specialist @ Jayway DK
http://www.jayway.dk
+45 2936 7684


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: GMAP2 non ajax?

2008-10-17 Thread bruno . borges
I'm not sure if GMap2 has that option, but if not, you could just put plain  
GMap code and provide the location with some hidden Label or a small  
component to do that.


On Oct 17, 2008 5:22pm, Nino Saturnino Martinez Vazquez Wael  
[EMAIL PROTECTED] wrote:
Are there a way to avoid the GMAP2 contrib to add ajax listeners, thus  
making it non ajax? I have some pages that only should display a map,  
nonclickable non moveable etc.




--

-Wicket for love



Nino Martinez Wael

Java Specialist @ Jayway DK

http://www.jayway.dk

+45 2936 7684





-

To unsubscribe, e-mail: [EMAIL PROTECTED]

For additional commands, e-mail: [EMAIL PROTECTED]





retricted AutoCompleteTextField

2008-10-17 Thread m_salman

Hi,

I am really happy with what wicket has allowed me to do with Ajax and all
that.  I have just implemented an AutoCompleteTextfield.  It is very nice
but I would like to improve it so that the user is restricted to items in
the list.  So, the list is shown when the user types the first one or two
characters (I have done that) and the list changes as the user keeps on
typing.  But in the end if the user types some thing that is not part of the
list then the field should stop him from entering anything.  So it should be
a restricted AutoCompleteTextfield or may be a DropDown that allows the user
to enter some data before the list is shown.  

Also how can I use objects with name, id in the list so that I get the
selected object?

Any advice about these will be appreciated.   

Thanks,

-Mohammad
-- 
View this message in context: 
http://www.nabble.com/retricted-AutoCompleteTextField-tp20043898p20043898.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: retricted AutoCompleteTextField

2008-10-17 Thread Igor Vaynberg
maybe this can help, havent tried it myself

https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-objectautocomplete/

-igor

On Fri, Oct 17, 2008 at 8:38 PM, m_salman [EMAIL PROTECTED] wrote:


 Hi,

 I am really happy with what wicket has allowed me to do with Ajax and all
 that.  I have just implemented an AutoCompleteTextfield.  It is very nice
 but I would like to improve it so that the user is restricted to items in
 the list.  So, the list is shown when the user types the first one or two
 characters (I have done that) and the list changes as the user keeps on
 typing.  But in the end if the user types some thing that is not part of
 the
 list then the field should stop him from entering anything.  So it should
 be
 a restricted AutoCompleteTextfield or may be a DropDown that allows the
 user
 to enter some data before the list is shown.

 Also how can I use objects with name, id in the list so that I get the
 selected object?

 Any advice about these will be appreciated.

 Thanks,

 -Mohammad
 --
 View this message in context:
 http://www.nabble.com/retricted-AutoCompleteTextField-tp20043898p20043898.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]